/* Strategy Partners — shared styles */
:root {
  --bg: #0b0e14;
  --surface: #121722;
  --surface-2: #1a2130;
  --border: #232c3f;
  --text: #e8ecf4;
  --text-dim: #9aa5b8;
  --accent: #4f8ef7;          /* Brand Blue — identity, structure, links */
  --accent-deep: #2e6bd0;
  --accent-2: #35c48d;        /* Signal Green — data & status ONLY, never a CTA */
  --cta: #f5a524;             /* Action Amber — the one color that means "act" */
  --cta-hover: #ffb94a;
  --cta-ink: #1a1200;         /* 9.10:1 on amber — AAA */
  --warn: #f0a848;
  --bad: #e05f5f;
  --radius: 10px;
  --max: 1060px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  font-size: 17px;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,14,20,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  max-width: var(--max); margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.brand { font-weight: 700; font-size: 1.05rem; color: var(--text); letter-spacing: .3px; }
.brand span { color: var(--accent); }
.nav a.link { color: var(--text-dim); font-size: .95rem; }
.nav a.link:hover, .nav a.link.active { color: var(--text); text-decoration: none; }
/* Nav CTA is the OUTLINE button. White-on-blue measured 3.21:1 — a WCAG AA
   failure — and it competed with the in-page amber primary. One solid pill
   on screen at a time, and it is the one we want clicked. */
.nav .cta-mini {
  margin-left: auto; background: transparent; color: var(--accent);
  border: 1px solid var(--accent);
  padding: 7px 15px; border-radius: 8px; font-size: .9rem; font-weight: 600;
}
.nav .cta-mini:hover, .nav .cta-mini.active {
  text-decoration: none; background: rgba(79,142,247,.14); color: #a8c8ff;
}

/* mobile nav toggle — hidden on desktop */
.nav-toggle {
  display: none; margin-left: auto; background: transparent;
  border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px;
  cursor: pointer; line-height: 0;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; background: var(--text);
  border-radius: 2px; transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle span + span { margin-top: 4px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Layout */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 64px 0; }
/* Fluid type — scales continuously instead of snapping at one breakpoint.
   Previously the only responsive type rule was `@media(max-width:640px){h1}`,
   which left 641–900px rendering full desktop size in a container too small. */
h1 { font-size: clamp(1.9rem, 1.1rem + 3.4vw, 2.9rem); line-height: 1.15; margin-bottom: 18px; }
h2 { font-size: clamp(1.35rem, 1.05rem + 1.5vw, 1.75rem); line-height: 1.25; margin-bottom: 14px; }
h3 { font-size: clamp(1.05rem, .98rem + .35vw, 1.18rem); margin-bottom: 8px; }
.lede { color: var(--text-dim); font-size: clamp(1rem, .95rem + .4vw, 1.15rem); max-width: 40rem; }
.kicker {
  color: var(--accent); font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 10px;
}

/* Hero */
.hero { padding: 96px 0 72px; position: relative; overflow: hidden; }
.hero h1 { max-width: 34rem; }   /* 6–9 words per display line */
.hero .accent { color: var(--accent); }
.hero .accent2 { color: var(--accent-2); }

/* Buttons */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 9px;
  font-weight: 600; font-size: 1rem; border: 1px solid transparent;
}
.btn-primary { background: var(--cta); color: var(--cta-ink); }
.btn-primary:hover { background: var(--cta-hover); text-decoration: none; }
.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); text-decoration: none; }
.btn-row { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

/* Cards */
.grid { display: grid; gap: 18px; margin-top: 30px; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.card p { color: var(--text-dim); font-size: .97rem; }
.card .tag {
  display: inline-block; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; color: var(--accent-2);
  margin-bottom: 8px;
}
.card .tag.roadmap { color: var(--warn); }

/* Stats */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 22px 30px; margin-top: 40px;
}
.stat { border-left: 2px solid #33405c; padding-left: 14px; }
.stat .num { font-size: 1.9rem; font-weight: 700; color: var(--accent); line-height: 1.15; }
.stat .lbl { color: var(--text-dim); font-size: .88rem; }

/* Case study */
.case { border-left: 3px solid var(--accent); padding-left: 22px; margin-top: 36px; }
.case .meta { color: var(--text-dim); font-size: .9rem; margin-bottom: 6px; }
ul.plain { list-style: none; }
ul.plain li { padding-left: 22px; position: relative; margin-bottom: 8px; color: var(--text-dim); }
ul.plain li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }

/* Audit tool */
.audit-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; margin-top: 28px;
}
.audit-box label { display: block; font-size: .88rem; color: var(--text-dim); margin: 14px 0 4px; }
.audit-box select, .audit-box input {
  width: 100%; padding: 10px 12px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text); font-size: .95rem;
}
.audit-grade {
  font-size: 3.2rem; font-weight: 800; line-height: 1;
}
.audit-result { display: none; margin-top: 26px; border-top: 1px solid var(--border); padding-top: 22px; }
.audit-result.show { display: block; }
.bar-track { background: var(--surface-2); border-radius: 6px; height: 10px; margin: 6px 0 14px; }
.bar-fill { height: 10px; border-radius: 6px; background: var(--accent); transition: width .6s ease; }

/* Footer */
footer {
  border-top: 1px solid var(--border); padding: 34px 0 0; font-size: .92rem;
  background: #080a10; position: relative; z-index: 1; /* solid panel — stands apart from the moving background */
}
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .9fr; gap: 24px; padding-bottom: 30px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 22px; } }
.f-brand-name { font-weight: 800; font-size: 1.1rem; color: #fff; }
.f-brand-name span { color: var(--accent); }
.footer-grid .f-brand p { margin-top: 10px; max-width: 24rem; color: #b7c0d1; font-weight: 500; }
.f-col h5, .f-col h3.f-h {
  font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--accent); margin-bottom: 12px;
}
.f-col a { display: block; color: #d7dceb; font-weight: 600; margin-bottom: 10px; }
.f-col a:hover { color: var(--accent); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 16px 0;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 28px;
  font-size: .82rem; font-weight: 600; color: #b7c0d1;
}

/* Thinking background dots */
.think-bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .65; }

/* ===== a11y: focus, skip link, landmarks ===== */
/* There were previously zero focus styles in this stylesheet, and the ROI
   sliders carried `outline:none` — the calculator was unusable by keyboard. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.roi-row input[type=range]:focus-visible,
.audit-box select:focus-visible,
.audit-box input:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #06090e; font-weight: 700;
  padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; top: 0; text-decoration: none; }

/* ===== responsive: three standard breakpoints — 640 / 900 / 1200 ===== */

/* Mobile nav drawer. Below 900px the six links + brand + CTA used to simply
   wrap onto two or three rows and eat the first screen. */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    gap: 0 14px; position: relative;
    justify-content: space-between; flex-wrap: nowrap;
  }
  .nav a.link, .nav .cta-mini { display: none; }
  .nav.open { flex-wrap: wrap; }
  .nav.open a.link {
    display: block; width: 100%; padding: 13px 2px;
    border-top: 1px solid var(--border); font-size: 1.02rem;
  }
  .nav.open a.link:first-of-type { margin-top: 12px; }
  .nav.open .cta-mini {
    display: block; width: 100%; margin: 14px 0 6px; text-align: center;
    background: var(--cta); color: var(--cta-ink); border-color: var(--cta);
    padding: 13px 16px; font-size: 1rem;
  }
  .nav.open .cta-mini:hover { background: var(--cta-hover); color: var(--cta-ink); }

  /* the animated background stack is expensive on phones — keep the particle
     field, drop the two animated SVG layers entirely */
  .schematic-layer, .thought-layer { display: none; }
  .think-bg { opacity: .38; }
}

@media (max-width: 640px) {
  .hero { padding: 64px 0 48px; }
  section { padding: 52px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .think-bg { display: none; }
}

/* ===== v2: imagery & case studies ===== */
.frame {
  background: #0d1119; border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,.45);
}
.frame .chrome {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 14px; background: #161c29; border-bottom: 1px solid var(--border);
}
.frame .chrome i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.frame .chrome i:nth-child(1){ background:#e0645f; } .frame .chrome i:nth-child(2){ background:#e8b93e; } .frame .chrome i:nth-child(3){ background:#43c06a; }
.frame .chrome span { margin-left: 10px; color: var(--text-dim); font-size: .74rem; font-family: monospace; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.frame img { display: block; width: 100%; height: auto; }
.frame.hoverable { transition: transform .25s ease, box-shadow .25s ease; }
.frame.hoverable:hover { transform: translateY(-4px); box-shadow: 0 26px 60px rgba(0,0,0,.6); }

.case-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 900px){ .case-hero { grid-template-columns: 1fr; } }

.gallery { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); margin-top: 34px; }
.gallery figure { margin: 0; }
.gallery figcaption { color: var(--text-dim); font-size: .86rem; margin-top: 9px; padding-left: 2px; }

.workcard {
  position: relative; display: block; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05), 0 10px 34px rgba(0,0,0,.4);
}
/* Portfolio screenshots each carry their own app's brand colors. Desaturating
   at rest pulls four unrelated images into one visual family; full color
   returns on the card the visitor is actually considering. */
.workcard img {
  width: 100%; height: 260px; object-fit: cover; object-position: center 22%;
  display: block;
  filter: saturate(.76) contrast(1.06) brightness(.92);
  transition: transform .4s ease, filter .35s ease;
}
.workcard:hover img { transform: scale(1.03); filter: none; }
/* Scrim starts fading immediately. The old `transparent → .94 at 60%` stop left
   the label's top line sitting over raw image — on the spa card the photo's own
   headline read through behind the card heading. */
.workcard .label {
  position: absolute; inset: auto 0 0 0; padding: 64px 20px 18px;
  background: linear-gradient(to top,
    rgba(6,9,14,.97) 0%, rgba(6,9,14,.92) 34%,
    rgba(6,9,14,.55) 62%, transparent 100%);
}
.workcard .label h3 { margin: 0; color: #fff; }
.workcard .label p { margin: 3px 0 0; color: var(--text-dim); font-size: .88rem; }
.workcard:hover { text-decoration: none; }

.metric-strip { display: flex; gap: 30px; flex-wrap: wrap; margin: 26px 0 6px; }
.metric-strip .m { border-left: 3px solid var(--accent); padding-left: 14px; }
.metric-strip .m b { display: block; font-size: 1.35rem; color: var(--text); }
.metric-strip .m span { color: var(--text-dim); font-size: .84rem; }

/* Animated workflow (home) */
.flow-wrap { margin-top: 40px; overflow-x: auto; }
.flow-svg { min-width: 900px; width: 100%; }
.flow-node { fill: var(--surface); stroke: var(--border); }
.flow-node.hot { stroke: var(--accent); }
.flow-label { fill: var(--text); font: 600 13px "Segoe UI", sans-serif; }
.flow-sub { fill: var(--text-dim); font: 11px "Segoe UI", sans-serif; }
.flow-line { stroke: var(--border); stroke-width: 2; fill: none; }
.pulse { fill: var(--accent); }
.pulse2 { fill: var(--accent-2); }

/* ===== v3: "thinking" system UI ===== */

/* (grid overlay removed — particle web is the only background) */

/* terminal status ticker, sits under the nav */
.sys-ticker {
  border-top: 1px solid var(--border);
  background: #0a0d13;
  overflow: hidden;
  white-space: nowrap;
}
.sys-ticker .wrap { padding: 6px 20px; display: flex; align-items: center; gap: 8px; }
.sys-ticker .prompt { color: var(--accent-2); font-family: "Consolas", "SF Mono", monospace; font-size: .78rem; flex-shrink: 0; }
.sys-ticker .line {
  color: var(--text-dim); font-family: "Consolas", "SF Mono", monospace; font-size: .78rem;
  letter-spacing: .3px; overflow: hidden; text-overflow: ellipsis;
}
.sys-ticker .cursor { color: var(--accent-2); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* crosshair corner accents for data-module cards */
.card, .frame { position: relative; }
.card::before, .card::after, .frame::before, .frame::after {
  content: ""; position: absolute; width: 9px; height: 9px;
  border: 1px solid var(--accent); opacity: 0; transition: opacity .25s ease;
  pointer-events: none;
}
.card::before, .frame::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.card::after, .frame::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.card:hover::before, .card:hover::after,
.frame:hover::before, .frame:hover::after { opacity: .85; }

/* mouse-tracked glare on cards.
   NOTE: .workcard is deliberately excluded here — its <img> covers the element
   completely, so a background-image glare paints for nothing. The ::after
   overlay below is the one that actually renders on workcards. */
.card {
  --mx: 50%; --my: 50%;
  background-image: radial-gradient(320px circle at var(--mx) var(--my), rgba(79,142,247,.10), transparent 60%);
  background-color: var(--surface);
  background-blend-mode: normal;
}
.workcard { --mx: 50%; --my: 50%; }
.workcard::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(320px circle at var(--mx) var(--my), rgba(79,142,247,.16), transparent 60%);
  opacity: 0; transition: opacity .25s ease; z-index: 1;
}
.workcard:hover::after { opacity: 1; }

/* ===== v5: portfolio hierarchy =====
   The original grid treated every project as a dark screenshot with a caption
   floating over it. That made the Work page read like a gallery of thumbnails
   instead of a business portfolio. These rules give the page a featured first
   project, a calmer page frame, and readable project summaries. */
body {
  background:
    radial-gradient(900px 520px at 90% -8%, rgba(79,142,247,.15), transparent 58%),
    radial-gradient(620px 420px at 8% 38%, rgba(53,196,141,.07), transparent 60%),
    var(--bg);
}
header { background: rgba(8,11,17,.84); }
.hero { padding: 82px 0 54px; }
.hero .wrap {
  max-width: calc(var(--max) + 40px);
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid rgba(79,142,247,.26);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(24,34,54,.86), rgba(12,16,25,.70));
  box-shadow: 0 24px 70px rgba(0,0,0,.24);
}
.hero h1 { max-width: 19ch; font-size: clamp(2.35rem, 1.4rem + 4.5vw, 4.7rem); letter-spacing: -.055em; }
.hero .lede { max-width: 47rem; }
.stats { gap: 12px; margin-top: 38px; }
.stat {
  min-height: 104px; padding: 16px;
  border: 1px solid var(--border); border-left: 1px solid var(--border);
  border-radius: 12px; background: rgba(7,11,18,.42);
}
.stat .num { font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem); }

.grid.cols-2 { gap: 24px; }
.grid.cols-2 .hero-card { grid-column: 1 / -1; }
.workcard {
  display: flex; flex-direction: column;
  background: rgba(18,23,34,.96); border-color: rgba(115,137,177,.28);
  box-shadow: 0 14px 34px rgba(0,0,0,.24);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.workcard:hover { transform: translateY(-5px); border-color: rgba(79,142,247,.72); box-shadow: 0 22px 46px rgba(0,0,0,.36); }
.workcard img { height: 214px; object-position: center; filter: saturate(.88) contrast(1.03); }
.workcard.hero-card img { height: 316px; }
.workcard .label {
  position: relative; inset: auto; padding: 20px 22px 22px;
  min-height: 122px; background: transparent; z-index: 2;
}
.workcard .label h3 { font-size: 1.25rem; margin-bottom: 7px; }
.workcard .label p { color: #bac5d8; font-size: .93rem; line-height: 1.5; }
.workcard.hero-card .label { padding: 24px 28px 27px; }
.workcard.hero-card .label h3 { font-size: 1.52rem; }
.workcard::after { display: none; }

@media (max-width: 640px) {
  .hero { padding: 42px 0 32px; }
  .hero .wrap { border-radius: 16px; }
  .hero h1 { font-size: clamp(2.15rem, 10vw, 3rem); }
  .workcard.hero-card img, .workcard img { height: 210px; }
  .workcard .label, .workcard.hero-card .label { padding: 18px; min-height: 0; }
  .workcard.hero-card .label h3 { font-size: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .sys-ticker .cursor { animation: none; }
  .card, .workcard { background-image: none !important; }
  .workcard::after { display: none; }
  .card::before, .card::after, .frame::before, .frame::after { display: none; }
}

/* ===== v4: "thinking in the air" hero layer ===== */
.hero .wrap { position: relative; z-index: 3; }
.thought-layer {
  position: fixed; inset: 0; z-index: 40; perspective: 1100px;
  pointer-events: none; transform-style: preserve-3d;
}
.thought {
  position: absolute;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  filter: drop-shadow(0 0 10px rgba(79,142,247,.45));
}
.thought svg { display: block; overflow: visible; }

/* diagram primitives */
.thought .nd { fill: rgba(18,26,42,.55); stroke: var(--accent); stroke-width: 1.1; }
.thought .nd.hot { stroke: var(--accent-2); fill: rgba(23,44,44,.5); }
.thought .dw {
  fill: none; stroke: var(--accent); stroke-width: 1.1; opacity: .75;
  stroke-dasharray: 260; stroke-dashoffset: 260;
}
.thought .ring { fill: none; stroke: var(--accent); stroke-width: 1; opacity: .5;
  stroke-dasharray: 6 8; }
.thought .ck { fill: none; stroke: var(--accent-2); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; }
.thought .tx {
  fill: #cfe0ff; font: 500 9.5px "Consolas","SF Mono",monospace; letter-spacing: .4px;
}
.thought .lb {
  fill: var(--accent); font: 700 8px "Consolas","SF Mono",monospace; letter-spacing: 1.4px;
  opacity: .8;
}
.thought .fx {
  fill: #dbe7ff; font: 500 13px "Consolas","SF Mono",monospace; letter-spacing: .2px;
}
.thought .fx2 { fill: #d6fff0; font: 700 13px "Consolas","SF Mono",monospace; }
.thought .dot { fill: var(--accent-2); }

/* the life cycle: materialize → drift → dissolve */
.thought.run { animation: thoughtLife 11s ease-in-out forwards; }
.thought.run .dw { animation: drawIn 1.1s ease-out .25s forwards; }
.thought.run .nd, .thought.run .tx, .thought.run .lb,
.thought.run .fx, .thought.run .fx2, .thought.run .ck, .thought.run .ring, .thought.run .dot {
  opacity: 0; animation: partIn .5s ease-out forwards;
}
.thought.run .nd  { animation-delay: .15s; }
.thought.run .ring{ animation-delay: .3s; }
.thought.run .tx  { animation-delay: .55s; }
.thought.run .fx, .thought.run .fx2 { animation-delay: .6s; }
.thought.run .ck  { animation-delay: .8s; }
.thought.run .lb, .thought.run .dot { animation-delay: 1s; }

@keyframes drawIn { to { stroke-dashoffset: 0; } }
@keyframes partIn { to { opacity: 1; } }

@keyframes thoughtLife {
  0%   { opacity: 0; transform: translate3d(0,14px,0) scale(calc(var(--s) * .82))
                        rotateY(var(--ry)) rotateX(var(--rx)); }
  14%  { opacity: .95; }
  82%  { opacity: .9; }
  100% { opacity: 0;
         transform: translate3d(var(--dx), var(--dy), 60px) scale(var(--s))
                    rotateY(var(--ry)) rotateX(var(--rx)); }
}

.thought.static { opacity: .3; transform: scale(var(--s)); }

@media (prefers-reduced-motion: reduce) {
  .thought.run { animation: none; opacity: .28; }
  .thought.run .dw { stroke-dashoffset: 0; animation: none; }
  .thought.run * { opacity: 1 !important; animation: none !important; }
}
@media (min-width: 901px) { .hero { min-height: 720px; } }

/* ===== v5: three-layer hero — schematics (back) · text (mid) · thoughts (front) ===== */

/* BACK — large slow-drifting schematics */
.schematic-layer {
  position: fixed; inset: 0; z-index: -2;
  pointer-events: none; overflow: hidden;
}
.schematic {
  position: absolute;
  opacity: .17;
  will-change: transform;
  animation-name: schematicDrift;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}
.schematic svg { display: block; overflow: visible; }

/* NO SQUARES — every drawn rectangle in the background layers is hidden.
   Text, arrows, circles, lines, checkmarks stay. */
.schematic svg rect, .thought svg rect { display: none; }

.schematic .s-box   { fill: none; stroke: var(--accent); stroke-width: 1.2; }
.schematic .s-box.hot { stroke: var(--accent-2); }
.schematic .s-frame { fill: none; stroke: var(--accent); stroke-width: 1; opacity: .5;
                      stroke-dasharray: 3 6; }
.schematic .s-arrow { fill: none; stroke: var(--accent); stroke-width: 1.2; opacity: .8; }
.schematic .s-link  { fill: none; stroke: var(--accent-2); stroke-width: 1;
                      opacity: .7; stroke-dasharray: 4 5; }
.schematic .s-rule  { stroke: var(--accent); stroke-width: .7; opacity: .3; }
.schematic .s-ring  { fill: none; stroke: var(--accent); stroke-width: 1.2; opacity: .7; }
.schematic .s-ring.dashed { stroke-dasharray: 5 9; opacity: .45; }
.schematic .s-tx    { fill: #bcd4ff; font: 600 13px "Consolas","SF Mono",monospace; letter-spacing: .6px; }
.schematic .s-tx.sm { font-size: 9.5px; }
.schematic .s-lane  { fill: var(--accent); font: 700 12px "Consolas","SF Mono",monospace; opacity: .8; }
.schematic .s-cap   { fill: var(--accent); font: 700 10px "Consolas","SF Mono",monospace;
                      letter-spacing: 2px; opacity: .75; }

@keyframes schematicDrift {
  from { transform: translate3d(0,0,0) rotate(var(--rot)) scale(var(--sc)); }
  to   { transform: translate3d(var(--dx), var(--dy), 0) rotate(calc(var(--rot) * -1)) scale(calc(var(--sc) * 1.04)); }
}

/* MID — text sits clear, no panel, above the schematics */
.hero .wrap { position: relative; z-index: 2; }
.hero h1, .hero .lede, .hero .kicker, .hero .stat {
  text-shadow: 0 2px 18px rgba(6,9,14,.92), 0 0 40px rgba(6,9,14,.8);
}
/* glowing letters — stays readable no matter what drifts behind it */
.hero .accent {
  text-shadow: 0 0 16px rgba(79,142,247,.9), 0 0 38px rgba(79,142,247,.4), 0 2px 18px rgba(6,9,14,.92);
}
.hero .accent2 {
  text-shadow: 0 0 16px rgba(53,196,141,.9), 0 0 38px rgba(53,196,141,.4), 0 2px 18px rgba(6,9,14,.92);
}

/* FRONT — thoughts now pass OVER everything (below the nav, z-index 50) */
.thought { mix-blend-mode: screen; }

@media (prefers-reduced-motion: reduce) {
  .schematic { animation: none; transform: rotate(var(--rot)) scale(var(--sc)); }
}

/* ===== v6: ROI calculator ===== */
.roi-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 34px; align-items: start; }
@media (max-width: 860px) { .roi-grid { grid-template-columns: 1fr; } }

.roi-row { margin-bottom: 20px; }
.roi-row .top {
  display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px;
}
.roi-row label { color: var(--text-dim); font-size: .9rem; }
.roi-row .val {
  color: var(--accent); font-weight: 700; font-size: .95rem;
  font-family: "Consolas","SF Mono",monospace;
}
.roi-row input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px;
  background: var(--surface-2); border-radius: 4px; border: none; padding: 0;
}
.roi-row input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); cursor: pointer; border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--accent), 0 0 12px rgba(79,142,247,.7);
}
.roi-row input[type=range]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%; background: var(--accent);
  cursor: pointer; border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--accent);
}

.roi-out {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; position: relative;
}
.roi-out .chain {
  font-family: "Consolas","SF Mono",monospace; font-size: .8rem;
  color: var(--text-dim); letter-spacing: .3px; margin-bottom: 18px;
}
.roi-out .big {
  font-size: 2.9rem; font-weight: 800; line-height: 1.05; color: var(--bad);
}
.roi-out .big.year { color: var(--warn); font-size: 2.2rem; margin-top: 12px; }
.roi-out .cap {
  color: var(--text-dim); font-size: .82rem; text-transform: uppercase;
  letter-spacing: 1.2px; margin-top: 2px;
}
.roi-track { background: var(--surface-2); height: 8px; border-radius: 5px; margin: 20px 0 14px; overflow: hidden; }
.roi-fill {
  height: 8px; border-radius: 5px; width: 10%;
  background: linear-gradient(90deg, var(--warn), var(--bad));
  transition: width .45s ease;
}
.roi-ctx { color: var(--text); font-size: .95rem; }
.roi-note { color: var(--text-dim); font-size: .82rem; margin-top: 16px; }

/* ===== v7: glassmorphism cards + micro-interactions ===== */
/* Frosted-glass surface: semi-transparent + blur + a thin inner top
   highlight, so cards read as "glass over the moving background"
   instead of flat panels. Scoped to cards/panels/ghost buttons only —
   never on anything that's itself animating, and never full-screen. */
.card, .audit-box {
  background-color: rgba(18,23,34,.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 10px 30px rgba(0,0,0,.28);
  transition: box-shadow .3s ease, border-color .3s ease, transform .25s ease;
}
.card:hover {
  border-color: #2c3852;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 0 26px rgba(79,142,247,.22), 0 14px 34px rgba(0,0,0,.32);
  transform: translateY(-2px);
}

/* nav bar — add the same inner highlight to the blur it already had */
header { box-shadow: inset 0 -1px 0 rgba(255,255,255,.05); }

/* buttons — ghost buttons become true glass; primary keeps its solid
   punch (it's the conversion button) but gets the highlight + hover glow */
.btn {
  transition: box-shadow .25s ease, border-color .25s ease, transform .2s ease, filter .2s ease;
}
.btn-primary {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-primary:hover {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 0 26px rgba(53,196,141,.55);
  transform: translateY(-1px);
}
.btn-ghost {
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.btn-ghost:hover {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 0 22px rgba(79,142,247,.3);
  transform: translateY(-1px);
}

/* mobile safety — drop the expensive blur recompute on phones (it's
   sitting over an already-animating background), keep the tinted glass
   look via a slightly more opaque flat color instead */
@media (max-width: 900px) {
  .card, .audit-box, .btn-ghost {
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .card, .audit-box { background-color: rgba(18,23,34,.86); }
}
@media (prefers-reduced-motion: reduce) {
  .card:hover, .btn:hover { transform: none; }
}

/* ===== v8: flyer mockups (vertical engine case study) ===== */
/* A rendered, de-branded recreation of the real flyer template —
   deliberately light "paper" against the dark site so it reads as a
   physical piece of collateral. */
.flyer {
  background: #f4f6fa; color: #1a2230; border-radius: 10px;
  padding: 22px 22px 0; font-size: .78rem; line-height: 1.45;
  box-shadow: 0 18px 44px rgba(0,0,0,.5);
  overflow: hidden;
}
.flyer .f-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.flyer .f-logo { font-weight: 800; font-size: .9rem; letter-spacing: .5px; color: #24304a; }
.flyer .f-logo span { color: #3369cc; }
.flyer .f-kicker { text-align: right; font-size: .62rem; color: #5b6678; }
.flyer .f-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; margin-top: 14px; align-items: start; }
.flyer h4 { font-size: 1.25rem; line-height: 1.15; margin: 0 0 6px; color: #16213a; }
.flyer .f-sub { font-size: .72rem; color: #45526b; }
.flyer .f-pill {
  display: inline-block; background: #ffd166; color: #3a2f00; font-weight: 700;
  font-size: .66rem; padding: 5px 10px; border-radius: 999px; margin-top: 8px;
}
.flyer .f-review {
  background: #fff; border: 1px solid #dbe2ee; border-radius: 8px; padding: 10px 12px;
  font-size: .66rem; color: #45526b;
}
.flyer .f-review b { display: block; color: #d99a00; letter-spacing: 2px; margin-bottom: 3px; }
.flyer .f-band {
  background: #e3edfb; border-radius: 8px; padding: 10px 14px; margin-top: 14px;
  font-size: .72rem; color: #24304a;
}
.flyer table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: .64rem; }
.flyer th, .flyer td { border: 1px solid #d5dcea; padding: 5px 7px; text-align: center; }
.flyer th { background: #24304a; color: #fff; font-size: .6rem; letter-spacing: .5px; }
.flyer td:first-child { text-align: left; font-weight: 600; color: #33405c; background: #eef2f9; }
.flyer .f-cta {
  border: 2px solid #24304a; border-radius: 8px; margin-top: 14px; padding: 10px 14px;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.flyer .f-cta b { font-size: .78rem; color: #16213a; }
.flyer .f-cta .qr {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 4px;
  background:
    repeating-linear-gradient(0deg, #24304a 0 3px, transparent 3px 6px),
    repeating-linear-gradient(90deg, #24304a 0 3px, #fff 3px 6px);
}
.flyer .f-contact {
  display: flex; gap: 10px; align-items: center; margin-top: 14px; font-size: .68rem; color: #45526b;
}
.flyer .f-contact .ava {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #b9c6dd, #8fa3c4);
}
.flyer .f-foot {
  background: #24304a; color: #c9d4e8; margin: 14px -22px 0; padding: 8px 22px;
  font-size: .62rem; letter-spacing: .5px;
}
.flyer .ph { color: #3369cc; font-weight: 700; } /* placeholder highlight */

/* the stack around each flyer */
.stack-block { margin-top: 54px; }
.stack-label {
  font-size: .72rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 14px;
}
.stack-grid { display: grid; grid-template-columns: minmax(300px, 420px) 1fr; gap: 26px; align-items: start; }
@media (max-width: 860px) { .stack-grid { grid-template-columns: 1fr; } }
.email-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; margin-top: 12px;
}
.email-card .subj { font-weight: 700; font-size: .93rem; }
.email-card .subj span { color: var(--text-dim); font-weight: 400; font-size: .8rem; }
.email-card p { color: var(--text-dim); font-size: .88rem; margin-top: 6px; }

/* one VBR = a reason + its body + the email it produces, as one unit */
.vbr-block { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.vbr-block:first-child { margin-top: 12px; padding-top: 0; border-top: none; }
.vbr-num {
  font-size: .66rem; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 4px;
}
.vbr-block h4 { font-size: 1.02rem; margin-bottom: 6px; }
.vbr-block > p { color: var(--text-dim); font-size: .9rem; }
.ai-note { font-size: .8rem; color: var(--text-dim); margin-top: 10px; }
.ai-note b { color: var(--text); }

/* ===== v10: the REAL flyer template, de-branded — headline, colors, bubbles,
   layout all pulled from the actual build_flyer.py / flyer_data.py source that
   generates the live 57-vertical flyer series. Only brand + contact info is
   swapped for placeholders; every hex value below is the real one. ===== */
.rf { background: #fff; color: #1a2733; border-radius: 6px; padding: 20px 22px 0;
  font-size: .74rem; line-height: 1.42; box-shadow: 0 22px 60px rgba(0,0,0,.55); overflow: hidden; }
.rf .rf-hdr { display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 8px; border-bottom: 2px solid #d6e1eb; }
.rf .rf-logo { font-weight: 800; font-size: .82rem; color: #003b70; letter-spacing: .2px; }
.rf .rf-hdr-r { text-align: right; }
.rf .rf-hdr-r b { color: #003b70; font-size: .68rem; display: block; }
.rf .rf-hdr-r span { color: #5b6b79; font-size: .58rem; display: block; }
.rf .rf-vtag {
  display: inline-block; margin-top: 3px; background: #003b70; color: #fff; font-weight: 700;
  font-size: .56rem; letter-spacing: .5px; padding: 2px 8px; border-radius: 999px;
}
.rf h4.rf-h1 { color: #003b70; font-size: 1.28rem; line-height: 1.16; margin: 8px 0 4px; letter-spacing: -.2px; font-weight: 800; }
.rf h4.rf-h1 .acc { color: #1b74a8; }
.rf .rf-sub { color: #5b6b79; font-size: .66rem; line-height: 1.4; margin-bottom: 8px; }
/* the "pain bubble" — round icon badge + trigger question + body, on a peach card */
.rf .rf-pain {
  display: flex; gap: 9px; align-items: flex-start; background: #fff5f1; border: 1px solid #df896b;
  border-radius: 6px; padding: 8px 11px; margin-bottom: 8px;
}
.rf .rf-pain .rf-ic {
  width: 22px; height: 22px; border-radius: 50%; background: #d9612d; color: #fff; flex: 0 0 22px;
  display: flex; align-items: center; justify-content: center; font-size: .72rem;
}
.rf .rf-pain b { color: #b8461f; font-size: .74rem; display: block; margin-bottom: 2px; }
.rf .rf-pain p { font-size: .66rem; line-height: 1.4; color: #1a2733; }
.rf .rf-pain .hl { color: #b8461f; font-weight: 700; }
.rf .rf-stats { display: flex; gap: 8px; margin-bottom: 8px; }
.rf .rf-stat { flex: 1; background: #f4f8fb; border: 1px solid #d6e1eb; border-radius: 5px; text-align: center; padding: 5px 2px; }
.rf .rf-stat b { font-size: .92rem; color: #1a2733; display: block; }
.rf .rf-stat span { font-size: .5rem; color: #5b6b79; letter-spacing: .4px; text-transform: uppercase; }
.rf .rf-cols { display: flex; gap: 10px; margin-bottom: 8px; }
.rf .rf-card { flex: 1; background: #f4f8fb; border: 1px solid #d6e1eb; border-radius: 7px; padding: 7px 11px; }
.rf .rf-card h5 { color: #003b70; font-size: .72rem; margin-bottom: 5px; font-weight: 700; }
.rf .rf-card h5 .acc { color: #1b74a8; }
.rf .rf-card p { font-size: .62rem; line-height: 1.4; color: #1a2733; margin-bottom: 4px; }
.rf .rf-ask { color: #197a50; font-weight: 700; font-size: .62rem; }
.rf ul.rf-q { list-style: none; margin: 0; }
.rf ul.rf-q li { font-size: .62rem; line-height: 1.35; margin-bottom: 4px; padding-left: 13px; position: relative; }
.rf ul.rf-q li::before { content: "✓ "; position: absolute; left: 0; color: #1b74a8; font-weight: 700; }
.rf .rf-handles-h { font-size: .82rem; color: #003b70; margin-bottom: 4px; font-weight: 700; }
.rf .rf-handles-h span { font-size: .58rem; color: #5b6b79; font-weight: 400; }
.rf .rf-mini { display: flex; gap: 8px; margin-bottom: 8px; }
.rf .rf-mc { flex: 1; background: #fff; border: 1px solid #d6e1eb; border-radius: 6px; padding: 5px 9px; }
.rf .rf-mc b { font-size: .64rem; color: #003b70; display: block; border-bottom: 1px solid #2d9bd5; padding-bottom: 3px; margin-bottom: 4px; }
.rf .rf-mc div { font-size: .56rem; line-height: 1.4; padding-left: 11px; position: relative; margin-bottom: 2px; }
.rf .rf-mc div::before { content: "✓ "; position: absolute; left: 0; color: #1b74a8; font-weight: 700; }
.rf .rf-strip {
  background: #edf5fa; border-radius: 5px; padding: 6px 12px; text-align: center; font-size: .62rem;
  font-weight: 700; line-height: 1.4; margin-bottom: 8px;
}
.rf .rf-strip .acc { color: #1b74a8; }
/* the "internet bubble" — same round icon-badge pattern as the pain bubble, blue this time */
.rf .rf-net {
  display: flex; gap: 8px; align-items: center; background: #edf5fa; border: 1px solid #2d9bd5;
  border-radius: 6px; padding: 7px 11px; margin-bottom: 8px;
}
.rf .rf-net .rf-ic {
  width: 18px; height: 18px; border-radius: 50%; border: 1.4px solid #d9612d; color: #d9612d; flex: 0 0 18px;
  display: flex; align-items: center; justify-content: center; font-size: .6rem;
}
.rf .rf-net .t { font-size: .66rem; line-height: 1.35; }
.rf .rf-net .t b { color: #003b70; font-size: .7rem; }
.rf .rf-net .t .hl { color: #1b74a8; font-weight: 700; }
.rf .rf-cta {
  background: #edf5fa; border: 1px solid #2d9bd5; border-radius: 7px; margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px; padding: 7px 15px;
}
.rf .rf-cta .l { flex: 1; text-align: center; }
.rf .rf-cta .k { font-size: .56rem; color: #5b6b79; letter-spacing: .8px; font-weight: 700; margin-bottom: 2px; }
.rf .rf-cta .big { font-size: 1rem; font-weight: 700; color: #003b70; margin-bottom: 3px; }
.rf .rf-cta .big .acc { color: #1b74a8; }
.rf .rf-cta .s { font-size: .58rem; color: #5b6b79; }
.rf .rf-cta .qr {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 4px; border: 1.4px solid #2d9bd5;
  background:
    repeating-linear-gradient(0deg, #fff 0 3px, transparent 3px 6px),
    repeating-linear-gradient(90deg, #fff 0 3px, #eef4fa 3px 6px);
}
.rf .rf-foot {
  background: #eaf3fb; border: 1px solid #2d9bd5; border-radius: 7px; display: flex; align-items: center;
  gap: 12px; padding: 6px 13px; margin-bottom: 4px;
}
.rf .rf-foot .fl { flex: 0 0 72px; text-align: center; }
.rf .rf-foot .ava {
  width: 36px; height: 36px; border-radius: 50%; margin: 0 auto 4px; border: 2px solid #2d9bd5;
  background: linear-gradient(135deg, #b9c6dd, #8fa3c4);
}
.rf .rf-foot .tag { display: block; color: #5b6b79; font-size: .5rem; line-height: 1.2; font-style: italic; }
.rf .rf-foot .m { flex: 1.2; }
.rf .rf-foot .m b { color: #1f5c94; font-size: .74rem; display: block; line-height: 1.25; }
.rf .rf-foot .c { border-left: 1px solid #b9d5ea; padding-left: 12px; flex: 1; }
.rf .rf-foot .c .nm { color: #1f5c94; font-size: .84rem; font-weight: 700; margin-bottom: 3px; }
.rf .rf-foot .c .row { font-size: .64rem; color: #1a2733; margin-top: 2px; }
.rf .rf-bar {
  margin: 0 -22px; padding: 7px 22px; border-top: 2px solid #2d9bd5;
  display: flex; justify-content: space-between; align-items: center;
}
.rf .rf-bar b { color: #1f5c94; font-weight: 700; font-size: .72rem; }
.rf .ph { color: #3369cc; font-weight: 700; } /* placeholder highlight — the only thing swapped */

/* the flyer is the star: centered, wide, glowing edge */
.chart-badge-wrap { text-align: center; margin-bottom: 16px; }
.chart-badge {
  display: inline-block; background: rgba(53,196,141,.12);
  border: 1px solid rgba(53,196,141,.4); color: var(--accent-2); font-weight: 700;
  font-size: .74rem; letter-spacing: .4px; padding: 6px 14px; border-radius: 999px;
}
.chart-flyer { max-width: 640px; margin: 0 auto; }
.chart-flyer .rf { box-shadow: 0 0 0 1px rgba(53,196,141,.28), 0 22px 60px rgba(0,0,0,.55); }
.chart-connectors { display: block; width: 100%; height: 60px; }
.chart-connectors path { fill: none; stroke: var(--border); stroke-width: 2; }
.chart-nodes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .chart-nodes { grid-template-columns: 1fr; } .chart-connectors { display: none; } }

/* one node = one integrated piece: the actual short email AS SENT, with the
   VBR's full body reasoning directly underneath — not a second matching card.
   ("I don't want a matching email — that's like sending the same thing twice.") */
.chart-node {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px;
}
.chart-node .node-tag {
  font-size: .6rem; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 4px;
}
.chart-node h4 { font-size: .88rem; margin-bottom: 8px; line-height: 1.25; }
.chart-node .node-email {
  background: rgba(79,142,247,.07); border: 1px solid rgba(79,142,247,.25); border-radius: 8px;
  padding: 10px 12px; font-size: .78rem; color: var(--text); font-style: italic; line-height: 1.45;
}
.chart-node .node-email .email-tag {
  display: block; font-style: normal; font-weight: 700; font-size: .58rem; letter-spacing: 1px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 5px;
}
.chart-node .node-body {
  margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border);
}
.chart-node .node-body .body-tag {
  display: block; font-weight: 700; font-size: .58rem; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-dim); margin-bottom: 5px;
}
.chart-node .node-body p { color: var(--text-dim); font-size: .78rem; line-height: 1.5; }
.chart-node .node-body p + p { margin-top: 8px; }

/* build stamp — proves which deploy you're looking at */
.build-badge {
  position: fixed; right: 10px; bottom: 10px; z-index: 999;
  background: rgba(10,13,19,.92); border: 1px solid var(--border);
  color: var(--accent); font: 700 10px "Consolas","SF Mono",monospace;
  letter-spacing: 1px; padding: 5px 9px; border-radius: 6px;
  pointer-events: none; opacity: .55;
}

/* ===== v11: elevation pass — scroll progress, reveal, rhythm, bento, numbering ===== */

/* scroll progress bar — injected by polish.js, no markup changes needed */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--cta); z-index: 200; pointer-events: none;
  transition: width .12s linear;
}

/* scroll-reveal — polish.js adds .reveal on load, .in once visible */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* section rhythm — a soft wash on alternating sections gives scroll position a
   landmark without blocking the animated background (kept deliberately semi-
   transparent — full opacity panels were ruled out earlier this project). */
section:not(.hero):nth-of-type(even) { background: rgba(10,14,22,.4); position: relative; z-index: 1; }

/* hero → content seam, so the section break reads as a transition, not a cut */
.hero { position: relative; }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 110px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none; z-index: 2;
}

/* bento work grid — the flagship project gets a wider, taller card so the grid
   has a hierarchy instead of four equal boxes */
.workcard.hero-card { grid-column: span 2; }
.workcard.hero-card img { height: 360px; }
@media (max-width: 700px) { .workcard.hero-card { grid-column: span 1; } .workcard.hero-card img { height: 260px; } }

/* case numbering — large low-opacity index in the top-right of each work card */
.grid.cols-2:has(.workcard) { counter-reset: wc; }
.workcard { counter-increment: wc; }
.workcard::before {
  content: counter(wc, decimal-leading-zero);
  position: absolute; top: 12px; right: 14px; z-index: 2;
  font-size: 2.1rem; font-weight: 800; color: rgba(255,255,255,.22);
  letter-spacing: -1px; pointer-events: none;
  text-shadow: 0 2px 10px rgba(0,0,0,.5);
}/* Update "Read all reviews" link color */
.read-all-reviews,
a.read-all-reviews {
  color: #AB6400 !important;
}

/* Update text color for the specified request part */
.request-part,
.request-section .part-number {
  color: #0047AB !important;
}/* Existing styles */
body {
  background-color: #070B12;
  color: #F8FBFF;
}

/* Update "Read all reviews" button/text color */
a[href*="reviews"], 
.reviews-link, 
.badge-reviews, 
span.star-rating + span,
div:has(> span.fa-star) + div,
.star-rating-container a,
.star-rating-container span {
  color: #AB6400 !important;
}

/* Force color on "TEXT A PART REQUEST" button */
a[href*="text"], 
button:has-text("TEXT A PART REQUEST"), 
a:has-text("TEXT A PART REQUEST"), 
.btn-text-part, 
.text-part-btn,
a.btn[href*="text"],
a.button[href*="text"],
a.elementor-button:has-text("TEXT A PART REQUEST") {
  background-color: #0047AB !important;
  border-color: #0047AB !important;
  color: #FFFFFF !important;
}

.text-part-request, 
a.text-part-request, 
.elementor-button-text,
#text-a-part-request {
  color: #0047AB !important;
}/* Change "19 REVIEWS" text color to #AB6400 */
.site-header a[href*="reviews"], 
.site-header span,
span.star-rating + span,
a.reviews-link,
header .reviews,
.site-header .fa-star + span,
.site-header div > span,
.site-header a span {
  color: #AB6400 !important;
}

/* Change "TEXT A PART REQUEST" button color to #0047AB */
a[href*="text"], 
button:has-text("TEXT A PART REQUEST"), 
a:has-text("TEXT A PART REQUEST"), 
.btn-text-part, 
.text-part-btn,
a.btn[href*="text"],
a.button[href*="text"],
a.elementor-button:has-text("TEXT A PART REQUEST"),
a.text-part-request,
.elementor-element a.elementor-button {
  background-color: #0047AB !important;
  border-color: #0047AB !important;
  color: #FFFFFF !important;
}/* Change "Text a part request" button color */
.btn.act-textpart {
  background-color: #0047AB !important;
  border-color: #0047AB !important;
  color: #FFFFFF !important;
}





/* contact lead form (SP-B033) */
.lead-form { max-width: 620px; }
.lead-form textarea { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; font-size: .95rem; resize: vertical; }
.lead-form .lead-hp { position: absolute; left: -9999px; }
.lead-form .lead-note { color: var(--text-dim); font-size: .93rem; margin-top: 6px; }
.lead-form .lead-opt { color: var(--text-dim); opacity: .8; }
.lead-form .lead-send { cursor: pointer; border: none; }
.lead-form .lead-status { min-height: 1.4em; margin-top: 12px; font-size: .93rem; }
.lead-form textarea:focus-visible { outline: 2px solid var(--blue, #4a8dff); outline-offset: 2px; }
