/*
Theme Name: ChillByte
Theme URI:
Author: ChillByte
Author URI:
Description: A single-page editorial / manifesto landing theme. The visual styles are inlined in index.php so the design stays self-contained and tweakable in one place. Activate this theme to render the ChillByte landing; switch back to your previous theme to restore your site.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chillbyte
Tags: one-column, editorial, custom-colors, custom-menu, full-width-template
*/

/*
 * All theme styles live inline inside <style> in index.php, where they sit
 * next to the markup they describe. This keeps the design portable and lets
 * you edit colors / typography / breakpoints in one file.
 *
 * If you'd rather enqueue the styles the "WordPress way," paste the contents
 * of the <style> block from index.php below this comment, then remove that
 * <style> block from index.php. The wp_enqueue_style() call in functions.php
 * will pick up this stylesheet automatically.
 */

.cb-form .wpcf7-form {
  margin: 0;
}

.cb-form .wpcf7 input[type="text"],
.cb-form .wpcf7 input[type="email"],
.cb-form .wpcf7 textarea {
  font: inherit;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--ink);
  padding: 10px 0;
  color: var(--ink);
  outline: none;
  width: 100%;
  border-radius: 0;
}

.cb-form .wpcf7 input:focus,
.cb-form .wpcf7 textarea:focus {
  border-bottom-color: var(--accent);
}

.cb-form .wpcf7 textarea {
  resize: vertical;
  min-height: 140px;
}

.cb-form .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  height: 56px;
  padding: 0 24px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  background: var(--accent);
  color: #fff;
  border: 1.5px solid var(--accent);
  cursor: pointer;
}
.cb-form .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 24px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -.005em;
  background: var(--accent);
  color: #fff;
  border: 1.5px solid var(--accent);
  cursor: pointer;
  transition: transform .18s, background .18s, color .18s, border-color .18s;
}

.cb-form .wpcf7-submit:hover {
  background: var(--ink);
  border-color: var(--ink);
  transform: translateY(-1px);
}

.cb-form .wpcf7-response-output {
  padding: 18px 22px !important;
  margin: 32px 0 0 !important;
  border: 0 !important;
  border-left: 3px solid var(--accent) !important;
  background: rgba(232,90,26,.06);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  border-radius: 0 4px 4px 0;
}

.cb-form form.sent .wpcf7-response-output {
  border-left-color: #1a6b3a !important;
  background: rgba(43,182,115,.10);
}

/* === HOMEPAGE STYLES === */

  :root {
    --paper: #f4f1ea;
    --paper-2: #ebe6d8;
    --ink: #141414;
    --ink-soft: #3a3a37;
    --ink-muted: #6b6b65;
    --rule: rgba(20,20,20,.55);
    --rule-soft: rgba(20,20,20,.18);
    --accent: #e85a1a;
    --accent-2: #f5e34a;
    --serif: "Inter Tight", "Inter", system-ui, sans-serif;
    --sans: "Inter", system-ui, -apple-system, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
    --container: 1280px;
    --gutter: 64px;
  }

  * { box-sizing: border-box; }
  html, body { margin: 0; }
  /* Stop anything from pushing the page wider than the viewport. */
  html, body { overflow-x: clip; }
  body { max-width: 100%; }
  body {
    font-family: var(--sans);
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  /* Default for grid/flex children: allow them to shrink below intrinsic width. */
  .cb-svc > *,
  .cb-process .step,
  .cb-stats .stat,
  .cb-case > *,
  .cb-hero-meta .m,
  .cb-bfr .col { min-width: 0; }
  /* Long display text must be allowed to break on tiny viewports. */
  .cb-display, .cb-h2, .cb-pull, .cb-svc-name {
    overflow-wrap: break-word;
    word-wrap: break-word;
  }
  /* Keep "chillbyte." on one line; clamp above guarantees it fits. */
  .cb-foot .wordmark { overflow-wrap: normal; word-break: normal; }
  ::selection { background: var(--accent-2); color: var(--ink); }
  a { color: inherit; text-decoration: none; }
  button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

  body[data-theme="dark"] {
    --paper: #0e0e0e;
    --paper-2: #1a1a1a;
    --ink: #f4f1ea;
    --ink-soft: #cfcabf;
    --ink-muted: #908a7e;
    --rule: rgba(244,241,234,.5);
    --rule-soft: rgba(244,241,234,.18);
  }

  /* container */
  .cb-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
  }

  /* type */
  .cb-display {
    font-family: var(--serif);
    font-weight: 900;
    font-size: clamp(60px, 10vw, 156px);
    line-height: .88;
    letter-spacing: -.045em;
    margin: 0;
    text-wrap: balance;
  }
  .cb-display em { font-style: normal; font-weight: 900; color: var(--accent); }
  .cb-display .strike {
    color: var(--ink-muted);
    text-decoration: line-through;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 5px;
    font-weight: 700;
  }
  .cb-display .hl {
    background: var(--accent-2);
    color: #141414;
    padding: 0 .08em;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
  }
  .cb-display .acc { color: var(--accent); }

  .cb-h2 {
    font-family: var(--serif);
    font-weight: 800;
    font-size: clamp(40px, 5vw, 80px);
    line-height: .94;
    letter-spacing: -.035em;
    margin: 0;
  }
  .cb-h2 em { font-style: normal; font-weight: 900; color: var(--accent); }

  .cb-h3 {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -.01em;
    margin: 0 0 8px;
  }

  .cb-eyebrow {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-muted);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
  }
  .cb-eyebrow::before {
    content: "";
    width: 18px;
    height: 1.5px;
    background: var(--accent);
  }
  .cb-eyebrow .num { color: var(--accent); }

  .cb-lede {
    font-family: var(--sans);
    font-size: clamp(17px, 1.4vw, 21px);
    line-height: 1.45;
    color: var(--ink);
    max-width: 56ch;
    margin: 0;
  }

  .cb-mono {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-muted);
  }

  /* buttons */
  .cb-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    height: 56px;
    padding: 0 24px;
    border-radius: 999px;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -.005em;
    background: var(--ink);
    color: var(--paper);
    transition: transform .18s, background .18s, color .18s, border-color .18s;
    border: 1.5px solid var(--ink);
    white-space: nowrap;
  }
  .cb-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-1px); }
  .cb-btn .arr {
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--paper); color: var(--ink);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700;
    transition: transform .25s, background .25s, color .25s;
  }
  .cb-btn:hover .arr { transform: translateX(2px) rotate(-45deg); background: #fff; color: var(--accent); }
  .cb-btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--rule); }
  .cb-btn.ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .cb-btn.ghost .arr { background: var(--ink); color: var(--paper); }
  .cb-btn.accent { background: var(--accent); color: #fff; border-color: var(--accent); }
  .cb-btn.accent:hover { background: var(--ink); border-color: var(--ink); }
  .cb-btn.accent .arr { background: #fff; color: var(--accent); }

  /* nav */
  .cb-nav {
    position: sticky; top: 0; z-index: 50;
    display: grid; grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 22px var(--gutter);
    background: color-mix(in oklch, var(--paper) 80%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: padding .25s, border-color .25s;
  }
  .cb-nav.scrolled { padding: 12px var(--gutter); border-bottom-color: var(--rule-soft); }
  .cb-nav .logo {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--serif); font-weight: 900;
    font-size: 22px; letter-spacing: -.04em;
    text-transform: uppercase;
  }
  .cb-nav .logo .glyph {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--accent);
    position: relative;
    flex-shrink: 0;
  }
  .cb-nav .logo .glyph::after {
    content: ""; position: absolute; inset: 7px;
    background: var(--paper); border-radius: 50%;
  }
  .cb-nav .links {
    display: flex; gap: 4px;
    background: var(--paper-2);
    border-radius: 999px;
    padding: 6px;
  }
  .cb-nav .links a {
    font-family: var(--sans); font-weight: 500; font-size: 14px;
    padding: 8px 16px; border-radius: 999px;
    color: var(--ink-soft);
    transition: background .15s, color .15s;
  }
  .cb-nav .links a:hover { background: var(--paper); color: var(--ink); }
  .cb-nav .links a.active { background: var(--ink); color: var(--paper); }
  .cb-nav .end { display: flex; justify-content: flex-end; align-items: center; gap: 14px; }
  .cb-nav .meta {
    font-family: var(--mono); font-size: 11px; color: var(--ink-muted);
    letter-spacing: .1em; text-transform: uppercase;
  }
  .cb-nav .meta .pulse {
    display: inline-block; width: 7px; height: 7px; border-radius: 50%;
    background: #2bb673; margin-right: 6px;
    box-shadow: 0 0 0 3px rgba(43,182,115,.2);
    transform: translateY(-1px);
  }

  /* section */
  .cb-section { padding: clamp(80px, 10vw, 140px) 0; position: relative; }

  /* services */
  .cb-svc {
    display: grid;
    grid-template-columns: 80px max-content 1.4fr 200px;
    align-items: center;
    gap: 32px;
    padding: 36px 0;
    border-top: 1px solid var(--rule-soft);
    transition: background .2s, transform .25s ease;
    position: relative;
    cursor: pointer;
  }
  .cb-svc:last-child { border-bottom: 1px solid var(--rule-soft); }
  .cb-svc::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0;
    width: 0; background: var(--accent);
    transition: width .25s ease, left .25s ease;
  }
  /* Use transform instead of padding so the inner grid never reflows on hover.
     The ::before is moved -24px so it stays anchored at the row's original
     left edge while the rest of the row translates 24px right. */
  /* Hover affordance only on linked rows. Non-links render statically. */
  a.cb-svc:hover { transform: translateX(24px); }
  a.cb-svc:hover::before { width: 4px; left: -24px; }
  a.cb-svc:hover .cb-svc-name { color: var(--accent); }
  a.cb-svc:hover .cb-svc-arrow .a {
    background: var(--accent); border-color: var(--accent);
    color: #fff; transform: rotate(-45deg);
  }
  div.cb-svc { cursor: default; }
  div.cb-svc .cb-svc-arrow { display: none; }
  .cb-svc-num {
    font-family: var(--mono); font-size: 13px; color: var(--ink-muted);
    letter-spacing: .08em;
  }
  .cb-svc-name {
    font-family: var(--serif); font-weight: 900;
    font-size: clamp(44px, 5vw, 72px);
    line-height: 1; letter-spacing: -.035em;
    transition: color .2s;
    text-transform: uppercase;
    white-space: nowrap;
  }
  .cb-svc-desc {
    font-family: var(--sans); font-size: 16px; line-height: 1.5;
    color: var(--ink-soft); max-width: 48ch;
  }
  .cb-svc-arrow {
    justify-self: end;
    display: flex; align-items: center; gap: 12px;
    font-family: var(--mono); font-size: 12px; letter-spacing: .12em;
    text-transform: uppercase; color: var(--ink);
  }
  .cb-svc-arrow .a {
    width: 36px; height: 36px; border-radius: 50%;
    border: 1.5px solid var(--rule);
    display: flex; align-items: center; justify-content: center;
    transition: background .2s, border-color .2s, color .2s, transform .2s;
  }

  /* broken / fixed / results — 3-col */
  .cb-bfr {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
  }
  .cb-bfr .col {
    padding: 36px 32px 36px 0;
    border-right: 1px solid var(--rule-soft);
  }
  .cb-bfr .col:last-child { border-right: 0; padding-right: 0; }
  .cb-bfr .col + .col { padding-left: 32px; }
  .cb-bfr .col .head {
    display: flex; align-items: baseline; gap: 10px;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--rule-soft);
  }
  .cb-bfr .col .head .tag {
    font-family: var(--mono); font-size: 11px; letter-spacing: .15em;
    text-transform: uppercase; font-weight: 500;
  }
  .cb-bfr .col.broken .tag { color: #b54213; }
  .cb-bfr .col.fixed  .tag { color: var(--accent); }
  .cb-bfr .col.results .tag { color: #1a6b3a; }
  .cb-bfr .col .head .num {
    font-family: var(--mono); font-size: 11px;
    color: var(--ink-muted); margin-left: auto;
  }
  .cb-bfr .col .item { padding: 18px 0; border-bottom: 1px dashed var(--rule-soft); }
  .cb-bfr .col .item:last-child { border-bottom: 0; }
  .cb-bfr .col .item h4 {
    font-family: var(--sans); font-weight: 600; font-size: 17px;
    margin: 0 0 6px; letter-spacing: -.005em;
  }
  .cb-bfr .col .item p {
    font-family: var(--sans); font-size: 14.5px; line-height: 1.5;
    margin: 0; color: var(--ink-soft);
  }

  /* process track */
  .cb-process { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); }
  .cb-process .step {
    padding: 40px 28px 32px 0;
    border-right: 1px solid var(--rule-soft);
    position: relative;
  }
  .cb-process .step:last-child { border-right: 0; }
  .cb-process .step + .step { padding-left: 28px; }
  .cb-process .step .num {
    font-family: var(--serif); font-weight: 900;
    font-size: 110px; line-height: .85;
    color: var(--accent);
    letter-spacing: -.06em;
    margin-bottom: 24px;
  }
  .cb-process .step h4 {
    font-family: var(--sans); font-weight: 700;
    font-size: 22px; margin: 0 0 10px; letter-spacing: -.01em;
  }
  .cb-process .step p {
    font-family: var(--sans); font-size: 15px;
    line-height: 1.5; color: var(--ink-soft); margin: 0;
  }
  .cb-process .step .when {
    font-family: var(--mono); font-size: 11px;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--ink-muted); margin-top: 14px;
  }

  /* stats — dark band */
  .cb-stats-band { background: var(--ink); color: var(--paper); padding: clamp(80px, 9vw, 130px) 0; }
  body[data-theme="dark"] .cb-stats-band { background: #050505; }
  .cb-stats {
    display: grid; grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid rgba(244,241,234,.25);
    border-bottom: 1px solid rgba(244,241,234,.25);
  }
  .cb-stats .stat { padding: 32px 20px 32px 0; border-right: 1px solid rgba(244,241,234,.15); }
  .cb-stats .stat:last-child { border-right: 0; padding-right: 0; }
  .cb-stats .stat + .stat { padding-left: 20px; }
  .cb-stats .stat .n {
    font-family: var(--serif); font-weight: 900;
    font-size: clamp(54px, 6vw, 78px);
    line-height: .85; letter-spacing: -.05em;
    color: var(--paper);
  }
  .cb-stats .stat .n .unit { color: var(--accent-2); margin-left: 2px; }
  .cb-stats .stat .lbl {
    font-family: var(--mono); font-size: 12px;
    letter-spacing: .12em; text-transform: uppercase;
    color: rgba(244,241,234,.65);
    margin-top: 16px;
    line-height: 1.4;
  }

  /* case rows */
  .cb-case {
    display: grid;
    grid-template-columns: 220px 1fr 140px 200px;
    gap: 28px;
    align-items: baseline;
    padding: 28px 0;
    border-top: 1px solid rgba(244,241,234,.15);
  }
  .cb-case:last-child { border-bottom: 1px solid rgba(244,241,234,.15); }
  .cb-case .industry {
    font-family: var(--mono); font-size: 12px; letter-spacing: .12em;
    text-transform: uppercase; color: rgba(244,241,234,.6);
  }
  .cb-case .what { font-family: var(--sans); font-size: 17px; color: var(--paper); line-height: 1.4; }
  .cb-case .span {
    font-family: var(--mono); font-size: 12px;
    color: rgba(244,241,234,.6); letter-spacing: .06em;
  }
  .cb-case .res {
    text-align: right;
    font-family: var(--serif); font-weight: 800;
    font-size: 32px; letter-spacing: -.025em;
    color: var(--paper);
  }
  .cb-case .res .pct { color: var(--accent-2); }

  /* closer CTA */
  .cb-closer {
    background: var(--ink);
    color: var(--paper);
    padding: clamp(100px, 12vw, 180px) 0;
    position: relative;
    overflow: hidden;
  }
  body[data-theme="dark"] .cb-closer { background: #050505; }
  .cb-closer .cb-display { color: var(--paper); }
  .cb-closer .cb-display .acc { color: var(--accent-2); }
  .cb-closer .cb-display em { color: var(--paper); }

  /* marquee */
  .cb-marquee {
    overflow: hidden;
    overflow-x: clip;
    max-width: 100vw;
    border-top: 1px solid var(--rule-soft);
    border-bottom: 1px solid var(--rule-soft);
    padding: 22px 0;
    background: var(--paper);
  }
  .cb-marquee-track {
    display: flex; gap: 48px;
    animation: cb-marquee 38s linear infinite;
    white-space: nowrap;
    width: max-content;
  }
  .cb-marquee span.mq {
    font-family: var(--serif); font-weight: 800;
    font-size: clamp(32px, 4vw, 60px);
    letter-spacing: -.035em;
    color: var(--ink);
    text-transform: uppercase;
  }
  .cb-marquee em { font-style: normal; font-weight: 900; color: var(--accent); }
  .cb-marquee .dot { color: var(--accent); margin: 0 24px; }
  @keyframes cb-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
  }

  /* footer */
  .cb-foot { padding: 80px 0 32px; border-top: 1px solid var(--rule-soft); }
  .cb-foot .grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 80px;
  }
  .cb-foot h5 {
    font-family: var(--mono); font-size: 11px;
    letter-spacing: .15em; text-transform: uppercase;
    color: var(--ink-muted); margin: 0 0 18px;
    font-weight: 500;
  }
  .cb-foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
  .cb-foot ul a { font-family: var(--sans); font-size: 15px; color: var(--ink); }
  .cb-foot ul a:hover { color: var(--accent); }
  .cb-foot .bottom {
    display: flex; justify-content: space-between; align-items: baseline;
    border-top: 1px solid var(--rule-soft); padding-top: 24px;
    font-family: var(--mono); font-size: 12px; color: var(--ink-muted);
    letter-spacing: .06em;
  }
  .cb-foot .wordmark {
    font-family: var(--serif); font-weight: 900;
    font-size: clamp(72px, 13vw, 200px);
    letter-spacing: -.07em;
    line-height: .82;
    margin: 0 0 56px;
    color: var(--ink);
    text-transform: uppercase;
    white-space: nowrap;
  }
  .cb-foot .wordmark em { color: var(--accent); font-style: normal; }
  .cb-foot p.shop {
    font-family: var(--sans); font-size: 15px; line-height: 1.5;
    margin: 0; color: var(--ink-soft); max-width: 30ch;
  }

  /* pill / chip */
  .cb-pill {
    display: inline-flex; align-items: center; gap: 8px;
    height: 30px; padding: 0 14px;
    border-radius: 999px;
    background: var(--paper-2);
    font-family: var(--mono); font-size: 11px;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--ink);
  }
  .cb-pill .pulse {
    width: 7px; height: 7px; border-radius: 50%; background: #2bb673;
    box-shadow: 0 0 0 3px rgba(43,182,115,.2);
  }
  .cb-rulechip {
    display: inline-block;
    font-family: var(--mono); font-size: 11px;
    letter-spacing: .15em; text-transform: uppercase;
    color: var(--ink-muted);
    padding-left: 24px;
    position: relative;
  }
  .cb-rulechip::before {
    content: ""; position: absolute; left: 0; top: 50%;
    width: 16px; height: 1.5px; background: var(--accent);
  }

  /* values list */
  .cb-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
  .cb-list li {
    display: grid; grid-template-columns: 36px 1fr;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--rule-soft);
    font-family: var(--sans); font-size: 16px; line-height: 1.4;
  }
  .cb-list li:last-child { border-bottom: 0; }
  .cb-list .glyph {
    font-family: var(--serif); font-size: 22px; line-height: 1;
    text-align: center; margin-top: 1px;
  }
  .cb-list.good .glyph { color: #1a6b3a; }

  /* pull-quote */
  .cb-pull {
    font-family: var(--serif); font-weight: 800;
    font-size: clamp(38px, 4.8vw, 72px);
    line-height: .98; letter-spacing: -.035em;
    text-wrap: balance;
    margin: 0;
  }
  .cb-pull em { font-style: normal; font-weight: 900; color: var(--accent); }

  /* hero meta */
  .cb-hero-meta {
    display: grid; grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--rule-soft);
    border-bottom: 1px solid var(--rule-soft);
    margin-top: 64px;
  }
  .cb-hero-meta .m {
    padding: 22px 24px 22px 0;
    border-right: 1px solid var(--rule-soft);
  }
  .cb-hero-meta .m:last-child { border-right: 0; }
  .cb-hero-meta .m + .m { padding-left: 24px; }
  .cb-hero-meta .m .k {
    font-family: var(--mono); font-size: 11px;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--ink-muted); margin-bottom: 8px;
  }
  .cb-hero-meta .m .v {
    font-family: var(--serif); font-weight: 800;
    font-size: 22px; letter-spacing: -.025em;
    line-height: 1.2;
  }
  .cb-hero-meta .m .v em { font-style: normal; font-weight: 900; color: var(--accent); }

  /* ad-hoc layout helpers used in homepage */
  .row-pill { display: flex; align-items: center; gap: 14px; margin-bottom: 36px; flex-wrap: wrap; }
  .hero-grid {
    display: grid; grid-template-columns: 1.4fr 1fr;
    gap: 80px; margin-top: 64px; align-items: end;
  }
  .hero-cta { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
  .hero-cta .cb-mono { margin-top: 6px; }

  .two-up-end { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; margin-bottom: 64px; align-items: end; }
  .two-up-end.even { grid-template-columns: 1fr 1fr; }
  .two-up-start { display: grid; grid-template-columns: 1.3fr 1fr; gap: 80px; margin-top: 32px; align-items: start; }

  .pull-row {
    margin-top: 48px;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 24px;
  }
  .stats-head {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: 48px; flex-wrap: wrap; gap: 24px;
  }
  .closer-cta { display: flex; gap: 18px; margin-top: 56px; align-items: center; flex-wrap: wrap; }

  /* hamburger button */
  .cb-burger {
    display: none;
    width: 40px; height: 40px;
    position: relative;
    border-radius: 50%;
    border: 1.5px solid var(--rule);
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
  }
  .cb-burger span {
    position: absolute; left: 10px; right: 10px;
    height: 1.5px; background: var(--ink);
    transition: transform .25s ease, opacity .2s, top .25s;
  }
  .cb-burger span:nth-child(1) { top: 14px; }
  .cb-burger span:nth-child(2) { top: 19px; }
  .cb-burger span:nth-child(3) { top: 24px; }
  .cb-nav.open .cb-burger span:nth-child(1) { top: 19px; transform: rotate(45deg); }
  .cb-nav.open .cb-burger span:nth-child(2) { opacity: 0; }
  .cb-nav.open .cb-burger span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

  /* === RESPONSIVE === */

  /* Small desktop / large tablet — tighter gutters, keep desktop layout */
  @media (max-width: 1180px) {
    :root { --gutter: 48px; }
    .cb-section { padding: clamp(72px, 9vw, 120px) 0; }
    .hero-grid { gap: 56px; }
    .two-up-end, .two-up-end.even, .two-up-start { gap: 56px; }
  }

  /* Tablet — service rows simplify, two-up grids stack */
  @media (max-width: 1024px) {
    :root { --gutter: 36px; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; align-items: start; }
    .two-up-end, .two-up-end.even, .two-up-start { grid-template-columns: 1fr; gap: 40px; }
    .cb-svc { grid-template-columns: 64px 1fr 160px; gap: 24px; }
    .cb-svc-desc { display: none; }
    .cb-svc-arrow { font-size: 11px; }
    .stats-head { gap: 20px; }
    .cb-foot .grid { grid-template-columns: 1.2fr 1fr 1fr; }
    .cb-foot .grid > div:first-child { grid-column: 1 / -1; margin-bottom: 16px; }
  }

  /* Phone — full reflow, hamburger nav */
  @media (max-width: 760px) {
    :root { --gutter: 22px; }
    .cb-section { padding: clamp(56px, 14vw, 96px) 0; }

    /* Nav: hide desktop affordances, swap in hamburger menu */
    .cb-nav { grid-template-columns: 1fr auto; padding: 14px var(--gutter); }
    .cb-nav .end .meta,
    .cb-nav .end > .cb-btn { display: none; }
    .cb-burger { display: block; }
    .cb-nav .links {
      display: none;
      position: absolute;
      top: 100%; left: 0; right: 0;
      flex-direction: column; align-items: stretch;
      gap: 0;
      padding: 12px var(--gutter) 20px;
      background: var(--paper);
      border-top: 1px solid var(--rule-soft);
      border-radius: 0;
    }
    .cb-nav.open .links { display: flex; }
    .cb-nav .links a {
      padding: 14px 16px;
      font-size: 16px;
      border-radius: 8px;
      border-bottom: 1px solid var(--rule-soft);
    }
    .cb-nav .links a:last-child { border-bottom: 0; }
    .cb-nav .links a.active { background: var(--ink); color: var(--paper); }

    /* Type — pull display sizes down for narrow viewports */
    .cb-display    { font-size: clamp(38px, 10.5vw, 80px); letter-spacing: -.04em; }
    .cb-display .strike { text-decoration-thickness: 4px; }
    .cb-h2         { font-size: clamp(30px, 7.5vw, 54px); }
    .cb-pull       { font-size: clamp(28px, 7vw, 48px); }
    .cb-svc-name   { font-size: clamp(34px, 10vw, 58px); }
    .cb-foot .wordmark { font-size: clamp(56px, 16vw, 140px); letter-spacing: -.06em; }
    .cb-process .step .num { font-size: 76px; margin-bottom: 16px; }

    /* Hero CTAs become full-width */
    .hero-cta { width: 100%; }
    .hero-cta .cb-btn { width: 100%; justify-content: space-between; }
    .closer-cta { gap: 12px; }
    .closer-cta .cb-btn { width: 100%; justify-content: space-between; }
    .pull-row .cb-btn { width: 100%; justify-content: space-between; }
    .row-pill { gap: 10px; }
    .row-pill .cb-rulechip { display: none; }

    /* Service rows: just number + name */
    .cb-svc { grid-template-columns: 48px 1fr; gap: 12px; padding: 24px 0; }
    .cb-svc-desc, .cb-svc-arrow { display: none; }
    .cb-svc:hover { padding-left: 0; }
    .cb-svc:hover::before { width: 0; }

    /* SEO three-up stacks */
    .cb-bfr { grid-template-columns: 1fr; }
    .cb-bfr .col { border-right: 0; border-bottom: 1px solid var(--rule-soft); padding: 24px 0; }
    .cb-bfr .col + .col { padding-left: 0; }
    .cb-bfr .col:last-child { border-bottom: 0; padding-bottom: 8px; }

    /* Process — 2x2 grid */
    .cb-process { grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); }
    .cb-process .step { padding: 24px 16px 24px 0; border-right: 1px solid var(--rule-soft); }
    .cb-process .step + .step { padding-left: 16px; }
    .cb-process .step:nth-child(odd) { padding-right: 16px; padding-left: 0; border-right: 1px solid var(--rule-soft); }
    .cb-process .step:nth-child(even) { padding-left: 16px; border-right: 0; }
    .cb-process .step:nth-child(-n+2) { border-bottom: 1px solid var(--rule-soft); }

    /* Stats — 2x2 grid */
    .cb-stats { grid-template-columns: 1fr 1fr; }
    .cb-stats .stat { padding: 22px 0; border-right: 0; }
    .cb-stats .stat + .stat { padding-left: 0; }
    .cb-stats .stat:nth-child(odd) { padding-right: 14px; border-right: 1px solid rgba(244,241,234,.15); }
    .cb-stats .stat:nth-child(even) { padding-left: 14px; }
    .cb-stats .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(244,241,234,.15); }
    .cb-stats .stat .n { font-size: clamp(48px, 13vw, 84px); }
    .cb-stats .stat .lbl { font-size: 11px; margin-top: 12px; }

    /* Cases — single column */
    .cb-case {
      grid-template-columns: 1fr;
      grid-template-rows: auto auto auto auto;
      gap: 6px;
      padding: 22px 0;
    }
    .cb-case .res { text-align: left; font-size: 26px; }

    /* Hero / closer meta — 2x2 */
    .cb-hero-meta { grid-template-columns: 1fr 1fr; margin-top: 48px; }
    .cb-hero-meta .m { padding: 16px 0; border-right: 0; }
    .cb-hero-meta .m + .m { padding-left: 0; }
    .cb-hero-meta .m:nth-child(odd) { padding-right: 14px; border-right: 1px solid var(--rule-soft); }
    .cb-hero-meta .m:nth-child(even) { padding-left: 14px; }
    .cb-hero-meta .m:nth-child(-n+2) { border-bottom: 1px solid var(--rule-soft); }
    .cb-hero-meta .m .v { font-size: 18px; }
    .cb-closer .cb-hero-meta .m:nth-child(odd) { border-right-color: rgba(244,241,234,.18); }
    .cb-closer .cb-hero-meta .m:nth-child(-n+2) { border-bottom-color: rgba(244,241,234,.18); }

    /* Footer */
    .cb-foot { padding: 64px 0 24px; }
    .cb-foot .grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; margin-bottom: 56px; }
    .cb-foot .grid > div:first-child { grid-column: 1 / -1; margin-bottom: 0; }
    .cb-foot .bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
  }

  /* Tiny phones */
  @media (max-width: 420px) {
    :root { --gutter: 18px; }
    .cb-display    { font-size: clamp(32px, 10.5vw, 50px); letter-spacing: -.035em; }
    .cb-display .strike { text-decoration-thickness: 3px; }
    .cb-h2         { font-size: clamp(26px, 8.5vw, 40px); }
    .cb-svc-name   { font-size: clamp(30px, 11vw, 46px); }
    .cb-foot .wordmark { font-size: clamp(40px, 14vw, 76px); letter-spacing: -.05em; }
    .cb-process .step .num { font-size: 60px; }
    .cb-stats .stat .n { font-size: clamp(38px, 13vw, 60px); }
    .cb-foot .grid { grid-template-columns: 1fr; gap: 28px; }
    .cb-hero-meta .m .v { font-size: 17px; }
  }

  @media (prefers-reduced-motion: reduce) {
    .cb-marquee-track { animation: none; }
    *, *::before, *::after { transition: none !important; }
  }

  /* Inline SVG arrows — replaces the ↗ Unicode glyph so we never get the
     emoji-presentation rendering of U+2197 on iOS/macOS/Win11. */
  .cb-btn .arr svg, .cb-svc-arrow .a svg {
    display: block;
  }

  /* Accessibility: keyboard skip-link */
  .cb-skip {
    position: absolute; left: -9999px; top: 0;
    padding: 10px 16px;
    background: var(--ink); color: var(--paper);
    font-family: var(--mono); font-size: 12px;
    letter-spacing: .1em; text-transform: uppercase;
    z-index: 100; border-radius: 0 0 8px 0;
  }
  .cb-skip:focus { left: 0; outline: 2px solid var(--accent); }

  /* Contact form */
  .cb-form { margin: 0; max-width: 720px; }
  .cb-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 32px;
  }
  .cb-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
  .cb-field-full { grid-column: 1 / -1; }
  .cb-field-label {
    font-family: var(--mono); font-size: 11px;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--ink-muted);
  }
  .cb-form input[type="text"],
  .cb-form input[type="email"],
  .cb-form textarea {
    font: inherit;
    font-family: var(--sans);
    font-size: 17px; line-height: 1.5;
    background: transparent;
    border: 0;
    border-bottom: 1.5px solid var(--ink);
    padding: 10px 0;
    color: var(--ink);
    outline: none;
    transition: border-color .15s;
    width: 100%;
    border-radius: 0;
  }
  .cb-form input::placeholder,
  .cb-form textarea::placeholder { color: var(--ink-muted); opacity: .6; }
  .cb-form input:focus,
  .cb-form textarea:focus { border-bottom-color: var(--accent); }
  .cb-form textarea { resize: vertical; min-height: 140px; }
  .cb-form-actions {
    display: flex; align-items: center; gap: 24px;
    margin-top: 36px; flex-wrap: wrap;
  }
  /* Honeypot — visible to bots only */
  .cb-hp {
    position: absolute !important;
    left: -9999px !important; top: auto !important;
    width: 1px; height: 1px; overflow: hidden;
  }
  /* Form notification banners */
  .cb-form-msg {
    padding: 18px 22px;
    margin-bottom: 32px;
    border-left: 3px solid var(--accent);
    background: rgba(232,90,26,.06);
    font-family: var(--sans); font-size: 16px; line-height: 1.5;
    color: var(--ink);
    border-radius: 0 4px 4px 0;
  }
  .cb-form-msg.ok {
    border-left-color: #1a6b3a;
    background: rgba(43,182,115,.10);
  }
  .cb-form-msg strong { font-weight: 700; }
  .cb-form-or {
    font-family: var(--mono); font-size: 12px;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--ink-muted);
    margin-top: 32px;
  }
  .cb-form-or a { color: var(--ink); border-bottom: 1px solid var(--ink); }
  .cb-form-or a:hover { color: var(--accent); border-bottom-color: var(--accent); }
  /* Email obfuscation: the "[at]" / "[dot]" markers in the source. */
  .cb-at { color: var(--ink-muted); font-style: normal; }

  @media (max-width: 760px) {
    .cb-form-grid { grid-template-columns: 1fr; gap: 22px; }
    .cb-form-actions { gap: 16px; }
    .cb-form-actions .cb-btn { width: 100%; justify-content: space-between; }
  }
