:root { --ink:#121212; --canvas:#F2F1EC; --lime:#C4F000; --sky:#52C3E6; --cobalt:#2B52E1; --safety:#F0821D; --muted:#4a4a4a;
  /* Accent roles: --accent fills (ink text), --line draws on dark, --section is the big growth card.
     Lime is kept only for steps 01-03 and the progress bar. */
  --accent: var(--sky); --on-accent: var(--ink); --line: var(--sky); --line-rgb: 82,195,230; --section: var(--sky); }
*, *::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(--accent); color: var(--on-accent); padding: .15rem .5rem; }
h2.display, #how-h { 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(--line); padding-left: 1rem; }
.dark .pull { border-color: var(--line); }

.btn {
  display: inline-block; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  background: var(--accent); color: var(--on-accent); padding: .9rem 1.4rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .03em; text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease, translate 320ms cubic-bezier(.2,.9,.3,1.3);
}
.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(--line); border-color: var(--line); }
a:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.dark a:focus-visible { outline-color: var(--line); }
.skip { position: fixed; left: -9999px; top: 0; z-index: 100; background: var(--accent); color: var(--on-accent); padding: .75rem 1.25rem; font-weight: 700; border: 2px solid var(--ink); }
.skip:focus { left: .5rem; top: .5rem; }
::selection { background: var(--accent); color: var(--on-accent); }

/* 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 img { width: 2.5rem; height: 2.5rem; }
.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 .wrap { padding: .85rem 1.25rem .15rem; row-gap: .4rem; }
  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: start; }
@media (min-width: 960px) { .hero-band { grid-template-columns: auto minmax(0, 34rem); justify-content: start; column-gap: 3.5rem; } }
.hero .display { 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 .display mark {
  display: inline-block; line-height: .88; padding: .1em .1em 0; margin-top: .08em;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 0 / 100% 100%; color: var(--on-accent);
}
.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; overflow-wrap: anywhere; }

/* 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(--section); }
.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(--line); background: var(--ink); color: var(--canvas); }
.s-web .more { color: var(--line); }
.s-web a:focus-visible { outline-color: var(--line); }
.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(--line); }
.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(--accent); color: var(--on-accent); }

/* 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(--line); }

/* 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(--line); }
.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(--line);
  transition: box-shadow 200ms ease, transform 200ms ease; }
.person:hover .photo { transform: translate(-2px,-2px); box-shadow: 8px 8px 0 var(--line); }
.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; border: 2px solid var(--ink); }   /* square crops framed on each face: img/*-sq.webp */
.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 .display { 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 .display mark { animation: sweep 500ms 350ms cubic-bezier(.6,0,.2,1) both; }
  .hero .display 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; }
.holo-center { margin: 3rem auto 0; }
.holo-center .in { justify-items: center; text-align: center; }
.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; } }

/* From the motion bank (brandwest-motion-demo.pages.dev): 21 animated beam, 28 dot field, 30 magnetic buttons */
.beam { display: block; width: 100%; max-width: 20rem; margin: .5rem 0 .25rem; }
.beam .rails path { fill: none; stroke: var(--ink); stroke-width: 2; opacity: .25; }
.beam .pulses path { fill: none; stroke: var(--cobalt); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 16 84; animation: beam 3s linear infinite; }
.beam .pulses path:nth-child(2) { animation-delay: -1s; } .beam .pulses path:nth-child(3) { animation-delay: -2s; }
@keyframes beam { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.beam rect { fill: #fff; stroke: var(--ink); stroke-width: 2; }
.beam text { font: 700 11px 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: .06em; text-anchor: middle; fill: var(--ink); }
.contact { position: relative; isolation: isolate; }
#cvDots { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
@media (prefers-reduced-motion: reduce) {
  .beam .pulses path { animation: none; stroke-dasharray: none; opacity: .35; }
}

/* ---------- Ported from MIT component libraries (notices in /licences.txt) ---------- */
/* Scroll Progress (Magic UI, Motion Primitives): the five step colours fill as you read */
.scrollbar { position: fixed; left: 0; right: 0; top: 0; height: 4px; z-index: 60; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, #C4F000, #8FE35C, #5AD6A6, #52C3E6, #8FA9FF); pointer-events: none; }

/* Text Effect (Motion Primitives, preset fade-in-blur, per word) */
.te .tw { display: inline-block; opacity: 0; filter: blur(12px); transform: translateY(20px);
  transition: opacity .5s ease, filter .5s ease, transform .5s ease; transition-delay: calc(var(--i) * 50ms); }
.te.in .tw { opacity: 1; filter: blur(0); transform: none; }

/* Border Beam (Magic UI) on the flagship card */
.s-growth { position: relative; }
.bbeam { position: absolute; inset: -4px; pointer-events: none; overflow: hidden; border: 6px solid transparent;
  -webkit-mask: linear-gradient(transparent, transparent) padding-box, linear-gradient(#000, #000) border-box; -webkit-mask-composite: source-in;
  mask: linear-gradient(transparent, transparent) padding-box, linear-gradient(#000, #000) border-box; mask-composite: intersect; }
.bbeam i { position: absolute; width: 180px; aspect-ratio: 1; background: linear-gradient(to left, #fff, var(--cobalt) 35%, transparent);
  offset-path: rect(0 auto auto 0 round 180px); animation: bbeam 7s linear infinite; }
@keyframes bbeam { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@supports not (offset-path: rect(0 auto auto 0)) { .bbeam { display: none; } }

/* Orbiting Circles (Magic UI) beside the Services heading */
.has-orbit .wrap { position: relative; }
.orbit { display: none; }
@media (min-width: 980px) {
  .orbit { display: block; position: absolute; right: 1rem; top: 50%; width: 360px; height: 360px; margin-top: -180px; }
  .has-orbit .wrap { min-height: 380px; display: flex; flex-direction: column; justify-content: center; }
  .has-orbit .wrap > :not(.orbit) { max-width: calc(100% - 400px); }
  .orbit .core { position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px; }
  .ring { position: absolute; inset: 0; }
  .ring::before { content: ''; position: absolute; left: 50%; top: 50%; width: calc(var(--radius) * 2px); height: calc(var(--radius) * 2px);
    margin: calc(var(--radius) * -1px) 0 0 calc(var(--radius) * -1px); border: 2px dashed rgba(18,18,18,.2); border-radius: 50%; }
  .ring span { position: absolute; left: 50%; top: 50%; translate: -50% -50%; white-space: nowrap; padding: .35rem .7rem; border: 2px solid var(--ink); background: var(--canvas);
    box-shadow: 3px 3px 0 var(--ink); font: 700 .72rem/1 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: .06em;
    animation: orbit calc(var(--duration) * 1s) linear infinite; }
  .r1 span { background: var(--accent); }
  .rev span { animation-direction: reverse; }
}
@keyframes orbit {
  from { transform: rotate(calc(var(--angle) * 1deg)) translateY(calc(var(--radius) * 1px)) rotate(calc(var(--angle) * -1deg)); }
  to { transform: rotate(calc(var(--angle) * 1deg + 360deg)) translateY(calc(var(--radius) * 1px)) rotate(calc(var(--angle) * -1deg - 360deg)); }
}

/* Animated List (Magic UI) in the integration section */
.alist-wrap { margin-bottom: 2rem; }
.alist { display: grid; gap: .75rem; margin-top: .75rem; min-height: 22rem; align-content: start; }
.alist li { display: grid; gap: .15rem; padding: .85rem 1rem; background: var(--canvas); color: var(--ink); border: 2px solid var(--line); box-shadow: 4px 4px 0 var(--line); }
.alist li b { font-weight: 700; }
.alist li span { font: 500 .8rem 'JetBrains Mono', monospace; color: #2f4a00; }
.alist li span::before { content: '→ '; }
.alist.live li { transform-origin: 50% 0; animation: pop .55s cubic-bezier(.34, 1.4, .64, 1) both; }
@keyframes pop { from { opacity: 0; transform: scale(.6); } }

/* Terminal (Magic UI) on the ship gate card */
.term { background: #111214; border-bottom: 2px solid var(--ink); aspect-ratio: 16 / 10; overflow: hidden; }
.term-top { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid #2a2c31; }
.term-top i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; } .term-top i + i { background: #febc2e; } .term-top i + i + i { background: #28c840; }
.term pre { margin: 0; padding: 12px 14px; font: 500 clamp(.62rem, 1.3vw, .78rem)/1.55 'JetBrains Mono', monospace; color: #e6e7ea; white-space: pre-wrap; }
.term .ok { color: #7ee08a; } .term .no { color: #ff7a7a; } .term .res { color: var(--line); font-weight: 700; }
.term.typing .ln { opacity: 0; } .term .ln.on { opacity: 1; transition: opacity .3s; }
.term .cmd { color: #9cc2ff; }
.term.typing .cmd::after { content: '▌'; color: var(--line); }

/* Tilt (Motion Primitives) on the work screenshots */
.work .card img { transition: transform .35s cubic-bezier(.2,.8,.2,1); will-change: transform; }

/* Returns Calculator pattern (Watermelon UI): what manual admin costs */
.calc-grid { display: grid; gap: 2rem 3rem; align-items: center; }
@media (min-width: 900px) { .calc-grid { grid-template-columns: 1fr 1fr; } }
.calc-sec .fine { margin-top: 1rem; font-size: .9rem; color: var(--muted); }
.calc { --o: 8px; padding: 1.75rem; display: grid; gap: 1.5rem; background: #fff; }
.calc-top { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.donut { width: 9rem; height: 9rem; transform: rotate(-90deg); flex: none; }
.donut circle { fill: none; stroke-width: 20; }
.donut .rest { stroke: #e7e6e0; }
.donut .used { stroke: var(--ink); stroke-linecap: round; transition: stroke-dasharray .4s cubic-bezier(.2,.8,.2,1); }
.calc-out { display: grid; gap: .6rem; margin: 0; }
.calc-out dt { font: 700 .72rem 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.calc-out dd { margin: 0; font: 400 clamp(2rem, 4vw, 2.75rem)/1 'Bebas Neue', Impact, sans-serif; font-variant-numeric: tabular-nums; }
.calc-out #cYear { font-size: clamp(2.75rem, 6vw, 3.75rem); background: var(--accent); padding: 0 .15em; display: inline-block; }
.sl { display: grid; gap: .5rem; font-weight: 500; }
.sl > span:first-child { display: flex; justify-content: space-between; gap: 1rem; }
.sl b { font: 700 1rem 'JetBrains Mono', monospace; }
.track2 { position: relative; height: 2.75rem; border: 2px solid var(--ink); background: var(--canvas); }
.track2 .fill { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 20%); background: var(--accent); border-right: 2px solid var(--ink); }
.track2 input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.track2:has(input:focus-visible) { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.calc .btn { justify-self: start; }

@media (prefers-reduced-motion: reduce) {
  .bbeam { display: none; }
  .ring span { animation: none; transform: rotate(calc(var(--angle) * 1deg)) translateY(calc(var(--radius) * 1px)) rotate(calc(var(--angle) * -1deg)); }
  .alist.live li { animation: none; }
}

/* Work we've delivered: one compact strip, kinds of work + five counted figures (sources in the draft's memory notes) */
.proof { padding: 1.75rem 0 2rem; }
.proof-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.proof-head .alt { font-weight: 700; }
.kinds { margin-top: .6rem; max-width: 52rem; opacity: .9; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem 1.5rem; margin-top: 1.1rem; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(5, auto); justify-content: space-between; } }
.stats li { display: flex; align-items: baseline; gap: .5rem; border-top: 3px solid var(--line); padding-top: .4rem; }
.stats b { font: 400 clamp(2rem, 3.6vw, 2.75rem)/1 'Bebas Neue', Impact, sans-serif; color: var(--line); }
.stats span { font: 700 .72rem/1.2 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: .08em; max-width: 9rem; }

/* Systems connect banner (title lab 05): our offers link up as a network, then gather into the letters. Flows straight into How we work */
.sysbanner { position: relative; display: grid; place-items: center; min-height: clamp(11rem, 30vh, 19rem); padding: 1.5rem 1rem .5rem; border-bottom: 0; overflow: hidden; }
.sysbanner + section { padding-top: .75rem; }
#cvSys { position: absolute; inset: 0; width: 100%; height: 100%; }
.sys-wm { font-size: clamp(4.5rem, 15vw, 13rem); line-height: .85; letter-spacing: .005em; white-space: nowrap; color: var(--canvas); opacity: 0; transition: opacity .6s; position: relative; }
.sysbanner.lit .sys-wm { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .sys-wm { opacity: 1; } }

/* Work page: featured projects get width, the rest sit in a compact grid */
.work.feat { grid-template-columns: 1fr; }
.feat .card h3 { font-size: clamp(2rem, 3.2vw, 2.6rem); }
.feat .card > div { display: flex; flex-direction: column; gap: .5rem; }
@media (min-width: 900px) {
  .feat .card:has(> img) { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
  .feat .card > img { margin-bottom: 0; }
  .feat .card > div { max-width: 46rem; }
}
.result { border-left: 4px solid var(--accent); padding-left: .75rem; font-weight: 700; }
.work.mini { grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 1.25rem; }
.mini .card { padding: 1.1rem; gap: .35rem; }
.mini .card h3 { font-size: 1.5rem; }
.mini .card img { margin-bottom: .25rem; }
.tools-h { margin-top: 2.25rem; }
.tools { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.tools li { font: 700 .75rem 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: .06em; border: 2px solid var(--ink); padding: .3rem .6rem; background: #fff; color: var(--ink); }

/* About intro: full-width headline, text in two columns on wide screens */
.about-hero h1.display { max-width: none; text-wrap: balance; }
.about-intro { display: grid; gap: 1.5rem 4rem; margin-top: 1.5rem; }
.about-intro .prose, .about-intro .lede, .about-intro .pull { max-width: none; }
@media (min-width: 900px) { .about-intro { grid-template-columns: 1fr 1fr; align-items: start; } .about-intro > .prose { margin-top: 0; } }
.reach { display: grid; gap: 1rem; margin-top: 1.25rem; max-width: 60rem; }
@media (min-width: 760px) { .reach { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.reach dt { margin-bottom: .35rem; }
.reach dd { margin: 0; }
