/* Bee8 — site styles */
:root {
  /* Brand colours, taken from the Bee8 logo */
  --honey: #fae300;       /* logo yellow */
  --brown: #331c09;       /* logo brown */
  --bg: #fffcf3;          /* warm cream page */
  --surface: #ffffff;
  --tint: #fff6c2;        /* soft yellow wash */
  --line: #ece2c8;
  --text: #331c09;
  --muted: #6e5a46;
  --accent: #fae300;
  --accent-ink: #331c09;
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { border-top: 1px solid var(--line); padding: clamp(56px, 8vw, 96px) 0; }
.muted { color: var(--muted); }

/* Logo */
.logo { display: inline-flex; align-items: center; }
.logo img { height: 46px; width: auto; }
.site-footer .logo img { height: 40px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 252, 243, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a:not(.btn) { color: var(--muted); font-size: 15px; transition: color .15s; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"] { font-weight: 600; box-shadow: inset 0 -3px 0 var(--honey); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); padding: 8px 12px; font: inherit; cursor: pointer; }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 22px;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  border: 1px solid var(--accent); cursor: pointer; transition: filter .15s;
}
.btn:hover { background: var(--brown); border-color: var(--brown); color: var(--honey); }
.btn-sm { padding: 8px 16px; }
.btn-ghost { background: transparent; border-color: var(--brown); color: var(--brown); }
.btn-ghost:hover { background: var(--brown); color: var(--honey); }
.link-arrow { color: var(--brown); box-shadow: inset 0 -4px 0 var(--honey); font-family: var(--font-head); font-weight: 700; display: inline-flex; gap: 10px; align-items: center; }
.link-arrow:hover span { transform: translateX(3px); }
.link-arrow span { transition: transform .15s; }

/* Labels */
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brown); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 12px; height: 14px; flex: none; background: var(--honey); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.num { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--brown); background: var(--honey); padding: 2px 7px; align-self: start; justify-self: start; line-height: 1.5; }
.meta { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-top: 14px; }

/* Page intro */
.page-intro { padding: clamp(56px, 8vw, 72px) 0 clamp(48px, 7vw, 64px); }
.page-intro h1 { font-size: clamp(40px, 6vw, 62px); max-width: 16ch; }
.page-intro .lead { color: var(--muted); font-size: 18px; max-width: 62ch; margin-top: 28px; }

/* Home hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(ellipse at 85% 50%, var(--tint), transparent 60%); min-height: calc(100vh - 72px); display: flex; align-items: center; padding: 80px 0; }
.hero-art {
  position: absolute; right: max(-60px, calc((100vw - var(--max)) / 2 - 60px)); top: 50%; transform: translateY(-50%);
  height: min(78vh, 640px); width: auto; opacity: 0.9; pointer-events: none;
}
.hero .wrap { position: relative; width: 100%; }
.hero-inner { position: relative; max-width: 780px; }
.hero h1 { font-size: clamp(44px, 7.2vw, 92px); line-height: 1.05; }
.hero .lead { color: var(--muted); font-size: 19px; max-width: 48ch; margin-top: 36px; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

/* Bar lists (orange left rule) */
.bar-list li { border-left: 3px solid var(--honey); padding: 2px 0 2px 16px; }
.bar-list.divided li { position: relative; margin-bottom: 0; }
.bar-list.divided li + li { margin-top: 0; }
.bar-list.divided > li { margin: 0 0 30px; }
.bar-list.divided > li::after { content: ""; position: absolute; left: -2px; right: 0; bottom: -15px; border-bottom: 1px solid var(--line); }
.bar-list.divided > li:last-child::after { display: none; }
.bar-list strong { display: block; font-family: var(--font-head); font-weight: 700; font-size: 15px; }
.bar-list .sub { color: var(--muted); font-size: 14px; }
.bar-list.light li { font-size: 15px; color: var(--text); }

/* Gap section */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.split h2 { font-size: clamp(28px, 3.4vw, 36px); margin-bottom: 48px; max-width: 18ch; }
.callout { background: var(--brown); color: #fff8dc; padding: 40px; box-shadow: 10px 10px 0 var(--honey); font-family: var(--font-head); font-weight: 700; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.3; }

/* Service rows (home) */
.section-title { font-size: clamp(30px, 3.6vw, 38px); margin-bottom: 48px; }
.rows > a, .rows > div { display: grid; grid-template-columns: 64px auto 1fr; gap: 20px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); }
.rows > a:hover .row-title { color: var(--accent); }
.row-title { font-family: var(--font-head); font-weight: 700; font-size: 17px; transition: color .15s; }
.row-desc { color: var(--muted); font-size: 15px; }
.rows + .link-arrow { margin-top: 40px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: var(--surface); margin: 48px 0 40px; }
.stat { padding: 32px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .big { font-family: var(--font-head); font-weight: 700; font-size: clamp(38px, 4.4vw, 52px); color: var(--brown); display: inline-block; background: linear-gradient(transparent 62%, var(--honey) 62%); line-height: 1; margin-bottom: 18px; }
.stat p { color: var(--muted); font-size: 13px; }
.note { color: var(--muted); max-width: 64ch; }

/* CTA */
.cta { background: var(--brown); color: #fff8dc; border-top: 0; }
.cta p { color: #d9c9a8 !important; }
.cta .btn:hover { background: #fff8dc; border-color: #fff8dc; color: var(--brown); }
.cta h2 { font-size: clamp(30px, 3.6vw, 38px); }
.cta p { color: var(--muted); font-size: 17px; max-width: 56ch; margin-top: 24px; }
.cta .btn { margin-top: 36px; }
.cta .fine { font-size: 13px; margin-top: 32px; }

/* Two-column detail (services, about) */
.detail { display: grid; grid-template-columns: 1fr 1.9fr; gap: clamp(32px, 5vw, 64px); }
.detail h2 { font-size: clamp(26px, 2.8vw, 30px); margin-top: 6px; }
.detail h3 { font-size: 20px; }
.detail .intro { color: var(--muted); font-size: 17px; margin-bottom: 36px; }
.detail .prose p { color: var(--muted); margin-bottom: 20px; }
.detail .note { margin-top: 32px; }
.detail > div > .link-arrow { margin-top: 40px; }

/* Service tabs (services page jump links) */
.service-tabs { position: sticky; top: 72px; z-index: 40; background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-tabs .wrap { display: flex; justify-content: space-between; gap: 20px; overflow-x: auto; scrollbar-width: none; }
.service-tabs .wrap::-webkit-scrollbar { display: none; }
.service-tabs a { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 16px 0 14px; font-size: 14px; color: var(--muted); white-space: nowrap; box-shadow: inset 0 -3px 0 transparent; transition: color .15s, box-shadow .15s; }
.service-tabs a:hover { color: var(--text); }
.service-tabs a.active { color: var(--text); font-weight: 600; box-shadow: inset 0 -3px 0 var(--honey); }
.tab-num { font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--brown); background: var(--tint); padding: 1px 6px; line-height: 1.5; }
.service-tabs a.active .tab-num { background: var(--honey); }
.service-tabs + .section { border-top: 0; }
.service-tabs ~ .section[id] { scroll-margin-top: 140px; }

/* Case studies */
.case-head { display: flex; justify-content: space-between; gap: 32px; margin-bottom: 52px; }
.case-head .title { display: flex; gap: 18px; }
.case-head h2 { font-size: clamp(26px, 2.8vw, 30px); max-width: 15ch; }
.metric { min-width: 220px; }
.metric .big { font-family: var(--font-head); font-weight: 700; font-size: clamp(40px, 4.4vw, 52px); color: var(--brown); display: inline-block; background: linear-gradient(transparent 62%, var(--honey) 62%); line-height: 1; }
.metric p { color: var(--muted); font-size: 13px; margin-top: 6px; }
.case-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 5vw, 64px); }
.case-cols .situation { color: var(--muted); font-size: 15px; }
.case-cols .result { font-weight: 500; font-size: 15px; }

/* How we work grid */
.principles { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); margin-top: 48px; }
.principle { padding: 36px 48px 36px 0; border-top: 1px solid var(--line); }
.principle:nth-child(even) { padding-left: 48px; border-left: 1px solid var(--line); }
.principle:nth-child(-n+2) { border-top: 0; }
.principle p { color: var(--muted); font-size: 15px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 172px); }
.contact-grid h2 { font-size: 20px; margin-bottom: 36px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--surface); border: 1px solid var(--line); color: var(--text);
  font: inherit; font-size: 15px; padding: 12px 16px; border-radius: 0;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brown); box-shadow: 0 0 0 3px var(--tint); }
.field textarea { min-height: 146px; resize: vertical; }
.form-status { font-size: 14px; color: var(--muted); margin-top: 16px; min-height: 1.4em; }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 0; display: flex; justify-content: space-between; gap: 16px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brown); font-size: 20px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); font-size: 15px; padding: 0 32px 22px 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; background: var(--surface); }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 24px; font-size: 13px; color: var(--muted); }
.site-footer nav a:hover { color: var(--text); }
.site-footer small { color: var(--muted); font-size: 13px; }
.site-footer .footer-contact { display: flex; gap: 16px; margin: 0; font-size: 13px; color: var(--muted); }
.site-footer .footer-contact a:hover { color: var(--text); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Responsive */
@media (max-width: 900px) {
  .split, .detail, .contact-grid, .case-cols { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .principles { grid-template-columns: 1fr; }
  .principle, .principle:nth-child(even) { padding: 28px 0; border-left: 0; border-top: 1px solid var(--line); }
  .principle:first-child { border-top: 0; }
  .case-head { flex-direction: column; }
  .rows > a, .rows > div { grid-template-columns: 40px 1fr; }
  .row-desc { grid-column: 2; }
  .hero-inner { margin-left: 0; }
  .nav { gap: 20px; }
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 0; font-size: 17px; }
  .nav .btn { margin-top: 12px; }
  .logo img { height: 38px; }
  .hero-art { opacity: 0.18; right: -80px; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .callout { padding: 28px; }
}

/* Focus and selection */
::selection { background: var(--honey); color: var(--brown); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--brown); outline-offset: 3px; }
/* Founder block */
.founder { display: grid; grid-template-columns: 1fr 1.9fr; gap: clamp(32px, 5vw, 64px); }
.founder .name { font-family: var(--font-head); font-weight: 700; font-size: 26px; margin-top: 6px; }
.founder .role { color: var(--muted); font-size: 14px; margin-top: 6px; }
.founder .prose p { color: var(--muted); margin-bottom: 20px; }
.founder .bar-list { margin-top: 12px; }
@media (max-width: 900px) { .founder { grid-template-columns: 1fr; } }

/* Select */
.field select { appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--brown) 50%), linear-gradient(135deg, var(--brown) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
/* How it works steps */
.steps .big { font-size: 22px; padding: 2px 8px; background: var(--honey); }
.steps .step-title { font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--text); margin-bottom: 8px; }
.steps p { font-size: 14px; }
.hero .eyebrow { margin-bottom: 24px; }

/* Cross-links between services and industries */
.related { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 36px; }
.related span { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.related a { font-size: 14px; padding: 4px 12px; border: 1px solid var(--line); background: var(--surface); transition: background .15s, border-color .15s; }
.related a:hover { background: var(--tint); border-color: var(--honey); }
.text-link { color: var(--brown); box-shadow: inset 0 -2px 0 var(--honey); }
.actions .link-arrow { margin-right: 16px; }

/* Industry grid (home) */
.industry-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: var(--surface); margin: 40px 0; }
.industry-grid a { display: flex; align-items: center; gap: 12px; padding: 22px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: var(--font-head); font-weight: 700; font-size: 16px; transition: background .15s; }
.industry-grid a:nth-child(4n) { border-right: 0; }
.industry-grid a:nth-last-child(-n+4) { border-bottom: 0; }
.industry-grid a:hover { background: var(--tint); }
@media (max-width: 900px) {
  .industry-grid { grid-template-columns: 1fr 1fr; }
  .industry-grid a, .industry-grid a:nth-child(4n), .industry-grid a:nth-last-child(-n+4) { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .industry-grid a:nth-child(2n) { border-right: 0; }
  .industry-grid a:nth-last-child(-n+2) { border-bottom: 0; }
}
