/* CSS Inc.: light, editorial company brief (same system as bytehive.ca Design B). */
: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; flex: 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; }
.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: 1179.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; text-wrap: balance; }
.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; }
}


/* ===== CSS Inc. additions ===== */
.brand-text { display: inline-flex; flex-direction: column; line-height: 1.05; }
.brand-sub { font-family: var(--mono); font-weight: 500; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-top: 3px; }
@media (max-width: 359.98px) { .brand-sub { display: none; } }

.hero-copy { max-width: 880px; }
.hero h1 { max-width: 17ch; text-wrap: pretty; }

.sec-first { padding-top: clamp(40px, 6vw, 72px); }
.more { margin-top: 22px; }

/* beyond energy, light version */
.beyond-l { display: grid; gap: 24px 48px; margin-top: clamp(40px, 5vw, 56px); padding: clamp(24px, 3vw, 36px); background: var(--white); border: 1px solid var(--rule); border-radius: 16px; }
@media (min-width: 900px) { .beyond-l { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.beyond-l h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin: 10px 0 12px; }
.beyond-l p + p { margin-top: 16px; }
.beyond-l ul { list-style: none; display: grid; gap: 16px; align-content: start; }
.beyond-l li { padding-top: 14px; border-top: 1px solid var(--rule); font-size: .98rem; line-height: 1.55; }
.beyond-l li b { display: block; margin-bottom: 4px; color: var(--ink); font-weight: 600; }

.steps + .btn { margin-top: 8px; }

/* capabilities definition list */
.caps { display: grid; gap: 0 48px; margin-top: clamp(32px, 4vw, 48px); border-top: 1.5px solid var(--ink); }
@media (min-width: 900px) { .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.caps > div { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.caps dt { font-family: var(--display); font-weight: 600; font-size: 1.12rem; color: var(--ink); letter-spacing: -.01em; }
.caps dd { margin-top: 4px; font-size: .98rem; line-height: 1.55; }

/* bytehive + company */
.company { display: grid; gap: clamp(32px, 5vw, 64px); }
@media (min-width: 900px) { .company { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); } }
.uses { display: grid; gap: 20px; margin-top: 28px; }
@media (min-width: 700px) { .uses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.uses > div { padding-top: 16px; border-top: 1.5px solid var(--ink); }
.uses h3 { font-size: 1.12rem; margin-bottom: 8px; }
.uses p { font-size: .98rem; line-height: 1.55; }
.co-name { margin-top: 12px; font-family: var(--display); font-weight: 600; font-size: 1.2rem; color: var(--ink); line-height: 1.3; }
.papers { align-self: start; }

/* employer of record: quieter band */
.sec-compact { padding: clamp(56px, 7vw, 88px) 0; }
.sec-compact h2 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
.sec-compact .col { border-top-width: 1px; }
.sec-compact .col h3 { margin-bottom: 8px; font-size: 1.1rem; }
.sec-compact .col p { font-size: .98rem; }
.eor-note { margin-top: 28px; font-size: .92rem; color: var(--ink-3); }
.eor-note + .more { margin-top: 10px; }

/* contact */
.eyebrow-light { color: #9FE6F3; }
.cta-inner h2 { margin-top: 14px; }
.cta-inner .mail a { color: #fff; }
.contact-grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.form-card { background: var(--white); color: var(--ink-2); border-radius: 16px; padding: clamp(22px, 3vw, 32px); }
.form-card :focus-visible { outline-color: var(--cyan-ink); }
.form-row { display: grid; gap: 0 16px; }
@media (min-width: 600px) { .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: .9rem; font-weight: 600; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--ink-3); }
.field input, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1.5px solid rgba(11, 19, 32, .5); border-radius: 10px; padding: 11px 14px; }
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cyan-ink); box-shadow: 0 0 0 3px rgba(14,159,186,.18); background: #fff; }
.field ::placeholder { color: var(--ink-3); opacity: 1; }
.btn-submit { width: 100%; cursor: pointer; font-family: inherit; }
.btn-submit:disabled { opacity: .6; cursor: progress; }
.form-status { margin-top: 12px; min-height: 1.5em; font-size: .95rem; }
.form-status.is-ok { color: var(--cyan-ink); }
.form-status.is-err { color: #A4262C; }
.form-status a { color: inherit; font-weight: 600; }

.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }

/* 404 page */
.nf-h { margin-top: 14px; }
.nf-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.nf-links { list-style: none; margin: 44px 0 0; padding: 20px 0 0; border-top: 1px solid var(--rule); display: grid; gap: 12px; }
.nf-links a { color: var(--cyan-ink); font-weight: 600; text-decoration: none; }
.nf-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cta-inner .eyebrow { margin-top: 0; font-size: .78rem; color: #9FE6F3; }
.cta-inner .mail { font-family: var(--font); font-size: .98rem; }
@media (max-width: 379.98px) { .btn { white-space: normal; text-align: center; } }
.company > * { min-width: 0; }
