:root { --ink:#121212; --canvas:#F2F1EC; --lime:#C4F000; --cobalt:#2B52E1; --safety:#F0821D; --muted:#4a4a4a; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font: 400 1.0625rem/1.55 'Space Grotesk', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before {
  content: ''; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.22'/%3E%3C/svg%3E");
}
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.display { font-family: 'Bebas Neue', Impact, sans-serif; font-weight: 400; letter-spacing: .01em; line-height: .9; text-transform: uppercase; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .wrap { padding: 0 1.5rem; } }
section { border-bottom: 2px solid var(--ink); padding: 4rem 0; }
@media (min-width: 640px) { section { padding: 5.5rem 0; } }
.dark { background: var(--ink); color: var(--canvas); }
.brut { --o: 4px; --lift: 0px; --sc: var(--ink); border: 2px solid var(--ink); box-shadow: calc(var(--o) + var(--lift)) calc(var(--o) + var(--lift)) 0 var(--sc); background: var(--canvas); color: var(--ink); }
.tag { display: inline-block; border: 2px solid var(--ink); background: var(--lime); color: var(--ink); padding: .15rem .5rem; }
h2.display { font-size: clamp(2.5rem, 7vw, 4.5rem); margin-top: .75rem; }
.lede { max-width: 40rem; margin-top: 1rem; font-size: 1.125rem; }
.prose { max-width: 42rem; }
.prose p + p { margin-top: 1rem; }
.pull { margin-top: 1.5rem; font-size: 1.35rem; font-weight: 700; max-width: 36rem; border-left: 6px solid var(--lime); padding-left: 1rem; }
.dark .pull { border-color: var(--lime); }

.btn {
  display: inline-block; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  background: var(--lime); color: var(--ink); padding: .9rem 1.4rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .03em; text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.btn:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ink); }
.dark .btn { box-shadow: 4px 4px 0 var(--lime); border-color: var(--lime); }
a:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.dark a:focus-visible { outline-color: var(--lime); }
.skip { position: fixed; left: -9999px; top: 0; z-index: 100; background: var(--lime); padding: .75rem 1.25rem; font-weight: 700; border: 2px solid var(--ink); }
.skip:focus { left: .5rem; top: .5rem; }
::selection { background: var(--lime); color: var(--ink); }

/* Header */
header { position: sticky; top: 0; z-index: 50; border-bottom: 2px solid var(--ink); background: rgba(242,241,236,.97); }
header .wrap { display: flex; align-items: center; gap: .75rem; min-height: 4rem; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.logo b { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; background: var(--ink); color: var(--lime); border: 2px solid var(--ink); font: 700 .8rem 'JetBrains Mono', monospace; box-shadow: 2px 2px 0 var(--ink); }
.logo span { font-size: 1.5rem; }
header nav { margin-left: auto; display: flex; align-items: center; gap: .25rem; }
header nav a.link { padding: .5rem .6rem; font-size: .9rem; font-weight: 500; text-decoration: none; }
header nav a.link:hover, header nav a[aria-current] { background: var(--ink); color: var(--canvas); }
header .btn { padding: .5rem .9rem; font-size: .8rem; }
@media (max-width: 699px) {
  header nav { order: 3; width: 100%; margin: 0 0 .5rem; justify-content: space-between; }
  header nav .btn { display: none; }
}

/* Hero */
.hero { padding: 2rem 0 2.5rem; }
@media (min-width: 640px) { .hero { padding: 3rem 0; } }
/* Compact band: headline left, intro and CTA right on desktop. */
.hero-band { display: grid; gap: 1.5rem 3rem; align-items: end; }
@media (min-width: 960px) { .hero-band { grid-template-columns: auto minmax(0, 34rem); justify-content: start; column-gap: 3.5rem; } }
.hero h1 { font-size: clamp(2.75rem, 6.5vw, 5.25rem); line-height: 1; max-width: 16ch; }
.hero .lede { margin-top: 0; font-weight: 500; }
.hero-sub { margin-top: .75rem; max-width: 40rem; }
.hero .cta-row { margin-top: 1.5rem; }
/* inline-block gives the highlight a box sized by line-height, which renders
   the same in every browser; an inline background follows the font's content
   area, which Firefox and Chromium draw at different heights. */
.hero h1 mark {
  display: inline-block; line-height: .88; padding: .1em .1em 0; margin-top: .08em;
  background: linear-gradient(var(--lime), var(--lime)) no-repeat 0 0 / 100% 100%; color: var(--ink);
}
.page-hero h1 { font-size: clamp(2.75rem, 8vw, 5.5rem); margin-top: 1rem; max-width: 18ch; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2rem; }
.cta-row .alt { font-weight: 700; }

/* Generic card grid (services page, work page) */
.cards { display: grid; gap: 1.25rem; margin-top: 2.25rem; }
@media (min-width: 700px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { padding: 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.card h3 { font-size: 1.9rem; }
.card .more { margin-top: auto; padding-top: .5rem; font-weight: 700; }

/* Home services bento: 7 cells, 4+2 / 2+2+2 / 3+3 on desktop.
   Each cell gets one treatment so no two read the same. */
.bento { display: grid; gap: 1.25rem; margin-top: 2.25rem; }
@media (min-width: 700px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento .s-growth { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .bento .s-growth { grid-column: span 4; }
  .bento .s-mkt, .bento .s-web, .bento .s-int, .bento .s-mod { grid-column: span 2; }
  .bento .s-data, .bento .s-ai { grid-column: span 3; }
}
.bento .card { padding: 1.75rem; }
.s-growth { --o: 8px; background: var(--lime); }
.s-growth h3 { font-size: clamp(2.25rem, 4vw, 3.25rem); }
.s-growth p { max-width: 36rem; font-size: 1.1rem; }
.s-growth .ticks { margin-top: .75rem; font-weight: 500; }
.s-web { --sc: var(--lime); background: var(--ink); color: var(--canvas); }
.s-web .more { color: var(--lime); }
.s-web a:focus-visible { outline-color: var(--lime); }
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: .5rem 0 .25rem; }
.chain span { font: 700 .72rem 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: .06em; border: 2px solid var(--ink); padding: .2rem .45rem; background: #fff; }
.chain i { font-style: normal; font-weight: 700; }
.s-mod { border-left-width: 10px; border-left-color: var(--cobalt); }
.s-data .ask { font: 400 clamp(1.75rem, 3vw, 2.4rem)/1 'Bebas Neue', Impact, sans-serif; text-transform: uppercase; border-top: 2px solid var(--ink); padding-top: .75rem; margin-top: .5rem; }
.s-ai { --o: 0px; border-style: dashed; background: transparent; }
.s-ai .pull { font-size: 1.1rem; margin-top: .5rem; }

/* Service detail blocks (services page) */
.service { display: grid; gap: 1.5rem 3rem; }
@media (min-width: 900px) { .service { grid-template-columns: 1.1fr 1fr; } }
.service h3 { font-size: 1.1rem; font-weight: 700; margin-top: 1.5rem; }
.ticks { display: grid; gap: .35rem; margin-top: .75rem; }
@media (min-width: 560px) { .ticks { grid-template-columns: 1fr 1fr; } }
.ticks li { padding-left: 1.5rem; position: relative; }
.ticks li::before { content: '■'; position: absolute; left: 0; color: var(--ink); font-size: .7rem; top: .35rem; }
.dark .ticks li::before { color: var(--lime); }
.aside { padding: 1.5rem; align-self: start; }
.questions { display: grid; gap: .75rem; margin-top: 1rem; }
.questions li { padding: .9rem 1rem; font-weight: 500; }

/* Jump nav on services */
.jump { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.jump a { text-decoration: none; padding: .35rem .7rem; border: 2px solid var(--ink); font-weight: 500; font-size: .9rem; }
.jump a:hover { background: var(--lime); }

/* Process */
.steps { display: grid; gap: 1.25rem; margin-top: 2rem; counter-reset: s; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.steps li { counter-increment: s; padding-top: calc(.75rem + 4px); background: linear-gradient(var(--step), var(--step)) no-repeat 0 0 / 100% 4px; }
.steps li::before { content: '0' counter(s); display: block; font: 400 2.5rem/1 'Bebas Neue', Impact, sans-serif; color: var(--step); }
/* One hue step per stage: lime through to a light cobalt, all AA on ink. */
.steps li:nth-child(1) { --step: #C4F000; }
.steps li:nth-child(2) { --step: #8FE35C; }
.steps li:nth-child(3) { --step: #5AD6A6; }
.steps li:nth-child(4) { --step: #52C3E6; }
.steps li:nth-child(5) { --step: #8FA9FF; }
.steps h3 { font-size: 1.75rem; margin: .25rem 0 .4rem; }

/* Connections */
.links { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 700px) { .links { grid-template-columns: 1fr 1fr; } }
.links li { padding: 1.1rem 1.25rem; font-size: 1.1rem; font-weight: 500; }
.links li:nth-child(odd) { transform: rotate(-.5deg); }
.links li:nth-child(even) { transform: rotate(.4deg); }

/* Problem questions CTA */
.pains { display: grid; gap: .6rem 1.5rem; margin-top: 2rem; }
@media (min-width: 700px) { .pains { grid-template-columns: 1fr 1fr; } }
.pains li { font-size: 1.15rem; font-weight: 500; padding-left: 1.75rem; position: relative; }
.pains li::before { content: '?'; position: absolute; left: 0; font-weight: 700; color: var(--lime); }

/* Work */
.work { display: grid; gap: 1.5rem; margin-top: 2.25rem; }
@media (min-width: 760px) { .work { grid-template-columns: 1fr 1fr; } }
.work .card img { border: 2px solid var(--ink); margin-bottom: .5rem; aspect-ratio: 16/10; object-fit: cover; object-position: top; width: 100%; }
.sector { color: var(--muted); font-family: 'JetBrains Mono', monospace; font-size: .8rem; }
.tag.client { background: var(--canvas); }
.tag.own { background: var(--ink); color: var(--lime); }
.fine { margin-top: 1.5rem; font-size: .9rem; color: var(--muted); }
.dark .fine { color: #c9c8c2; }

/* Team */
.person { display: grid; gap: 1.5rem 3rem; padding: 1.5rem; }
@media (min-width: 900px) { .person { grid-template-columns: 12rem 1fr 1fr; } }
.person + .person { margin-top: 2rem; }
.photo { aspect-ratio: 4/5; width: 100%; max-width: 12rem; object-fit: cover; border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--lime);
  filter: grayscale(1) contrast(1.05); transition: filter 400ms ease, box-shadow 200ms ease, transform 200ms ease; }
.person:hover .photo { filter: none; transform: translate(-2px,-2px); box-shadow: 8px 8px 0 var(--lime); }
.person h2 { font-size: clamp(2.25rem, 5vw, 3.25rem); }
.person .role { margin-top: .5rem; }
.person .prose { margin-top: 1rem; }

/* Contact + footer */
.contact h2.display { font-size: clamp(3rem, 9vw, 6.5rem); }
footer { padding: 2.5rem 0; font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; }
footer ul { display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* Motion. Everything here is off under prefers-reduced-motion (see top). */
.duo { display: inline-flex; }
.duo img { width: 3rem; height: 3rem; object-fit: cover; object-position: top; border: 2px solid var(--ink); }
.duo img + img { margin-left: -.75rem; }
.arr { display: inline-block; transition: transform 200ms ease; }
.more:hover .arr { transform: translateX(4px); }
.bento .card, .cards .card, .work .card { transition: transform 200ms ease, box-shadow 200ms ease; }
.bento .card:hover, .cards .card:hover, .work .card:hover { --lift: 3px; transform: translate(-3px, -3px); }
.s-ai:hover { --lift: 0px; transform: none; }

@media (prefers-reduced-motion: no-preference) {
  /* Hero: headline rises, then the highlight sweeps across each marked word.
     Starts at .15 opacity, never 0, so the headline still counts as painted. */
  .hero h1 { animation: rise 600ms cubic-bezier(.2,.7,.2,1) both; }
  .hero-band > div, .page-hero > .wrap > :not(h1) { animation: rise 600ms 150ms cubic-bezier(.2,.7,.2,1) both; }
  .hero h1 mark { animation: sweep 500ms 350ms cubic-bezier(.6,0,.2,1) both; }
  .hero h1 mark + mark { animation-delay: 550ms; }
}
@keyframes rise { from { opacity: .15; translate: 0 .4em; } }
@keyframes sweep { from { background-size: 0% 100%; } }

/* Scroll reveals only where the browser can drive them from scroll; elsewhere
   content is simply visible. `translate` is used, not `transform`, so it does
   not fight the hover transforms above. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .bento > li, .links > li, .cards > *, .work > *, .person {
      animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 35%;
    }
    .steps li { animation: draw linear both; animation-timeline: view(); animation-range: entry 20% cover 35%; }
  }
}
@keyframes reveal { from { opacity: 0; translate: 0 1.5rem; } }
@keyframes draw { from { background-size: 0% 4px; } }

/* Motion ported from brandwest-motion-demo: 01 particles, 03 holographic, 05 wireframe, 18 blueprint (motion.js) */
.particles { display: block; width: 100%; height: clamp(5.5rem, 17vw, 11rem); margin-bottom: 1.5rem; touch-action: pan-y; }
.how-top { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .how-top { grid-template-columns: minmax(0, 42rem) 1fr; } .how-top .wire { height: 16rem; } }
.wire { display: block; width: 100%; height: clamp(14rem, 40vw, 22rem); }
.holo { --mx: 50%; --my: 50%; --r: 0deg; margin-top: 2rem; max-width: 34rem; padding: 3px;
  background: conic-gradient(from var(--r) at var(--mx) var(--my), var(--cobalt), #16245e, var(--ink), #16245e, var(--cobalt));
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .2s; }
.holo .in { position: relative; overflow: hidden; background: var(--ink); padding: 1.75rem 1.5rem; display: grid; gap: 1.25rem; justify-items: start; }
.holo .in::after { content: ''; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: color-dodge; opacity: .3;
  background: linear-gradient(115deg, transparent 20%, rgba(22,36,94,.6) 38%, rgba(43,82,225,.6) 50%, rgba(22,36,94,.6) 62%, transparent 80%);
  background-size: 250% 250%; background-position: var(--mx) var(--my); }
.holo .alt { font-weight: 700; }
.blueprint { background-color: #1d3fb8;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.2) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px);
  background-size: 20px 20px, 20px 20px, 100px 100px, 100px 100px; }
#bpSvg { display: block; width: 100%; max-width: 30rem; margin-top: 2rem; }
#bpSvg text { font: 500 15px 'JetBrains Mono', monospace; fill: #fff; text-anchor: middle; }
#bpSvg .bx, #bpSvg .ln { fill: none; stroke: #fff; stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s cubic-bezier(.6,0,.2,1); }
#bpSvg .bx { fill: rgba(29,63,184,.6); }
#bpSvg text { opacity: 0; transition: opacity .4s .9s; }
#bpSvg .ln { transition-delay: .7s; }
#bpSvg.drawn .bx, #bpSvg.drawn .ln { stroke-dashoffset: 0; }
#bpSvg.drawn text { opacity: 1; }
@media (prefers-reduced-motion: reduce) { #bpSvg .bx, #bpSvg .ln { stroke-dashoffset: 0; } #bpSvg text { opacity: 1; } .holo { transform: none; } }
