/* ByteHive — Design B: light, editorial executive brief. No demos; real screenshots only. */
:root {
  --paper: #F6F3EC;
  --paper-2: #EEE9DE;
  --white: #FFFFFF;
  --ink: #0B1320;
  --ink-2: #3B4252;
  --ink-3: #5B6170;
  --rule: rgba(11, 19, 32, .12);
  --rule-2: rgba(11, 19, 32, .22);
  --cyan: #0E9FBA;      /* graphics */
  --cyan-ink: #0A6C80;  /* text on light, 5.2:1 on paper */
  --amber: #D99A00;     /* graphics */
  --amber-ink: #7A5200; /* text on light */
  --navy: #0B1320;
  --display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --wrap: 1180px;
  --g: clamp(16px, 4vw, 32px);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink-2); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cyan-ink); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { color: var(--ink); font-family: var(--display); font-weight: 600; letter-spacing: -.02em; }
h1 { font-size: clamp(2.5rem, 4.8vw, 4.15rem); line-height: 1.02; letter-spacing: -.035em; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.9rem); line-height: 1.08; max-width: 22ch; }
h3 { font-size: 1.22rem; line-height: 1.25; letter-spacing: -.01em; }
p { max-width: 66ch; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--g)); margin: 0 auto; padding: 0 var(--g); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap; border: 1.5px solid transparent; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1C2A40; }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--paper); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.link { color: var(--cyan-ink); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(246, 243, 236, .94); border-bottom: 1px solid var(--rule); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 44px; height: 33px; }
.brand-word { font-family: var(--display); font-weight: 600; font-size: 1.3rem; color: var(--ink); letter-spacing: -.01em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { padding: 10px 12px; border-radius: 8px; text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
@media (min-width: 900px) and (max-width: 1099.98px) { .nav a:not(.btn) { padding: 10px 8px; } }
.nav a:not(.btn):hover { color: var(--ink); background: var(--paper-2); }
.nav-cta { margin-left: 8px; min-height: 42px; padding: 8px 18px; font-size: .95rem; }
.menu { display: none; width: 44px; height: 44px; border: 1.5px solid var(--rule-2); border-radius: 12px; background: none; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 6px; }
.menu span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s; }
.menu[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 899.98px) {
  .js .menu { display: inline-flex; }
  .js .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--g) 20px; background: var(--paper); border-bottom: 1px solid var(--rule); box-shadow: 0 16px 30px -18px rgba(11,19,32,.35); max-height: calc(100dvh - 68px); overflow-y: auto; }
  .js .nav.open { display: flex; }
  .js .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--rule); border-radius: 0; font-size: 1.02rem; }
  .js .nav-cta { margin: 16px 0 0; }
  .no-js .top-row { height: auto; flex-wrap: wrap; padding: 10px 0; }
  .no-js .nav { flex-wrap: wrap; }
}

/* hero */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); }
.hero-grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1fr 1.05fr; } }
.kicker, .eyebrow, .card-k, .path-k, .papers-k { font-family: var(--mono); font-weight: 500; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan-ink); }
.hero h1 { margin-top: 18px; }
.lede { margin-top: 24px; font-size: clamp(1.08rem, .5vw + .98rem, 1.25rem); line-height: 1.55; color: var(--ink-2); }

.frame { background: var(--white); border: 1px solid var(--rule-2); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(11,19,32,.45), 0 2px 6px rgba(11,19,32,.06); }
.frame-bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; background: var(--paper-2); border-bottom: 1px solid var(--rule); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #D5CFC2; }
.frame-bar span { margin-left: 8px; font-family: var(--mono); font-size: .72rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame img { width: 100%; }
figcaption { margin-top: 12px; font-size: .875rem; color: var(--ink-3); }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(40px, 6vw, 72px); border-top: 1.5px solid var(--ink); }
.facts > div { padding: 20px 20px 4px 0; }
.facts > div + div { padding-left: 20px; border-left: 1px solid var(--rule); }
.facts dt { font-family: var(--display); font-weight: 600; font-size: 1.45rem; letter-spacing: -.02em; color: var(--ink); }
.facts dd { margin-top: 6px; font-size: .92rem; line-height: 1.45; color: var(--ink-3); }
@media (max-width: 899.98px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 479.98px) {
  .facts { grid-template-columns: 1fr; }
  .facts > div, .facts > div + div { border-left: 0; padding-left: 0; border-bottom: 1px solid var(--rule); padding-bottom: 16px; }
}

.fit { margin-top: 20px; font-size: .98rem; color: var(--ink-2); }

/* sections */
.sec { padding: clamp(72px, 9vw, 120px) 0; }
.sec-tint { background: var(--paper-2); }
.sec h2 { margin-top: 14px; }
.sub { margin-top: 18px; font-size: 1.12rem; line-height: 1.6; }

.three, .four, .two { display: grid; gap: 20px; margin-top: clamp(32px, 4vw, 48px); }
@media (min-width: 900px) { .three { grid-template-columns: repeat(3, minmax(0, 1fr)); } .two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 700px) { .four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.col { padding-top: 22px; border-top: 1.5px solid var(--ink); }
.col h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.dot { width: 12px; height: 13px; flex: none; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.dot-cyan { background: var(--cyan); } .dot-ink { background: var(--ink); } .dot-amber { background: var(--amber); }
.ticks { list-style: none; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: 1rem; line-height: 1.5; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .32em; width: 16px; height: 16px; border-radius: 50%; background: rgba(14,159,186,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A6C80' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/10px no-repeat; }

.card { background: var(--white); border: 1px solid var(--rule); border-radius: 16px; padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-size: 1.3rem; }
.card p:not(.card-k) { font-size: .975rem; line-height: 1.55; }

.path { background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--cyan); border-radius: 16px; padding: clamp(24px, 3vw, 34px); }
.path-alt { border-top-color: var(--amber); }
.path-alt .path-k { color: var(--amber-ink); }
.path h3 { font-size: 1.55rem; margin-top: 8px; }
.path-for { margin: 10px 0 18px; color: var(--ink-3); }

.how { margin-top: clamp(48px, 6vw, 72px); }
.how-h { font-size: 1.35rem; }
.steps { list-style: none; display: grid; gap: 16px; margin: 20px 0 32px; counter-reset: s; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; } .steps li + li { border-left: 1px solid var(--rule); } }
.steps li { display: grid; align-content: start; gap: 4px; padding: 4px 20px 4px 0; }
@media (min-width: 900px) { .steps li + li { padding-left: 20px; } }
.steps .n { font-family: var(--mono); font-size: .8rem; color: var(--cyan-ink); }
.steps b { font-family: var(--display); font-weight: 600; font-size: 1.12rem; color: var(--ink); }
.steps span:last-child { font-size: .95rem; color: var(--ink-3); line-height: 1.5; }
.studio { max-width: 1000px; }

.status .st { background: var(--white); border: 1px solid var(--rule); border-radius: 16px; padding: clamp(24px, 3vw, 32px); }
.st h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.st ul { list-style: none; display: grid; gap: 0; }
.st li { padding: 11px 0 11px 26px; border-top: 1px solid var(--rule); position: relative; font-size: .985rem; color: var(--ink-2); }
.st-now li::before { content: ''; position: absolute; left: 2px; top: 17px; width: 11px; height: 12px; background: var(--cyan); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.st-next { background: repeating-linear-gradient(135deg, rgba(11,19,32,.025) 0 2px, transparent 2px 10px), var(--white) !important; border-style: dashed !important; border-color: var(--rule-2) !important; }
.st-next li::before { content: ''; position: absolute; left: 2px; top: 17px; width: 11px; height: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 13'%3E%3Cpolygon points='6,1 11,3.75 11,9.25 6,12 1,9.25 1,3.75' fill='none' stroke='%237A5200' stroke-width='1.3' stroke-dasharray='2 1.5'/%3E%3C/svg%3E") center/contain no-repeat; }
.tag { font-family: var(--mono); font-weight: 500; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--amber-ink); border: 1px solid rgba(122,82,0,.4); border-radius: 4px; padding: 3px 8px; }

.company { align-items: start; }
.company .sub { margin-bottom: 18px; }
.papers { background: var(--white); border: 1px solid var(--rule); border-radius: 16px; padding: 26px; }
.papers-note { margin-top: 10px; font-size: .92rem; line-height: 1.5; color: var(--ink-3); }
.papers ul { list-style: none; margin-top: 12px; }
.papers li { border-top: 1px solid var(--rule); }
.papers a { display: block; padding: 14px 0; color: var(--ink); font-weight: 600; text-decoration: none; }
.papers a:hover { color: var(--cyan-ink); }

/* CTA */
.cta-band { background: var(--navy); color: #fff; padding: clamp(72px, 9vw, 112px) 0; }
.cta-inner h2 { color: #fff; max-width: 20ch; }
.cta-inner p { margin-top: 16px; color: rgba(255,255,255,.82); font-size: 1.12rem; }
.cta-inner .mail { margin-top: 24px; font-family: var(--mono); font-size: .9rem; color: rgba(255,255,255,.7); }
.cta-band :focus-visible { outline-color: #fff; }

.foot { padding: 28px 0; background: var(--navy); border-top: 1px solid rgba(255,255,255,.12); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .875rem; color: rgba(255,255,255,.7); }
.foot a { color: rgba(255,255,255,.85); }

@media print {
  .top, .ctas, .menu { display: none !important; }
  body { background: #fff; }
  .sec-tint, .cta-band, .foot { background: #fff !important; color: #000; }
  .cta-inner h2, .cta-inner p { color: #000; }
}

/* hero diagram */
.hero-fig { margin: 0; }
.fit-diagram { width: 100%; height: auto; overflow: visible; }
.fd-dev rect { fill: var(--white); stroke: var(--rule-2); stroke-width: 1.5; }
.fd-dev text { font: 600 16px var(--font); fill: var(--ink); text-anchor: middle; }
.fd-wires path { stroke: var(--ink-3); stroke-width: 2; stroke-opacity: .55; }
.fd-ray { stroke-width: 3.5; stroke-linecap: round; }
.fd-ray.fd-c { stroke: var(--cyan); } .fd-ray.fd-i { stroke: var(--ink); } .fd-ray.fd-a { stroke: var(--amber); }
.fd-dot.fd-c { fill: var(--cyan); } .fd-dot.fd-i { fill: var(--ink); } .fd-dot.fd-a { fill: var(--amber); }
.fd-hex { fill: var(--navy); stroke: var(--navy); stroke-width: 2; stroke-linejoin: round; }
.fd-hex-t { font: 600 22px var(--display); fill: #fff; text-anchor: middle; letter-spacing: -.01em; }
.fd-hex-s { font: 500 11px var(--mono); fill: #9FE6F3; text-anchor: middle; letter-spacing: .08em; text-transform: uppercase; }
.fd-l { font: 600 18px var(--font); }
.fd-lc { fill: var(--cyan-ink); } .fd-li { fill: var(--ink); } .fd-la { fill: var(--amber-ink); }
@media (forced-colors: active) { .fd-ray, .fd-wires path { stroke: CanvasText; } }

/* three go-to-market paths; path 3 (build from spec) is the emphasised one */
.paths { display: grid; gap: 20px; margin-top: clamp(32px, 4vw, 48px); }
@media (min-width: 760px) { .paths { grid-template-columns: repeat(2, minmax(0, 1fr)); } .paths .path-build { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .paths { grid-template-columns: repeat(3, minmax(0, 1fr)); } .paths .path-build { grid-column: auto; } }
.path-build { background: var(--navy); border-color: var(--navy); border-top-color: var(--cyan); }
.path-build .path-k { color: #9FE6F3; }
.path-build h3 { color: #fff; }
.path-build .path-for { color: rgba(255,255,255,.78); }
.path-build .ticks li { color: rgba(255,255,255,.9); }
.path-build .ticks li::before { background-color: rgba(25,212,245,.18); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239FE6F3' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }

/* flexible by design: dark band */
.sec-flex { background: var(--navy); color: rgba(255,255,255,.85); }
.sec-flex .eyebrow { color: #9FE6F3; }
.sec-flex h2 { color: #fff; max-width: 24ch; }
.sec-flex .sub { color: rgba(255,255,255,.8); }
.flex-grid { display: grid; gap: 28px; margin-top: clamp(32px, 4vw, 48px); }
@media (min-width: 700px) { .flex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .flex-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.flex-grid > div { padding-top: 18px; border-top: 2px solid rgba(159, 230, 243, .5); }
.flex-grid h3 { color: #fff; font-size: 1.2rem; margin-bottom: 8px; }
.flex-grid p { color: rgba(255,255,255,.8); font-size: .98rem; line-height: 1.55; }
.sec-flex :focus-visible { outline-color: #fff; }

/* beyond energy: closing row of the flexible band */
.beyond { display: grid; gap: 24px 48px; margin-top: clamp(40px, 5vw, 56px); padding-top: clamp(28px, 4vw, 40px); border-top: 1px solid rgba(255,255,255,.18); }
@media (min-width: 900px) { .beyond { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.beyond h3 { color: #fff; font-size: clamp(1.45rem, 2.4vw, 1.9rem); margin: 10px 0 12px; }
.beyond p { color: rgba(255,255,255,.8); }
.beyond p + p { margin-top: 18px; }
.beyond ul { list-style: none; display: grid; gap: 18px; margin: 0; padding: 0; }
.beyond li { padding-top: 14px; border-top: 1px solid rgba(159,230,243,.3); color: rgba(255,255,255,.8); font-size: .98rem; line-height: 1.55; }
.beyond li b { display: block; margin-bottom: 4px; color: #fff; font-weight: 600; }
.beyond a { color: #9FE6F3; font-weight: 600; text-decoration: none; }
.beyond a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* 404 page */
.nf-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.nf-papers { list-style: none; margin: 44px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line, rgba(11,19,32,.12)); display: grid; gap: 12px; }
.nf-papers a { color: var(--cyan-ink); font-weight: 600; text-decoration: none; }
.nf-papers a:hover { text-decoration: underline; text-underline-offset: 3px; }
.nf-h { margin-top: 14px; }
