/* Buffettwheel: colours and style from the BRK.Bx token image. Flat royal blue, navy notch triangles cut in
   from the edges, bold white serif. Lavender for fine engraved lines; white security-paper panels. */
:root {
  --green: #2C3191;      /* royal blue ground (token image) */
  --green-2: #2C3191;
  --navy: #161949;       /* notch triangles, hub, ink */
  --engrave: #4C52B2;    /* guilloche lines */
  --paper: #FFFFFF;      /* panels */
  --paper-2: #EEEEF8;
  --gold: #B8BADA;       /* lavender line colour (token image) */
  --gold-hi: #FFFFFF;
  --ink: #161949;
  --ink-soft: #4A4E86;
  --up: #9FE6B8;
  --down: #FFB4A8;
  --display: 'Old Standard TT', 'Times New Roman', serif;
  --sans: 'Instrument Sans', system-ui, sans-serif;
  --wrap: min(1180px, calc(100% - 40px));
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--green); color: var(--paper);
  font: 400 17px/1.55 var(--sans); font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  /* fine engraved hatching, like the ground of a banknote */
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .028) 0 1px, transparent 1px 7px);
}
a { color: inherit; }
img, svg { display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.04; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; z-index: 99; }
.skip:focus { left: 8px; }
.small { font-size: 14px; color: var(--ink-soft); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px;
  padding: 12px max(20px, calc((100% - 1180px) / 2)); background: rgba(44, 49, 145, .94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(184, 186, 218, .25);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 21px/1 var(--display); }
.brand-seal { width: 38px; height: 38px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.nav-links a { text-decoration: none; opacity: .82; }
.nav-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--gold); }
.nav-actions { display: flex; gap: 8px; }
.ca-pill, .x-btn {
  height: 38px; border-radius: 19px; border: 1px solid rgba(184, 186, 218, .55); background: transparent; color: var(--paper);
  font: 500 14px var(--sans); padding: 0 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
}
.x-btn { width: 38px; padding: 0; justify-content: center; }
.ca-pill:hover, .x-btn:hover { background: rgba(184, 186, 218, .14); }

/* ---------- buttons ---------- */
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 4px;
  font: 600 16px var(--sans); text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: background-color .18s, color .18s, transform .18s;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: #FFFFFF; color: var(--navy); }
.btn-gold:hover { background: var(--paper-2); }
.btn-line { border-color: rgba(255, 255, 255, .5); color: var(--paper); }
.btn-line:hover { border-color: var(--paper); background: rgba(255, 255, 255, .08); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--green-2); }
.btn-line-ink { border-color: var(--ink); color: var(--ink); }
.btn-line-ink:hover { background: rgba(22, 25, 73, .07); }

/* ---------- hero: the certificate ---------- */
.hero { width: 100%; margin: 0; }
.hero .cert { width: var(--wrap); margin: 0 auto; position: static; }
.hero { position: relative; overflow: hidden; }
.cert {
  position: relative; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px;
  padding: clamp(56px, 7vw, 96px) clamp(28px, 5vw, 64px);
}
/* the token image's navy triangles, cut in from the middle of each edge */
.notch { position: absolute; background: var(--navy); pointer-events: none; }
.notch-t { top: 0; left: 50%; translate: -50% 0; width: 22%; aspect-ratio: 2 / 1; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.notch-b { bottom: 0; left: 50%; translate: -50% 0; width: 22%; aspect-ratio: 2 / 1; clip-path: polygon(0 100%, 100% 100%, 50% 0); }
.notch-l { left: 0; top: 50%; translate: 0 -50%; height: 34%; aspect-ratio: 1 / 2; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.notch-r { right: 0; top: 50%; translate: 0 -50%; height: 34%; aspect-ratio: 1 / 2; clip-path: polygon(100% 0, 0 50%, 100% 100%); }
.cert-copy { position: relative; display: grid; gap: 26px; max-width: 34rem; }
.cert h1 { font-size: clamp(46px, 6.2vw, 86px); line-height: .98; color: var(--paper); text-wrap: balance; }
.cert-sub { font-size: 19px; line-height: 1.6; color: rgba(255, 255, 255, .86); max-width: 31rem; }
.cert-sub b { color: var(--gold-hi); font-weight: 600; }

.seal-wrap { position: relative; margin: 0; width: 100%; max-width: 540px; justify-self: center; aspect-ratio: 1; }
.seal { width: 100%; height: 100%; overflow: visible; }
.seal-rose path { fill: none; stroke: var(--engrave); stroke-width: .7; }
.seal-rose-b path { stroke: rgba(184, 186, 218, .45); stroke-width: .6; }
.seal-rose-a { transform-origin: 300px 300px; animation: turn 240s linear infinite; }
.seal-rose-b { transform-origin: 300px 300px; animation: turn 300s linear infinite reverse; }
@keyframes turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .seal-rose-a, .seal-rose-b { animation: none; } }
.seal-wheel { transform-origin: 300px 300px; transition: transform 1.6s cubic-bezier(.65, 0, .25, 1); }
@media (prefers-reduced-motion: reduce) { .seal-wheel { transition: none; } }
.seal-pointer { fill: #FFFFFF; }
.medal circle.face { fill: #FFFFFF; stroke: var(--navy); stroke-width: 3; }
.medal circle.ring { fill: none; stroke: var(--ink); stroke-width: 1; stroke-dasharray: 2 3; }
.medal text { font-family: var(--display); font-weight: 700; fill: var(--ink); text-anchor: middle; dominant-baseline: central; }
.medal text.co { font-family: var(--sans); font-weight: 500; font-size: 11px; fill: var(--ink-soft); }
.medal .upright { transition: transform 1.6s cubic-bezier(.65, 0, .25, 1); }
.medal.now circle.face { fill: var(--navy); stroke: #FFFFFF; }
.medal.now text { fill: #FFFFFF; }
.medal.now circle.ring { stroke: var(--gold); }
.hub {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 37%; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-content: center; text-align: center; gap: 2px;
  background: var(--navy); border: 2px solid #FFFFFF; box-shadow: 0 0 0 7px var(--green), 0 0 0 8px rgba(184, 186, 218, .6);
}
.hub-label { font-size: 13px; color: rgba(255, 255, 255, .75); }
.hub-ticker { font: 700 clamp(26px, 4vw, 42px)/1 var(--display); color: #FFFFFF; }
.hub-time { font: 600 clamp(18px, 2.2vw, 24px)/1.2 var(--sans); }

/* ---------- ticker tape ---------- */
.tape { margin: 0; border-block: 1px solid rgba(184, 186, 218, .4); background: var(--ink); overflow: hidden; }
.tape-track { display: flex; width: max-content; animation: tape 40s linear infinite; }
.tape:hover .tape-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .tape-track { animation: none; } }
@keyframes tape { to { transform: translateX(-50%); } }
.tape-item { display: flex; align-items: baseline; gap: 10px; padding: 13px 34px; font-size: 15px; white-space: nowrap; border-right: 1px solid rgba(255, 255, 255, .1); }
.tape-item b { font: 700 17px var(--display); color: var(--gold-hi); }
.tape-item .up { color: var(--up); }
.tape-item .down { color: var(--down); }

/* ---------- paper panels ---------- */
.paper {
  background: var(--paper); color: var(--ink); border-radius: 2px; position: relative;
  background-image: repeating-radial-gradient(circle at 100% 0, rgba(76, 82, 178, .06) 0 1px, transparent 1px 9px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 24px 60px -30px rgba(0, 0, 0, .6);
}

/* ---------- board ---------- */
.board { width: var(--wrap); margin: 72px auto 0; scroll-margin-top: 80px; }
.board .paper { padding: clamp(22px, 4vw, 44px); }
.board-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.board-head h2 { font-size: clamp(32px, 4vw, 46px); }
.board-state { display: flex; align-items: center; gap: 16px; font-size: 15px; color: var(--ink-soft); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-soft); display: inline-block; margin-right: -8px; }
body.live .dot { background: #2FA866; box-shadow: 0 0 0 0 rgba(60, 170, 110, .5); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(60, 170, 110, 0); } 100% { box-shadow: 0 0 0 0 rgba(60, 170, 110, 0); } }
.board-now { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; padding: 28px 0; border-bottom: 1px solid rgba(22, 25, 73, .2); }
.now-name { font: 700 clamp(34px, 5vw, 60px)/1.02 var(--display); margin-top: 6px; }
.now-tk { font-size: .5em; color: var(--green); vertical-align: middle; margin-left: 6px; }
.now-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 12px; font-size: 16px; color: var(--ink-soft); }
.now-meta a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--green); }
.now-clock { text-align: right; min-width: 170px; }
.now-clock b { display: block; font: 700 clamp(44px, 6vw, 68px)/1 var(--display); }
.bar { height: 4px; background: rgba(22, 25, 73, .12); margin-top: 10px; }
.bar i { display: block; height: 100%; width: 0; background: var(--green); transition: width 1s linear; }
.figures { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-bottom: 1px solid rgba(22, 25, 73, .2); }
.figures div { padding: 20px 18px 20px 0; }
.figures div + div { padding-left: 18px; border-left: 1px solid rgba(22, 25, 73, .14); }
.figures dt { font-size: 14px; color: var(--ink-soft); }
.figures dd { margin: 4px 0 0; font: 700 28px/1.1 var(--display); }
.lists { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-top: 26px; }
.lists h3 { font-size: 22px; margin-bottom: 10px; }
.lists ol { list-style: none; margin: 0; padding: 0; }
.lists li { display: grid; grid-template-columns: 62px 1fr auto; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid rgba(22, 25, 73, .12); font-size: 15px; }
.lists li .tk { font: 700 15px var(--display); color: var(--green); }
.lists li b { display: block; font-weight: 600; }
.lists li .muted { color: var(--ink-soft); font-size: 14px; }
.lists li .when { color: var(--ink-soft); font-size: 14px; text-align: right; }
.lists li a { color: var(--ink); font-size: 14px; text-underline-offset: 3px; text-decoration-color: var(--green); }

/* ---------- holdings ledger ---------- */
.holdings, .how, .coin { width: var(--wrap); margin: 96px auto 0; scroll-margin-top: 80px; }
.sect-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 28px; }
.sect-head h2, .how h2 { font-size: clamp(36px, 5vw, 60px); }
.sect-head p { color: rgba(255, 255, 255, .82); max-width: 32rem; }
.ledger { width: 100%; border-collapse: collapse; font-size: 16px; }
.ledger th { text-align: left; font-weight: 500; font-size: 14px; color: rgba(255, 255, 255, .65); padding: 0 12px 12px 0; border-bottom: 1px solid var(--gold); }
.ledger td { padding: 20px 12px 20px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); vertical-align: middle; }
.ledger td b { font: 700 24px/1.1 var(--display); display: block; }
.ledger .tk { font-size: 14px; color: var(--gold-hi); letter-spacing: .02em; }
.ledger .turn { font: 400 italic 32px/1 var(--display); color: var(--gold); width: 64px; }
.ledger .num { text-align: right; white-space: nowrap; }
.ledger td.num { font: 700 22px var(--display); }
.ledger td.num small { display: block; font: 500 13px var(--sans); }
.ledger tr.now td { background: rgba(184, 186, 218, .1); }
.ledger tr.now .turn { color: var(--gold-hi); }
.up { color: var(--up); } .down { color: var(--down); }
.fine { margin-top: 18px; font-size: 14px; color: rgba(255, 255, 255, .65); max-width: 46rem; }

/* ---------- how ---------- */
.steps { list-style: none; counter-reset: s; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.steps li { counter-increment: s; padding: 26px 28px 8px 0; border-top: 1px solid var(--gold); }
.steps li + li { padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, .14); }
.steps li::before { content: counter(s); display: block; font: 400 italic 46px/1 var(--display); color: var(--gold); margin-bottom: 14px; }
.steps h3 { font-size: 25px; margin-bottom: 10px; }
.steps p { color: rgba(255, 255, 255, .8); }

/* ---------- coin ---------- */
.coin-card { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: clamp(24px, 4vw, 48px); }
.coin-card h2 { font-size: clamp(34px, 4.4vw, 52px); margin-bottom: 18px; }
.facts { margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid rgba(22, 25, 73, .14); }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }
.ca-box { display: grid; gap: 16px; align-content: start; padding: 26px; border: 1px solid rgba(22, 25, 73, .25); outline: 1px solid rgba(22, 25, 73, .12); outline-offset: -6px; }
.ca-value { font: 700 21px/1.35 var(--display); overflow-wrap: anywhere; }

/* ---------- footer ---------- */
.footer { width: var(--wrap); margin: 110px auto 0; padding: 30px 0 40px; border-top: 1px solid var(--gold); }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.foot-top nav { display: flex; gap: 22px; font-size: 15px; }
.disclaimer { margin-top: 24px; font-size: 13.5px; line-height: 1.65; color: rgba(255, 255, 255, .62); max-width: 62rem; }
.disclaimer b { color: rgba(255, 255, 255, .85); }
.copy { margin-top: 18px; font-size: 13px; color: rgba(255, 255, 255, .5); }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; translate: -50% 20px; opacity: 0; pointer-events: none; z-index: 50;
  background: var(--paper); color: var(--ink); padding: 12px 18px; border-radius: 4px; font-size: 15px; border: 1px solid var(--navy);
  transition: opacity .2s, translate .2s; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; translate: -50% 0; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .notch-l, .notch-r { display: none; }
  .notch-t, .notch-b { width: 34%; }
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .cert { grid-template-columns: 1fr; gap: 28px; }
  .seal-wrap { max-width: 440px; }
  .sect-head, .coin-card { grid-template-columns: 1fr; gap: 16px; }
  .figures { grid-template-columns: 1fr 1fr; }
  .figures div:nth-child(3) { padding-left: 0; border-left: 0; }
  .figures div:nth-child(n+3) { border-top: 1px solid rgba(22, 25, 73, .14); }
  .lists { grid-template-columns: 1fr; gap: 26px; }
  .steps { grid-template-columns: 1fr; }
  .steps li + li { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  :root { --wrap: calc(100% - 28px); }
  body { font-size: 16px; }
  .brand span { font-size: 19px; }
  .ca-pill { padding: 0 12px; font-size: 13px; }
  .cert { padding: 64px 4px 72px; }
  .cert-sub { font-size: 17px; }
  .ctas .btn { flex: 1 1 100%; }
  .board-now { grid-template-columns: 1fr; gap: 18px; }
  .now-clock { text-align: left; }
  .ledger thead { display: none; }
  .ledger tr { display: grid; grid-template-columns: 44px 1fr auto; column-gap: 10px; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
  .ledger td { padding: 0; border: 0; }
  .ledger td:nth-child(3) { grid-column: 2 / 4; grid-row: 2; font-size: 14px; color: rgba(255, 255, 255, .75); margin-top: 6px; }
  .ledger .turn { width: auto; font-size: 26px; }
  .ledger tr.now { background: rgba(184, 186, 218, .1); box-shadow: -14px 0 0 rgba(184, 186, 218, .1), 14px 0 0 rgba(184, 186, 218, .1); }
  .ledger tr.now td { background: none; }
  .ledger td b { font-size: 21px; }
  .lists li { grid-template-columns: 54px 1fr; }
  .lists li .when, .lists li > :nth-child(n+4) { grid-column: 2; text-align: left; }
}

/* ---------- stock logos: small circles so people can tell the companies apart ---------- */
.logo { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; display: inline-block; vertical-align: middle;
  box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 3px rgba(22, 25, 73, .25); }
.logo-lg { width: 44px; height: 44px; }
.logo-xl { width: 56px; height: 56px; margin-right: 14px; vertical-align: -6px; }
.ledger td.co { white-space: nowrap; }
.ledger td.co > span { display: inline-block; vertical-align: middle; margin-left: 16px; white-space: normal; }
.lists li .tk { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 13px; }
.lists li { grid-template-columns: 70px 1fr auto; }
.tape-item { align-items: center; }
.tape-item .logo { width: 24px; height: 24px; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .8); }
@media (max-width: 560px) {
  .ledger td.co > span { margin-left: 12px; }
  .logo-lg { width: 38px; height: 38px; }
  .logo-xl { width: 44px; height: 44px; margin-right: 10px; vertical-align: -4px; }
  .lists li { grid-template-columns: 62px 1fr; }
}
