/* Black Key Consulting — site styles
   Palette (matches Black Key Capital): black, white, light grey, muted grey and the key red #BF1E2D. */

:root {
  --paper: #F6F6F4;   /* off-white */
  --dark: #0E0E0E;    /* near-black for dark bands and footer */
  --white: #FFFFFF;
  --ink: #161616;
  --navy: #000000;
  --navy-2: #2B2B2B;
  --grey: #5E5E5E;
  --grey-light: #9E9E9E;
  --rule: #D9D9D9;
  --accent: #BF1E2D;

  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "IBM Plex Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --max: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--navy);
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 5.4vw, 4.6rem); line-height: 1.04; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.75rem); }
h3 { font-size: 1.375rem; line-height: 1.25; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy); text-decoration-color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 12px; top: -48px;
  background: var(--navy); color: var(--white); padding: 10px 16px; z-index: 100;
}
.skip-link:focus { top: 12px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: var(--section) 0; }
.section--paper { background: var(--paper); }
.section--navy { background: var(--dark); color: #DADADA; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy a { color: var(--white); }

.lead { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.55; color: var(--ink); }
.muted { color: var(--grey); }
.measure { max-width: 64ch; }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head p { margin-top: 20px; color: var(--grey); font-size: 1.125rem; }

/* Note: --navy is the brand dark colour. It is black to match Black Key Capital. */
/* ---------- Header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--rule); position: relative; z-index: 20; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--navy); }
.brand svg { width: 64px; height: auto; flex: none; }
.brand-name { font-family: "Montserrat", var(--sans); font-size: 0.8125rem; letter-spacing: 0.3em; font-weight: 400; white-space: nowrap; }
.brand-name strong { font-weight: 600; }
.brand:hover { color: var(--navy); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; }
.nav a { white-space: nowrap; text-decoration: none; color: var(--ink); font-size: 0.9688rem; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--navy); border-bottom-color: var(--accent); }
.nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--accent); }

.nav .btn--primary, .nav .btn--primary:hover { color: var(--white); border-bottom: 1px solid transparent; padding: 0 18px; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--rule); border-radius: 4px;
  min-height: 44px; min-width: 44px; padding: 0 14px; font: inherit; font-size: 0.9375rem; color: var(--navy); cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 26px; border-radius: 3px;
  font-family: var(--sans); font-size: 1rem; font-weight: 500; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: background-color .15s ease, color .15s ease;
}
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--navy-2); color: var(--white); }
.btn--secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--secondary:hover { background: var(--navy); color: var(--white); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--paper); color: var(--navy); }
.btn--small { min-height: 44px; padding: 0 18px; font-size: 0.9375rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* ---------- Hero ---------- */
.hero { background: var(--paper); padding: clamp(64px, 9vw, 120px) 0 clamp(64px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(40px, 6vw, 88px); align-items: end; }
.hero h1 span { display: block; }
.hero .lead { margin-top: 32px; max-width: 34ch; font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.6rem); color: var(--navy); }
.hero .support { margin-top: 16px; max-width: 52ch; color: var(--grey); font-size: 1.125rem; }

.page-hero { background: var(--paper); padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 7vw, 88px); }
.page-hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.75rem); max-width: 18ch; }
.page-hero .lead { margin-top: 24px; max-width: 60ch; color: var(--grey); }

/* Term sheet: a definition list styled like a deal summary */
.term-sheet { background: var(--white); border-top: 3px solid var(--navy); padding: 28px 28px 24px; }
.term-sheet h2 { font-size: 1.25rem; margin-bottom: 18px; }
.term-sheet dl { margin: 0; }
.term-sheet .row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-top: 1px solid var(--rule); }
.term-sheet dt { color: var(--grey); font-size: 0.9375rem; }
.term-sheet dd { margin: 0; font-size: 0.9875rem; }
.term-sheet .note { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 0.9375rem; color: var(--grey); }

/* ---------- Content patterns ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px clamp(32px, 5vw, 72px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px; }

.point h3 { margin-bottom: 10px; }
.point p { color: var(--grey); }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }

/* Service index rows */
.service-list { border-top: 1px solid var(--rule); }
.service-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) 230px; gap: 24px 48px; align-items: baseline; padding: 32px 0; border-bottom: 1px solid var(--rule); }
.service-row h3 { font-size: 1.625rem; }
.service-row p { color: var(--grey); margin: 0; }
.service-row a.more { font-size: 0.9688rem; justify-self: end; text-align: right; }

/* Process steps (a true sequence, so numbered) */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.step { border-top: 2px solid var(--navy); padding-top: 22px; }
.step-num { font-family: var(--serif); font-size: 1rem; color: var(--accent); margin-bottom: 18px; display: block; }
.step h3 { margin-bottom: 10px; font-size: 1.5rem; }
.step p { color: var(--grey); }
.section--navy .step { border-top-color: var(--white); }
.section--navy .step-num { color: #EE6B76; }
.section--navy .step p { color: #C4C4C4; }

/* Senior-led band */
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 56px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,.18); }
.principles h3 { font-size: 1.1875rem; margin-bottom: 8px; }
.principles p { color: #C4C4C4; font-size: 0.9875rem; }

/* CTA block */
.cta-block { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 40px; align-items: end; }
.cta-block h2 { max-width: 24ch; }
.cta-block p { color: var(--grey); margin-top: 20px; max-width: 58ch; }
.cta-block .btn-row { margin-top: 0; justify-content: flex-end; }

/* Detailed service sections */
.service-detail { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--rule); scroll-margin-top: 24px; }
.service-detail:first-child { border-top: 0; }
.service-detail .split > div:first-child p { color: var(--grey); margin-top: 18px; }
.service-detail h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.detail-block + .detail-block { margin-top: 36px; }
.detail-block h3 { font-family: var(--sans); font-size: 0.9375rem; font-weight: 600; color: var(--ink); letter-spacing: 0; margin-bottom: 14px; }
.tick-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 40px; }
.tick-list li { break-inside: avoid; padding: 9px 0 9px 20px; border-top: 1px solid var(--rule); position: relative; }
.tick-list li::before { content: ""; position: absolute; left: 0; top: 19px; width: 8px; height: 2px; background: var(--accent); }
.question-list { list-style: none; margin: 0; padding: 0; }
.question-list li { font-family: var(--serif); font-size: 1.1875rem; color: var(--navy); padding: 12px 0; border-top: 1px solid var(--rule); line-height: 1.4; }
.caveat { margin-top: 28px; padding: 18px 20px; background: var(--paper); font-size: 0.9688rem; color: var(--grey); }

/* Fit lists */
.fit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.fit-col { padding: 28px; background: var(--white); border-top: 3px solid var(--navy); }
.fit-col.not { border-top-color: var(--grey-light); }
.fit-col h3 { font-size: 1.25rem; margin-bottom: 14px; }
.fit-col ul { margin: 0; padding-left: 18px; color: var(--ink); }
.fit-col li { margin-bottom: 8px; }

/* Founder */
.founder { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.portrait { aspect-ratio: 4 / 5; background: var(--navy); color: rgba(255,255,255,.85); display: flex; align-items: flex-end; padding: 24px; }
.portrait span { font-family: var(--serif); font-size: 4.5rem; line-height: 1; letter-spacing: 0.02em; }
.founder-role { color: var(--grey); margin: 8px 0 28px; font-size: 1.0625rem; }
.founder h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }

.capabilities { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; padding: 0; list-style: none; }
.capabilities li { border: 1px solid rgba(255,255,255,.3); padding: 8px 14px; font-size: 0.9375rem; color: var(--white); }

/* Insights */
.insight-list { border-top: 1px solid var(--rule); }
.insight { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr) auto; gap: 16px 48px; padding: 30px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.insight h3 { font-size: 1.5rem; }
.insight p { color: var(--grey); margin: 0; font-size: 1rem; }
.insight .status { font-size: 0.875rem; color: var(--grey); white-space: nowrap; }

/* ---------- Forms ---------- */
.form-wrap { background: var(--white); padding: clamp(24px, 4vw, 48px); border-top: 3px solid var(--navy); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 0.9375rem; font-weight: 500; color: var(--ink); }
.field .hint { font-size: 0.875rem; color: var(--grey); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--white);
  border: 1px solid #ABABAB; border-radius: 3px; padding: 11px 13px; min-height: 48px; width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--navy); outline-offset: 0; border-color: var(--navy); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 4px; }
.radio-row label { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; min-height: 44px; cursor: pointer; }
.radio-row input { width: 18px; height: 18px; min-height: 0; accent-color: var(--navy); }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 6px; }
.form-foot p { font-size: 0.875rem; color: var(--grey); max-width: 46ch; margin: 0; }
.hidden-field { position: absolute; left: -9999px; }

.contact-details { margin: 32px 0 0; }
.contact-details .row { padding: 14px 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; }
.contact-details dt { color: var(--grey); font-size: 0.9375rem; }
.contact-details dd { margin: 0; }

/* Prose pages */
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.6rem; margin: 40px 0 12px; }
.prose ul { padding-left: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #BDBDBD; font-size: 0.9375rem; padding: 64px 0 32px; }
.site-footer a { color: #E6E6E6; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(2, minmax(0, 3fr)); gap: 40px; }
.footer-grid .brand { color: var(--white); }
.footer-grid h2 { font-family: var(--sans); font-size: 0.9375rem; font-weight: 600; color: var(--white); margin-bottom: 14px; letter-spacing: 0; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-tagline { margin-top: 20px; max-width: 36ch; }
.footer-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid #333333; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.875rem; }

/* Cookie notice (only shown when analytics is configured) */
.cookie-notice {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 560px;
  background: var(--white); border: 1px solid var(--rule); border-top: 3px solid var(--navy);
  padding: 20px; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); font-size: 0.9375rem;
}
.cookie-notice[hidden] { display: none; }
.cookie-notice .btn-row { margin-top: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .service-row a.more { justify-self: start; text-align: left; }
  .steps, .principles, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .insight { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}

@media (max-width: 1260px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--rule); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; display: none; }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .nav .btn { margin-top: 18px; }
}

@media (max-width: 900px) {
  .hero-grid, .split, .cta-block, .founder, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .cta-block .btn-row { justify-content: flex-start; }
  .founder .portrait { max-width: 320px; }
}

@media (max-width: 640px) {
  .grid-2, .fit, .form-grid, .steps, .principles, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .tick-list { columns: 1; }
  .term-sheet .row, .contact-details .row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .brand-name { font-size: 0.75rem; letter-spacing: 0.2em; }
  .brand svg { width: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .cookie-notice, .btn { display: none; }
}

/* ---------- Stage selector (services) ---------- */
.stage-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.stage-buttons[hidden] { display: none; }
.stage-btn {
  font: inherit; font-size: 0.9875rem; min-height: 48px; padding: 0 22px; border-radius: 3px; cursor: pointer;
  background: transparent; color: #E6E6E6; border: 1px solid rgba(255,255,255,.35);
}
.stage-btn:hover { border-color: var(--white); }
.stage-btn[aria-pressed="true"] { background: var(--white); color: var(--navy); border-color: var(--white); }
.stage-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(32px, 6vw, 80px); padding: 36px 0; border-top: 1px solid rgba(255,255,255,.18); }
.stage-panel[hidden] { display: none; }
.stage-panel h3 { font-size: 1.75rem; margin-bottom: 14px; }
.stage-panel h4 { font-family: var(--sans); font-size: 0.9375rem; font-weight: 600; color: var(--white); margin-bottom: 12px; }
.stage-panel p { color: #C4C4C4; }
.stage-panel ul { margin: 0 0 20px; padding-left: 18px; color: #E6E6E6; }
.stage-panel li { margin-bottom: 6px; }

/* ---------- AI framework rows ---------- */
.framework { border-top: 1px solid var(--rule); }
.fw-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 12px 48px; padding: 26px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.fw-row h3 { font-size: 1.4375rem; }
.fw-row p { color: var(--grey); margin: 0; }

/* ---------- AI self-check ---------- */
.check-result { margin-top: 32px; padding: 28px; background: var(--white); border-top: 3px solid var(--navy); }
.check-count { font-size: 0.9375rem; color: var(--grey); margin: 0; }
.check-score { font-family: var(--serif); font-size: 3.25rem; line-height: 1.1; color: var(--navy); margin: 6px 0 12px; }
.check-score .out-of { font-size: 1.375rem; color: var(--grey); }
.check-result h3 { font-size: 1.375rem; margin-bottom: 8px; }
.check-result [data-check-band] p { color: var(--grey); }
.check-result .btn { margin-top: 8px; }
.check-form { display: flex; flex-direction: column; gap: 10px; }
.check-q { margin: 0; border: 0; border-top: 1px solid var(--rule); padding: 16px 0 6px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.check-q legend { float: left; width: auto; max-width: 46ch; padding: 0; font-size: 1rem; }
.seg { display: inline-flex; border: 1px solid var(--navy); border-radius: 3px; overflow: hidden; flex: none; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label { min-width: 64px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 16px; cursor: pointer; font-size: 0.9375rem; color: var(--navy); background: var(--white); }
.seg label + input + label { border-left: 1px solid var(--navy); }
.seg input:checked + label { background: var(--navy); color: var(--white); }
.seg input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: -4px; }
.check-form .btn { align-self: flex-start; margin-top: 14px; }

.tick-list--dark li { border-top-color: rgba(255,255,255,.18); color: #E6E6E6; }
.tick-list--dark li::before { background: #EE6B76; }

/* ---------- FAQ ---------- */
.faq details { border-top: 1px solid var(--rule); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-family: var(--serif); font-size: 1.25rem; color: var(--navy); padding: 16px 0; min-height: 44px; list-style-position: outside; }
.faq details p { color: var(--grey); padding-bottom: 12px; }

@media (max-width: 900px) {
  .stage-panel, .fw-row { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Booking ---------- */
.page-hero--tight { padding-bottom: clamp(32px, 4vw, 48px); }
.section--booking { padding-top: clamp(40px, 5vw, 64px); }
.booking-layout { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.booking-status { font-size: 1.0625rem; color: var(--grey); }
.booking-status[hidden], .booking-unavailable[hidden], .picker[hidden], .details[hidden] { display: none; }
.booking-unavailable { padding: 28px; background: var(--paper); border-top: 3px solid var(--navy); }
.booking-unavailable h2 { font-size: 1.5rem; margin-bottom: 10px; }
.step-title { font-family: var(--sans); font-size: 1.0625rem; font-weight: 600; color: var(--ink); letter-spacing: 0; margin-bottom: 16px; }
.step-title:focus, .times-heading:focus { outline: none; }
.day-list { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.day-btn {
  flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-width: 76px; min-height: 64px; padding: 8px 10px; font: inherit; cursor: pointer;
  background: var(--white); color: var(--navy); border: 1px solid #ABABAB; border-radius: 3px;
}
.day-btn:hover { border-color: var(--navy); }
.day-btn[aria-pressed="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.day-name { font-size: 0.875rem; }
.day-date { font-family: var(--serif); font-size: 1.0625rem; }
.times-heading { font-size: 1.375rem; margin: 28px 0 14px; }
.time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.time-btn {
  min-height: 48px; font: inherit; font-size: 1rem; cursor: pointer;
  background: var(--white); color: var(--navy); border: 1px solid #ABABAB; border-radius: 3px;
}
.time-btn:hover { border-color: var(--navy); }
.time-btn[aria-pressed="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.tz-note { margin-top: 16px; font-size: 0.9375rem; color: var(--grey); }
.details { margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--rule); }
.selected-slot { font-family: var(--serif); font-size: 1.25rem; color: var(--navy); margin-bottom: 24px; }
.optional { font-weight: 400; color: var(--grey); }
.turnover-note { margin: 0; padding: 14px 16px; background: var(--paper); font-size: 0.9375rem; color: var(--ink); }
.turnover-note[hidden] { display: none; }
.form-error { margin: 0; padding: 14px 16px; border-left: 3px solid var(--accent); background: #FBF1F2; color: #7A1820; }
.form-error[hidden] { display: none; }
.field-error { margin: 0; font-size: 0.875rem; color: #8E1C26; }
.field [aria-invalid="true"] { border-color: #8E1C26; }
.booking-aside { position: sticky; top: 24px; background: var(--paper); }

.book-callout { padding: 28px; background: var(--paper); border-top: 3px solid var(--navy); }
.book-callout h2 { font-size: 1.5rem; margin-bottom: 8px; }
.book-callout p { color: var(--grey); margin-bottom: 18px; }

.confirm-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); margin-top: 40px; align-items: start; }
.confirm-sheet { margin: 0; }
.confirm-sheet .row { grid-template-columns: 120px minmax(0, 1fr); }
.confirm-grid h2 { font-size: 1.5rem; margin-bottom: 12px; }

.site-header--bare .container { min-height: 76px; }
.site-footer--bare { padding: 28px 0; }
.hero--landing h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); max-width: 14ch; }

@media (max-width: 900px) {
  .booking-layout, .confirm-grid { grid-template-columns: minmax(0, 1fr); }
  .booking-aside { position: static; }
}
@media (max-width: 640px) {
  .site-header--bare .btn { padding: 0 12px; font-size: 0.875rem; }
  .site-header--bare .brand-name { display: none; }
  .confirm-sheet .row { grid-template-columns: minmax(0, 1fr); }
}
.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .steps--3 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Contact / qualifying form ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.next-steps { margin: 32px 0 8px; padding: 24px; background: var(--paper); border-top: 3px solid var(--navy); }
.next-steps h3 { font-size: 1.25rem; margin-bottom: 12px; }
.next-steps ol { margin: 0 0 14px; padding-left: 20px; }
.next-steps li { margin-bottom: 8px; }
.form-section { border: 0; margin: 0 0 28px; padding: 0; }
.form-section > legend { font-family: var(--serif); font-size: 1.3125rem; color: var(--navy); padding: 0 0 12px; margin-bottom: 14px; border-bottom: 1px solid var(--rule); width: 100%; }
.form-wrap .form-foot { margin-top: 0; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: minmax(0, 1fr); } }

/* =========================================================
   Artwork: drawn from the key logo (rings, shaft, red teeth)
   ========================================================= */
.hero, .page-hero { position: relative; overflow: hidden;
  background-color: var(--paper); }
.hero > .container, .page-hero > .container { position: relative; z-index: 1; }

/* Page heroes: static ring motif */
.page-hero::after {
  content: ""; position: absolute; right: -200px; top: 50%; width: 640px; height: 640px; transform: translateY(-50%);
  background: url(../img/rings.svg) no-repeat center / contain; pointer-events: none;
}

/* Home and landing hero: the one animated moment, drawn on load */
.hero-art { position: absolute; right: -2%; top: 50%; transform: translateY(-50%); width: min(1000px, 80vw); height: auto; pointer-events: none; }
.hero-art circle.draw { stroke-width: 1.4; }
.hero-art .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: bkc-draw 1.6s cubic-bezier(.25,.6,.3,1) forwards; animation-delay: calc(var(--i) * 110ms); }
.hero-art .bow { stroke: #000000; stroke-opacity: .2; stroke-width: 26; fill: none; }
.hero-art .bow-inner { stroke: #000000; stroke-opacity: .2; stroke-width: 9; fill: none; }
.hero-art .shaft { stroke: #000000; stroke-opacity: .2; stroke-width: 14; }
.hero-art .red-arc { stroke: #BF1E2D; stroke-opacity: .7; stroke-width: 4; fill: none; stroke-linecap: round; }
.hero-art .tooth { transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); opacity: .85; animation: bkc-rise .6s cubic-bezier(.2,.8,.3,1.2) forwards; animation-delay: calc(1.5s + var(--d) * 140ms); }
@keyframes bkc-draw { to { stroke-dashoffset: 0; } }
@keyframes bkc-rise { to { transform: scaleY(1); } }

/* Offset frame behind the "Who we work with" card */
.hero .term-sheet { position: relative; }
.hero .term-sheet::after { content: ""; position: absolute; inset: 16px -16px -16px 16px; border: 1px solid rgba(191, 30, 45, .5); z-index: -1; pointer-events: none; }

/* Navy bands: flowing contour lines */
.section--navy { position: relative; overflow: hidden; }
.section--navy::before { content: ""; position: absolute; inset: 0; background: url(../img/contours.svg) no-repeat center / cover; pointer-events: none; }
.section--navy > .container { position: relative; z-index: 1; }

/* Process steps joined by a line, with key-ring markers */
.steps { position: relative; }
.steps::before { content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 1px; background: var(--rule); }
.step { border-top: 0; padding-top: 40px; position: relative; }
.step::before { content: ""; position: absolute; top: 0; left: 0; width: 19px; height: 19px; border-radius: 50%; border: 2px solid var(--navy); background: var(--white); z-index: 1; box-sizing: border-box; }
.step:last-child::before { background: var(--accent); border-color: var(--accent); }
.section--navy .steps::before { background: rgba(255,255,255,.28); }
.section--navy .step::before { border-color: var(--white); background: var(--navy); }
.section--navy .step:last-child::before { background: #E8505C; border-color: #E8505C; }

/* Founder block: rings echo the logo */
.portrait { background-color: var(--navy);
  background-image: repeating-radial-gradient(circle at 78% 22%, rgba(255,255,255,.09) 0 1px, transparent 1.5px 30px); }

/* Rows that respond to the pointer with a red key-tooth marker */
.service-row, .insight { position: relative; transition: padding-left .25s ease; }
.service-row::before, .insight::before { content: ""; position: absolute; left: 0; top: 46px; width: 0; height: 3px; background: var(--accent); transition: width .25s ease; }
.service-row:hover, .insight:hover { padding-left: 36px; }
.service-row:hover::before, .insight:hover::before { width: 22px; }

/* CTA band: small key motif */
.cta-block { position: relative; }
.section--paper:has(.cta-block) { position: relative; overflow: hidden; }
.section--paper:has(.cta-block)::after {
  content: ""; position: absolute; left: -120px; bottom: -220px; width: 460px; height: 460px;
  background: url(../img/rings.svg) no-repeat center / contain; opacity: .7; pointer-events: none;
}
.section--paper .cta-block { z-index: 1; }

@media (max-width: 1024px) {
  .steps::before { display: none; }
}
@media (max-width: 900px) {
  .hero-art { right: -55%; top: 18%; width: 150vw; opacity: .75; }
  .page-hero::after { right: -300px; width: 520px; height: 520px; opacity: .7; }
  .service-row:hover, .insight:hover { padding-left: 0; }
  .service-row::before, .insight::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art .draw { animation: none; stroke-dashoffset: 0; }
  .hero-art .tooth { animation: none; transform: none; }
  .service-row, .insight { transition: none; }
}

/* Founder portrait (black and white) */
.portrait-frame { position: relative; margin: 0; max-width: 420px; }
.portrait-frame img { position: relative; z-index: 1; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: var(--paper); }
@media (max-width: 900px) { .portrait-frame { max-width: 320px; } }


/* ---------- Black Key ecosystem ---------- */
.brand-text { display: flex; flex-direction: column; gap: 3px; }
.brand-sub { font-family: var(--sans); font-size: 0.6875rem; letter-spacing: 0.04em; color: var(--grey); white-space: nowrap; }
.site-footer .brand-sub { color: #9E9E9E; }

.affiliation { display: flex; align-items: center; gap: 12px; margin-top: 28px; font-size: 0.875rem; letter-spacing: 0.04em; color: var(--grey); }
.affiliation-rule { display: inline-block; width: 32px; height: 1px; background: var(--ink); }

.ecosystem { border-top: 1px solid var(--rule); }
.eco-grid { display: grid; grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); align-items: stretch; margin-top: 56px; }
.eco-card { padding: 36px 32px; border: 1px solid var(--rule); background: var(--white); }
.eco-card--current { background: var(--navy); border-color: var(--navy); }
.eco-name { font-family: "Montserrat", var(--sans); font-size: 0.875rem; letter-spacing: 0.3em; margin: 0 0 22px; color: var(--ink); }
.eco-name strong { font-weight: 600; }
.eco-words { font-family: var(--serif); font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.25; color: var(--navy); margin: 0; }
.eco-card--current .eco-name { color: #CFCFCF; }
.eco-card--current .eco-words { color: var(--white); }
.eco-link { display: flex; align-items: center; }
.eco-link span { display: block; width: 100%; height: 1px; background: var(--ink); position: relative; }
.eco-link span::after { content: ""; position: absolute; right: 10px; top: -9px; width: 6px; height: 9px; background: var(--accent); box-shadow: 10px -4px 0 var(--accent), 20px -1px 0 var(--accent); }
.eco-note { margin-top: 24px; font-size: 0.9375rem; color: var(--grey); max-width: 80ch; }

@media (max-width: 900px) {
  .eco-grid { grid-template-columns: minmax(0, 1fr); }
  .eco-link { height: 40px; justify-content: center; }
  .eco-link span { width: 1px; height: 100%; }
  .eco-link span::after { display: none; }
}
@media (max-width: 640px) {
  .brand-sub { font-size: 0.625rem; }
}
.eco-tag { font-size: 0.8125rem; color: var(--grey); margin: 0 0 10px; }
.eco-card--current .eco-tag { color: #9E9E9E; }

/* Brand block: home link + "A division of Black Key Capital" link */
.brand-wrap { display: flex; flex-direction: column; gap: 2px; }
.brand-wrap .brand-sub { margin-left: 78px; margin-top: -5px; }
.brand-sub a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--rule); }
.brand-sub a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.site-footer .brand-sub a:hover { color: var(--white); }
.footer-grid .brand-wrap .brand { color: var(--white); }
.bkc-link { color: inherit; text-decoration-color: var(--accent); }
.bkc-link:hover { color: var(--accent); }
.site-footer .bkc-link { color: #E6E6E6; text-decoration: underline; text-decoration-color: var(--accent); }
.eco-name a { color: inherit; text-decoration: none; }
.eco-name a:hover { color: var(--accent); }
@media (max-width: 640px) { .brand-wrap .brand-sub { margin-left: 66px; } }
.ownership { border-top: 1px solid var(--rule); }
