/* BIDR Technologies — design tokens + site styles
   Lettering: same system sans stack as bidrtech.com (Tailwind default), weight 700 headings.
   Brand: metallic gold #D2AA4F sampled from the new BIDR logo, ivory text, charcoal ink. */
:root {
  --gold: #d2aa4f;
  --gold-deep: #a8842f;
  --ink: #0b0b0c;
  --ink-2: #131315;
  --ink-3: #1b1b1e;
  --charcoal: #222222;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f4f4f2;
  --muted: #a9a9a4;
  --paper: #f6f5f1;
  --paper-text: #1a1a1a;
  --paper-muted: #5c5c57;
  --font: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --radius: 6px;
  --radius-lg: 14px;
  --nav-h: 76px;
  --wrap: 1200px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + var(--safe-t) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.gold { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: fixed; left: 12px; top: -80px; z-index: 200; background: var(--gold); color: #000; padding: 12px 16px; border-radius: var(--radius); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: calc(12px + var(--safe-t)); }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: var(--radius); border: 1px solid transparent; font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer; transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 14px; font-weight: 500; }
.btn--block { width: 100%; }
.btn--gold { background: var(--gold); color: #000; box-shadow: 0 8px 30px -12px rgba(210, 170, 79, 0.7); }
.btn--gold:hover { background: #e6c777; transform: translateY(-1px); }
.btn--ghost { background: #fff; color: #000; }
.btn--ghost:hover { background: #ecebe6; }
.btn--outline { background: transparent; color: var(--gold); border-color: rgba(210, 170, 79, 0.55); }
.btn--outline:hover { background: var(--gold); color: #000; }

/* ── Navigation (mounted outside the story so it persists) ── */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; height: calc(var(--nav-h) + var(--safe-t)); padding: var(--safe-t) calc(28px + var(--safe-r)) 0 calc(28px + var(--safe-l)); display: flex; align-items: center; gap: 28px; background: linear-gradient(to bottom, rgba(8, 8, 9, 0.78), rgba(8, 8, 9, 0)); transition: background 0.35s, box-shadow 0.35s, backdrop-filter 0.35s; }
.nav.is-solid { background: rgba(11, 11, 12, 0.9); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.nav__brand { display: flex; align-items: center; min-height: 44px; margin-right: auto; }
.nav__brand img { height: 50px; width: auto; }
.nav__links { display: flex; gap: 6px; }
.nav__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font-size: 15px; font-weight: 500; text-decoration: none; color: #fff; opacity: 0.86; border-radius: var(--radius); transition: opacity 0.2s, color 0.2s; }
.nav__links a:hover { opacity: 1; color: var(--gold); }
.nav__actions { display: flex; gap: 10px; }
.nav__burger { display: none; width: 48px; height: 48px; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius); background: rgba(255, 255, 255, 0.06); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav__burger span { width: 20px; height: 2px; background: #fff; border-radius: 2px; }

.menu { position: fixed; inset: 0; z-index: 150; display: flex; flex-direction: column; padding: calc(14px + var(--safe-t)) calc(20px + var(--safe-r)) calc(24px + var(--safe-b)) calc(20px + var(--safe-l)); background: rgba(9, 9, 10, 0.97); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); opacity: 0; transform: translateY(-8px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; transform: none; }
.menu__top { display: flex; align-items: center; justify-content: space-between; height: 48px; }
.menu__top img { height: 40px; width: auto; }
.menu__close { position: relative; width: 48px; height: 48px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: transparent; cursor: pointer; }
.menu__close span { position: absolute; left: 13px; top: 22px; width: 20px; height: 2px; background: #fff; transform: rotate(45deg); }
.menu__close span + span { transform: rotate(-45deg); }
.menu__links { display: flex; flex-direction: column; margin-top: 28px; }
.menu__links a { display: flex; align-items: center; min-height: 64px; font-size: 30px; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; border-bottom: 1px solid var(--line); }
.menu__links a:hover, .menu__links a:focus-visible { color: var(--gold); }
.menu__actions { margin-top: auto; display: grid; gap: 12px; }

/* ── Scroll story ── */
.story { position: relative; height: calc(100svh + var(--travel, 500vh)); background: var(--ink); }
.stage { position: sticky; top: 0; height: 100svh; overflow: hidden; isolation: isolate; }
.stage__poster, .stage__poster img, #canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage__poster img { object-fit: cover; }
#canvas { opacity: 0; transition: opacity 0.5s; }
#canvas.is-ready { opacity: 1; }
.stage__scrim { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(to right, rgba(6, 6, 8, 0.82) 0%, rgba(6, 6, 8, 0.55) 30%, rgba(6, 6, 8, 0) 62%),
  linear-gradient(to top, rgba(6, 6, 8, 0.7) 0%, rgba(6, 6, 8, 0) 32%),
  linear-gradient(to bottom, rgba(6, 6, 8, 0.5) 0%, rgba(6, 6, 8, 0) 22%); opacity: var(--scrim, 1); }

.chapter { position: absolute; left: max(calc(56px + var(--safe-l)), calc((100vw - var(--wrap)) / 2)); top: 50%; width: min(620px, 46vw); transform: translateY(calc(-50% + var(--shift, 24px))); opacity: var(--o, 0); visibility: hidden; pointer-events: none; will-change: opacity, transform; }
.chapter.is-active { visibility: visible; pointer-events: auto; }
.chapter--opening { --o: 1; --shift: 0px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.chapter .eyebrow { display: inline-flex; padding: 8px 14px; border: 1px solid rgba(210, 170, 79, 0.4); border-radius: 999px; background: rgba(210, 170, 79, 0.08); letter-spacing: 0.08em; text-transform: none; font-size: 14px; }
.chapter h1 { margin-top: 22px; font-size: clamp(44px, 5.6vw, 84px); text-shadow: 0 2px 40px rgba(0, 0, 0, 0.45); }
.h-tagline { font-size: clamp(30px, 3.4vw, 52px); text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5); }
.chapter__body { margin-top: 22px; font-size: clamp(16px, 1.25vw, 19px); color: #e9e9e4; text-shadow: 0 1px 18px rgba(0, 0, 0, 0.7); }
.chapter__actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }

.stats { margin: 0; display: grid; grid-template-columns: repeat(3, auto); gap: 8px 44px; justify-content: start; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dd { margin: 0; font-size: clamp(40px, 4.6vw, 72px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--gold); text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5); }
.stats dt { margin-top: 10px; font-size: 14px; letter-spacing: 0.04em; color: #e6e6e1; }
.launch { margin-top: 34px; padding: 22px 24px; max-width: 460px; border: 1px solid rgba(210, 170, 79, 0.35); border-radius: var(--radius-lg); background: rgba(12, 12, 13, 0.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.launch__title { font-weight: 700; color: var(--gold); font-size: 18px; }
.launch__body { margin: 6px 0 16px; font-size: 15px; color: #e1e1dc; }

.span { position: absolute; left: 50%; bottom: calc(30px + var(--safe-b)); transform: translateX(-50%); width: min(560px, 60vw); display: flex; align-items: center; gap: 16px; font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); }
.span__track { position: relative; flex: 1; height: 2px; background: rgba(255, 255, 255, 0.22); border-radius: 2px; }
.span__fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--p, 0) * 100%); background: var(--gold); border-radius: 2px; }
.span__dot { position: absolute; top: 50%; left: calc(var(--p, 0) * 100%); width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(210, 170, 79, 0.2); }
.stage__skip { position: absolute; right: calc(28px + var(--safe-r)); bottom: calc(18px + var(--safe-b)); display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 13px; color: rgba(255, 255, 255, 0.78); text-decoration: none; border-radius: var(--radius); }
.stage__skip:hover { color: var(--gold); }
.stage__cue { position: absolute; left: max(calc(56px + var(--safe-l)), calc((100vw - var(--wrap)) / 2)); bottom: calc(26px + var(--safe-b)); display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.8); transition: opacity 0.4s; }
.stage__cue span { width: 1px; height: 34px; background: linear-gradient(var(--gold), transparent); animation: cue 2s var(--ease) infinite; transform-origin: top; }
.stage__cue.is-hidden { opacity: 0; }
@keyframes cue { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ── Sections ── */
.wrap { width: min(var(--wrap), 100% - 56px); margin-inline: auto; }
.wrap--narrow { width: min(820px, 100% - 56px); text-align: center; }
.section { position: relative; padding: clamp(84px, 11vw, 150px) 0; background: var(--ink); }
.section--panel { background: var(--ink-2); border-block: 1px solid var(--line); }
.section--light { background: var(--paper); color: var(--paper-text); }
.section__head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 68px); }
.section__head--sub { margin-top: clamp(64px, 8vw, 110px); }
.section h2 { margin-top: 16px; font-size: clamp(36px, 4.4vw, 62px); }
.h-sub { font-size: clamp(28px, 3vw, 42px); }
.lead { margin-top: 20px; font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); }
.section--light .lead { color: var(--paper-muted); }
.section--light .eyebrow { color: #8a6a1f; }
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.stat-card { padding: 34px 30px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(160deg, var(--ink-3), var(--ink-2)); }
.stat-card__value { font-size: clamp(40px, 4.4vw, 64px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--gold); }
.stat-card h3 { margin: 16px 0 8px; font-size: 19px; letter-spacing: 0; }
.stat-card p:last-child, .pillar p { color: var(--muted); font-size: 16px; }
.pillars { margin-top: 22px; }
.pillar { padding: 30px 0 0; border-top: 1px solid var(--line-strong); }
.pillar__n { font-size: 13px; letter-spacing: 0.16em; color: var(--gold); font-weight: 600; }
.pillar h3 { margin: 14px 0 10px; font-size: 22px; }

.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { padding: 12px 20px; border: 1px solid var(--line-strong); border-radius: 999px; font-weight: 500; font-size: 16px; transition: border-color 0.25s, color 0.25s, background 0.25s; }
.tags li:hover { border-color: var(--gold); color: var(--gold); background: rgba(210, 170, 79, 0.06); }

.sectors { border-top: 1px solid var(--line-strong); }
.sector { border-bottom: 1px solid var(--line-strong); }
.sector summary { display: flex; align-items: center; gap: 22px; min-height: 84px; cursor: pointer; list-style: none; }
.sector summary::-webkit-details-marker { display: none; }
.sector__n { font-size: 13px; letter-spacing: 0.14em; color: var(--gold); font-weight: 600; width: 28px; }
.sector__t { font-size: clamp(22px, 2.4vw, 32px); font-weight: 700; letter-spacing: -0.02em; transition: color 0.2s; }
.sector summary:hover .sector__t { color: var(--gold); }
.sector__x { position: relative; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; flex: none; }
.sector__x::before, .sector__x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: currentColor; transition: transform 0.3s var(--ease); }
.sector__x::after { transform: rotate(90deg); }
.sector[open] .sector__x::after { transform: rotate(0deg); }
.sector__body { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; padding: 4px 0 36px 50px; color: var(--muted); }
.sector__k { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text); font-weight: 600; margin-bottom: 12px; }
.sector__body li { padding: 8px 0; border-bottom: 1px dashed var(--line); color: var(--text); font-size: 16px; }
.link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 12px; color: var(--gold); font-weight: 600; text-decoration: none; }
.link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s var(--ease); }
.link:hover svg { transform: translateX(4px); }
.section--light .link { color: #000; }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.card { padding: 34px 32px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--ink-3); }
.card h3 { font-size: 24px; margin-bottom: 12px; }
.card p { color: var(--muted); }
.card .eyebrow { margin-bottom: 14px; }
.card--gold-edge { border-color: rgba(210, 170, 79, 0.35); background: linear-gradient(160deg, rgba(210, 170, 79, 0.09), var(--ink-3) 55%); }
.badge { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; font-weight: 600; }
.badge svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.badge--gold { color: var(--gold) !important; border-color: rgba(210, 170, 79, 0.45); background: rgba(210, 170, 79, 0.08); }

.service { position: relative; display: flex; flex-direction: column; padding: 34px 30px 26px; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: var(--radius-lg); background: #fff; overflow: hidden; transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s; }
.service:hover { transform: translateY(-4px); border-color: #000; box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.45); }
.service::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease); }
.service:hover::before { transform: scaleX(1); }
.service__aud { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: #000; color: var(--gold); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; }
.service h3 { margin: 18px 0 10px; font-size: 25px; }
.service > p { color: var(--paper-muted); font-size: 16px; }
.service ul { margin: 20px 0 10px; display: grid; gap: 9px; }
.service li, .ticks li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }
.service li svg, .ticks li svg { width: 18px; height: 18px; flex: none; padding: 3px; border-radius: 50%; background: var(--gold); fill: none; stroke: #000; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.service .link { margin-top: auto; }
.service__n { position: absolute; right: 22px; top: 22px; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; color: rgba(0, 0, 0, 0.3); }

.section--ai { background: radial-gradient(900px 420px at 50% 0%, rgba(210, 170, 79, 0.16), transparent 70%), var(--ink); border-block: 1px solid var(--line); }
.section--ai .btn { margin-top: 34px; }
.section--ai .badge { margin-top: 0; }

.person { display: flex; align-items: center; gap: 24px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--ink-2); }
.person__mono { display: grid; place-items: center; width: 76px; height: 76px; flex: none; border-radius: 50%; background: var(--gold); color: #000; font-weight: 700; font-size: 24px; letter-spacing: 0.02em; }
.person h3 { font-size: 24px; }
.person p { margin-top: 6px; color: var(--gold); font-weight: 500; }

.contact { display: grid; grid-template-columns: 1.25fr 1fr; gap: 22px; align-items: start; }
.contact__side { display: grid; gap: 22px; }
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text); }
.form input:not([type="file"]), .form select, .form textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--ink); color: var(--text); font: 400 16px/1.4 var(--font); transition: border-color 0.2s, box-shadow 0.2s; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(210, 170, 79, 0.2); }
.form [aria-invalid="true"] { border-color: #ff6b5e !important; }
.upload { padding: 24px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-lg); text-align: center; transition: border-color 0.2s, background 0.2s; }
.upload.is-over { border-color: var(--gold); background: rgba(210, 170, 79, 0.06); }
.upload p { font-size: 14px; }
.upload__title { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; color: var(--text) !important; font-size: 16px !important; margin-bottom: 4px; }
.upload__title svg { width: 20px; height: 20px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.upload__btn { margin: 14px 0 10px; position: relative; overflow: hidden; }
.upload__btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload__note { font-size: 12.5px !important; }
.upload__list { margin-top: 10px; display: grid; gap: 4px; font-size: 13px; color: var(--text); }
.form__status { min-height: 1.4em; font-size: 14px; color: var(--gold) !important; }
.form__status.is-error { color: #ff8a7f !important; }
.ticks { margin: 18px 0 24px; display: grid; gap: 10px; }
.info { display: grid; gap: 4px; margin-top: 8px; }
.info li { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.info svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.info a { text-decoration: none; }
.info a:hover { color: var(--gold); }

.footer { background: #070708; padding: 80px 0 calc(30px + var(--safe-b)); font-size: 15px; color: var(--muted); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr; gap: 44px; }
.footer__logo { height: 62px; width: auto; margin-bottom: 18px; }
.footer h3 { font-size: 15px; letter-spacing: 0.04em; color: var(--text); margin-bottom: 14px; }
.footer nav a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; }
.footer nav a:hover { color: var(--gold); }
.footer__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.footer__launch { margin-top: 56px; padding: 26px 30px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border: 1px solid rgba(210, 170, 79, 0.3); border-radius: var(--radius-lg); background: rgba(210, 170, 79, 0.05); }
.footer__launch h3 { color: var(--gold); font-size: 18px; margin-bottom: 4px; }
.footer__legal { margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; }

/* ── Reveal on scroll ── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ── Tablet ── */
@media (max-width: 1080px) {
  .nav__links a { padding: 0 9px; font-size: 14px; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .chapter { width: min(560px, 56vw); }
}

/* ── Mobile: composed separately, not shrunk ── */
@media (max-width: 767px) {
  :root { --nav-h: 64px; }
  body { font-size: 16px; }
  .nav { padding-inline: calc(16px + var(--safe-l)) calc(16px + var(--safe-r)); background: rgba(11, 11, 12, 0.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
  .nav__brand img { height: 42px; }
  .nav__links, .nav__actions { display: none; }
  .nav__burger { display: flex; }

  .stage__scrim { background:
    linear-gradient(to top, rgba(6, 6, 8, 0.92) 0%, rgba(6, 6, 8, 0.6) 30%, rgba(6, 6, 8, 0) 58%),
    linear-gradient(to bottom, rgba(6, 6, 8, 0.55) 0%, rgba(6, 6, 8, 0) 20%); }
  .chapter { left: calc(20px + var(--safe-l)); right: calc(20px + var(--safe-r)); top: auto; bottom: calc(96px + var(--safe-b)); width: auto; transform: translateY(var(--shift, 20px)); }
  .chapter .eyebrow { display: none; }
  .chapter h1 { margin-top: 0; font-size: clamp(38px, 11.4vw, 54px); }
  .chapter__actions { margin-top: 22px; }
  .chapter__actions .btn { width: 100%; }
  .chapter__actions .btn--secondary { display: none; }
  .h-tagline { font-size: clamp(26px, 7.6vw, 34px); }
  .chapter__body { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; margin-top: 14px; font-size: 15px; line-height: 1.5; }
  .stats { gap: 6px 22px; }
  .stats dd { font-size: clamp(32px, 9.6vw, 44px); }
  .stats dt { font-size: 12px; margin-top: 6px; }
  .launch { margin-top: 20px; padding: 16px 18px; }
  .launch__body { display: none; }
  .launch__title { margin-bottom: 12px; font-size: 16px; }
  .span { width: auto; left: calc(20px + var(--safe-l)); right: calc(20px + var(--safe-r)); transform: none; bottom: calc(58px + var(--safe-b)); font-size: 10px; gap: 12px; }
  .stage__cue { display: none; }
  .stage__skip { right: auto; left: 50%; transform: translateX(-50%); bottom: calc(6px + var(--safe-b)); }

  .wrap, .wrap--narrow { width: calc(100% - 40px - var(--safe-l) - var(--safe-r)); }
  .grid--3, .grid--2, .split, .contact, .form__row, .footer__grid { grid-template-columns: 1fr; }
  .sector summary { gap: 14px; min-height: 72px; }
  .sector__body { grid-template-columns: 1fr; gap: 22px; padding: 0 0 28px; }
  .card, .service, .stat-card { padding: 26px 22px; }
  .person { padding: 22px; gap: 18px; }
  .person__mono { width: 60px; height: 60px; font-size: 20px; }
  .footer__launch { flex-direction: column; align-items: flex-start; }
}

/* ── Reduced motion: composed still, normal flow, no frame fetching ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .stage__cue span { animation: none; }
  .btn, .service, .link svg { transition: none; }
}
.story.is-static { height: auto; }
.story.is-static .stage { position: relative; height: auto; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; gap: 40px; padding: calc(var(--nav-h) + 60px) max(calc(28px + var(--safe-l)), calc((100vw - var(--wrap)) / 2)) 72px; }
.story.is-static .stage__scrim { background: linear-gradient(to top, rgba(6, 6, 8, 0.94) 0%, rgba(6, 6, 8, 0.7) 55%, rgba(6, 6, 8, 0.35) 100%); }
.story.is-static .chapter { position: relative; inset: auto; left: auto; top: auto; bottom: auto; width: min(720px, 100%); transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
.story.is-static .chapter .eyebrow { display: inline-flex; }
.story.is-static .chapter__body { display: block; -webkit-line-clamp: unset; }
.story.is-static .span, .story.is-static .stage__skip, .story.is-static .stage__cue, .story.is-static #canvas { display: none; }

/* ── Metallic gold, matched to the new BIDR logo ── */
:root { --gold-metal: linear-gradient(135deg, #f1dc95 0%, #d2aa4f 34%, #a8842f 68%, #e3c370 100%); --ivory: #f3efe6; }
.btn--gold { background: var(--gold-metal); background-size: 160% 160%; background-position: 0% 50%; box-shadow: 0 10px 30px -14px rgba(210, 170, 79, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn--gold:hover { background: var(--gold-metal); background-size: 160% 160%; background-position: 100% 50%; }
h1 .gold, .h-tagline .gold, .stats dd, .stat-card__value { background: var(--gold-metal); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; text-shadow: none; filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.45)); }
.person__mono, .service li svg, .ticks li svg { background: var(--gold-metal); }
.span__fill { background: linear-gradient(90deg, #a8842f, #f1dc95); }
.chapter h1, .h-tagline { color: var(--ivory); }

/* ── New logo sizing ── */
.nav__brand img { height: 58px; }
.menu__top img { height: 46px; width: auto; }
.footer__logo { display: block; margin-bottom: 18px; }
.footer__logo img { height: 84px; width: auto; }
@media (max-width: 767px) { .nav__brand img { height: 46px; } }

/* ── Detail pages ── */
.page-hero { position: relative; padding: calc(var(--nav-h) + var(--safe-t) + clamp(48px, 7vw, 96px)) 0 clamp(56px, 7vw, 96px); background: radial-gradient(1000px 480px at 78% -10%, rgba(210, 170, 79, 0.2), transparent 70%), linear-gradient(180deg, #111113, var(--ink)); border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero__grid { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
.page-hero__grid.has-badge { grid-template-columns: 1.5fr minmax(240px, 0.8fr); }
.page-hero h1 { margin-top: 18px; font-size: clamp(40px, 5.2vw, 76px); color: var(--ivory); max-width: 16ch; }
.page-hero .lead { max-width: 68ch; }
.page-hero .chapter__actions { margin-top: 34px; }
.eyebrow--pill { display: inline-flex; margin-top: 22px; padding: 8px 14px; border: 1px solid rgba(210, 170, 79, 0.4); border-radius: 999px; background: rgba(210, 170, 79, 0.08); letter-spacing: 0.08em; text-transform: none; font-size: 14px; }
.link--back { margin-top: 0; color: var(--muted); font-weight: 500; font-size: 14px; }
.link--back:hover { color: var(--gold); }
.link--back:hover svg { transform: translateX(-4px); }
.page-hero__badge { display: block; justify-self: end; padding: 22px; border-radius: var(--radius-lg); background: #fff; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(210, 170, 79, 0.45); transition: transform 0.35s var(--ease); }
.page-hero__badge:hover { transform: translateY(-4px); }
.page-hero__badge img { width: 100%; height: auto; }
.feature h3 { margin: 14px 0 10px; font-size: 21px; }
.card .ticks { margin: 18px 0 0; }
.card .ticks li { align-items: flex-start; line-height: 1.4; }
.card .ticks li svg { margin-top: 1px; }
.tags--sm { margin-top: 20px; gap: 8px; }
.tags--sm li { padding: 8px 14px; font-size: 14px; }
.section--cta { background: radial-gradient(900px 420px at 50% 0%, rgba(210, 170, 79, 0.16), transparent 70%), var(--ink); border-top: 1px solid var(--line); }
.chapter__actions--center { justify-content: center; }
.video__frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-strong); background: #000; }
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video { margin: 0; }
.video figcaption { margin-top: 12px; font-weight: 600; }
.wrap--prose { width: min(780px, 100% - 56px); }
.h-legal { font-size: 24px !important; margin: 40px 0 12px !important; }
.wrap--prose p, .bullets { color: var(--muted); margin-top: 10px; }
.bullets { list-style: disc; padding-left: 22px; display: grid; gap: 6px; }
.grid--1 { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 767px) {
  .page-hero__grid.has-badge { grid-template-columns: 1fr; }
  .page-hero__badge { justify-self: start; max-width: 260px; padding: 16px; }
  .page-hero .chapter__actions .btn { width: 100%; }
  .wrap--prose { width: calc(100% - 40px); }
}

/* ── Larger, more legible logo ── */
:root { --nav-h: 100px; }
.nav { background: linear-gradient(to bottom, rgba(6, 6, 8, 0.92) 0%, rgba(6, 6, 8, 0.6) 62%, rgba(6, 6, 8, 0) 100%); }
.nav__brand img { height: 80px; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.55)); }
.menu__top { height: 64px; }
.menu__top img { height: 60px; }
.footer__logo img { height: 120px; }
@media (max-width: 1080px) { :root { --nav-h: 88px; } .nav__brand img { height: 68px; } }
@media (max-width: 767px) { :root { --nav-h: 76px; } .nav__brand img { height: 60px; } }
.link--back { display: flex; width: max-content; }
.eyebrow--pill { margin-top: 14px; }

/* Footer logo container must grow with the logo (it used to clip at the old 62px and overlap the text below). */
.footer__logo { height: auto; width: auto; margin-bottom: 22px; }
.footer__logo img { display: block; }
.nav.is-solid { background: rgba(11, 11, 12, 0.97); }
/* Sourcewell badge: their unaltered file on a plain white plate with clear space — no added decoration. */
.page-hero__badge { box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.8); padding: 28px; }

/* Sourcewell generic badge + contract number listed below it (Source Sans, per their logo guide). Logo file shown at native size, never stretched. */
.page-hero__badge--generic { display: flex; flex-direction: column; align-items: center; gap: 10px; width: max-content; max-width: 100%; text-decoration: none; }
.page-hero__badge--generic img { width: min(300px, 100%); height: auto; }
.page-hero__badge-no { font-family: "Source Sans 3", "Source Sans Pro", sans-serif; font-weight: 400; font-size: 17px; letter-spacing: 0; color: #4b718f; }

/* Team photo */
.team-photo { margin: 0 0 clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(210, 170, 79, 0.35); box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.9); }
.team-photo img { width: 100%; height: auto; display: block; }

/* Service card audience label: gold on black. (".service > p" was overriding its colour with grey.) */
.service > p.service__aud { color: #e6c777; font-size: 12.5px; font-weight: 600; padding: 7px 13px; }

/* Desktop logo: slightly smaller (was 80px in a 100px bar). Phone size unchanged. */
@media (min-width: 768px) { :root { --nav-h: 84px; } .nav__brand img { height: 62px; } }
@media (min-width: 768px) and (max-width: 1080px) { :root { --nav-h: 78px; } .nav__brand img { height: 56px; } }

/* Breathing room between a checklist and the button under it (Schedule Consultation card). */
.card .ticks + .btn { margin-top: 28px; }
.card > p + .btn { margin-top: 24px; }

/* Phone performance: blur and filter effects repaint on every scrubbed frame and are costly on mobile GPUs. */
@media (max-width: 767px) {
  .nav, .nav.is-solid { background: rgba(11, 11, 12, 0.96); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .menu { backdrop-filter: none; -webkit-backdrop-filter: none; background: #09090a; }
  h1 .gold, .h-tagline .gold, .stats dd, .stat-card__value { filter: none; }
  .nav__brand img { filter: none; }
  .chapter h1, .h-tagline, .stats dd { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55); }
  h1 .gold, .h-tagline .gold, .stats dd { text-shadow: none; }
  .stage { contain: layout paint; }
}

/* Fourth story chapter (far bank reveal) */
.chapter--reveal .eyebrow { margin-bottom: 18px; }
.chapter__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.chapter__tags li { padding: 7px 13px; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 999px; background: rgba(8, 8, 10, 0.45); font-size: 13.5px; font-weight: 500; color: #f1efe8; }
.chapter--reveal .chapter__actions { margin-top: 24px; }
@media (max-width: 767px) {
  .chapter__tags { gap: 6px; margin-top: 14px; }
  .chapter__tags li { padding: 5px 10px; font-size: 12px; }
  .chapter__tags li:nth-child(n+7) { display: none; }
  .chapter--reveal .chapter__actions { display: none; }
}
.story.is-static .chapter__tags li:nth-child(n+7) { display: inline-flex; }

/* Gold gradient for TEXT: keep the metallic feel but never dip dark enough to lose letters over photos. */
:root { --gold-text: linear-gradient(120deg, #f4e2a6 0%, #dcb65c 40%, #caa048 70%, #ecd184 100%); }
h1 .gold, .h-tagline .gold, .stats dd, .stat-card__value { background: var(--gold-text); -webkit-background-clip: text; background-clip: text; }
