/* Layout: sticky header, then full-width bands (hero, process, services, clients, experience, about, contact), each with a centered 1120px inner wrapper. */
:root {
  --bg: #eef0f2;
  --surface: #ffffff;
  --ink: #1b2229;
  --muted: #56616c;
  --line: #d2d8de;
  --accent: #d98a12;
  --accent-ink: #1b2229;
  --band: #1b2229;
  --band-ink: #e9edf0;
  --band-muted: #9eabb7;
  --band-line: #33404b;
  --chip: #f2f4f6;
  --display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --wrap: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11161b; --surface: #182027; --ink: #e8ecef; --muted: #9aa6b1; --line: #2b353e;
    --accent: #f0a63a; --accent-ink: #11161b; --band: #0b0f13; --band-ink: #e8ecef;
    --band-muted: #93a0ab; --band-line: #26313a; --chip: #202a32; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #11161b; --surface: #182027; --ink: #e8ecef; --muted: #9aa6b1; --line: #2b353e;
  --accent: #f0a63a; --accent-ink: #11161b; --band: #0b0f13; --band-ink: #e8ecef;
  --band-muted: #93a0ab; --band-line: #26313a; --chip: #202a32; color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); }
a { color: inherit; }
.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
section { scroll-margin-top: 76px; }
.band { padding-block: 88px; }
.band.alt { background: var(--surface); border-block: 1px solid var(--line); }
.band.dark { background: var(--band); color: var(--band-ink); }

/* Header */
header.site {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; padding-block: 8px; }
.brand { display: flex; align-items: center; text-decoration: none; color: var(--ink); flex-shrink: 0; }

nav.main { display: flex; gap: 22px; margin-left: auto; overflow-x: auto; scrollbar-width: none; min-width: 0; }
nav.main::-webkit-scrollbar { display: none; }
nav.main a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--muted); white-space: nowrap; padding-block: 6px; }
nav.main a:hover { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font: 700 15px var(--body); background: var(--accent); color: var(--accent-ink);
  padding: 10px 18px; border-radius: 4px; border: 0; cursor: pointer; white-space: nowrap;
}
.btn:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; color: inherit; border: 1px solid currentColor; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Type */
.eyebrow { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin: 0 0 14px; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; }
h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1; font-weight: 700; text-transform: uppercase; letter-spacing: .01em; }
h3 { font-size: 1.45rem; font-weight: 600; line-height: 1.15; letter-spacing: .01em; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; margin: 18px 0 0; }
.dark .lede, .dark .muted { color: var(--band-muted); }
.section-head { margin-bottom: 48px; }

/* Hero */
.hero { padding-block: 72px 64px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.hero .wrap + .wrap { display: block; }
.hero h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); line-height: .95; font-weight: 700; text-transform: uppercase; }
.hero h1 span { color: var(--accent); }
.hero .who { margin: 26px 0 0; font-size: 1.15rem; max-width: 52ch; }
.hero .who strong { font-weight: 700; }
.tagline { font-family: var(--display); font-size: 1.4rem; font-weight: 500; color: var(--muted); margin: 8px 0 0; font-style: italic; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-art { min-width: 0; }
.hero-art svg { width: 100%; height: auto; display: block; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 56px; }
.stat { background: var(--surface); padding: 20px; min-width: 0; }
.stat b { display: block; font-family: var(--display); font-size: 2.3rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 6px; font-size: .92rem; color: var(--muted); line-height: 1.4; }

/* Process (a real sequence) */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--accent); }
.step { padding: 24px 24px 0 0; min-width: 0; }
.step .n { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: .08em; }
.step h3 { margin-top: 8px; font-size: 1.7rem; text-transform: uppercase; }
.step p { margin: 10px 0 0; color: var(--band-muted); font-size: .98rem; }

/* Services */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.svc { background: var(--surface); padding: 28px; min-width: 0; display: grid; grid-template-columns: 52px 1fr; gap: 4px 16px; align-content: start; }
.svc .code { grid-row: span 2; font-family: var(--mono); font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 3px; height: 30px; display: grid; place-items: center; letter-spacing: .05em; }
.svc p { margin: 6px 0 0; color: var(--muted); font-size: .98rem; }

/* Clients */
.clients { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.client { border-top: 1px solid var(--line); padding-top: 18px; min-width: 0; }
.client h3 { font-size: 1.6rem; text-transform: uppercase; }
.client p { margin: 8px 0 0; color: var(--muted); font-size: .98rem; }

/* Experience */
.roles { display: grid; gap: 0; border-top: 1px solid var(--band-line); }
.role { display: grid; grid-template-columns: 260px 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--band-line); }
.role h3 { font-size: 1.7rem; }
.role .title { font-family: var(--mono); font-size: 13px; color: var(--band-muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 6px; }
.role ul { margin: 0; padding-left: 18px; }
.role li { margin: 4px 0; }
.role li::marker { color: var(--accent); }
.patent { margin-top: 36px; display: flex; gap: 18px; align-items: baseline; flex-wrap: wrap; }
.patent b { font-family: var(--display); font-size: 3rem; color: var(--accent); line-height: 1; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; }
.about p { margin: 0 0 16px; max-width: 62ch; }
.about blockquote { margin: 0; font-family: var(--display); font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.1; font-weight: 600; text-transform: uppercase; border-left: 4px solid var(--accent); padding-left: 20px; }

/* Contact */
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.contact-card .strip { background: var(--accent); color: var(--accent-ink); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 8px 24px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.crow { display: grid; grid-template-columns: 110px 1fr auto; gap: 16px; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.crow:last-child { border-bottom: 0; }
.crow .k { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.crow .v { font-family: var(--mono); font-size: 1.15rem; min-width: 0; overflow-wrap: anywhere; user-select: all; }
.crow .v a { text-decoration: none; }
.crow .v a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
button.copy { font: 600 14px var(--body); color: var(--ink); background: var(--chip); border: 1px solid var(--line); border-radius: 4px; padding: 7px 14px; cursor: pointer; }
button.copy:hover { border-color: var(--accent); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }

footer { padding-block: 32px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .hero .wrap, .about, .contact-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 520px; }
  .stats, .clients { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .role { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 720px) {
  header.site .wrap { flex-wrap: wrap; gap: 4px 16px; }
  header.site .btn { margin-left: auto; padding: 8px 14px; }
  nav.main { order: 3; width: 100%; margin-left: 0; gap: 18px; }
  section { scroll-margin-top: 112px; }
  .band { padding-block: 64px; }
  .services { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .stats, .clients, .process { grid-template-columns: 1fr; }
  .crow { grid-template-columns: 1fr auto; }
  .crow .k { grid-column: 1 / -1; }
  
}

/* Blog */
.insights-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 24px; min-width: 0; color: var(--ink); }
.post-card:hover { border-color: var(--accent); }
.post-card .date, .post-row .date { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.post-card h3 { font-size: 1.5rem; }
.post-card p { margin: 0; color: var(--muted); font-size: .97rem; }
.post-card .more { margin-top: auto; padding-top: 6px; font-weight: 700; font-size: .92rem; color: var(--ink); }
.post-list { border-top: 1px solid var(--line); }
.post-row { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.post-row:hover h3 { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.post-row h3 { font-size: 1.75rem; }
.post-row p { margin: 6px 0 0; color: var(--muted); max-width: 70ch; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.tag { font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 3px; padding: 2px 8px; }
.post-wrap { max-width: 760px; }
.back { font-weight: 600; text-decoration: none; color: var(--muted); font-size: .95rem; }
.back:hover { color: var(--ink); }
.post-head { margin: 28px 0 32px; }
.post-head h1 { font-size: clamp(2.3rem, 6vw, 3.4rem); line-height: 1; font-weight: 700; text-transform: uppercase; }
.post-dek { font-size: 1.2rem; color: var(--muted); margin: 18px 0 0; }
.byline { font-family: var(--mono); font-size: 13px; color: var(--muted); margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.post-figure { margin: 0 0 32px; }
.post-figure img { width: 100%; height: auto; display: block; border-radius: 4px; border: 1px solid var(--line); }
.post-figure figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }
.post-body { font-size: 1.08rem; line-height: 1.7; }
.post-body p { margin: 0 0 20px; }
.post-body h3 { font-size: 1.6rem; margin: 36px 0 12px; }
.post-body .kicker { font-family: var(--display); font-size: 1.6rem; font-weight: 600; line-height: 1.2; border-left: 4px solid var(--accent); padding-left: 18px; margin-top: 32px; }
.post-sources { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.post-sources h2 { font-family: var(--mono); font-size: 13px; letter-spacing: .1em; color: var(--muted); font-weight: 500; }
.post-sources ol { margin: 12px 0 0; padding-left: 20px; font-size: .95rem; }
.post-sources li { margin: 6px 0; overflow-wrap: anywhere; }
.post-sources a { color: var(--ink); text-decoration-color: var(--accent); }
.post-cta { margin-top: 40px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.post-cta p { margin: 0; font-weight: 600; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.post-nav a { text-decoration: none; border-top: 1px solid var(--line); padding-top: 12px; min-width: 0; }
.post-nav a span { display: block; font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.post-nav a b { font-family: var(--display); font-size: 1.25rem; font-weight: 600; }
.post-nav a.next { text-align: right; grid-column: 2; }
@media (max-width: 900px) { .post-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .post-row { grid-template-columns: 1fr; gap: 6px; } .post-nav { grid-template-columns: 1fr; } .post-nav a.next { grid-column: 1; text-align: left; } }

/* Client-first sections */
.led { margin: 14px 0 0; font-size: 1rem; color: var(--muted); max-width: 52ch; }
.led strong { color: var(--ink); }
.problems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.problem { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 24px; min-width: 0; }
.problem:hover { border-color: var(--accent); }
.problem .for { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.problem h3 { font-size: 1.45rem; }
.problem p { margin: 0; color: var(--muted); font-size: .97rem; }
.problem .go { margin-top: auto; padding-top: 8px; font-weight: 700; font-size: .92rem; }
.process.light .step p { color: var(--muted); }
.results .role { grid-template-columns: 1.2fr 1fr; align-items: start; }
.results .role h3 { font-size: 1.45rem; line-height: 1.2; }
.results .role p { margin: 0; color: var(--band-muted); }
.svc-link { display: inline-block; margin-top: 10px; font-weight: 700; font-size: .95rem; color: var(--accent); text-decoration: none; }
.svc-link:hover { text-decoration: underline; }
.about-side { display: grid; gap: 16px; align-content: start; }
.portrait { width: 100%; max-width: 240px; aspect-ratio: 4 / 5; background: var(--band); color: var(--band-ink); border-radius: 4px; display: grid; place-items: center; position: relative; overflow: hidden; }
.portrait::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: var(--accent); }
.portrait span { font-family: var(--display); font-weight: 700; font-size: 4.5rem; letter-spacing: .04em; position: relative; z-index: 1; margin-bottom: 18%; }
.about-side .tagline { margin: 0; }
@media (max-width: 900px) { .problems { grid-template-columns: repeat(2, 1fr); } .results .role { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .problems { grid-template-columns: 1fr; } .portrait { max-width: 180px; } }

/* Book me (QR landing) */
.meet-wrap { max-width: 620px; display: grid; gap: 24px; }
.meet-wrap .eyebrow { margin: 0; }
.meet-title { font-size: clamp(2.3rem, 7vw, 3.4rem); line-height: 1; font-weight: 700; text-transform: uppercase; }
.meet-wrap .lede { margin: 0; }
.meet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.meet-actions .btn.big { justify-content: center; padding: 15px 18px; font-size: 16px; min-height: 52px; }
.meet-actions .btn.big:first-child { grid-column: 1 / -1; }
.meet-tip h2 { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.meet-tip p { margin: 0; }
.meet-card .crow .v { font-size: 1rem; }
.meet-more { font-weight: 700; text-decoration: none; color: var(--ink); }
.meet-more:hover { text-decoration: underline; text-decoration-color: var(--accent); }
@media (max-width: 420px) { .meet-actions { grid-template-columns: 1fr; } }

/* Round 3 revisions */
.stats { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat b { font-size: clamp(1.7rem, 2.4vw, 2.1rem); white-space: nowrap; }
.problem:hover { border-color: var(--line); }
.problem .go small { display: block; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.process.five { grid-template-columns: repeat(5, 1fr); }
.svc .ico { grid-row: span 2; width: 42px; height: 42px; display: grid; place-items: center; border: 1.5px solid var(--accent); border-radius: 4px; color: var(--accent); }
.svc .ico svg { width: 24px; height: 24px; transform-origin: 50% 50%; }
.svc:hover .ico { animation: icoFlip .9s ease-in-out; }
@keyframes icoFlip { from { transform: perspective(240px) rotateY(0deg); } to { transform: perspective(240px) rotateY(360deg); } }
@media (prefers-reduced-motion: reduce) { .svc:hover .ico { animation: none; } }
.svc { grid-template-columns: 42px 1fr; }
.svc.wide { grid-column: 1 / -1; }
.contact-btns { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 24px; }
.contact-btns .btn { display: inline-flex; align-items: center; gap: 9px; }
.btn .bi { width: 18px; height: 18px; flex: none; }
.meet-actions .btn { justify-content: center; }
.phone-note { margin: 16px 0 0; color: var(--muted); font-size: .95rem; max-width: 52ch; }
.phone-note strong { color: var(--ink); }
.svc.wide p { max-width: 78ch; }
.problems.four { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 600px) { .problems.four { grid-template-columns: 1fr; } }
.letter p { margin: 0 0 16px; max-width: 62ch; }
.signoff { font-family: var(--display); font-size: 1.6rem; font-weight: 700; margin-top: 8px; }
.signoff span { display: block; font-family: var(--body); font-size: .95rem; font-weight: 400; font-style: italic; color: var(--muted); }
@media (max-width: 900px) { .process.five { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .process.five { grid-template-columns: 1fr; } }

/* Rotating shop-floor lines */
.rotator { display: grid; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.12; }
.rotator span { grid-area: 1 / 1; opacity: 0; transition: opacity 1s ease; }
.rotator span.is-active { opacity: 1; }
.rotator:not(.is-rotating) span:not(:first-child) { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .rotator span { transition: none; } }

/* Hero animation tokens */
:root { --surface2: #e3e7eb; --accent-2: #b8740f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --surface2: #222c35; --accent-2: #c9862a; } }
:root[data-theme="dark"] { --surface2: #222c35; --accent-2: #c9862a; }

/* Approach stage icons with progression */
.process.five { border-top: 0; position: relative; }
.process.five::before, .process.five::after { content: ""; position: absolute; left: 10%; bottom: 22px; height: 2px; }
.process.five::before { width: 80%; background: var(--band-line); }
.process.five::after { width: 0; background: var(--accent); animation: stageLine 10s linear infinite; }
.process.five .step { padding-top: 0; }
.process.five .step { display: flex; flex-direction: column; }
.stage-ico { position: relative; z-index: 1; display: block; width: 72px; height: 46px; background: var(--band); color: var(--band-muted); margin-top: auto; padding-top: 0; align-self: center; }
.process.five .step { padding: 0 14px; text-align: center; align-items: center; }
.process.five .step p { margin-bottom: 20px; text-align: center; align-self: stretch; text-wrap: balance; }
.stage-ico svg { width: 72px; height: 46px; display: block; }
@keyframes stageLine { 0% { width: 0; opacity: 1; } 64% { width: 80%; opacity: 1; } 92% { width: 80%; opacity: 1; } 93% { width: 80%; opacity: 0; } 99.9% { width: 80%; opacity: 0; } 100% { width: 0; opacity: 0; } }
@keyframes stageOn0 { 0%, 92% { color: var(--accent); } 93%, 100% { color: var(--band-muted); } }
.stage-ico.si0 { animation: stageOn0 10s linear infinite; }
@keyframes stageOn1 { 0%, 15.9% { color: var(--band-muted); } 16%, 92% { color: var(--accent); } 93%, 100% { color: var(--band-muted); } }
.stage-ico.si1 { animation: stageOn1 10s linear infinite; }
@keyframes stageOn2 { 0%, 31.9% { color: var(--band-muted); } 32%, 92% { color: var(--accent); } 93%, 100% { color: var(--band-muted); } }
.stage-ico.si2 { animation: stageOn2 10s linear infinite; }
@keyframes stageOn3 { 0%, 47.9% { color: var(--band-muted); } 48%, 92% { color: var(--accent); } 93%, 100% { color: var(--band-muted); } }
.stage-ico.si3 { animation: stageOn3 10s linear infinite; }
@keyframes stageOn4 { 0%, 63.9% { color: var(--band-muted); } 64%, 92% { color: var(--accent); } 93%, 100% { color: var(--band-muted); } }
.stage-ico.si4 { animation: stageOn4 10s linear infinite; }
@media (max-width: 900px) { .process.five::before, .process.five::after { display: none; } }
@media (prefers-reduced-motion: reduce) { .stage-ico { animation: none !important; color: var(--accent); } .process.five::after { animation: none; width: 80%; } }

/* Success burst after Set & Finish lights */
.stage-ico svg { overflow: visible; }
.stage-ico.si4 { z-index: 2; }
.celebrate .cf { opacity: 0; transform-box: fill-box; transform-origin: center; animation: cfBurst 10s linear infinite; }
@keyframes cfBurst {
  0%, 68% { opacity: 0; transform: translate(0, 0) rotate(0deg); }
  69% { opacity: 1; }
  78% { opacity: 1; transform: translate(calc(var(--dx) * 1.7), calc(var(--dy) * 1.7)) rotate(var(--r)); }
  90% { opacity: 0; transform: translate(calc(var(--dx) * 1.7), calc(var(--dy) * 1.7 + 22px)) rotate(calc(var(--r) * 1.4)); }
  100% { opacity: 0; transform: translate(calc(var(--dx) * 1.7), calc(var(--dy) * 1.7 + 22px)); }
}
.stage-ico.si4 .crane { animation: craneOff 10s linear infinite; }
@keyframes craneOff { 0%, 65% { opacity: 1; } 68%, 92% { opacity: 0; } 94%, 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .celebrate .cf { animation: none !important; opacity: 1; transform: translate(calc(var(--dx) * 1.7), calc(var(--dy) * 1.7)) rotate(var(--r)); }
  .stage-ico.si4 .crane { animation: none !important; opacity: 0; }
}
/* Start each Approach sequence from the beginning when it scrolls into view */
.process.five.io:not(.in-view) .stage-ico,
.process.five.io:not(.in-view) .celebrate .cf,
.process.five.io:not(.in-view) .crane,
.process.five.io:not(.in-view)::after { animation-name: none; }

/* Phones and tablets: each stage icon lights when it reaches the lower third of the screen */
@keyframes cfOnce { 0% { opacity: 0; transform: translate(0, 0) rotate(0deg); } 8% { opacity: 1; } 100% { opacity: 1; transform: translate(calc(var(--dx) * 1.7), calc(var(--dy) * 1.7)) rotate(var(--r)); } }
@keyframes craneOnce { to { opacity: 0; } }
@media (max-width: 900px) {
  .process.five .stage-ico, .process.five .celebrate .cf, .process.five .stage-ico.si4 .crane { animation-name: none !important; }
  .process.five .stage-ico { color: var(--band-muted); transition: color .5s ease; }
  .process.five .stage-ico.lit { color: var(--accent); }
  .process.five .stage-ico.lit .celebrate .cf { animation: cfOnce .9s .45s ease-out forwards !important; }
  .process.five .stage-ico.lit .crane { animation: craneOnce .3s .25s linear forwards !important; }
}

/* Pale orange tint band (Results) */
:root { --tint: #f7ebd8; --tint-line: #e6d3b4; --tint-muted: #5a5248; --tint-accent: #a8650a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --tint: #2a2219; --tint-line: #43372a; --tint-muted: #b9ab98; --tint-accent: #f0a63a; } }
:root[data-theme="dark"] { --tint: #2a2219; --tint-line: #43372a; --tint-muted: #b9ab98; --tint-accent: #f0a63a; }
.band.tint { background: var(--tint); color: var(--ink); border-block: 1px solid var(--tint-line); }
.band.tint .eyebrow { color: var(--tint-accent); }
.band.tint .lede { color: var(--tint-muted); }
.band.tint .roles, .band.tint .role { border-color: var(--tint-line); }
.band.tint .results .role p { color: var(--tint-muted); }

/* Menu fits on mid-size screens */
@media (max-width: 1200px) { nav.main { gap: 12px; } nav.main a { font-size: 14px; } header.site .wrap { gap: 16px; } }
@media (max-width: 1000px) and (min-width: 721px) { section { scroll-margin-top: 116px; } header.site .wrap { flex-wrap: wrap; } nav.main { order: 3; width: 100%; margin-left: 0; } header.site .btn { margin-left: auto; } }

/* Phone menu button */
.menu-toggle { display: none; }
@media (max-width: 720px) {
  header.site.js-menu .wrap { flex-wrap: wrap; }
  header.site.js-menu .btn { margin-left: auto; }
  header.site.js-menu .menu-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); cursor: pointer; }
  header.site.js-menu .menu-toggle svg { width: 22px; height: 22px; }
  header.site.js-menu .menu-toggle .i-close, header.site.js-menu.menu-open .menu-toggle .i-open { display: none; }
  header.site.js-menu.menu-open .menu-toggle .i-close { display: block; }
  header.site.js-menu nav.main { display: none; }
  header.site.js-menu.menu-open nav.main { display: flex; flex-direction: column; gap: 0; order: 3; width: 100%; margin: 0; padding-block: 4px 8px; overflow: visible; }
  header.site.js-menu.menu-open nav.main a { padding: 13px 2px; border-top: 1px solid var(--line); font-size: 16px; color: var(--ink); }
  header.site.js-menu.menu-open { max-height: calc(100vh - env(safe-area-inset-top, 0px)); overflow-y: auto; }
  section { scroll-margin-top: 76px; }
}

/* Logo: matches the business card */
.brand { gap: 11px; align-items: center; }
.brand .brand-mark { height: 42px; width: 42px; flex: none; color: var(--ink); }
.brand-word { display: inline-flex; flex-direction: column; align-items: stretch; gap: 4px; color: var(--ink); font-family: var(--display); }
.brand-jlb { font-weight: 800; font-size: 40px; line-height: .78; letter-spacing: 1.4px; text-align: center; }
.brand-sol { display: flex; align-items: center; }
.brand-sol span { font-weight: 600; font-size: 6.8px; letter-spacing: 1.4px; padding: 0 3px 0 4.4px; line-height: 1; }
.brand-sol .rule { flex: 1; height: 1.2px; background: var(--accent); }
.brand-sol .tick { width: 1.2px; height: 6px; background: var(--accent); }
@media (max-width: 480px) { .brand .brand-mark { height: 36px; width: 36px; } .brand-jlb { font-size: 34px; } .brand-sol span { font-size: 6px; letter-spacing: 1.2px; } }

.page-title { font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1; font-weight: 700; text-transform: uppercase; }
.post-row .row-title { font-family: var(--display); font-size: 1.75rem; font-weight: 600; line-height: 1.15; text-transform: none; letter-spacing: .01em; }
.post-row:hover .row-title { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.crumbs { font-size: .92rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--ink); }
.byline a { color: inherit; }
.post-body a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
