/* ==========================================================================
   BIFI Lens — MCA company & LLP records
   Direction: the engraved share certificate. Midnight ground, brass rules,
   warm ivory text, Didone display. Everything premium here is borrowed from
   the real materials of corporate registration — seals, gilt, engraving.
   ========================================================================== */

:root {
  --void:    #070A0F;
  --ink:     #0C1119;
  --slab:    #121924;
  --slab-2:  #18212E;
  --raise:   #1E2937;

  --line:    #232E3D;
  --line-2:  #2E3B4C;
  --gilt:    rgba(201, 162, 39, .30);
  --gilt-2:  rgba(201, 162, 39, .14);

  --brass:   #C9A227;
  --brass-2: #E6CC78;
  --brass-3: #8C6F19;

  --ivory:   #F1EDE2;
  --warm:    #CFC7B4;
  --grey:    #8D97A6;
  --dim:     #5F6B7C;

  --jade:    #56A88C;
  --rust:    #C9604A;
  --amber:   #C9962C;

  --display: "Bodoni Moda", Didot, "Times New Roman", serif;
  --sans:    "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, Menlo, monospace;

  --wrap: 1240px;
  --gut: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--void); }

body {
  margin: 0;
  background: var(--void);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Fine grain over everything — keeps the dark from reading as flat black. */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { max-width: 100%; }
a { color: var(--brass-2); text-decoration: none; }
a:hover { color: var(--brass); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); position: relative; z-index: 2; }
.wrap-narrow { width: 100%; max-width: 780px; margin: 0 auto; padding: 0 var(--gut); position: relative; z-index: 2; }

.skip { position: absolute; left: -9999px; z-index: 200; background: var(--brass); color: var(--void); padding: 10px 16px; }
.skip:focus { left: 8px; top: 8px; }

/* ------------------------------------------------------------------- type */

h1, h2, h3, h4 { margin: 0; font-weight: 400; }

.h-xl { font-family: var(--display); font-size: clamp(40px, 4.9vw, 68px); line-height: 1.06; letter-spacing: -.024em; }
.h-lg { font-family: var(--display); font-size: clamp(30px, 3.9vw, 50px); line-height: 1.08; letter-spacing: -.02em; }
.h-md { font-family: var(--display); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.18; letter-spacing: -.015em; }
.h-sm { font-family: var(--sans); font-size: 17px; font-weight: 600; letter-spacing: -.01em; line-height: 1.35; }

.gilt { color: var(--brass-2); }

.eyebrow {
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .24em; text-transform: uppercase; color: var(--brass);
  margin: 0 0 18px; display: flex; align-items: center; gap: 12px;
}
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--gilt-2); max-width: 90px; }
.eyebrow-plain::after { display: none; }

.lede { font-size: clamp(16.5px, 1.5vw, 19px); line-height: 1.62; color: var(--grey); max-width: 58ch; margin: 0; }
.small { font-size: 14px; color: var(--grey); }
.tiny { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ chrome */

.topbar {
  background: var(--void); border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em;
  color: var(--dim); padding: 9px 0;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar a { color: var(--grey); }
.topbar .dot { color: var(--jade); }

.nav {
  background: rgba(7,10,15,.86); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 60;
}
.nav .wrap { display: flex; align-items: center; gap: 34px; height: 72px; }

.brand { display: flex; align-items: center; gap: 11px; }
.brand:hover { color: inherit; }
.brand-seal { width: 26px; height: 26px; flex: none; }
.brand-mark { font-family: var(--display); font-size: 22px; letter-spacing: -.01em; color: var(--ivory); line-height: 1; }
.brand-mark em { font-style: italic; color: var(--brass-2); }

.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--warm); font-size: 14px; font-weight: 500; padding: 4px 0; position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .22s ease;
}
.nav-links a:hover { color: var(--ivory); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--ivory); }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.nav-right .link-quiet { color: var(--warm); font-size: 14px; }

.nav-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 2px; padding: 0 10px; background: var(--ink); }
.nav-search input { background: none; border: none; color: var(--ivory); font-family: var(--sans); font-size: 13px; padding: 8px 0; width: 170px; }
.nav-search input::placeholder { color: var(--dim); }
.nav-search input:focus { outline: none; }
.nav-search button { background: none; border: none; color: var(--brass); cursor: pointer; font-family: var(--mono); font-size: 12px; padding: 0; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); color: var(--ivory); width: 40px; height: 36px; border-radius: 2px; cursor: pointer; font-size: 15px; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  padding: 13px 24px; border: 1px solid transparent; border-radius: 2px;
  cursor: pointer; transition: all .18s ease; white-space: nowrap;
}
.btn-brass {
  background: linear-gradient(180deg, var(--brass-2), var(--brass));
  color: #1A1405; border-color: var(--brass-2);
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 8px 24px rgba(201,162,39,.16);
}
.btn-brass:hover { background: linear-gradient(180deg, #F0DA96, var(--brass-2)); color: #1A1405; }
.btn-ghost { background: transparent; color: var(--ivory); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass-2); background: rgba(201,162,39,.05); }
.btn-solid { background: var(--raise); color: var(--ivory); border-color: var(--line-2); }
.btn-solid:hover { background: var(--slab-2); border-color: var(--brass-3); }
.btn-lg { padding: 16px 30px; font-size: 15px; }
.btn-sm { padding: 8px 15px; font-size: 12.5px; }
.btn-block { width: 100%; }

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

.hero { position: relative; padding: 84px 0 76px; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::after {
  content: ""; position: absolute; top: -280px; right: -180px; width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(201,162,39,.10) 0%, rgba(201,162,39,.03) 38%, transparent 66%);
  pointer-events: none; z-index: 0;
}
.hero-cols { display: grid; grid-template-columns: 1.08fr .92fr; gap: 60px; align-items: center; }
.hero h1 { max-width: 15ch; }
.hero h1 em { font-style: italic; color: var(--brass-2); }
.hero .lede { margin-top: 26px; }

.hero-art { position: relative; display: flex; align-items: center; justify-content: center; min-height: 460px; }
.rosette { width: 138%; max-width: 660px; opacity: .8; position: absolute; }
.rosette-spin { transform-origin: 300px 300px; animation: turn 150s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }

.chit {
  position: relative; z-index: 3; width: 100%; max-width: 400px;
  background: linear-gradient(160deg, var(--slab-2), var(--slab));
  border: 1px solid var(--line-2); border-radius: 3px;
  box-shadow: 0 40px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(201,162,39,.10);
  overflow: hidden;
}
.chit::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gilt), transparent); }
.chit-top { padding: 20px 22px 16px; border-bottom: 1px solid var(--line); }
.chit-top h3 { font-family: var(--sans); font-size: 16px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.chit-cin { font-family: var(--mono); font-size: 11px; color: var(--brass); letter-spacing: .04em; margin-top: 7px; display: block; }
.chit-rows { padding: 6px 22px 14px; }
.chit-row { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid rgba(35,46,61,.6); font-size: 13px; }
.chit-row:last-child { border-bottom: none; }
.chit-row span:first-child { color: var(--dim); font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding-top: 3px; }
.chit-row span:last-child { color: var(--ivory); text-align: right; }
.chit-foot { padding: 14px 22px 18px; background: rgba(201,162,39,.05); border-top: 1px solid var(--gilt-2); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.chit-foot .p { font-family: var(--display); font-size: 24px; color: var(--brass-2); }
.chit-foot .l { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }

.spark { display: flex; align-items: flex-end; gap: 5px; height: 52px; margin: 6px 0 2px; }
.spark i { flex: 1; background: linear-gradient(180deg, var(--brass-3), rgba(140,111,25,.3)); border-radius: 1px 1px 0 0; display: block; }
.spark i:last-child { background: linear-gradient(180deg, var(--brass-2), var(--brass)); }

.searchbar { display: flex; margin: 34px 0 20px; max-width: 620px; }
.searchbar input {
  flex: 1; min-width: 0; font-family: var(--sans); font-size: 15.5px;
  padding: 16px 18px; background: var(--ink);
  border: 1px solid var(--line-2); border-right: none; border-radius: 2px 0 0 2px; color: var(--ivory);
}
.searchbar input::placeholder { color: var(--dim); }
.searchbar input:focus { outline: none; border-color: var(--brass-3); background: var(--slab); }
.searchbar button { border-radius: 0 2px 2px 0; }

.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-stats b { display: block; font-family: var(--display); font-size: 27px; color: var(--ivory); font-weight: 500; letter-spacing: -.01em; }
.hero-stats span { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }

/* --------------------------------------------------------- CIN decoder */

.decoder-band { background: var(--ink); border-bottom: 1px solid var(--line); padding: 54px 0; }
.decoder-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; margin-bottom: 34px; }
.decoder-head h2 { font-size: 26px; }
.cin-strip { display: flex; gap: 30px; overflow-x: auto; padding-bottom: 6px; }
.cin-seg { flex: 0 0 auto; opacity: 0; transform: translateY(8px); animation: segIn .6s cubic-bezier(.2,.7,.3,1) forwards; }
.cin-seg:nth-child(1){animation-delay:.05s}.cin-seg:nth-child(2){animation-delay:.13s}
.cin-seg:nth-child(3){animation-delay:.21s}.cin-seg:nth-child(4){animation-delay:.29s}
.cin-seg:nth-child(5){animation-delay:.37s}.cin-seg:nth-child(6){animation-delay:.45s}
@keyframes segIn { to { opacity: 1; transform: none; } }

.cin-chars {
  display: block; font-family: var(--mono); font-weight: 300;
  font-size: clamp(24px, 3.4vw, 46px); color: var(--ivory);
  padding-bottom: 12px; border-bottom: 2px solid var(--brass-3);
}
.cin-seg:nth-child(even) .cin-chars { border-bottom-color: var(--brass); }
.cin-label { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); padding-top: 12px; }
.cin-mean { display: block; font-size: 13.5px; font-weight: 500; color: var(--brass-2); padding-top: 3px; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .cin-seg { opacity: 1; transform: none; animation: none; }
  .rosette-spin { animation: none; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------------------------------------------------------------- bands */

.band { padding: 88px 0; border-bottom: 1px solid var(--line); position: relative; }
.band-ink { background: var(--ink); }
.band-slab { background: linear-gradient(180deg, var(--ink), var(--void)); }
.band-head { max-width: 60ch; margin-bottom: 48px; }
.band-head .lede { margin-top: 18px; }
.band-head-split { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; max-width: none; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- panels */

.panel {
  background: linear-gradient(165deg, var(--slab-2) 0%, var(--slab) 100%);
  border: 1px solid var(--line); border-radius: 3px; padding: 30px; position: relative;
}
.panel-gilt { border-color: var(--brass-3); }
.panel-gilt::before { content: ""; position: absolute; top: -1px; left: -1px; right: -1px; height: 2px; background: linear-gradient(90deg, var(--brass-3), var(--brass-2), var(--brass-3)); }
.panel h3 { margin-bottom: 10px; }
.panel p { color: var(--grey); font-size: 14.5px; margin: 0; }
.panel-link:hover { border-color: var(--brass-3); color: inherit; }
.panel-link:hover h3 { color: var(--brass-2); }

.feat { padding-top: 26px; border-top: 1px solid var(--line); }
.feat-n { font-family: var(--display); font-size: 40px; color: var(--brass-3); line-height: 1; display: block; margin-bottom: 14px; }
.feat h3 { margin-bottom: 8px; }
.feat p { color: var(--grey); font-size: 14.5px; margin: 0; }

/* ------------------------------------------------------------- rule list */

.rulelist { list-style: none; margin: 0; padding: 0; }
.rulelist li { border-bottom: 1px solid var(--line); padding: 14px 0; display: flex; gap: 20px; }
.rulelist li:last-child { border-bottom: none; }
.rl-key { flex: 0 0 36%; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding-top: 4px; }
.rl-val { flex: 1; font-size: 14.5px; color: var(--ivory); }

.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: 10px 0 10px 26px; font-size: 14.5px; border-bottom: 1px solid var(--line); color: var(--warm); }
.ticks li:last-child { border-bottom: none; }
.ticks li::before { content: "\25C6"; position: absolute; left: 0; top: 10px; color: var(--brass-3); font-size: 9px; }
.ticks-gilt li::before { color: var(--brass); }

/* ------------------------------------------------------------------ table */

.dtable { width: 100%; border-collapse: collapse; font-size: 14px; }
.dtable th {
  text-align: left; font-family: var(--mono); font-size: 9.5px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--dim);
  padding: 0 16px 12px 0; border-bottom: 1px solid var(--brass-3); white-space: nowrap;
}
.dtable td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); color: var(--warm); vertical-align: top; }
.dtable tbody tr { transition: background .16s ease; }
.dtable tbody tr:hover { background: rgba(201,162,39,.04); }
.dtable tbody tr:hover td { color: var(--ivory); }
.dtable .fig { font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; padding-right: 0; color: var(--ivory); }
.dtable th.fig { text-align: right; padding-right: 0; }
.dtable td:first-child { color: var(--ivory); }
.table-scroll { overflow-x: auto; }

/* ------------------------------------------------------------------- pill */

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 9.5px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 2px; border: 1px solid;
}
.pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pill-active { color: var(--jade); border-color: rgba(86,168,140,.34); background: rgba(86,168,140,.08); }
.pill-struck { color: var(--rust); border-color: rgba(201,96,74,.34); background: rgba(201,96,74,.08); }
.pill-dormant { color: var(--amber); border-color: rgba(201,150,44,.34); background: rgba(201,150,44,.08); }

/* ---------------------------------------------------------- search result */

.result { display: block; border-bottom: 1px solid var(--line); padding: 22px 0; transition: padding .2s ease; }
.result:hover { color: inherit; padding-left: 12px; }
.result:hover .result-name { color: var(--brass-2); }
.result-top { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.result-name { font-family: var(--sans); font-size: 17px; font-weight: 600; letter-spacing: -.012em; margin: 0 0 8px; color: var(--ivory); transition: color .18s ease; }
.result-cin { font-family: var(--mono); font-size: 11.5px; color: var(--brass); letter-spacing: .04em; }
.result-meta { display: flex; gap: 8px 26px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; color: var(--dim); }
.result-meta b { font-weight: 500; color: var(--warm); }

/* ------------------------------------------------------------ record page */

.record-head { background: var(--ink); border-bottom: 1px solid var(--line); padding: 34px 0 0; position: relative; overflow: hidden; }
.record-head::after {
  content: ""; position: absolute; top: -400px; right: -200px; width: 760px; height: 760px;
  background: radial-gradient(circle, rgba(201,162,39,.07), transparent 62%); pointer-events: none;
}
.crumbs { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; color: var(--dim); margin-bottom: 20px; }
.crumbs a { color: var(--grey); }
.crumbs i { font-style: normal; color: var(--brass-3); padding: 0 8px; }

.record-title { display: flex; gap: 26px; align-items: flex-start; flex-wrap: wrap; }
.record-title h1 { font-family: var(--display); font-size: clamp(28px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -.02em; max-width: 20ch; }
.record-sub { display: flex; gap: 12px 24px; flex-wrap: wrap; align-items: center; margin-top: 18px; }
.record-sub .mono { font-size: 12.5px; color: var(--grey); letter-spacing: .04em; }
.record-actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }

.tabs { display: flex; gap: 2px; margin-top: 30px; overflow-x: auto; }
.tabs a { font-size: 13.5px; font-weight: 500; color: var(--grey); padding: 13px 16px; border-bottom: 1px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--ivory); }
.tabs a[aria-current="true"] { color: var(--brass-2); border-bottom-color: var(--brass); }

.record-body { padding: 52px 0 0; }
.record-cols { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 52px; align-items: start; }

.sec { margin-bottom: 56px; scroll-margin-top: 100px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--brass-3); padding-bottom: 12px; margin-bottom: 24px; }
.sec-head h2 { font-family: var(--display); font-size: 24px; letter-spacing: -.015em; }
.source-note { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; color: var(--dim); margin-top: 14px; display: block; }

.chart { display: flex; align-items: flex-end; gap: 10px; height: 160px; padding-top: 10px; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; justify-content: flex-end; height: 100%; }
.chart-bar { width: 100%; background: linear-gradient(180deg, var(--brass-3), rgba(140,111,25,.22)); border-radius: 1px 1px 0 0; }
.chart-col:last-child .chart-bar { background: linear-gradient(180deg, var(--brass-2), var(--brass-3)); }
.chart-lab { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; color: var(--dim); }

.locked { position: relative; }
.locked-preview { filter: blur(5px); opacity: .34; pointer-events: none; user-select: none; max-height: 200px; overflow: hidden; }
.locked::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 200px; background: linear-gradient(180deg, transparent, var(--void)); pointer-events: none; }

.unlock {
  position: relative; z-index: 3; margin-top: -70px;
  background: linear-gradient(165deg, var(--slab-2), var(--ink));
  border: 1px solid var(--brass-3); border-radius: 3px; padding: 34px;
  box-shadow: 0 30px 70px rgba(0,0,0,.7);
}
.unlock::before { content: ""; position: absolute; top: -1px; left: -1px; right: -1px; height: 2px; background: linear-gradient(90deg, var(--brass-3), var(--brass-2), var(--brass-3)); }
.unlock h3 { font-family: var(--display); font-size: 29px; letter-spacing: -.015em; margin-bottom: 12px; max-width: 34ch; }
.unlock p { color: var(--grey); font-size: 14.5px; margin: 0 0 22px; max-width: 52ch; }
.price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 22px; }
.price .amt { font-family: var(--display); font-size: 46px; color: var(--brass-2); line-height: 1; }
.price .per { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.unlock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin-bottom: 26px; }

.aside-box { background: var(--slab); border: 1px solid var(--line); border-radius: 3px; padding: 24px; margin-bottom: 20px; }
.aside-box h3 { font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); margin-bottom: 18px; }
.aside-gilt { border-color: var(--brass-3); background: linear-gradient(165deg, var(--slab-2), var(--ink)); }
.aside-links { list-style: none; margin: 0; padding: 0; }
.aside-links li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.aside-links li:last-child { border-bottom: none; }

/* --------------------------------------------------------------- insights */

.post { display: block; border-bottom: 1px solid var(--line); padding: 30px 0; }
.post:hover { color: inherit; }
.post:hover h3 { color: var(--brass-2); }
.post-kicker { font-family: var(--mono); font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--brass); margin-bottom: 12px; }
.post h3 { font-family: var(--display); font-size: 27px; letter-spacing: -.018em; line-height: 1.2; margin-bottom: 12px; max-width: 28ch; color: var(--ivory); transition: color .18s ease; }
.post p { font-size: 15px; color: var(--grey); margin: 0; max-width: 62ch; }
.post-meta { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-top: 14px; }

.article-body { font-size: 17.5px; line-height: 1.76; color: var(--warm); }
.article-body p { margin: 0 0 1.2em; }
.article-body h2 { font-family: var(--display); font-size: 30px; letter-spacing: -.018em; color: var(--ivory); margin: 1.9em 0 .55em; }
.article-body h3 { font-family: var(--sans); font-size: 18px; font-weight: 600; color: var(--brass-2); margin: 1.8em 0 .5em; }
.article-body ul { margin: 0 0 1.3em; padding-left: 1.1em; }
.article-body li { margin-bottom: .5em; }
.article-body blockquote {
  margin: 2em 0; padding: 22px 0 22px 26px; border-left: 2px solid var(--brass);
  font-family: var(--display); font-size: 25px; line-height: 1.4; color: var(--brass-2); font-style: italic;
}
.article-body table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 14px; margin: 2em 0; }
.article-body th { text-align: left; font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); padding: 0 16px 12px 0; border-bottom: 1px solid var(--brass-3); }
.article-body td { padding: 13px 16px 13px 0; border-bottom: 1px solid var(--line); color: var(--warm); }

/* ------------------------------------------------------------------ forms */

.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); margin-bottom: 9px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; font-family: var(--sans); font-size: 15px; padding: 13px 15px;
  background: var(--ink); border: 1px solid var(--line-2); border-radius: 2px; color: var(--ivory);
}
.form-row textarea { min-height: 200px; resize: vertical; line-height: 1.7; }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { outline: none; border-color: var(--brass-3); background: var(--slab); }
.form-row input::placeholder, .form-row textarea::placeholder { color: var(--dim); }
.form-help { font-size: 12.5px; color: var(--dim); margin: 8px 0 0; }
.form-error { font-size: 12.5px; color: var(--rust); margin: 8px 0 0; display: none; }
.form-row.is-invalid input { border-color: var(--rust); }
.form-row.is-invalid .form-error { display: block; }

.auth-shell { display: grid; grid-template-columns: 1.05fr .95fr; min-height: calc(100vh - 72px); }
.auth-panel { position: relative; overflow: hidden; padding: 70px 60px; display: flex; flex-direction: column; justify-content: center; background: var(--ink); border-right: 1px solid var(--line); }
.auth-panel::after { content: ""; position: absolute; bottom: -320px; left: -140px; width: 700px; height: 700px; background: radial-gradient(circle, rgba(201,162,39,.10), transparent 62%); }
.auth-panel > * { position: relative; z-index: 2; }
.auth-form { padding: 70px 60px; display: flex; flex-direction: column; justify-content: center; max-width: 540px; }

.tabswitch { display: flex; border: 1px solid var(--line-2); border-radius: 2px; overflow: hidden; margin-bottom: 32px; }
.tabswitch button { flex: 1; padding: 13px; background: var(--ink); border: none; cursor: pointer; font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--grey); }
.tabswitch button[aria-selected="true"] { background: linear-gradient(180deg, var(--brass-2), var(--brass)); color: #1A1405; }

/* --------------------------------------------------------------- checkout */

.checkout-cols { display: grid; grid-template-columns: minmax(0,1fr) 400px; gap: 52px; align-items: start; }
.pay-method { display: flex; gap: 15px; align-items: flex-start; border: 1px solid var(--line-2); border-radius: 2px; padding: 17px; margin-bottom: 10px; cursor: pointer; background: var(--slab); transition: all .16s ease; }
.pay-method:hover { border-color: var(--brass-3); }
.pay-method input { margin-top: 4px; accent-color: var(--brass); }
.pay-method.is-on { border-color: var(--brass); background: rgba(201,162,39,.06); }
.pay-method strong { display: block; font-size: 15px; font-weight: 600; color: var(--ivory); }
.pay-method span { font-size: 13px; color: var(--grey); }

.order { background: linear-gradient(165deg, var(--slab-2), var(--ink)); border: 1px solid var(--brass-3); border-radius: 3px; padding: 28px; position: sticky; top: 96px; }
.order-line { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--warm); }
.order-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 20px; }
.order-total .amt { font-family: var(--display); font-size: 40px; color: var(--brass-2); line-height: 1; }

/* ---------------------------------------------------------------- pricing */

.plan { background: linear-gradient(165deg, var(--slab-2), var(--slab)); border: 1px solid var(--line); border-radius: 3px; padding: 34px; display: flex; flex-direction: column; position: relative; }
.plan-gilt { border-color: var(--brass-3); background: linear-gradient(165deg, var(--slab-2), var(--ink)); }
.plan-gilt::before { content: ""; position: absolute; top: -1px; left: -1px; right: -1px; height: 2px; background: linear-gradient(90deg, var(--brass-3), var(--brass-2), var(--brass-3)); }
.plan-tag { position: absolute; top: -11px; right: 24px; font-family: var(--mono); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; background: var(--brass); color: #1A1405; padding: 4px 10px; border-radius: 2px; }
.plan h3 { font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--brass); margin-bottom: 20px; }
.plan-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.plan-price .amt { font-family: var(--display); font-size: 52px; line-height: 1; color: var(--ivory); }
.plan-gilt .plan-price .amt { color: var(--brass-2); }
.plan-price .per { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.plan .ticks { margin: 26px 0 30px; }
.plan .btn { margin-top: auto; }

/* ---------------------------------------------------------------- notices */

.notice { background: rgba(201,150,44,.07); border: 1px solid rgba(201,150,44,.26); border-left: 2px solid var(--amber); padding: 18px 20px; border-radius: 2px; font-size: 14px; color: var(--warm); margin: 28px 0; }
.notice strong { display: block; margin-bottom: 5px; color: var(--ivory); }
.flash { background: rgba(86,168,140,.08); border: 1px solid rgba(86,168,140,.28); border-left: 2px solid var(--jade); padding: 16px 18px; border-radius: 2px; font-size: 14px; color: var(--warm); margin-bottom: 26px; }

/* ----------------------------------------------------------------- footer */

.foot { background: var(--void); border-top: 1px solid var(--line); padding: 66px 0 0; }
.foot h4 { font-family: var(--mono); font-size: 9.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--brass); margin-bottom: 18px; }
.foot a { color: var(--grey); font-size: 13.5px; }
.foot a:hover { color: var(--brass-2); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 10px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 52px; }
.foot-brand p { color: var(--dim); font-size: 13.5px; max-width: 32ch; margin: 18px 0 0; line-height: 1.65; }
.seo-links { border-top: 1px solid var(--line); padding: 30px 0; }
.seo-links .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.seo-links .chips a { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; padding: 6px 12px; border: 1px solid var(--line); border-radius: 2px; color: var(--grey); }
.seo-links .chips a:hover { border-color: var(--brass-3); color: var(--brass-2); }
.foot-bottom { border-top: 1px solid var(--line); padding: 24px 0 32px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot-bottom p { margin: 0; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; color: var(--dim); }

/* ------------------------------------------------------------- responsive */

@media (max-width: 1080px) {
  .hero-cols { grid-template-columns: 1fr; gap: 48px; }
  .hero-art { min-height: 400px; order: 2; }
  .record-cols, .checkout-cols { grid-template-columns: 1fr; }
  .order { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .auth-shell { grid-template-columns: 1fr; min-height: 0; }
  .auth-panel, .auth-form { padding: 52px 32px; max-width: none; border-right: none; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  :root { --gut: 20px; }
  .nav-links, .nav-search { display: none; }
  .nav-right .link-quiet { display: none; }
  .nav-links.is-open {
    display: flex; flex-direction: column; gap: 0; position: absolute; top: 64px;
    left: 0; right: 0; background: var(--ink); padding: 6px 20px 20px; border-bottom: 1px solid var(--line);
  }
  .nav-links.is-open a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .nav .wrap { gap: 14px; height: 64px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .band { padding: 56px 0; }
  .hero { padding: 48px 0 52px; }
  .searchbar { flex-direction: column; gap: 10px; }
  .searchbar input { border-right: 1px solid var(--line-2); border-radius: 2px; }
  .searchbar button { border-radius: 2px; }
  .unlock-grid { grid-template-columns: 1fr; }
  .unlock { padding: 24px; margin-top: -50px; }
  .record-actions { margin-left: 0; width: 100%; }
  .rulelist li { flex-direction: column; gap: 5px; }
  .rl-key { flex: none; }
  .hero-stats { gap: 24px; }
}
