/* ==========================================================================
   Custom Built Club Co — stylesheet
   Skeleton: fixed left rail (navy) + scrolling content canvas (ivory).
   Display face: Georgia. Running text: system sans.
   Palette: deep navy ground, brass gold accent, warm ivory paper.
   ========================================================================== */

:root {
  --ink-900: #0a1523;
  --ink-800: #0d1a2b;
  --ink-700: #142438;
  --ink-600: #1d3350;
  --ink-400: #294464;
  --ink-350: #4a6484;
  --ink-200: #90a4bb;
  --brass-600: #8a6524;
  --brass-500: #a8802f;
  --brass-400: #c19a45;
  --brass-300: #d7b878;
  --paper: #f7f4ed;
  --paper-2: #efe9dc;
  --paper-3: #e4dbc8;
  --line: #d6cdb8;
  --line-dark: #1e344f;

  --rail-w: 274px;
  --pad-x: clamp(22px, 4.4vw, 76px);
  --serif: Georgia, 'Times New Roman', Times, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --tick: 220ms cubic-bezier(.22,.68,.35,1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-800);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brass-600); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.012em;
  color: var(--ink-900);
  margin: 0;
}

h1 { font-size: clamp(2.15rem, 4.5vw, 3.35rem); line-height: 1.08; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); line-height: 1.16; }
h3 { font-size: 1.24rem; line-height: 1.28; }
h4 { font-size: 1.04rem; line-height: 1.3; }

p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }

::selection { background: var(--brass-300); color: var(--ink-900); }

.cb-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--brass-400);
  color: var(--ink-900);
  padding: 10px 18px;
  font-size: 0.9rem;
}
.cb-skip:focus { left: 8px; top: 8px; }

/* --------------------------------------------------------------- shell -- */

.cb-shell { min-height: 100vh; }

/* --------------------------------------------------------------- rail --- */

.cb-rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail-w);
  background:
    linear-gradient(180deg, var(--ink-800) 0%, var(--ink-900) 62%, #071120 100%);
  color: #dfe7f0;
  z-index: 60;
  overflow-y: auto;
  border-right: 1px solid #071120;
}

.cb-rail__inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 30px 0 26px;
}

.cb-crest {
  display: block;
  padding: 0 24px 24px;
  color: inherit;
  border-bottom: 1px solid rgba(193, 154, 69, 0.26);
}
.cb-crest:hover { text-decoration: none; }

.cb-crest__glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1.5px solid var(--brass-400);
  color: var(--brass-300);
  font-family: var(--serif);
  font-size: 1.02rem;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.cb-crest__name {
  display: block;
  font-family: var(--serif);
  font-size: 1.33rem;
  line-height: 1.15;
  color: #fbf8f1;
}

.cb-crest__place {
  display: block;
  margin-top: 7px;
  font-size: 0.71rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-200);
}

.cb-rail__nav { padding: 20px 0 8px; flex: 1 0 auto; }

.cb-rail__label {
  margin: 22px 24px 8px;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-400);
}

.cb-rail__set { list-style: none; margin: 0; padding: 0; }

.cb-rail__row a {
  display: block;
  padding: 8px 24px 8px 22px;
  border-left: 2px solid transparent;
  color: #cdd8e5;
  font-size: 0.945rem;
  transition: color var(--tick), border-color var(--tick), background var(--tick);
}
.cb-rail__row a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.045);
  border-left-color: var(--brass-500);
  text-decoration: none;
}
.cb-rail__row.cb-is-here a {
  color: var(--brass-300);
  border-left-color: var(--brass-400);
  background: rgba(193, 154, 69, 0.08);
}
.cb-rail__set--tight .cb-rail__row a { padding-top: 5px; padding-bottom: 5px; font-size: 0.9rem; }

.cb-rail__foot {
  padding: 22px 24px 0;
  margin-top: 26px;
  border-top: 1px solid rgba(193, 154, 69, 0.26);
}

.cb-rail__tel {
  display: block;
  font-family: var(--serif);
  font-size: 1.18rem;
  color: #fbf8f1;
  margin-bottom: 12px;
}
.cb-rail__tel:hover { color: var(--brass-300); text-decoration: none; }

/* ---------------------------------------------------------- mobile bar -- */

.cb-bar { display: none; }

.cb-veil {
  position: fixed;
  inset: 0;
  background: rgba(7, 17, 32, 0.55);
  z-index: 55;
  opacity: 0;
  transition: opacity var(--tick);
}
.cb-veil.cb-is-lit { opacity: 1; }

/* ------------------------------------------------------------- canvas --- */

.cb-canvas {
  margin-left: var(--rail-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.cb-canvas > main { flex: 1 0 auto; }

/* ------------------------------------------------------------ actions --- */

.cb-act {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.83rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  padding: 13px 26px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background var(--tick), color var(--tick), border-color var(--tick), transform var(--tick);
}
.cb-act:hover { text-decoration: none; transform: translateY(-1px); }

.cb-act--solid {
  background: var(--brass-500);
  color: #14100a;
  border-color: var(--brass-500);
}
.cb-act--solid:hover { background: var(--brass-400); border-color: var(--brass-400); }

.cb-act--line {
  background: transparent;
  color: var(--ink-800);
  border-color: var(--ink-600);
}
.cb-act--line:hover { background: var(--ink-800); color: var(--paper); border-color: var(--ink-800); }

.cb-act--pale {
  background: transparent;
  color: var(--brass-300);
  border-color: rgba(215, 184, 120, 0.55);
}
.cb-act--pale:hover { background: var(--brass-400); color: #14100a; border-color: var(--brass-400); }

.cb-act--full { display: block; text-align: center; }

/* -------------------------------------------------------------- opener -- */

.cb-opener {
  padding: clamp(52px, 7vw, 96px) var(--pad-x) clamp(40px, 5vw, 64px);
  background:
    radial-gradient(1100px 420px at 12% -8%, rgba(193, 154, 69, 0.16), transparent 62%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}

.cb-opener__kicker {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-600);
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--brass-400);
}

.cb-opener__lede {
  font-size: 1.12rem;
  max-width: 62ch;
  margin-top: 22px;
  color: var(--ink-700);
}

.cb-opener__acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.cb-opener__split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(30px, 4vw, 62px);
  align-items: start;
}

/* --------------------------------------------------------------- panel -- */

.cb-panel {
  background: var(--ink-800);
  color: #dbe4ef;
  padding: 26px 26px 20px;
  border-top: 3px solid var(--brass-500);
}

.cb-panel__head {
  font-family: var(--serif);
  font-size: 1.06rem;
  color: #fbf8f1;
  margin-bottom: 4px;
}

.cb-panel__sub {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-300);
  margin-bottom: 18px;
}

.cb-gauge { margin-bottom: 16px; }

.cb-gauge__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.8rem;
  margin-bottom: 6px;
}
.cb-gauge__name { color: #b8c7d9; letter-spacing: 0.04em; }
.cb-gauge__read { font-family: var(--serif); font-size: 1rem; color: var(--brass-300); }

.cb-gauge__track {
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}
/* Without JS the bar renders straight at its --fill value; with JS it starts
   empty and animates up to the same figure once the panel scrolls into view. */
.cb-gauge__fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, var(--brass-600), var(--brass-300));
  width: var(--fill, 0);
  transition: width 900ms cubic-bezier(.2,.75,.3,1);
}
.cb-js .cb-gauge__fill { width: 0; }

.cb-panel__tail {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  color: var(--ink-200);
}

/* ---------------------------------------------------------------- band -- */

.cb-band { padding: clamp(46px, 5.6vw, 78px) var(--pad-x); }
.cb-band--tint { background: var(--paper-2); }
.cb-band--deep { background: var(--ink-800); color: #d8e2ee; }
.cb-band--deep h2, .cb-band--deep h3 { color: #fbf8f1; }
.cb-band--deep a { color: var(--brass-300); }
.cb-band--edge { border-top: 1px solid var(--line); }

.cb-head { margin-bottom: 34px; max-width: 66ch; }

.cb-head__no {
  display: block;
  font-family: var(--serif);
  font-size: 0.86rem;
  letter-spacing: 0.28em;
  color: var(--brass-600);
  margin-bottom: 10px;
}
.cb-band--deep .cb-head__no { color: var(--brass-300); }

.cb-head__sub { margin-top: 14px; color: var(--ink-700); max-width: 60ch; }
.cb-band--deep .cb-head__sub { color: #b9c8da; }

.cb-prose { max-width: 68ch; }
.cb-prose h3 { margin: 30px 0 10px; }
.cb-prose h2 { margin: 42px 0 14px; }
.cb-prose ul { padding-left: 1.15em; }
.cb-prose li { margin-bottom: 7px; }

.cb-rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 38px 0;
  max-width: 68ch;
}

/* -------------------------------------------------------------- ledger -- */

.cb-ledger { border-top: 1px solid var(--line); }

.cb-ledger__row {
  display: grid;
  grid-template-columns: minmax(150px, 0.9fr) minmax(0, 2.4fr) auto;
  gap: 12px 26px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.cb-ledger__term {
  font-family: var(--serif);
  font-size: 1.14rem;
  color: var(--ink-900);
}

.cb-ledger__val { color: var(--ink-700); font-size: 0.96rem; }

.cb-ledger__tag {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-600);
  white-space: nowrap;
}

.cb-band--deep .cb-ledger,
.cb-band--deep .cb-ledger__row { border-color: rgba(255, 255, 255, 0.14); }
.cb-band--deep .cb-ledger__term { color: #fbf8f1; }
.cb-band--deep .cb-ledger__val { color: #b9c8da; }
.cb-band--deep .cb-ledger__tag { color: var(--brass-300); }

/* --------------------------------------------------------------- slabs -- */

.cb-slabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.cb-slab { background: var(--paper); padding: 28px 26px; }
.cb-band--tint .cb-slab { background: var(--paper-2); }

.cb-slab__no {
  font-family: var(--serif);
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  color: var(--brass-600);
  display: block;
  margin-bottom: 12px;
}

.cb-slab h3 { margin-bottom: 9px; }
.cb-slab p { font-size: 0.95rem; color: var(--ink-700); margin-bottom: 0; }
.cb-slab__more {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------- steps -- */

.cb-steps { list-style: none; margin: 0; padding: 0; counter-reset: cbstep; }

.cb-steps__item {
  counter-increment: cbstep;
  position: relative;
  padding: 0 0 30px 68px;
  border-left: 1px solid var(--line);
  margin-left: 22px;
}
.cb-steps__item:last-child { border-left-color: transparent; padding-bottom: 0; }

.cb-steps__item::before {
  content: counter(cbstep, decimal-leading-zero);
  position: absolute;
  left: -22px;
  top: -2px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink-800);
  color: var(--brass-300);
  font-family: var(--serif);
  font-size: 0.94rem;
}

.cb-steps__item h3 { margin-bottom: 7px; }
.cb-steps__item p { color: var(--ink-700); margin-bottom: 0; }
.cb-steps__when {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-600);
  margin-bottom: 6px;
}

/* --------------------------------------------------------------- stats -- */

.cb-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 26px;
}

.cb-stat__num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  line-height: 1;
  color: var(--brass-500);
}
.cb-band--deep .cb-stat__num { color: var(--brass-300); }

.cb-stat__cap {
  display: block;
  margin-top: 9px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-700);
}
.cb-band--deep .cb-stat__cap { color: #a9bacd; }

/* --------------------------------------------------------------- quote -- */

.cb-quote {
  margin: 0;
  max-width: 70ch;
  border-left: 3px solid var(--brass-400);
  padding-left: clamp(20px, 3vw, 34px);
}

.cb-quote p {
  font-family: var(--serif);
  font-size: clamp(1.16rem, 2vw, 1.5rem);
  line-height: 1.42;
  color: var(--ink-900);
}
.cb-band--deep .cb-quote p { color: #fbf8f1; }

.cb-quote__who {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brass-600);
  font-style: normal;
}
.cb-band--deep .cb-quote__who { color: var(--brass-300); }

/* --------------------------------------------------------------- cards -- */

.cb-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.cb-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
}
.cb-band--tint .cb-card { background: var(--paper); }

.cb-card__tag {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-600);
  margin-bottom: 12px;
  display: block;
}

.cb-card h3 { margin-bottom: 10px; }
.cb-card p { font-size: 0.95rem; color: var(--ink-700); }
.cb-card__foot { margin-top: auto; padding-top: 14px; }

/* --------------------------------------------------------------- ticks -- */

.cb-ticks { list-style: none; margin: 0 0 1.1em; padding: 0; }
.cb-ticks li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 9px;
  color: var(--ink-700);
}
.cb-ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 13px;
  height: 1.5px;
  background: var(--brass-500);
}
.cb-band--deep .cb-ticks li { color: #b9c8da; }

/* ---------------------------------------------------------------- rate -- */

.cb-rates { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 24px; }

.cb-rate {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
}
.cb-rate--lead { border-color: var(--brass-500); border-width: 2px; }

.cb-rate__name { font-family: var(--serif); font-size: 1.3rem; margin-bottom: 6px; }
.cb-rate__len { font-size: 0.74rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--brass-600); }
.cb-rate__fee {
  font-family: var(--serif);
  font-size: 2.35rem;
  line-height: 1;
  margin: 18px 0 4px;
  color: var(--ink-900);
}
.cb-rate__unit { font-size: 0.8rem; color: var(--ink-700); }
.cb-rate__list { list-style: none; margin: 20px 0 0; padding: 0; }
.cb-rate__list li {
  font-size: 0.92rem;
  color: var(--ink-700);
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.cb-rate__foot { margin-top: auto; padding-top: 22px; }

/* ------------------------------------------------------------------ qa -- */

.cb-qa { border-top: 1px solid var(--line); max-width: 76ch; }

.cb-qa__item { border-bottom: 1px solid var(--line); }

.cb-qa__q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 20px 42px 20px 0;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink-900);
  cursor: pointer;
  position: relative;
}
.cb-qa__q::after {
  content: '+';
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brass-500);
  font-size: 1.4rem;
  line-height: 1;
}
.cb-qa__item.cb-is-open .cb-qa__q::after { content: '\2212'; }

.cb-qa__a { display: none; padding: 0 0 22px; color: var(--ink-700); }
.cb-qa__item.cb-is-open .cb-qa__a { display: block; }
.cb-qa__a p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- form -- */

.cb-form { max-width: 720px; }

.cb-form__pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }

.cb-field { margin-bottom: 18px; }

.cb-field label {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-600);
  margin-bottom: 7px;
}

.cb-field input,
.cb-field select,
.cb-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #fffdf8;
  font-family: var(--sans);
  font-size: 0.98rem;
  color: var(--ink-900);
  border-radius: 0;
}
.cb-field input:focus,
.cb-field select:focus,
.cb-field textarea:focus {
  outline: 2px solid var(--brass-400);
  outline-offset: 1px;
  border-color: var(--brass-400);
}
.cb-field textarea { min-height: 128px; resize: vertical; }
.cb-field.cb-is-bad input,
.cb-field.cb-is-bad select,
.cb-field.cb-is-bad textarea { border-color: #a33a2c; }
.cb-field__err { display: none; font-size: 0.8rem; color: #a33a2c; margin-top: 6px; }
.cb-field.cb-is-bad .cb-field__err { display: block; }

.cb-form__note {
  font-size: 0.86rem;
  color: var(--ink-600);
  border-left: 2px solid var(--brass-400);
  padding-left: 14px;
  margin: 20px 0 24px;
}

/* -------------------------------------------------------------- people -- */

.cb-people { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.cb-person { border-top: 2px solid var(--ink-800); padding-top: 20px; }
.cb-person__role {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-600);
  display: block;
  margin-bottom: 8px;
}
.cb-person h3 { margin-bottom: 10px; }
.cb-person p { font-size: 0.95rem; color: var(--ink-700); }
.cb-person__facts { list-style: none; margin: 14px 0 0; padding: 0; font-size: 0.86rem; }
.cb-person__facts li { padding: 6px 0; border-top: 1px solid var(--line); color: var(--ink-600); }

/* --------------------------------------------------------------- notes -- */

.cb-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }

.cb-note { background: var(--paper); padding: 26px 24px; display: flex; flex-direction: column; }
.cb-note__meta {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-600);
  margin-bottom: 12px;
}
.cb-note h3 { font-size: 1.14rem; margin-bottom: 10px; }
.cb-note h3 a { color: var(--ink-900); }
.cb-note h3 a:hover { color: var(--brass-600); text-decoration: none; }
.cb-note p { font-size: 0.93rem; color: var(--ink-700); }
.cb-note__go { margin-top: auto; padding-top: 12px; font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; }

/* ------------------------------------------------------------- article -- */

.cb-art { max-width: 70ch; }
.cb-art__meta {
  font-size: 0.72rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--brass-600);
  margin-bottom: 16px;
}
.cb-art p { color: var(--ink-700); }
.cb-art h2 { margin: 40px 0 12px; }
.cb-art h3 { margin: 28px 0 9px; }
.cb-art blockquote {
  margin: 28px 0;
  padding-left: 22px;
  border-left: 3px solid var(--brass-400);
  font-family: var(--serif);
  font-size: 1.14rem;
  color: var(--ink-900);
}
.cb-art__back { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 0.8rem; letter-spacing: 0.13em; text-transform: uppercase; }

.cb-trail { font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-600); margin-bottom: 18px; }
.cb-trail a { color: var(--ink-600); }
.cb-trail span { color: var(--brass-600); }

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

.cb-sheet { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.cb-sheet caption { text-align: left; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-600); padding-bottom: 12px; }
.cb-sheet th, .cb-sheet td { text-align: left; padding: 13px 16px 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.cb-sheet th { font-family: var(--serif); font-weight: 400; color: var(--ink-900); border-bottom-color: var(--ink-600); }
.cb-sheet td { color: var(--ink-700); }
.cb-sheet__scroll { overflow-x: auto; }

/* ----------------------------------------------------------------- cta -- */

.cb-cta {
  padding: clamp(44px, 5.5vw, 76px) var(--pad-x);
  background: linear-gradient(115deg, var(--ink-900) 0%, var(--ink-700) 55%, var(--ink-600) 100%);
  color: #dbe4ef;
}
.cb-cta h2 { color: #fbf8f1; max-width: 22ch; }
.cb-cta p { color: #b9c8da; max-width: 58ch; margin-top: 14px; }
.cb-cta__acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------------------------------------------------------------- foot -- */

.cb-foot { background: var(--ink-900); color: #aebdcd; padding: clamp(40px, 5vw, 64px) var(--pad-x) 0; }

.cb-foot__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 34px;
  padding-bottom: 40px;
}

.cb-foot__head {
  font-family: var(--serif);
  font-size: 1.02rem;
  color: var(--brass-300);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.cb-foot__note { font-size: 0.89rem; line-height: 1.6; }
.cb-foot__note--muted { color: #7d8ea1; }
.cb-foot__addr { font-style: normal; font-size: 0.89rem; line-height: 1.65; margin-bottom: 12px; }
.cb-foot__line { font-size: 0.92rem; margin-bottom: 5px; }
.cb-foot a { color: #cfdbe8; }
.cb-foot a:hover { color: var(--brass-300); }

.cb-hours { margin: 0; font-size: 0.86rem; }
.cb-hours__row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
.cb-hours dt { color: #cfdbe8; }
.cb-hours dd { margin: 0; color: #7d8ea1; text-align: right; }

.cb-foot__list { list-style: none; margin: 0; padding: 0; font-size: 0.89rem; columns: 2; column-gap: 20px; }
.cb-foot__list li { padding: 4px 0; break-inside: avoid; }

.cb-foot__seal {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 0 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.79rem;
  color: #6f8296;
}
.cb-foot__seal p { margin: 0; }

/* ---------------------------------------------------------- animation -- */

/* Reveal is a progressive enhancement: without JS the .cb-js hook never lands,
   so content stays fully visible instead of being stuck at opacity 0. */
.cb-js .cb-lift { opacity: 0; transform: translateY(16px); transition: opacity 620ms ease, transform 620ms cubic-bezier(.2,.7,.3,1); }
.cb-js .cb-lift.cb-is-shown { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .cb-js .cb-lift { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .cb-gauge__fill { transition: none; }
}

/* ------------------------------------------------------------ 404 page -- */

.cb-lost { padding: clamp(70px, 10vw, 140px) var(--pad-x); max-width: 64ch; }
.cb-lost__code {
  font-family: var(--serif);
  font-size: clamp(4rem, 12vw, 8rem);
  line-height: 0.9;
  color: var(--brass-400);
  display: block;
  margin-bottom: 20px;
}

/* ---------------------------------------------------------- breakpoint -- */

@media (max-width: 1020px) {
  .cb-opener__split { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .cb-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    position: sticky;
    top: 0;
    z-index: 70;
    background: var(--ink-800);
    padding: 13px var(--pad-x);
    border-bottom: 1px solid #071120;
  }

  .cb-bar__id {
    font-family: var(--serif);
    font-size: 1.08rem;
    color: #fbf8f1;
  }
  .cb-bar__id:hover { text-decoration: none; color: var(--brass-300); }

  .cb-bar__key {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: 1px solid rgba(215, 184, 120, 0.5);
    padding: 8px 12px;
    cursor: pointer;
  }
  .cb-bar__key-line { display: block; width: 17px; height: 1.5px; background: var(--brass-300); }
  .cb-bar__key-line:nth-child(2) { width: 12px; }
  .cb-bar__key-line:nth-child(3) { width: 17px; }
  .cb-bar__key-word {
    margin-left: 7px;
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brass-300);
  }

  .cb-rail {
    transform: translateX(-102%);
    transition: transform 280ms cubic-bezier(.3,.7,.3,1);
    width: min(300px, 84vw);
    box-shadow: 0 0 40px rgba(0,0,0,0.4);
  }
  .cb-rail.cb-is-out { transform: none; }

  .cb-canvas { margin-left: 0; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .cb-ledger__row { grid-template-columns: 1fr; gap: 5px; }
  .cb-ledger__tag { order: -1; }
  .cb-foot__list { columns: 1; }
  .cb-steps__item { padding-left: 54px; margin-left: 18px; }
  .cb-steps__item::before { width: 36px; height: 36px; left: -18px; font-size: 0.82rem; }
  .cb-opener__acts .cb-act, .cb-cta__acts .cb-act { flex: 1 1 100%; text-align: center; }
}

@media print {
  .cb-rail, .cb-bar, .cb-cta, .cb-veil { display: none !important; }
  .cb-canvas { margin-left: 0; }
  body { background: #fff; }
}
