/* Bumble Bytes Ltd: shared styles for bumblebytes.co.uk */
:root {
  --ink: #16130d;
  --ink-2: #3a3528;
  --muted: #655e4e;
  --paper: #fbfaf6;
  --paper-2: #f4f1e7;
  --card: #ffffff;
  --line: #e6e0cf;
  --honey: #f2b705;
  --honey-2: #ffd34d;
  --honey-ink: #7f5c00;      /* honey for text on light backgrounds (AA) */
  --honey-soft: #fff5d1;
  --night: #15130f;
  --night-2: #1f1c16;
  --night-line: #34302566;
  --night-text: #ece6d6;
  --night-muted: #b4ac98;
  --green: #0b7a5a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(22, 19, 13, .06), 0 8px 24px -12px rgba(22, 19, 13, .18);
  --maxw: 1160px;
  --head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.22rem; font-weight: 600; letter-spacing: -.01em; }
:focus-visible { outline: 3px solid var(--honey); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--honey); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } body { font-size: 16px; } }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(21, 19, 15, .92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid #2b2720;
  color: var(--night-text);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; }
.brand svg { width: 30px; height: 34px; flex: none; }
.brand small { display: block; font: 500 .66rem/1 var(--mono); letter-spacing: .14em; color: var(--night-muted); text-transform: uppercase; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; font-size: .93rem; font-weight: 500; color: var(--night-text); padding: 8px 12px; border-radius: 8px; transition: background .15s, color .15s; }
.nav a:hover { background: #2a261e; }
.nav a[aria-current="page"] { color: var(--honey-2); }
.nav .btn { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 1px solid #3a352a; color: var(--night-text); border-radius: 8px; padding: 7px 10px; font: 500 .9rem var(--body); cursor: pointer; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 66px; flex-direction: column; align-items: stretch; background: var(--night); border-bottom: 1px solid #2b2720; padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
}

/* ---------- buttons, chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 .95rem/1 var(--body); text-decoration: none;
  padding: 13px 20px; border-radius: 10px; border: 1px solid transparent;
  transition: transform .15s, background .15s, border-color .15s, color .15s;
  cursor: pointer;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn-honey { background: var(--honey); color: var(--ink); }
.btn-honey:hover { background: var(--honey-2); }
.btn-ghost { border-color: #4a4436; color: var(--night-text); }
.btn-ghost:hover { border-color: var(--honey); color: var(--honey-2); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2b2720; }
.btn-line { border-color: var(--line); background: var(--card); color: var(--ink); }
.btn-line:hover { border-color: var(--honey); }
.btn-sm { padding: 9px 14px; font-size: .88rem; }

.eyebrow { display: inline-block; font: 500 .74rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--honey-ink); margin-bottom: 14px; }
.dark .eyebrow { color: var(--honey-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 500; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); }
.dark .chip { background: #221f18; border-color: #3a352a; color: var(--night-text); }
.chip svg { width: 16px; height: 16px; color: var(--honey); }
.chip img { width: 22px; height: 22px; }

/* ---------- sections ---------- */
section { padding: 96px 0; }
@media (max-width: 700px) { section { padding: 68px 0; } }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dark { background: var(--night); color: var(--night-text); }
.dark p { color: var(--night-muted); }
.honeycomb {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zm0 32L0 82V66l28 16 28-16v16L28 98z' fill='none' stroke='%23f2b705' stroke-opacity='.07' stroke-width='1'/%3E%3C/svg%3E");
}

/* ---------- hero ---------- */
.hero { padding: 88px 0 80px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -180px; top: -160px; width: 560px; height: 560px; background: radial-gradient(closest-side, rgba(242, 183, 5, .22), transparent); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--honey-2); }
.hero .lede { font-size: 1.18rem; color: var(--night-text); max-width: 640px; margin-bottom: 30px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.hero-grid.hero-media { grid-template-columns: 1.2fr .8fr; }
@media (max-width: 900px) { .hero-grid, .hero-grid.hero-media { grid-template-columns: 1fr; gap: 40px; } .hero { padding: 64px 0 60px; } }

.portrait { justify-self: center; text-align: center; }
.portrait .hex { margin: 0 auto; width: min(300px, 70vw); aspect-ratio: 1 / 1.1547; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: var(--honey); padding: 6px; }
.portrait .hex img { width: 100%; height: 100%; object-fit: cover; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.portrait .name { margin-top: 18px; font-family: var(--head); font-weight: 600; color: #fff; font-size: 1.1rem; }
.portrait .portrait-role { color: var(--night-muted); font-size: .92rem; }

/* ---------- stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--card); padding: 22px 22px 20px; }
.stat { padding: 26px 24px 22px; }
.stat .n { font: 700 clamp(2.3rem, 3.4vw, 3rem)/1 var(--head); letter-spacing: -.03em; color: var(--ink); }
.stat .n span { color: var(--honey-ink); }
.stat .t { color: var(--muted); font-size: .9rem; margin-top: 6px; line-height: 1.45; }
.dark .stats { background: #2e2a21; border-color: #2e2a21; }
.dark .stat { background: var(--night-2); }
.dark .stat .n { color: #fff; }
.dark .stat .n span { color: var(--honey-2); }
.dark .stat .t { color: var(--night-muted); }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .stats { grid-template-columns: 1fr; } }

/* ---------- cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); position: relative; }
.card p { color: var(--muted); font-size: .97rem; }
.card .icon { width: 44px; height: 44px; border-radius: 11px; background: var(--honey-soft); color: var(--honey-ink); display: grid; place-items: center; margin-bottom: 16px; }
.card .icon svg { width: 22px; height: 22px; }
.card ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: .94rem; }
.card ul li { margin: 4px 0; }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 600; color: var(--honey-ink); text-decoration: none; font-size: .95rem; }
.card .more:hover { text-decoration: underline; }
.card.feature { border-color: #e9c95a; background: linear-gradient(180deg, #fffdf4, #fff); }
.tag { display: inline-block; font: 500 .72rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--honey-ink); background: var(--honey-soft); padding: 6px 9px; border-radius: 6px; margin-bottom: 12px; }

/* ---------- experience ---------- */
.timeline { position: relative; display: grid; gap: 18px; }
.role { display: grid; grid-template-columns: 210px 1fr; gap: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow); }
.role .when { font: 500 .85rem/1.4 var(--mono); color: var(--muted); }
.role .when strong { display: block; font: 600 1rem/1.3 var(--head); color: var(--ink); margin-bottom: 4px; letter-spacing: -.01em; }
.role h3 { margin-bottom: 4px; }
.role .org { color: var(--honey-ink); font-weight: 600; font-size: .95rem; margin-bottom: 12px; }
.role ul { margin: 0; padding-left: 18px; color: var(--ink-2); }
.role ul li { margin: 6px 0; }
.role .stack { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.role .stack span { font: 500 .76rem/1 var(--mono); padding: 6px 8px; border-radius: 6px; background: var(--paper-2); color: var(--ink-2); border: 1px solid var(--line); }
.role.current { border-color: #e9c95a; box-shadow: 0 0 0 4px rgba(242, 183, 5, .12), var(--shadow); }
.badge-now { display: inline-flex; align-items: center; gap: 6px; font: 600 .72rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--green); background: #e3f4ec; padding: 6px 8px; border-radius: 6px; margin-top: 10px; }
.badge-now::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
@media (max-width: 760px) { .role { grid-template-columns: 1fr; gap: 10px; padding: 22px; } }

/* ---------- toolbox ---------- */
.toolbox { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.toolbox .card h3 { font-size: 1.02rem; margin-bottom: 12px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills span { font-size: .86rem; padding: 6px 10px; border-radius: 8px; background: var(--paper-2); border: 1px solid var(--line); color: var(--ink-2); }
@media (max-width: 900px) { .toolbox { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .toolbox { grid-template-columns: 1fr; } }

/* ---------- split / media ---------- */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.media-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid #3a352a; background: #000; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.media-frame video { width: 100%; height: auto; }
.caption { font-size: .85rem; color: var(--night-muted); margin-top: 10px; }
.light .caption, .caption.light { color: var(--muted); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-weight: 600; background: var(--paper-2); color: var(--ink-2); font-size: .84rem; }
td.r, th.r { text-align: right; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }
td:first-child, th:first-child { white-space: normal; min-width: 150px; }
@media (max-width: 600px) { table { font-size: .84rem; } th, td { padding: 9px 8px; } th { white-space: normal; } td:first-child, th:first-child { min-width: 92px; } }
td.win { color: var(--green); font-weight: 700; }
.note { font-size: .84rem; color: var(--muted); margin-top: 12px; line-height: 1.55; }

/* ---------- lists ---------- */
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 28px; margin: 10px 0; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 2.5px solid var(--honey-ink); border-bottom: 2.5px solid var(--honey-ink); transform: rotate(-45deg); }
.dark .ticks li { color: var(--night-text); }
.dark .ticks li::before { border-color: var(--honey-2); }

/* ---------- callout / cta ---------- */
.cta { border-radius: 20px; padding: 48px; display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: center; }
.cta h2 { color: #fff; margin-bottom: 10px; }
.cta .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; padding: 32px 24px; } .cta .actions { justify-content: flex-start; } }

.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .ci { width: 40px; height: 40px; border-radius: 10px; background: var(--honey-soft); color: var(--honey-ink); display: grid; place-items: center; flex: none; }
.contact-list .ci svg { width: 19px; height: 19px; }
.contact-list a { color: var(--ink); font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--honey-ink); text-decoration: underline; }
.contact-list .sub { display: block; font-size: .85rem; color: var(--muted); font-weight: 400; }
.insured { display: flex; align-items: center; gap: 16px; }
.insured img { width: 64px; height: 64px; flex: none; }

/* ---------- footer ---------- */
.site-foot { background: var(--night); color: var(--night-muted); padding: 48px 0 36px; font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-foot h4 { color: var(--night-text); font: 600 .78rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin: 8px 0; }
.site-foot a { color: var(--night-text); text-decoration: none; }
.site-foot a:hover { color: var(--honey-2); }
.site-foot .legal { border-top: 1px solid #2b2720; margin-top: 36px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .84rem; }
.foot-badge { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; background: #fff; color: var(--ink); border-radius: 999px; padding: 4px 14px 4px 4px; font-weight: 600; font-size: .84rem; text-decoration: none; }
.foot-badge img { width: 34px; height: 34px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- motion ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .btn:hover { transition: none; transform: none; }
}
.site-foot .foot-badge, .site-foot .foot-badge:hover { color: var(--ink); }

/* ---------- number emphasis ---------- */
.hl { color: var(--honey-2); font-family: var(--head); font-weight: 700; font-size: 1.12em; }
.hl-dim { color: var(--night-muted); font-family: var(--head); font-weight: 600; }
.bars { display: grid; gap: 12px; margin: 4px 0 26px; max-width: 820px; }
.bar { display: grid; grid-template-columns: 190px 1fr; align-items: center; gap: 14px; }
.bar .lab { font-size: .92rem; color: var(--ink-2); }
.bar .lab b { color: var(--ink); }
.bar .track { position: relative; height: 34px; }
.bar .fill { height: 100%; border-radius: 8px; background: #d9d2bf; display: flex; align-items: center; justify-content: flex-end; padding-right: 10px; min-width: 56px; font: 700 1.05rem/1 var(--head); color: var(--ink-2); }
.bar.us .fill { background: linear-gradient(90deg, var(--honey), var(--honey-2)); color: var(--ink); font-size: 1.25rem; }
@media (max-width: 600px) { .bar { grid-template-columns: 1fr; gap: 4px; } .bar .track { height: 30px; } }

/* ---------- a little whimsy: bees stay in the side margins, clear of the content ---------- */
.hero-bee { position: absolute; width: 42px; height: 33px; z-index: 2; filter: drop-shadow(0 4px 6px rgba(0,0,0,.35)); }
.hero-bee .wings { transform-origin: 21px 13px; animation: bee-wings .12s linear infinite alternate; }
.bee-left  { left: 16px;  top: 24%; animation: bee-bob-l 9s ease-in-out infinite; }
.bee-right { right: 16px; top: 60%; animation: bee-bob-r 11s ease-in-out infinite; }
@keyframes bee-bob-l {
  0%, 100% { transform: translate(0, 0) rotate(-6deg); }
  30% { transform: translate(8px, 34px) rotate(5deg); }
  60% { transform: translate(-4px, 70px) rotate(-3deg); }
  80% { transform: translate(6px, 30px) rotate(4deg); }
}
@keyframes bee-bob-r {
  0%, 100% { transform: scaleX(-1) translate(0, 0) rotate(-6deg); }
  35% { transform: scaleX(-1) translate(8px, -40px) rotate(5deg); }
  65% { transform: scaleX(-1) translate(-4px, -76px) rotate(-3deg); }
  85% { transform: scaleX(-1) translate(6px, -30px) rotate(4deg); }
}
@keyframes bee-wings { from { transform: scaleY(1); } to { transform: scaleY(.55); } }
/* only where the side margin (viewport minus the 1160px content column) can hold a bee */
@media (max-width: 1279px) { .hero-bee { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero-bee, .hero-bee .wings { animation: none; } .bee-right { transform: scaleX(-1); } }

.stat .n small { font-size: .5em; font-weight: 600; letter-spacing: -.01em; color: var(--ink-2); }
.dark .stat .n small { color: var(--night-text); }
