:root {
  /* ---- Accent: neutral gray. No neon, no yellow, no cool hues ----
     Variable names kept from the earlier palette so every component
     keeps working. The values are warm neutrals now. */
  --neon:      #DADADA;   /* bone. Button fills, highlights, accent rows */
  --neon-hot:  #EBEBEB;   /* lighter bone, hover */
  --neon-deep: #A6A6A6;   /* deeper bone, pressed and shadow side */
  --neon-ink:  #414141;   /* darkest warm tone, mesh depth */

  /* ---- Neutral grays ---- */
  --black:   #0B0B0B;   /* warm black */
  --ink-1:   #151515;
  --ink-2:   #212121;
  --ink-3:   #313131;
  --ink-4:   #474747;

  --white:   #FFFFFF;
  --paper:   #F6F6F6;   /* warm paper */
  --paper-2: #EBEBEB;
  --paper-3: #DDDDDD;
  --line-w:  #D5D5D5;
  --clay:    #838383;   /* warm mid grey, secondary text on light */
  --sand:    #AFAFAF;   /* secondary text on dark */

  /* ---- Semantic ---- */
  --bg: var(--white);
  --fg: var(--black);
  --fg-muted: #636363;
  --line: var(--line-w);
  --surface: var(--paper);
  --accent: var(--neon);
  --on-accent: var(--black);

  /* ---- Type ---- */
  --font-sans: "Rotina", "Satoshi", "Geist", "Helvetica Neue", Arial, sans-serif;
  --fs-display: clamp(2.75rem, 4.8vw, 5.25rem);
  --fs-mega:    clamp(3rem, 6.4vw, 7rem);
  --fs-h2:      clamp(2.1rem, 3.2vw + .4rem, 3.75rem);
  --fs-h3:      clamp(1.3rem, 1.1vw + .8rem, 1.7rem);
  --fs-stat:    clamp(3.25rem, 5.6vw, 5.5rem);
  --fs-lead:    clamp(1.0625rem, .5vw + .9rem, 1.28rem);
  --fs-body:    1rem;
  --fs-small:   0.9375rem;
  --lh-tight: 1.0; --lh-head: 1.06; --lh-body: 1.62;
  --tracking-display: -0.042em; --tracking-head: -0.03em;
  --tracking-micro: 0.1em;

  /* ---- Space ---- */
  --s-1: .5rem; --s-2: 1rem; --s-3: 1.5rem; --s-4: 2rem;
  --s-5: 3rem; --s-6: 4rem; --s-7: 6rem; --s-8: 8rem;
  --section-y: clamp(7.5rem, 12vw, 13rem);
  --rail-stick: 88px;   /* clears the floating nav pill */
  --container: 1240px;
  --gutter: clamp(1.25rem, 3vw, 2.5rem);

  /* ---- Radii ---- */
  --r-pill: 999px; --r-card: 26px; --r-tile: 14px; --r-media: 18px; --r-ui: 10px;

  /* ---- Grain ---- */
  --grain-opacity: .26;
  --grain-fine-opacity: .14;
  --grain-size: 180px;
  --grain-url: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.5' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='2.2' intercept='-0.5'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-fine-url: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.6' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");

  /* ---- Motion ---- */
  --shadow-sm: 0 1px 2px rgba(11,11,11,.05), 0 2px 6px -2px rgba(11,11,11,.06);
  --shadow-md: 0 2px 4px rgba(11,11,11,.04), 0 8px 20px -6px rgba(11,11,11,.1), 0 18px 44px -20px rgba(11,11,11,.14);
  --shadow-lg: 0 2px 6px rgba(11,11,11,.05), 0 16px 40px -12px rgba(11,11,11,.16), 0 40px 90px -36px rgba(11,11,11,.28);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --t-press: 120ms; --t-hover: 320ms; --t-panel: 420ms;
}

.is-dark { --bg: var(--black); --fg: var(--white); --fg-muted: var(--sand);
           --line: var(--ink-3); --surface: var(--ink-1); background: var(--bg); color: var(--fg); }
.is-paper { --bg: var(--paper); --fg: var(--black); --fg-muted: #636363;
            --line: var(--line-w); --surface: var(--white); background: var(--bg); color: var(--fg); }
.is-neon { --bg: var(--neon); --fg: var(--black); --fg-muted: #414141;
           --line: rgba(0,0,0,.2); --surface: var(--neon-hot); background: var(--bg); color: var(--fg); }

/* ============ Grainy mesh gradient ============ */
.grain-field { position: relative; isolation: isolate;
               overflow: hidden;   /* fallback */
               overflow: clip; }   /* clips the mesh without becoming a scroll container, so sticky works */
.grain-field:not(.is-dark):not(.is-neon):not(.is-paper) { background: var(--black); }
.grain-field::before {
  content: ""; position: absolute; inset: -45%; z-index: -2; background: var(--mesh);
  filter: blur(var(--mesh-blur, 72px)) saturate(var(--mesh-sat, 1.2)) contrast(var(--mesh-contrast, 1.15));
  transform: rotate(var(--mesh-rot, -8deg)) skewY(var(--mesh-skew, -6deg)) scale(1.15);
}
.grain-field::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grain-url); background-size: var(--grain-size) var(--grain-size);
  mix-blend-mode: var(--grain-blend, overlay); opacity: var(--grain-opacity);
}
.grain-field > .grain-fine {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grain-fine-url); background-size: 120px;
  mix-blend-mode: soft-light; opacity: var(--grain-fine-opacity);
}

.grain-field--hero {
  --mesh:
    linear-gradient(100deg, rgba(11,11,11,.97) 0%, rgba(11,11,11,.94) 28%, rgba(11,11,11,.55) 44%, rgba(11,11,11,0) 60%),
    conic-gradient(from 212deg at 76% 30%, rgba(218,218,218,.92) 0deg, rgba(218,218,218,0) 116deg, rgba(166,166,166,.7) 212deg, rgba(218,218,218,0) 330deg),
    radial-gradient(52% 26% at 90% 14%, rgba(246,246,246,.9), rgba(246,246,246,0) 68%),
    radial-gradient(34% 58% at 72% 88%, rgba(131,131,131,.85), rgba(131,131,131,0) 72%),
    radial-gradient(54% 22% at 62% 62%, rgba(65,65,65,.95), rgba(65,65,65,0) 75%),
    radial-gradient(26% 44% at 58% 20%, rgba(235,235,235,.5), rgba(235,235,235,0) 70%),
    var(--black);
  --mesh-blur: 70px; --mesh-rot: -11deg; --mesh-skew: -7deg; --mesh-sat: 1; --mesh-contrast: 1.25;
}
.grain-field--ink {
  --mesh:
    linear-gradient(80deg, rgba(11,11,11,.95) 0%, rgba(11,11,11,.8) 32%, rgba(11,11,11,.25) 55%, rgba(11,11,11,0) 80%),
    conic-gradient(from 130deg at 34% 72%, rgba(218,218,218,.55) 0deg, rgba(218,218,218,0) 92deg, rgba(71,71,71,.95) 200deg, rgba(218,218,218,0) 312deg),
    radial-gradient(56% 20% at 82% 26%, rgba(166,166,166,.45), rgba(166,166,166,0) 72%),
    radial-gradient(30% 52% at 8% 10%, rgba(175,175,175,.3), rgba(175,175,175,0) 70%),
    var(--black);
  --mesh-blur: 82px; --mesh-rot: -17deg; --mesh-skew: 8deg;
}
.grain-field--cta {
  --mesh:
    linear-gradient(100deg, rgba(218,218,218,.85) 0%, rgba(218,218,218,.45) 42%, rgba(218,218,218,0) 68%),
    conic-gradient(from 40deg at 22% 34%, rgba(246,246,246,.95) 0deg, rgba(246,246,246,0) 96deg, rgba(166,166,166,.9) 190deg, rgba(246,246,246,0) 300deg),
    radial-gradient(58% 24% at 84% 78%, rgba(143,143,143,.9), rgba(143,143,143,0) 70%),
    radial-gradient(28% 50% at 62% 6%, rgba(235,235,235,.95), rgba(235,235,235,0) 72%),
    radial-gradient(44% 30% at 10% 92%, rgba(255,255,255,.65), rgba(255,255,255,0) 68%),
    var(--neon);
  --mesh-blur: 88px; --mesh-rot: 14deg; --mesh-skew: 5deg;
  --grain-opacity: .3; --grain-blend: soft-light; --grain-fine-opacity: .16;
}
.grain-field--paper {
  --mesh:
    conic-gradient(from 300deg at 78% 18%, rgba(218,218,218,.8) 0deg, rgba(218,218,218,0) 104deg, rgba(175,175,175,.55) 206deg, rgba(218,218,218,0) 318deg),
    radial-gradient(50% 22% at 12% 88%, rgba(221,221,221,.95), rgba(221,221,221,0) 70%),
    radial-gradient(24% 46% at 48% 42%, rgba(235,235,235,.6), rgba(235,235,235,0) 72%),
    var(--paper);
  --mesh-blur: 64px; --mesh-rot: 7deg; --mesh-skew: -9deg;
  --grain-opacity: .18; --grain-blend: multiply; --grain-fine-opacity: .1;
}

.grain { position: relative; }
.grain::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background-image: var(--grain-url); background-size: 140px; mix-blend-mode: overlay; opacity: .28; }

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


/* ================= Base ================= */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-padding-top: 6.5rem; }
@media (prefers-reduced-motion: no-preference) { html:not(.lenis) { scroll-behavior: smooth; } }
/* Lenis takes over the scroll when it is active */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
body { font-family: var(--font-sans); font-size: var(--fs-body); line-height: var(--lh-body);
       color: var(--black); background: var(--white); -webkit-font-smoothing: antialiased;
       -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
       font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "ss01" 1; font-variant-numeric: tabular-nums lining-nums; }
::selection { background: var(--ink-1); color: var(--paper); }
.is-dark ::selection, .is-neon ::selection { background: var(--paper); color: var(--ink-1); }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; font-variant-numeric: lining-nums; }
.lead, p { font-variant-numeric: normal; }
p { margin: 0; }
button { font: inherit; color: inherit; }
.page { overflow-x: clip; width: 100%; }
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.lead { font-size: var(--fs-lead); color: var(--fg-muted); max-width: 46ch; }
.h2 { font-size: var(--fs-h2); line-height: var(--lh-head); letter-spacing: var(--tracking-head); max-width: 20ch; text-wrap: balance; }
.h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.015em; }
.muted { color: var(--fg-muted); }
.kicker { font-size: .75rem; font-weight: 500; letter-spacing: var(--tracking-micro);
          text-transform: uppercase; color: var(--fg-muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 1.5px solid var(--black); outline-offset: 3px; box-shadow: 0 0 0 4px rgba(11,11,11,.1); border-radius: 10px; }
.is-dark :focus-visible, .nav :focus-visible { outline-color: var(--paper); box-shadow: 0 0 0 4px rgba(255,255,255,.14); }

/* ================= Buttons ================= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
       min-height: 52px; padding: 0 1.7rem; border-radius: var(--r-pill); font-weight: 500; font-size: .9688rem;
       letter-spacing: -0.005em; line-height: 1; text-decoration: none; cursor: pointer; border: 1px solid transparent;
       will-change: transform;
       transition: background var(--t-hover) var(--ease-out), color var(--t-hover) var(--ease-out),
                   border-color var(--t-hover) var(--ease-out), box-shadow var(--t-hover) var(--ease-out),
                   transform var(--t-press) var(--ease-out); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn--primary { background: var(--paper); color: var(--black); box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.7); }
.btn--primary:hover { background: var(--white); box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,.9); }
.btn--ghost { background: transparent; color: var(--fg); border-color: rgba(255,255,255,.26); }
.btn--ghost:hover { background: var(--fg); color: var(--bg); }
.btn--ink { background: var(--black); color: var(--white); }
.btn--ink:hover { background: var(--ink-3); box-shadow: var(--shadow-md); }
.btn--ghost-ink { background: transparent; color: var(--black); border-color: rgba(11,11,11,.28); }
.btn--ghost-ink:hover { background: var(--black); color: var(--paper); border-color: var(--black); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.link { font-weight: 500; text-decoration: none; background-image: linear-gradient(currentColor, currentColor);
        background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%;
        padding-bottom: 2px; transition: background-size var(--t-hover) var(--ease-out); }
.link:hover { background-size: 100% 1px; }

/* ================= Nav: pill sized to its content ================= */
.navwrap { position: fixed; top: calc(14px + env(safe-area-inset-top, 0px)); left: 0; right: 0; z-index: 50;
           display: flex; justify-content: center; pointer-events: none; padding-inline: var(--gutter); }
.nav { pointer-events: auto; width: min(100%, var(--container)); color: var(--white);
       background: rgba(11,11,11,.62); backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6);
       border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-pill);
       box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 10px 30px -12px rgba(11,11,11,.6);
       display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
       padding: 5px 5px 5px 14px; }
.mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--paper); flex: none;
        box-shadow: inset 0 1px 0 rgba(255,255,255,.8); }
.mark svg { width: 20px; height: 20px; }
.nav__menu { display: flex; gap: .25rem; list-style: none; margin: 0 auto; padding: 0; font-size: .9375rem; }
.nav__menu a { display: block; padding: .4rem .7rem; border-radius: var(--r-pill); }
.nav__menu a { text-decoration: none; opacity: .66; letter-spacing: -.005em; transition: opacity var(--t-hover) var(--ease-out); }
.nav__menu a:hover, .nav__menu a[aria-current="true"] { opacity: 1; }
.nav .btn { min-height: 38px; padding: 0 1.05rem; font-size: .9063rem; }
.nav .mark { width: 38px; height: 38px; }
@media (max-width: 760px) { .nav__menu { display: none; } }

/* ================= 3D UI graphics ================= */
.stage { position: relative; perspective: 1500px; perspective-origin: 50% 40%; }
.rig { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d;
       transform: scale(calc(var(--k, 1) * var(--km, 1))) rotateX(var(--rx, 14deg)) rotateY(var(--ry, -26deg)) rotateZ(var(--rz, 0deg)); }
.rig--float { animation: float 14s var(--ease-in-out) infinite; }
@keyframes float {
  0%, 100% { transform: scale(calc(var(--k,1) * var(--km,1))) rotateX(var(--rx,14deg)) rotateY(var(--ry,-26deg)) translateY(0); }
  50%      { transform: scale(calc(var(--k,1) * var(--km,1))) rotateX(calc(var(--rx,14deg) + 2deg)) rotateY(calc(var(--ry,-26deg) + 4deg)) translateY(-10px); }
}

/* A pane is a real UI surface floating in 3D */
.pane { position: absolute; width: var(--w, 320px); left: calc(var(--w, 320px) / -2); top: calc(var(--h, 220px) / -2);
        height: var(--h, 220px); transform: translate3d(var(--x, 0px), var(--y, 0px), var(--z, 0px)) rotateZ(var(--rot, 0deg));
        border-radius: var(--r-ui); overflow: hidden; background: var(--white);
        border: 1px solid rgba(11,11,11,.1);
        box-shadow: 0 4px 10px -4px rgba(11,11,11,.22), 0 24px 50px -18px rgba(11,11,11,.42),
                    0 60px 110px -50px rgba(11,11,11,.5), 0 1px 0 rgba(255,255,255,.55) inset; }
.pane::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--grain-url); background-size: 140px; mix-blend-mode: overlay; opacity: .18; }
.pane--ink { background: var(--ink-1); border-color: rgba(255,255,255,.12); }
.pane--neon { background: var(--neon); border-color: rgba(11,11,11,.3); }
.pane--paper { background: var(--paper); }
.pane--glass { background: rgba(246,246,246,.16); backdrop-filter: blur(6px); border-color: rgba(255,255,255,.28); box-shadow: none; }

.ui { position: absolute; inset: 0; display: grid; }
.ui--app { grid-template-columns: 74px 1fr; }
.ui__side { background: var(--paper-2); border-right: 1px solid var(--line-w); padding: 10px 8px; display: grid; gap: 7px; align-content: start; }
.pane--ink .ui__side { background: var(--ink-2); border-right-color: var(--ink-3); }
.ui__bar { height: 8px; border-radius: 4px; background: var(--paper-3); }
.pane--ink .ui__bar { background: var(--ink-3); }
.ui__bar.is-on { background: var(--neon); }
.ui__bar.w6 { width: 60%; } .ui__bar.w8 { width: 80%; } .ui__bar.w4 { width: 40%; }
.ui__main { padding: 12px; display: grid; gap: 9px; align-content: start; }
.ui__top { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--paper-3); }
.pane--ink .dot { background: var(--ink-3); }
.dot.is-on { background: var(--neon); }
.ui__row { height: 11px; border-radius: 5px; background: var(--paper-2); }
.pane--ink .ui__row { background: var(--ink-2); }
.ui__row.tall { height: 34px; }
.ui__row.neon { background: var(--neon); }
.ui__row.half { width: 52%; } .ui__row.third { width: 34%; } .ui__row.most { width: 76%; }
.ui__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ui__cell { height: 46px; border-radius: 8px; background: var(--paper-2); border: 1px solid var(--line-w); }
.pane--ink .ui__cell { background: var(--ink-2); border-color: var(--ink-3); }
.ui__cell.is-sel { border-color: var(--neon); box-shadow: 0 0 0 2px rgba(166,166,166,.5); }
.ui__label { font-size: 9px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--clay); }
.pane--ink .ui__label { color: var(--sand); }
.pane--neon .ui__label { color: #414141; }

/* Design-tool chrome: cursor, selection frame, toolbar */
.cursor { position: absolute; width: 18px; height: 18px; transform: translate3d(var(--x,0px), var(--y,0px), var(--z,0px)); }
.cursor svg { width: 18px; height: 18px; filter: drop-shadow(0 4px 8px rgba(11,11,11,.5)); }
.frame { position: absolute; width: var(--w, 140px); height: var(--h, 90px);
         left: calc(var(--w,140px) / -2); top: calc(var(--h,90px) / -2);
         transform: translate3d(var(--x,0px), var(--y,0px), var(--z,0px));
         border: 1.5px solid var(--neon); border-radius: 4px; }
.frame span { position: absolute; width: 7px; height: 7px; background: var(--white); border: 1.5px solid var(--neon); border-radius: 2px; }
.frame span:nth-child(1) { left: -4px; top: -4px; } .frame span:nth-child(2) { right: -4px; top: -4px; }
.frame span:nth-child(3) { left: -4px; bottom: -4px; } .frame span:nth-child(4) { right: -4px; bottom: -4px; }
.chip { position: absolute; transform: translate3d(var(--x,0px), var(--y,0px), var(--z,0px)) rotateZ(var(--rot,0deg));
        padding: 7px 12px; border-radius: var(--r-pill); font-size: 11px; font-weight: 500; letter-spacing: .01em;
        background: var(--white); color: var(--black); border: 1px solid rgba(11,11,11,.18); white-space: nowrap;
        box-shadow: 0 2px 6px -2px rgba(11,11,11,.25), 0 14px 30px -14px rgba(11,11,11,.5); }
.chip--neon { background: var(--neon); } .chip--ink { background: var(--ink-1); color: var(--white); border-color: rgba(255,255,255,.18); }

/* ================= Swarm rebuild intro ================= */
html.is-building .nav,
html.is-building .hero__cube,
html.is-building .gen,
html.is-building .hero .eyebrow,
html.is-building .hero__stats > div,
html.is-building .hero__copy h1,
html.is-building .hero__copy .lead,
html.is-building .hero__copy .btn,
html.is-building .hero__art .pane,
html.is-building .hero__art .chip,
html.is-building .hero__art .frame,
html.is-building .hero__art .cursor,
html.is-building .bizbar b,
html.is-building .bizbar span { opacity: 0; }
html.is-building:not(.is-lined) .bizbar,
html.is-building:not(.is-lined) .bizbar div + div { border-color: transparent; }

.build { position: absolute; top: 0; left: 0; width: 100%; z-index: 60; pointer-events: none; overflow: hidden;
         font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
.build-grid { position: fixed; inset: 0; z-index: 59; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1.3px);
  background-size: 22px 22px; transition: opacity 1100ms var(--ease-out); }
.build-grid.is-done { opacity: 0; }
.agent { position: absolute; left: 0; top: 0; color: var(--c); will-change: transform;
         transition: opacity 320ms var(--ease-out); }
.agent__icon { position: absolute; left: -3px; top: -2px; width: 20px; height: 20px; display: block; max-width: none;
               filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
.agent[data-tool="cross"] .agent__icon,
.agent[data-tool="ibeam"] .agent__icon,
.agent[data-tool="pen"] .agent__icon { left: -10px; top: -10px; }
.agent__tag { position: absolute; left: 14px; top: 18px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 7px;
  background: var(--c); color: #fff; font-size: 12.5px; font-weight: 500; line-height: 1.25; letter-spacing: -.005em;
  box-shadow: 0 6px 16px -6px rgba(0,0,0,.5); }
.agent__tag svg { width: 11px; height: 11px; flex: none; max-width: none; }
.agent.is-flip .agent__tag { left: auto; right: 6px; }
.bframe { position: absolute; border: 1.5px solid var(--c); border-radius: 2px;
          transition: background 260ms var(--ease-out), opacity 320ms var(--ease-out); }
.bframe.is-fill { background: color-mix(in srgb, var(--c) 14%, transparent); }
.bframe i { position: absolute; width: 7px; height: 7px; background: #fff; border: 1.5px solid var(--c); border-radius: 1px; }
.bframe i:nth-child(1) { left: -4.5px; top: -4.5px; }
.bframe i:nth-child(2) { right: -4.5px; top: -4.5px; }
.bframe i:nth-child(3) { left: -4.5px; bottom: -4.5px; }
.bframe i:nth-child(4) { right: -4.5px; bottom: -4.5px; }
.bframe__dim { position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%);
  padding: 2px 7px; border-radius: 5px; background: var(--c); color: #fff;
  font-size: 11px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bline { position: absolute; height: 2px; margin-top: -1px; background: var(--c); border-radius: 2px;
         transition: opacity 320ms var(--ease-out); }
.bripple { position: absolute; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%;
  border: 1.5px solid var(--c); animation: bripple 700ms var(--ease-out) forwards; }
@keyframes bripple { from { transform: scale(.25); opacity: 1; } to { transform: scale(1.2); opacity: 0; } }
.bcaret { display: inline-block; width: 2px; height: .95em; margin-left: 2px; vertical-align: -0.1em;
          border-radius: 1px; animation: bcaret 900ms steps(1) infinite; }
@keyframes bcaret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .build, .build-grid { display: none; } }

/* ================= Hero ================= */
.hero { min-height: 100svh; display: flex; flex-direction: column; }
.hero__grid { flex: 1; display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter);
              align-items: center; padding-block: clamp(8rem, 14vw, 10rem) clamp(2rem, 5vw, 3.5rem); }
.hero__copy { grid-column: 1 / span 7; display: grid; gap: 1.75rem; z-index: 2; }
.hero h1 { font-size: var(--fs-display); line-height: 1.02; letter-spacing: var(--tracking-display); text-wrap: balance; font-weight: 450; }
.hero .lead { color: rgba(255,255,255,.66); }
.hero__art { grid-column: 8 / span 5; height: clamp(320px, 36vw, 520px); }
@media (max-width: 920px) { .hero__copy, .hero__art { grid-column: 1 / -1; } .hero__art { height: 300px; order: -1; } }

/* ================= Own-numbers bar ================= */
.bizbar { border-top: 1px solid rgba(255,255,255,.09); }
.bizbar__in { display: grid; grid-template-columns: repeat(3, 1fr); }
.bizbar div { padding: 2.25rem 2rem 2.5rem 0; display: grid; gap: .5rem; align-content: start; }
.bizbar div + div { border-left: 1px solid rgba(255,255,255,.09); padding-left: 2rem; }
.bizbar b { font-size: clamp(2.4rem, 3.6vw, 3.4rem); font-weight: 400; line-height: 1; letter-spacing: -0.05em;
            color: var(--white); font-variant-numeric: lining-nums; }
.bizbar span { color: rgba(255,255,255,.62); font-size: 1rem; line-height: 1.5; max-width: 26ch; }
@media (max-width: 760px) { .bizbar__in { grid-template-columns: 1fr; } .bizbar div + div { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,.09); } .bizbar div { padding-right: 0; } }

/* ================= Bento ================= */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(280px, auto);
         grid-auto-flow: dense; gap: 12px; margin-top: var(--s-6); }
.tile { position: relative; overflow: hidden; border-radius: var(--r-card); padding: clamp(1.75rem, 2.6vw, 2.5rem);
        display: flex; flex-direction: column; justify-content: flex-end; gap: .6rem; isolation: isolate;
        box-shadow: var(--shadow-sm);
        transition: transform var(--t-panel) var(--ease-out), box-shadow var(--t-panel) var(--ease-out); }
.tile p { color: var(--fg-muted); max-width: 38ch; }
.tile > *:not(.stage):not(.grain-fine) { position: relative; z-index: 1; }
.tile::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 84%; z-index: 0; pointer-events: none;
               background: linear-gradient(to top, var(--scrim, rgba(246,246,246,1)) 0%, var(--scrim, rgba(246,246,246,1)) 52%,
                           color-mix(in srgb, var(--scrim, rgba(246,246,246,1)) 55%, transparent) 74%, transparent 100%); }
.tile--b { --scrim: rgba(21,21,21,1); }
.tile--c { --scrim: rgba(218,218,218,1); }
.tile--d { --scrim: rgba(246,246,246,1); }
.tile .stage { position: absolute; inset: 0; z-index: -1; transition: transform 600ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
}
.tile--a { grid-column: span 2; grid-row: span 2; }
.tile--a .rig { top: 38%; }
.tile--b { grid-column: span 2; background: var(--ink-1); color: var(--white); --fg-muted: var(--sand); }
.tile--b .rig { left: 78%; top: 34%; }
.tile--b > *:not(.stage):not(.grain-fine) { max-width: 56%; }
.tile--c { background: var(--neon); --fg-muted: #414141; }
.tile--c .rig { top: 15%; --km: .8; }
.tile--d { background: var(--paper); }
.tile--d .rig { top: 15%; --km: .8; }
@media (max-width: 1000px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .tile--a, .tile--b { grid-column: span 1; } .tile--a { grid-row: span 1; min-height: 420px; }
  .tile--b > *:not(.stage):not(.grain-fine) { max-width: 100%; } .tile--b .rig { left: 50%; top: 30%; }
}

/* ================= Scrub statement ================= */
.scrub { font-size: clamp(1.8rem, 3.2vw, 3.2rem); line-height: 1.18; letter-spacing: -0.035em; font-weight: 400;
         max-width: 24ch; margin-inline: auto; text-align: center; text-wrap: balance; }
.scrub .w { display: inline-block; }

/* ================= Work ================= */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.split__pin { position: sticky; top: 9rem; display: grid; gap: 1.5rem; }
.gsap-on .split__pin { position: relative; top: auto; }
.cases { display: grid; gap: 12px; }
.case { position: relative; overflow: hidden; border-radius: var(--r-card); background: var(--ink-1);
        border: 1px solid var(--ink-3); padding: clamp(1.75rem, 3vw, 2.5rem); min-height: 320px;
        display: grid; align-content: space-between; gap: 1.25rem; text-decoration: none;
        transition: border-color var(--t-panel) var(--ease-out), transform var(--t-panel) var(--ease-out),
                    box-shadow var(--t-panel) var(--ease-out); }
.case:active { transform: scale(0.995); }
@media (hover: hover) and (pointer: fine) {
  .case:hover { border-color: var(--ink-4); transform: translateY(-3px);
                box-shadow: 0 24px 60px -28px rgba(0,0,0,.8); }
  .case:hover .stage { transform: scale(1.04); }
  .case:hover .case__go { background-size: 100% 1px; }
}
.case .stage { position: absolute; right: -2%; top: -2%; width: 44%; height: 64%; transition: transform 600ms var(--ease-out); }
.case__role { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-bottom: .9rem; }
.co { display: inline-flex; align-items: center; gap: .55rem; }
.co__mark { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none;
            font-weight: 700; font-size: .95rem; letter-spacing: -.02em; border: 1px solid var(--line); }
.co__mark--archbee { background: var(--paper); color: var(--black); border-color: transparent; }
.co__mark--hp { background: var(--paper); color: var(--black); border-color: transparent; }
.co__mark--bcr { background: var(--ink-3); color: var(--paper); }
.co__mark--vola { background: transparent; color: var(--fg); }
.co__name { font-weight: 500; font-size: 1.05rem; letter-spacing: -.01em; }
.case h3 { font-size: clamp(1.4rem, 2vw, 1.95rem); line-height: 1.12; letter-spacing: -0.03em; max-width: 22ch; text-wrap: balance; }
.case p { color: var(--fg-muted); max-width: 42ch; }
.case__out b { display: block; font-size: clamp(1.9rem, 2.6vw, 2.5rem); font-weight: 400; letter-spacing: -0.05em; line-height: 1; color: var(--white); }
.case__out span { display: block; margin-top: .5rem; font-size: var(--fs-small); color: var(--fg-muted); max-width: 46ch; }
.case__go { justify-self: start; font-weight: 500; display: inline-flex; align-items: center; gap: .45rem;
            background-image: linear-gradient(currentColor, currentColor); background-size: 0% 1px;
            background-repeat: no-repeat; background-position: 0 100%; padding-bottom: 2px;
            transition: background-size var(--t-hover) var(--ease-out); }
.badge { font-size: .6875rem; font-weight: 500; letter-spacing: .09em; text-transform: uppercase;
         background: transparent; color: var(--fg); border: 1px solid currentColor;
         padding: .25rem .6rem; border-radius: var(--r-pill); opacity: .85; }
/* Current role gets the weight */
.case--now { background: var(--ink-2); border-color: var(--ink-4); min-height: 400px; }
.case--now h3 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); }
.case--now::before { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(60% 40% at 88% 6%, rgba(218,218,218,.2), rgba(218,218,218,0) 70%); }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; } .split__pin { position: relative; top: auto; }
  .case { min-height: 280px; } .case--now { min-height: 340px; } .case .stage { width: 52%; height: 42%; } }
/* the floating art collides with the role line once the card narrows */
@media (max-width: 680px) { .case .stage { display: none; } .case, .case--now { min-height: 0; } }

/* ================= Background: timeline ================= */
.railhead { display: grid; gap: 1.25rem; }
.railhead .lead { max-width: 52ch; }
.rail { margin-top: clamp(2rem, 4vw, 3.5rem); position: relative; display: grid; }
.rail::before { content: ""; position: absolute; left: 6px; top: 1.5rem; bottom: 1.5rem; width: 1px;
                background: linear-gradient(to bottom, transparent, var(--line) 6%, var(--line) 94%, transparent); }
.step { --step-pad: clamp(1.5rem, 2.6vw, 2.25rem);
        --row-h: calc(clamp(1.2rem, 1.6vw, 1.55rem) * 1.2);   /* h3 first-line box */
        --dot: 14px;
        --rail-x: 34px;
        position: relative; display: grid; grid-template-columns: 124px 1fr; column-gap: clamp(1.25rem, 2.4vw, 2.25rem);
        padding: var(--step-pad) 0 var(--step-pad) var(--rail-x); }
.step__yr::before { content: ""; position: absolute; left: calc(var(--rail-x) * -1); top: 50%;
                    margin-top: calc(var(--dot) / -2);
                    width: var(--dot); height: var(--dot); border-radius: 50%; background: var(--bg);
                    border: 2px solid var(--line);
                    transition: border-color var(--t-hover) ease, background var(--t-hover) ease; }
.step--now .step__yr::before { background: var(--fg); border-color: var(--fg); box-shadow: 0 0 0 4px rgba(255,255,255,.07); }
.step__yr { position: sticky; top: var(--rail-stick); z-index: 1;
            align-self: start; display: flex; align-items: center; height: var(--row-h); margin: 0;
            font-size: .75rem; font-weight: 500; line-height: 1; letter-spacing: var(--tracking-micro);
            text-transform: uppercase; color: var(--fg-muted); font-variant-numeric: tabular-nums lining-nums; }
.step h3 { font-size: clamp(1.2rem, 1.6vw, 1.55rem); line-height: 1.2; letter-spacing: -0.025em; max-width: 24ch; }
.step__where { color: var(--fg-muted); margin-top: .2rem; }
.step > div > p + p { color: var(--fg-muted); max-width: 52ch; margin-top: .9rem; }
.step__tags { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .9rem; }
/* a step whose content is a case card: centre the dot on the company mark */
.step--case { --row-h: calc(clamp(1.75rem, 3vw, 2.5rem) * 2 + 34px); }
.step--case > div { display: grid; }
.step--case .case { min-height: 0; }
.tag { font-size: .8125rem; letter-spacing: 0; border: 1px solid var(--line);
       border-radius: var(--r-pill); padding: .26rem .75rem; color: var(--fg-muted);
       }
.tag--solid { background: var(--fg); border-color: transparent; color: var(--bg); }
@media (max-width: 820px) {
  .step { grid-template-columns: 1fr; row-gap: .5rem; --rail-x: 30px; }
  .step__yr { height: var(--row-h); }
}

/* ================= CTA ================= */
.cta { min-height: 86svh; display: flex; align-items: center; }
.cta__grid { display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: var(--gutter); }
.cta h2 { font-size: var(--fs-mega); line-height: .96; letter-spacing: -0.05em; max-width: 12ch; margin-bottom: 1.5rem; }
.cta .lead { color: #414141; margin-bottom: 2.5rem; }
.cta .stage { height: 440px; }
@media (max-width: 920px) { .cta__grid { grid-template-columns: 1fr; } .cta .stage { height: 280px; order: -1; } }

/* ================= Footer ================= */
.footer { padding-block: var(--s-6) calc(var(--s-4) + env(safe-area-inset-bottom, 0px)); }
.footer__in { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: center; }
.footer nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer a { text-decoration: none; color: var(--fg-muted); }
.footer a:hover { color: var(--fg); }
.footer__legal { margin-top: var(--s-4); padding-top: var(--s-3); border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--fg-muted); }

/* ================= Case study pages ================= */
.view { display: none; }
.view.is-on { display: block; }
.cs__head { padding-block: clamp(9rem, 15vw, 12rem) clamp(3rem, 6vw, 5rem);
            display: grid; grid-template-columns: 7fr 5fr; column-gap: var(--gutter); align-items: center; }
.cs__meta { grid-column: 1; grid-row: 1; display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.25rem; }
.cs h1 { grid-column: 1; grid-row: 2; font-size: clamp(2.3rem, 4vw, 4rem); line-height: 1.04; letter-spacing: -0.035em; max-width: 16ch; text-wrap: balance; }
.cs__sub { grid-column: 1; grid-row: 3; margin-top: 1.5rem; }
.cs__art { grid-column: 2; grid-row: 1 / 4; height: clamp(320px, 32vw, 470px); }
@media (max-width: 920px) {
  .cs__head { grid-template-columns: 1fr; }
  .cs__meta, .cs h1, .cs__sub, .cs__art { grid-column: 1; grid-row: auto; }
  .cs__art { height: 300px; margin-top: var(--s-4); }
}
.cs__facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.cs__facts div { background: var(--bg); padding: 1.75rem 1.25rem 2rem 0; }
.cs__facts div + div { padding-left: 1.25rem; }
.cs__facts dt { font-size: .72rem; font-weight: 500; letter-spacing: var(--tracking-micro);
                text-transform: uppercase; color: var(--fg-muted); margin-bottom: .55rem; }
.cs__facts dd { margin: 0; font-size: 1.05rem; letter-spacing: -.01em; }
@media (max-width: 820px) { .cs__facts { grid-template-columns: 1fr 1fr; } }
.cs__body { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.cs__body h2 { font-size: clamp(1.6rem, 2.4vw, 2.3rem); letter-spacing: -0.03em; max-width: 14ch; position: sticky; top: 9rem; }
.cs__prose { display: grid; gap: 1.1rem; font-size: var(--fs-lead); color: var(--fg-muted); }
.cs__prose > p, .cs__prose > ul { max-width: 62ch; }
.cs__prose strong { color: var(--fg); font-weight: 500; }
.cs__prose ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .6rem; }
.cs__prose a { color: var(--fg); }

/* section sub-heads inside the prose column */
.cs__sub3 { margin-top: clamp(1.75rem, 3vw, 2.75rem); color: var(--fg);
            font-size: clamp(1.15rem, 1.5vw, 1.4rem); line-height: 1.2; letter-spacing: -0.025em;
            max-width: 30ch; text-wrap: balance; }
.cs__prose > .cs__sub3:first-child { margin-top: 0; }

/* screenshots */
.fig { margin: clamp(.75rem, 1.6vw, 1.4rem) 0 clamp(1rem, 2vw, 1.75rem); }
.fig img { width: 100%; height: auto; display: block; border-radius: var(--r-media);
           border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-md); }
.is-dark .fig img { border-color: var(--ink-3); }
.fig figcaption { margin-top: .85rem; font-size: var(--fs-small); color: var(--fg-muted); max-width: 62ch; }
@media (max-width: 920px) { .cs__body { grid-template-columns: 1fr; } .cs__body h2 { position: relative; top: auto; } }
.cs__next { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }

/* more work */
.rel__head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap;
             margin-bottom: clamp(2rem, 3.5vw, 3rem); }
.rel__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rel { display: grid; gap: .9rem; align-content: start; text-decoration: none;
       padding: 14px 14px 1.5rem; border-radius: var(--r-card);
       border: 1px solid var(--line); background: var(--ink-1);
       transition: border-color var(--t-panel) var(--ease-out), transform var(--t-panel) var(--ease-out),
                   box-shadow var(--t-panel) var(--ease-out); }
.rel__shot { display: block; overflow: hidden; border-radius: var(--r-tile); background: var(--ink-2); }
.rel__shot img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center;
                 transition: transform 700ms var(--ease-out); }
.rel__co { display: inline-flex; align-items: center; gap: .55rem; padding-inline: 4px; }
.rel__title { font-size: 1.05rem; line-height: 1.3; letter-spacing: -0.02em; padding-inline: 4px;
              max-width: 28ch; text-wrap: balance; }
@media (hover: hover) and (pointer: fine) {
  .rel:hover { border-color: var(--ink-4); transform: translateY(-3px); box-shadow: 0 24px 60px -28px rgba(0,0,0,.8); }
  .rel:hover .rel__shot img { transform: scale(1.04); }
}
@media (max-width: 920px) { .rel__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .rel__grid { grid-template-columns: 1fr; } }

@media (max-width: 760px) { .rig { --km: .58; } .hero .rig { --km: .5; } .tile .rig, .case .rig { --km: .62; } }

/* ================= Real logos and images ================= */
.mark svg { width: 24px; height: auto; max-width: none; }
.co { display: inline-flex; align-items: center; }
.co__logo { display: inline-flex; align-items: center; height: 24px; color: var(--fg); flex: none; }
.co__logo svg { height: 100%; width: auto; max-width: none; display: block; }
.co__logo--hp { height: 30px; }
.co__logo--vola { height: 26px; }
.co__logo--bcr { height: 22px; }
.co__logo--microchip { height: 20px; }
.rel__co .co__logo { height: 20px; }
.rel__co .co__logo--hp { height: 26px; }
.step__where .co__logo { color: var(--fg-muted); margin-top: .35rem; }
.step__img { display: block; width: min(100%, 360px); height: auto; margin-top: 1.25rem;
             border-radius: var(--r-tile); background: var(--ink-2); }

.case__shot { position: absolute; right: clamp(1.25rem, 2.5vw, 2rem); top: 50%; transform: translateY(-50%);
              width: 42%; max-width: 440px; border-radius: var(--r-tile); overflow: hidden; background: var(--ink-2);
              box-shadow: 0 24px 50px -24px rgba(0,0,0,.7); transition: transform 600ms var(--ease-out); }
.case__shot img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
@media (hover: hover) and (pointer: fine) { .case:hover .case__shot { transform: translateY(-50%) scale(1.03); } }
@media (min-width: 921px) { .case > *:not(.case__shot) { max-width: 52%; } }
@media (max-width: 920px) {
  .case__shot { position: relative; right: auto; top: auto; transform: none; width: 100%; max-width: none; order: -1; margin-bottom: .25rem; }
  @media (hover: hover) and (pointer: fine) { .case:hover .case__shot { transform: scale(1.02); } }
}

.cs__cover { grid-column: 2; grid-row: 1 / 4; margin: 0; border-radius: var(--r-media); overflow: hidden;
             background: var(--ink-2); box-shadow: 0 30px 70px -30px rgba(0,0,0,.8); }
.cs__cover img { width: 100%; height: auto; display: block; aspect-ratio: 16 / 10; object-fit: cover; }
@media (max-width: 920px) { .cs__cover { grid-column: 1; grid-row: auto; margin-top: var(--s-4); } }

.cta__photo { margin: 0; justify-self: end; width: min(100%, 360px); border-radius: var(--r-media); overflow: hidden;
              box-shadow: var(--shadow-lg); }
.cta__photo img { width: 100%; height: auto; display: block; }
@media (max-width: 920px) { .cta__photo { justify-self: start; width: min(70%, 280px); order: -1; } }

/* =====================================================================
   Black edition. Pure black, gradient type, glossy 3D objects, cards lit
   from above. Layered on top of everything before it.
   ===================================================================== */
:root {
  --black: #000; --ink-1: #0a0a0a; --ink-2: #111; --ink-3: #1c1c1c; --ink-4: #2b2b2b;
  --white: #fff;
  --bg: #000; --fg: #fff; --fg-muted: #a1a1a1; --fg-dim: #6e6e6e;
  --line: rgba(255,255,255,.08); --line-strong: rgba(255,255,255,.16);
  --surface: #0a0a0a; --accent: #fff; --on-accent: #000;
  --card: linear-gradient(180deg, rgba(255,255,255,.045) 0%, rgba(255,255,255,.012) 55%, rgba(255,255,255,.008) 100%);
  --grain-opacity: .1; --grain-fine-opacity: .06;
}
html, body { background: #000; color: #fff; }
.is-dark, .is-paper, .is-neon {
  --bg: #000; --fg: #fff; --fg-muted: #a1a1a1; --line: rgba(255,255,255,.08); --surface: #0a0a0a;
  background: #000; color: #fff;
}
.section { background: #000; }
::selection { background: #fff; color: #000; }
:focus-visible { outline: 1.5px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 4px rgba(255,255,255,.14); }

/* light from above instead of the old mesh */
.grain-field--hero { --mesh:
    radial-gradient(55% 60% at 12% -10%, rgba(255,255,255,.16), rgba(255,255,255,0) 70%),
    radial-gradient(45% 55% at 78% 30%, rgba(255,255,255,.07), rgba(255,255,255,0) 70%),
    linear-gradient(115deg, rgba(255,255,255,0) 40%, rgba(255,255,255,.035) 55%, rgba(255,255,255,0) 70%),
    #000; --mesh-blur: 40px; --mesh-rot: 0deg; --mesh-skew: 0deg; --mesh-sat: 1; --mesh-contrast: 1; }
.grain-field--ink { --mesh:
    radial-gradient(60% 40% at 50% 0%, rgba(255,255,255,.07), rgba(255,255,255,0) 70%), #000;
    --mesh-blur: 30px; --mesh-rot: 0deg; --mesh-skew: 0deg; }
.grain-field--cta { --mesh:
    radial-gradient(50% 55% at 50% 110%, rgba(255,255,255,.12), rgba(255,255,255,0) 70%),
    radial-gradient(30% 30% at 50% 20%, rgba(59,130,246,.08), rgba(59,130,246,0) 70%), #000;
    --mesh-blur: 30px; --mesh-rot: 0deg; --mesh-skew: 0deg; --grain-blend: overlay; }

/* gradient type */
.hero h1, .h2, .cta h2, .cs h1, .cs__body h2, .footer__word {
  background-image: linear-gradient(180deg, #fff 25%, rgba(255,255,255,.58) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 { font-weight: 500; }
.lead, .hero .lead { color: var(--fg-muted); }

/* nav: glass on black, white mark */
.nav { background: rgba(10,10,10,.6); border-color: rgba(255,255,255,.08);
       box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 12px 32px -16px rgba(0,0,0,.9); }
.mark { background: transparent; box-shadow: none; color: #fff; }
.mark svg { width: 26px; }

/* buttons */
.btn--primary { background: #fff; color: #000; box-shadow: inset 0 -1px 0 rgba(0,0,0,.12); }
.btn--primary:hover { background: #e6e6e6; box-shadow: 0 0 0 4px rgba(255,255,255,.08); }
.btn--ghost { border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.02); }
.btn--ghost:hover { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.24); }

/* ---- hero cube ---- */
.hero__cube { position: relative; height: clamp(340px, 40vw, 580px); }
.hero__cube::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: 4%; height: 16%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255,255,255,.07), transparent 70%); filter: blur(10px); z-index: -1; }
.hero__cube-poster, .hero__cube-canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.hero__cube-canvas { opacity: 0; transition: opacity 500ms var(--ease-out); }
.hero__cube.is-ready .hero__cube-canvas { opacity: 1; }
.hero__cube.is-ready .hero__cube-poster { opacity: 0; transition: opacity 300ms ease; }
@media (max-width: 920px) { .hero__cube { height: 320px; } }

/* ---- logo wall ---- */
.logos { padding-block: clamp(3.5rem, 7vw, 6rem); border-top: 1px solid var(--line); background: #000; }
.logos__cap { text-align: center; color: var(--fg-muted); font-size: .9375rem; margin: 0 0 clamp(1.75rem, 3vw, 2.5rem); }
.logos__row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center;
              align-items: center; gap: clamp(1.75rem, 5.5vw, 4.5rem); }
.logos__item { color: #fff; opacity: .8; display: flex; align-items: center; }
.logos__item .co__logo { color: inherit; height: 28px; }
.logos__item .co__logo--hp { height: 36px; }
.logos__item .co__logo--vola { height: 32px; }
.logos__item .co__logo--bcr { height: 26px; }
.logos__item .co__logo--microchip { height: 22px; }

/* ---- centred section heads with a glossy object ---- */
.sechead { display: grid; justify-items: center; text-align: center; gap: 1.25rem; max-width: 46rem; margin-inline: auto; }
.sechead .h2 { max-width: 20ch; margin-inline: auto; }
.sechead .lead { margin-inline: auto; }
.sechead .step__tags { justify-content: center; }
.railhead.sechead { gap: 1.1rem; margin-bottom: clamp(1rem, 3vw, 2.5rem); }
.icon3d { width: clamp(88px, 9vw, 120px); height: auto; display: block; margin-bottom: .25rem;
          filter: drop-shadow(0 22px 34px rgba(0,0,0,.85)); animation: float3d 7s ease-in-out infinite; }
@keyframes float3d { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-7px) rotate(-1.5deg); } }

/* ---- cards: lit from the top, a soft light follows the pointer ---- */
.tile, .case, .rel { background: var(--card), #050505; border: 1px solid var(--line);
                     box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.tile--a, .tile--b, .tile--c, .tile--d { background: var(--card), #050505; color: #fff; --fg-muted: #a1a1a1; --scrim: rgba(6,6,6,1); }
.case--now { background: radial-gradient(70% 60% at 80% 0%, rgba(255,255,255,.07), transparent 70%), var(--card), #050505; border-color: var(--line-strong); }
.case--now::before { display: none; }
.case::after, .rel::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.07), transparent 60%);
  transition: opacity 400ms var(--ease-out); }
.rel { position: relative; }
@media (hover: hover) and (pointer: fine) {
  .case:hover::after, .rel:hover::after { opacity: 1; }
  .case:hover, .rel:hover { border-color: var(--line-strong); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 30px 80px -40px rgba(255,255,255,.08); }
}
.case__shot, .rel__shot, .cs__cover, .fig img { background: #0a0a0a; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(0,0,0,.9); }
.badge { color: #fff; border-color: rgba(255,255,255,.28); }

/* timeline on black */
.rail::before { background: linear-gradient(to bottom, transparent, rgba(255,255,255,.12) 6%, rgba(255,255,255,.12) 94%, transparent); }
.step__yr::before { background: #000; border-color: rgba(255,255,255,.24); }
.step--now .step__yr::before { background: #fff; border-color: #fff; box-shadow: 0 0 0 5px rgba(255,255,255,.08), 0 0 18px rgba(255,255,255,.35); }
.tag { border-color: rgba(255,255,255,.14); color: var(--fg-muted); }
.tag--solid { background: #fff; color: #000; }

/* scrub statement: words light up out of the dark */
.scrub { color: #fff; }

/* ---- CTA ---- */
.cta { min-height: auto; padding-block: clamp(7rem, 12vw, 12rem); border-top: 1px solid var(--line); }
.cta__in { display: grid; justify-items: center; text-align: center; gap: 1.35rem; max-width: 52rem; }
.cta h2 { max-width: 16ch; margin: 0 auto; font-size: var(--fs-mega); }
.cta .lead { color: var(--fg-muted); max-width: 46ch; margin: 0 auto; }
.cta .btn-row { justify-content: center; margin-top: .5rem; }
.cta__by { display: inline-flex; align-items: center; gap: .8rem; margin-top: 1.25rem; text-align: left; }
.cta__by img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 50% 8%;
               background: #fff; border: 1px solid var(--line-strong); }
.cta__by b { display: block; font-weight: 500; font-size: .95rem; }
.cta__by b + span { display: block; color: var(--fg-muted); font-size: .875rem; }

/* ---- footer with the oversized fading wordmark ---- */
.footer { position: relative; overflow: hidden; background: #000; border-top: 1px solid var(--line); }
.footer__legal { border-top-color: var(--line); }
.footer__word { font-weight: 600; font-size: clamp(6rem, 27vw, 26rem); line-height: .78; letter-spacing: -.065em;
  text-align: center; white-space: nowrap; margin: clamp(2.5rem, 6vw, 5rem) 0 -.16em; user-select: none; pointer-events: none;
  background-image: linear-gradient(180deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,.02) 75%); }

/* ---- case study pages on black ---- */
.cs__facts { background: var(--line); border-color: var(--line); }
.cs__facts div { background: #000; }
.cs__prose strong, .cs__prose a { color: #fff; }
.cs__sub3 { color: #fff; }
.rel__shot { border: 0; }

/* ---- reveal ---- */
.rv { opacity: 0; transform: translateY(16px); filter: blur(6px);
      transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out), filter 900ms var(--ease-out); }
.rv.is-in { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  .icon3d { animation: none; }
  .rv { opacity: 1; transform: none; filter: none; }
}

/* =====================================================================
   Home, rebuilt on the live site's structure
   ===================================================================== */
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; margin: 0; padding: .38rem .8rem;
           border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: rgba(255,255,255,.03);
           font-size: .8125rem; color: #d4d4d4; letter-spacing: 0; }
.eyebrow__dot { width: 6px; height: 6px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 10px #22C55E; }
.sechead .eyebrow { margin-bottom: .25rem; }
.lead strong, .hero h1 strong { font-weight: 600; color: #fff; }
.hero h1 strong { -webkit-text-fill-color: #fff; }

/* nav like the live site: name, sections, location, CTA */
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: #fff; font-weight: 500; letter-spacing: -.01em; }
.brand svg { width: 26px; height: auto; max-width: none; flex: none; }
.nav .brand { padding-left: 4px; }
.nav__end { display: flex; align-items: center; gap: 1rem; }
.nav__where { font-size: .875rem; color: var(--fg-muted); }
@media (max-width: 980px) { .nav__where { display: none; } }
@media (max-width: 760px) { .nav .brand span { display: none; } }

/* hero */
.hero__grid { align-items: center; }
.hero__copy { gap: 1.5rem; }
.hero h1 { font-size: clamp(2.5rem, 4.4vw, 4.6rem); max-width: 15ch; }
.hero__stats { display: flex; gap: clamp(1.5rem, 3vw, 2.75rem); margin: .75rem 0 0; }
.hero__stats div { display: grid; gap: .15rem; }
.hero__stats dt { font-size: clamp(1.75rem, 2.6vw, 2.4rem); font-weight: 400; letter-spacing: -.04em; line-height: 1; }
.hero__stats dd { margin: 0; color: var(--fg-muted); font-size: .875rem; }
.hero .bizbar { display: none; }

/* ---- the interface generator ---- */
.gen { --g-acc: #2870ED; position: relative; height: auto; aspect-ratio: 16 / 11.5; align-self: center;
       border-radius: 16px; background: #0c0c0c; border: 1px solid var(--line-strong); overflow: hidden;
       box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 40px 120px -40px rgba(255,255,255,.14), 0 30px 60px -30px rgba(0,0,0,.9);
       display: flex; flex-direction: column; isolation: isolate; }
.gen__chrome { flex: none; display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.gen__chrome i { width: 9px; height: 9px; border-radius: 50%; background: #2a2a2a; }
.gen__url { margin: 0 auto; padding: 3px 12px; border-radius: 6px; background: #161616; color: #8a8a8a; font-size: 11.5px; }
.gen__stage { position: relative; flex: 1; margin: 10px 10px 0; border-radius: 10px 10px 0 0; background: #fafafa; overflow: hidden;
              color: #111; font-size: clamp(9px, .78vw, 12px); }
.gen__prompt { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); width: min(78%, 420px);
               display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; z-index: 3;
               background: rgba(18,18,18,.92); border: 1px solid rgba(255,255,255,.14); color: #eee; font-size: 12.5px;
               box-shadow: 0 14px 34px -12px rgba(0,0,0,.8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.gen__spark { width: 14px; height: 14px; flex: none; border-radius: 4px; background: conic-gradient(from 0deg, #E8784A, #8B5CF6, #3B82F6, #22A06B, #E8784A); }
.gen__prompt.is-thinking .gen__spark { animation: genspin 700ms linear infinite; }
@keyframes genspin { to { transform: rotate(360deg); } }
.gen__text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gen__caret { width: 1.5px; height: 14px; background: #fff; animation: bcaret 900ms steps(1) infinite; }
.gen__prompt:not(.is-typing) .gen__caret { opacity: 0; animation: none; }
.gen__fx { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.gen .agent__tag { font-size: 11px; padding: 3px 8px 3px 6px; top: 16px; left: 12px; }
.gen .agent__icon { width: 17px; height: 17px; }
.gen .bframe__dim { font-size: 10px; top: calc(100% + 5px); }

/* generated UI, light, like a real product */
.g-blk { position: absolute; box-sizing: border-box; opacity: 0; transform: scale(.985); transform-origin: top left;
         transition: opacity 360ms var(--ease-out), transform 360ms var(--ease-out); }
.g-blk.is-in { opacity: 1; transform: none; }
.g-blk.is-out { opacity: 0; transform: translateY(4px); transition-duration: 320ms; }
.g-side { background: #f1f1f1; border-right: 1px solid #e6e6e6; }
.g-lines { display: flex; flex-direction: column; justify-content: space-between; }
.g-lines i { display: block; height: 8%; min-height: 5px; border-radius: 4px; background: #e2e2e2; }
.g-nav i, .g-tree i { height: 12%; }
.g-nav i.is-on, .g-tree i.is-on { background: var(--g-acc); opacity: .9; }
.g-tree i:nth-child(n+3) { margin-left: 18%; }
.g-para i:nth-child(3) { width: 82%; } .g-para i:last-child { width: 55%; }
.g-h { font-weight: 600; font-size: 1.55em; letter-spacing: -.02em; display: flex; align-items: center; white-space: nowrap; }
.g-hxl { font-weight: 600; font-size: 2.1em; line-height: 1.05; letter-spacing: -.035em; }
.g-p { color: #6b6b6b; font-size: 1.05em; white-space: nowrap; }
.g-btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: #111; color: #fff;
         font-weight: 500; font-size: .95em; white-space: nowrap; }
.g-btn--acc { background: var(--g-acc); color: #fff; }
[style*="--g-acc: #FFC400"] .g-btn--acc, .gen[style*="#FFC400"] .g-btn--acc { color: #111; }
.g-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.04); padding: 7% 8%; }
.g-kpi { display: flex; flex-direction: column; justify-content: center; gap: 4%; }
.g-kpi__l { color: #8a8a8a; font-size: .9em; }
.g-kpi__v { font-weight: 600; font-size: 1.55em; letter-spacing: -.02em; white-space: nowrap; }
.g-kpi__d { font-style: normal; color: #16A34A; font-size: .85em; font-weight: 500; }
.g-chart { padding: 3% 3% 0; display: flex; flex-direction: column; }
.g-chart svg { flex: 1; width: 100%; }
.g-chart .g-line { fill: none; stroke: var(--g-acc); stroke-width: 2.2; vector-effect: non-scaling-stroke;
                   stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 1100ms var(--ease-out); }
.g-chart .g-area { fill: var(--g-acc); opacity: 0; transition: opacity 900ms 400ms ease; }
.g-chart.is-drawn .g-line { stroke-dashoffset: 0; }
.g-chart.is-drawn .g-area { opacity: .1; }
.g-row { display: flex; align-items: center; gap: 2.5%; padding: 0 2.5%; border-bottom: 1px solid #ececec; }
.g-av { width: 1.6em; height: 1.6em; flex: none; border-radius: 50%; background: linear-gradient(135deg, #d4d4d4, #a3a3a3); }
.g-av--2 { background: linear-gradient(135deg, #c7d2fe, #818cf8); }
.g-row__t { flex: 1; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-pill { padding: .2em .65em; border-radius: 999px; background: #DCFCE7; color: #15803D; font-size: .85em; font-weight: 500; white-space: nowrap; }
.g-pill--warn { background: #FEF3C7; color: #B45309; }
.g-bar { display: flex; align-items: center; gap: 4%; padding: 0 5%; background: #fff; border-bottom: 1px solid #ececec; }
.g-bar i { width: 7%; height: 22%; border-radius: 3px; background: #e5e5e5; }
.g-logo { font-weight: 800; letter-spacing: .02em; color: #1A55D6; font-size: 1.2em; margin-right: auto; }
.g-bar__btn { padding: .3em .9em; border-radius: 6px; border: 1px solid #e0e0e0; font-size: .85em; }
.g-callout { background: #111; color: #fff; border-radius: 12px; padding: 6% 8%; font-weight: 500; line-height: 1.25; font-size: 1.05em;
             display: flex; align-items: center; }
.g-plan { display: flex; flex-direction: column; gap: 6%; }
.g-plan--pop { border-color: var(--g-acc); box-shadow: 0 0 0 2px color-mix(in srgb, var(--g-acc) 35%, transparent); }
.g-plan__n { font-weight: 600; font-size: 1.15em; }
.g-plan__p { color: #6b6b6b; }
.g-plan__li { display: block; height: 7%; border-radius: 4px; background: #ececec; }
.g-plan__li:nth-of-type(2) { width: 80%; } .g-plan__li:nth-of-type(3) { width: 64%; }
.g-plan .g-btn { margin-top: auto; height: 20%; }
.g-chip { display: inline-flex; align-items: center; padding: 0 5%; border-radius: 999px; background: color-mix(in srgb, var(--g-acc) 14%, #fff);
          color: color-mix(in srgb, var(--g-acc) 80%, #000); font-weight: 500; white-space: nowrap; font-size: .95em; }
.g-code { background: #111; border-radius: 10px; padding: 5% 6%; display: flex; flex-direction: column; justify-content: space-between; }
.g-code i { display: block; height: 11%; border-radius: 3px; background: #3a3a3a; }
.g-code i:nth-child(2) { background: color-mix(in srgb, var(--g-acc) 70%, #333); }
.g-code i:nth-child(4) { background: #4ade80; opacity: .7; }
.g-review { display: flex; flex-direction: column; gap: 7%; }
.g-cm { display: flex; gap: 8%; }
.g-cm span { flex: 1; display: grid; gap: .35em; }
.g-cm b { display: block; height: .55em; width: 50%; border-radius: 3px; background: #cfcfcf; }
.g-cm i:not(.g-av) { display: block; height: .5em; border-radius: 3px; background: #ececec; }
.g-review .g-pill { align-self: flex-start; margin-top: auto; }
@media (max-width: 920px) { .gen { aspect-ratio: 4 / 3.4; } .gen__prompt { font-size: 11.5px; } }

/* logos without a caption, as on the live site */
.logos { padding-block: clamp(2.5rem, 5vw, 4rem); }

/* what sets me apart */
.why { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: clamp(2.5rem, 5vw, 4rem); }
.why__card { position: relative; border-radius: var(--r-card); padding: clamp(1.5rem, 2.6vw, 2.25rem);
             background: var(--card), #050505; border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
             display: grid; gap: .75rem; align-content: start; }
.why__card p { color: var(--fg-muted); max-width: 52ch; }
.why__art { height: 150px; margin-bottom: .75rem; border-radius: var(--r-tile); background: radial-gradient(60% 80% at 50% 0%, rgba(255,255,255,.06), transparent 70%), #0a0a0a;
            border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; gap: 10px; overflow: hidden; }
.why__art--flow .node { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 600; }
.node--me { background: #fff; color: #000; }
.node--fe { background: #22A06B; } .node--be { background: #E8784A; }
.why__art--flow .wire { width: 46px; height: 1px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.5) 0 4px, transparent 4px 8px);
                        animation: wire 1.2s linear infinite; }
@keyframes wire { to { background-position: 16px 0; } }
.why__art--money { flex-direction: column; gap: 6px; }
.money__label { color: var(--fg-muted); font-size: .8rem; }
.money__value { font-size: 2rem; letter-spacing: -.04em; }
.money__bar { width: 180px; height: 6px; border-radius: 3px; background: #1d1d1d; overflow: hidden; }
.money__bar i { display: block; height: 100%; width: 68%; background: linear-gradient(90deg, #3B82F6, #8B5CF6); border-radius: inherit; }
.why__art--stages { gap: 6px; flex-wrap: wrap; padding: 0 1rem; }
.why__art--stages span { padding: .4rem .75rem; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .8125rem; color: #ddd; }
.why__art--stages span:nth-child(3) { background: #fff; color: #000; border-color: #fff; }
.why__art--tech { gap: 8px; flex-wrap: wrap; padding: 0 1rem; }
.why__art--tech .chip { position: static; transform: none; padding: .45rem .8rem; border-radius: 8px; background: #141414;
                        border: 1px solid var(--line-strong); color: #ddd; font-size: .8125rem; box-shadow: none; }
@media (max-width: 760px) { .why { grid-template-columns: 1fr; } }

/* process */
.proc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.proc__head { position: sticky; top: 7rem; display: grid; gap: 1.1rem; justify-items: start; }
.proc__head .h2 { max-width: 14ch; }
.proc__steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.proc__step { display: grid; grid-template-columns: 3.25rem 1fr; gap: 1rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.proc__n { color: var(--fg-dim); font-size: .875rem; font-variant-numeric: tabular-nums; padding-top: .2rem; }
.proc__step h3 { font-size: 1.15rem; letter-spacing: -.02em; }
.proc__step p { color: var(--fg-muted); margin-top: .35rem; max-width: 52ch; }
@media (max-width: 920px) { .proc { grid-template-columns: 1fr; } .proc__head { position: relative; top: auto; } }

/* projects */
.projects { display: grid; gap: 14px; margin-top: clamp(2.5rem, 5vw, 4rem); }
.proj { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: center;
        padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: var(--r-card); background: var(--card), #050505;
        border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.proj--flip .proj__body { order: 2; }
.proj__body { display: grid; gap: 1rem; align-content: start; }
.proj__meta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.proj__tags { display: flex; gap: .4rem; flex-wrap: wrap; }
.proj__date { color: var(--fg-muted); font-size: .875rem; }
.proj__name { font-size: clamp(1.6rem, 2.4vw, 2.2rem); letter-spacing: -.035em; }
.proj__desc { color: var(--fg-muted); max-width: 54ch; }
.proj__points { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.proj__points li { display: grid; grid-template-columns: 18px 1fr; gap: .6rem; color: #d4d4d4; }
.proj__points svg { width: 18px; height: 18px; margin-top: .2rem; color: #22C55E; max-width: none; }
.proj__points b { color: #fff; font-weight: 500; }
.proj .btn-row { margin-top: .5rem; }
.btn--sm { min-height: 42px; padding: 0 1.1rem; font-size: .875rem; }
.proj__media { position: relative; border-radius: var(--r-tile); overflow: hidden; background: #0a0a0a; border: 1px solid var(--line); }
.proj__media img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; display: block; transition: transform 700ms var(--ease-out); }
.proj__logo { position: absolute; top: 14px; right: 14px; z-index: 1; padding: 8px 12px; border-radius: 10px;
              background: rgba(0,0,0,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.1); }
.proj__logo .co__logo { height: 18px; color: #fff; }
.proj__logo .co__logo--hp { height: 24px; }
.proj::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.06), transparent 60%); transition: opacity 400ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .proj:hover::after { opacity: 1; }
  .proj:hover .proj__media img { transform: scale(1.03); }
}
@media (max-width: 920px) { .proj { grid-template-columns: 1fr; } .proj__media { order: -1; } .proj--flip .proj__body { order: 0; } }

/* skills */
.skills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: clamp(2.5rem, 5vw, 4rem); }
.skill { border-radius: var(--r-card); padding: 1.5rem; background: var(--card), #050505; border: 1px solid var(--line);
         box-shadow: inset 0 1px 0 rgba(255,255,255,.06); display: grid; gap: .65rem; align-content: start; }
.skill__ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin-bottom: .5rem;
             background: linear-gradient(180deg, #1c1c1c, #0d0d0d); border: 1px solid var(--line-strong); box-shadow: inset 0 1px 0 rgba(255,255,255,.1); }
.skill__ic svg { width: 20px; height: 20px; max-width: none; color: #fff; }
.skill h3 { font-size: 1.05rem; letter-spacing: -.015em; }
.skill p { color: var(--fg-muted); font-size: .9375rem; }
.skill--hero { background: radial-gradient(80% 70% at 50% 0%, rgba(139,92,246,.22), transparent 70%), var(--card), #050505; border-color: rgba(139,92,246,.35); }
.skill--hero .skill__ic { background: linear-gradient(180deg, #8B5CF6, #5B33D6); border-color: transparent; }
@media (max-width: 1000px) { .skills { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .skills { grid-template-columns: 1fr; } }

/* testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: clamp(2.5rem, 5vw, 4rem); }
.quote { margin: 0; border-radius: var(--r-card); padding: clamp(1.5rem, 2.6vw, 2rem); background: var(--card), #050505;
         border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); display: grid; gap: 1rem; align-content: start; }
.stars { color: #FACC15; letter-spacing: .15em; font-size: .9rem; }
.quote blockquote { margin: 0; font-size: 1.05rem; line-height: 1.55; color: #e5e5e5; }
.quote figcaption { display: grid; gap: .1rem; margin-top: auto; }
.quote figcaption b { font-weight: 500; }
.quote figcaption span { color: var(--fg-muted); font-size: .875rem; }
.quote--cta { background: radial-gradient(80% 80% at 50% 0%, rgba(255,255,255,.08), transparent 70%), var(--card), #050505; border-color: var(--line-strong); }
.quote__big { font-size: 1.5rem; letter-spacing: -.03em; }
.quote--cta p:not(.quote__big):not(.quote__note) { color: var(--fg-muted); }
.quote--cta .btn { justify-self: start; }
.quote__note { color: var(--fg-dim); font-size: .875rem; }
@media (max-width: 920px) { .quotes { grid-template-columns: 1fr; } }

/* contact */
.cta__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.cta__in { justify-items: start; text-align: left; max-width: none; }
.cta h2 { margin: 0; max-width: 12ch; }
.cta .lead { margin: 0; }
.cta .btn-row { justify-content: flex-start; }
.contact { display: grid; gap: .6rem; margin: .5rem 0 0; padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--r-tile); background: #070707; width: min(100%, 420px); }
.contact div { display: flex; justify-content: space-between; gap: 1rem; }
.contact dt { color: var(--fg-muted); }
.contact dd { margin: 0; text-align: right; }
.cta__links { display: flex; gap: 1.5rem; color: var(--fg-muted); font-size: .9375rem; }
.cta__photo { justify-self: end; width: min(100%, 420px); border-radius: var(--r-media); overflow: hidden; border: 1px solid var(--line); }
@media (max-width: 920px) { .cta__grid { grid-template-columns: 1fr; } .cta__photo { justify-self: start; width: min(80%, 320px); order: -1; } }

/* footer like the live site */
.footer { padding-top: clamp(3.5rem, 7vw, 6rem); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer__brand { display: grid; gap: 1rem; align-content: start; }
.footer__brand p { color: var(--fg-muted); max-width: 36ch; }
.footer__col { display: grid; gap: .55rem; align-content: start; }
.footer__col h4 { font-size: .8125rem; color: var(--fg-dim); font-weight: 500; margin-bottom: .35rem; }
.footer__col a { color: #d4d4d4; text-decoration: none; }
.footer__col a:hover { color: #fff; }
.footer__word { font-size: clamp(3.5rem, 13vw, 12.5rem); letter-spacing: -.06em; margin-top: clamp(3rem, 7vw, 6rem); }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* ---- generator: more room, prompt as its own composer row ---- */
.hero .eyebrow { justify-self: start; }
@media (min-width: 921px) {
  .hero__copy { grid-column: 1 / span 6; }
  .hero__art.gen { grid-column: 7 / span 6; }
}
.gen { aspect-ratio: 16 / 13; }
.gen__stage { margin: 10px 10px 0; border-radius: 10px; font-size: clamp(9px, .82vw, 12.5px); }
.gen__prompt { position: relative; left: auto; bottom: auto; transform: none; width: auto; margin: 10px; flex: none;
               background: #141414; box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.gen__prompt::after { content: "↵"; margin-left: auto; color: #6e6e6e; font-size: 12px; }
.g-card { padding: 6% 7%; }
.g-kpi__l { white-space: nowrap; }
.g-kpi__v { font-size: 1.3em; }
.footer .footer__col { display: grid; gap: .55rem; flex-wrap: nowrap; align-content: start; }

/* ---- generated UI: padding in em, so it scales with the block, not the canvas ---- */
.g-card { padding: .85em 1em; }
.g-kpi { gap: .2em; }
.g-kpi__v { font-size: 1.35em; }
.g-chart { padding: .7em .9em 0; }
.g-row { padding: 0 .8em; gap: .7em; }
.g-bar { padding: 0 1.3em; gap: 1em; }
.g-bar i { width: 3.2em; height: .45em; }
.g-callout { padding: .8em 1em; }
.g-chip { padding: 0 1em; }
.g-plan { gap: .55em; }
.g-plan__li { height: .5em; flex: none; }
.g-plan .g-btn { height: 2.3em; flex: none; }

/* sidebar menu reads as a menu */
.g-nav, .g-tree { justify-content: flex-start; gap: .75em; }
.g-nav i, .g-tree i { height: .55em; flex: none; background: #dcdcdc; }
.g-nav i:nth-child(2) { width: 80%; } .g-nav i:nth-child(3) { width: 90%; } .g-nav i:nth-child(4) { width: 70%; } .g-nav i:nth-child(5) { width: 84%; }
.g-tree i:nth-child(2) { width: 82%; } .g-tree i:nth-child(n+3) { width: 70%; margin-left: 14%; } .g-tree i:nth-child(6) { width: 54%; } .g-tree i:nth-child(7) { width: 86%; margin-left: 0; }
.g-para { justify-content: flex-start; gap: .75em; }
.g-para i { height: .55em; flex: none; }

/* code block with a small file bar */
.g-code { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.g-code__bar { display: flex; align-items: center; gap: .35em; padding: .55em .8em; border-bottom: 1px solid #262626; }
.g-code__bar i { width: .5em; height: .5em; border-radius: 50%; background: #3a3a3a; }
.g-code__bar b { margin-left: .5em; color: #8a8a8a; font-weight: 400; font-size: .85em; }
.g-code code { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: .6em; padding: .7em 1em; }
.g-code code i { display: block; height: .45em; border-radius: 3px; background: #3a3a3a; }
.g-code code i.k { background: color-mix(in srgb, var(--g-acc) 75%, #333); }
.g-code code i.a { background: #f59e0b; opacity: .75; }
.g-code code i.g { background: #4ade80; opacity: .7; }
.g-code i:nth-child(2), .g-code i:nth-child(4) { background: #3a3a3a; opacity: 1; }

/* review panel with real comment rows */
.g-review { gap: .9em; justify-content: flex-start; }
.g-review__h { display: flex; align-items: center; justify-content: space-between; font-weight: 600; color: #111; }
.g-review__h em { font-style: normal; font-size: .8em; color: #6b6b6b; background: #f0f0f0; border-radius: 999px; padding: .05em .55em; font-weight: 500; }
.g-cm { display: flex; gap: .6em; align-items: flex-start; }
.g-cm span { display: grid; gap: .35em; flex: 1; min-width: 0; }
.g-cm b { width: auto; height: auto; background: none; font-size: .85em; font-weight: 600; color: #333; }
.g-cm i:not(.g-av) { height: .45em; width: 100%; background: #e9e9e9; }
.g-cm i.s { width: 64%; }
.g-review .g-pill { margin-top: auto; align-self: flex-start; }

/* ================= What sets me apart: inset panels, little scenes ================= */
.why__card { padding: .5rem .5rem clamp(1.25rem, 2.4vw, 2rem); }
.why__card > h3, .why__card > p { padding-inline: clamp(1rem, 2vw, 1.5rem); }
.why__card > h3 { margin-top: .6rem; }
.why__art { position: relative; height: 210px; margin: 0; border-radius: calc(var(--r-card) - .5rem); padding: 0;
            display: block; overflow: hidden;
            background: radial-gradient(70% 90% at 50% 0%, rgba(255,255,255,.06), transparent 70%), #0a0a0a; border: 1px solid var(--line); }

/* the mini cursor, same look as the agents */
.mc { position: absolute; left: 0; top: 0; z-index: 5; color: var(--c); pointer-events: none; opacity: 0; }
.mc svg { position: absolute; left: -3px; top: -2px; width: 17px; height: 17px; max-width: none; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.mc b { position: absolute; left: 12px; top: 15px; white-space: nowrap; padding: 2px 7px; border-radius: 6px; background: var(--c);
        color: #fff; font-size: 10.5px; font-weight: 500; line-height: 1.35; box-shadow: 0 4px 12px -4px rgba(0,0,0,.6); }

/* 1 ─ me designing | FE + BE building without me */
.why__art--split { display: grid; grid-template-columns: 1fr 1fr; }
.split__half { position: relative; overflow: hidden; }
.split__half--team { border-left: 1px dashed rgba(255,255,255,.12); }
.split__label { position: absolute; top: .7rem; left: .8rem; font-size: .72rem; color: var(--fg-muted); white-space: nowrap; }
.cp-frame { position: absolute; left: 16%; top: 34%; width: 0; height: 0; border: 1.5px dashed #8B5CF6; border-radius: 3px; opacity: 0;
            animation: cpFrame 10s infinite; }
.cp-frame i { position: absolute; width: 6px; height: 6px; background: #fff; border: 1.5px solid #8B5CF6; border-radius: 1px; }
.cp-frame i:nth-child(1) { left: -4px; top: -4px; } .cp-frame i:nth-child(2) { right: -4px; top: -4px; }
.cp-frame i:nth-child(3) { left: -4px; bottom: -4px; } .cp-frame i:nth-child(4) { right: -4px; bottom: -4px; }
.cp-card, .inst { position: absolute; display: flex; align-items: center; gap: 7%; padding: 0 6%; border-radius: 9px;
                  background: #161616; border: 1px solid #262626; box-shadow: inset 0 1px 0 rgba(255,255,255,.05); opacity: 0; }
.cp-card { left: 16%; top: 34%; width: 68%; height: 40%; flex-wrap: wrap; align-content: center; gap: 6px 8px; padding: 0 7%;
           outline: 1.5px solid rgba(139,92,246,.55); outline-offset: 3px; animation: cpCard 10s infinite; }
.cp-av { width: 18px; height: 18px; flex: none; border-radius: 50%; background: linear-gradient(135deg, #555, #2a2a2a); }
.cp-l { flex: 1; height: 6px; border-radius: 3px; background: #2e2e2e; min-width: 30%; }
.cp-card .cp-l--s { flex: 0 0 40%; }
.cp-btn { flex: none; padding: 3px 9px; border-radius: 6px; background: #fff; color: #000; font-size: 10.5px; font-weight: 500; white-space: nowrap; }
.cp-tag { position: absolute; left: 16%; top: calc(74% + 10px); padding: 2px 8px; border-radius: 999px; background: rgba(139,92,246,.18);
          color: #c4b5fd; font-size: 10.5px; opacity: 0; animation: cpTag 10s infinite; }
.inst { left: 12%; width: 76%; height: 18%; animation: inst 10s infinite; }
.inst--1 { top: 26%; } .inst--2 { top: 50%; animation-name: inst2; } .inst--3 { top: 74%; animation-name: inst3; }
.mc--me { animation: mcMe 10s infinite; }
.mc--fe { animation: mcFe 10s infinite; }
.mc--be { animation: mcBe 10s infinite; }

/* 2 ─ an audit of the screen */
.au-screen { position: absolute; left: 22%; right: 22%; top: 16%; bottom: 14%; display: grid; align-content: center; justify-items: center; gap: 8px;
             border-radius: 12px; background: #121212; border: 1px solid #242424; }
.au-label { font-size: .75rem; color: var(--fg-muted); }
.au-value { font-size: 1.6rem; letter-spacing: -.04em; line-height: 1; }
.au-bar { width: 62%; height: 5px; border-radius: 3px; background: #222; overflow: hidden; }
.au-bar i { display: block; height: 100%; width: 66%; border-radius: inherit; background: linear-gradient(90deg, #3B82F6, #8B5CF6); }
.au-btn { margin-top: 4px; padding: 4px 12px; border-radius: 7px; background: #2a2a2a; color: #9a9a9a; font-size: 11px; }
.au-scan { position: absolute; left: 22%; right: 22%; top: 16%; height: 2px; border-radius: 2px; opacity: 0;
           background: linear-gradient(90deg, transparent, #E8784A, transparent); box-shadow: 0 0 14px #E8784A; animation: auScan 10s infinite; }
.au-pin { position: absolute; z-index: 4; display: flex; align-items: center; gap: 6px; opacity: 0; transform: scale(.6); }
.au-pin b { position: relative; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: #EF4444;
            color: #fff; font-size: 10px; font-weight: 600; box-shadow: 0 0 0 3px rgba(239,68,68,.22); }
.au-pin em { font-style: normal; font-size: 10.5px; padding: 2px 7px; border-radius: 6px; background: #1b1b1b; border: 1px solid #2c2c2c; color: #e5e5e5; white-space: nowrap; }
.au-pin--1 { left: 66%; top: 34%; animation: pin1 10s infinite; }
.au-pin--2 { left: 6%;  top: 52%; flex-direction: row-reverse; animation: pin2 10s infinite; }
.au-pin--3 { left: 63%; top: 70%; animation: pin3 10s infinite; }
.au-pin--1 b { animation: fix1 10s infinite; } .au-pin--2 b { animation: fix2 10s infinite; } .au-pin--3 b { animation: fix3 10s infinite; }
.au-pin--1 em { animation: note1 10s infinite; } .au-pin--2 em { animation: note2 10s infinite; } .au-pin--3 em { animation: note3 10s infinite; }
.mc--au { animation: mcAu 10s infinite; }

/* 3 ─ the whole chain, one step at a time */
.why__art--stages, .why__art--tech { display: grid; place-items: center; }
.st-row { position: relative; display: grid; grid-template-columns: repeat(5, 4.4rem); gap: .35rem; }
.st-row > span:not(.mc) { display: grid; place-items: center; height: 2.1rem; border-radius: 999px; border: 1px solid var(--line-strong);
                          font-size: .8rem; color: #d4d4d4; animation: stOn 7.5s infinite; }
.st-row > span:nth-child(2) { animation-delay: 1.5s; } .st-row > span:nth-child(3) { animation-delay: 3s; }
.st-row > span:nth-child(4) { animation-delay: 4.5s; } .st-row > span:nth-child(5) { animation-delay: 6s; }
.mc--st { animation: mcSt 7.5s infinite; opacity: 1; }

/* 4 ─ every technical stage gets checked */
.tc-row { position: relative; display: grid; grid-template-columns: repeat(2, 7.2rem); gap: .5rem; }
.tc { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; height: 2.3rem; border-radius: 9px;
      background: #141414; border: 1px solid var(--line-strong); color: #d4d4d4; font-size: .8125rem; }
.tc::before { content: "✓"; width: 0; overflow: hidden; color: #22C55E; font-weight: 600; transition: none; }
.tc:nth-child(1) { animation: tc1 9s infinite; } .tc:nth-child(2) { animation: tc2 9s infinite; }
.tc:nth-child(3) { animation: tc3 9s infinite; } .tc:nth-child(4) { animation: tc4 9s infinite; }
.tc:nth-child(1)::before { animation: tcc1 9s infinite; } .tc:nth-child(2)::before { animation: tcc2 9s infinite; }
.tc:nth-child(3)::before { animation: tcc3 9s infinite; } .tc:nth-child(4)::before { animation: tcc4 9s infinite; }
.mc--tc { animation: mcTc 9s infinite; }

@keyframes stOn { 0%, 17% { background: #fff; color: #000; border-color: #fff; } 21%, 100% { background: transparent; color: #d4d4d4; border-color: var(--line-strong); } }
@keyframes cpFrame { 0%, 7% { width:0;height:0;opacity:0 } 8% { width:0;height:0;opacity:1 } 26% { width:68%;height:40%;opacity:1 } 33% { width:68%;height:40%;opacity:1 } 38%, 100% { width:68%;height:40%;opacity:0 } }
@keyframes cpCard { 0%, 27% { opacity:0;transform:scale(.97) } 32%, 90% { opacity:1;transform:none } 96%, 100% { opacity:0;transform:none } }
@keyframes cpTag { 0%, 31% { opacity:0;transform:translateY(4px) } 35%, 90% { opacity:1;transform:none } 96%, 100% { opacity:0 } }
@keyframes mcMe { 0% { left: 70%; top: 92%; opacity: 0; } 4% { left: 60%; top: 80%; opacity: 1; } 8% { left: 16%; top: 34%; opacity: 1; } 26% { left: 84%; top: 74%; opacity: 1; } 34% { left: 84%; top: 74%; opacity: 1; } 46% { left: 62%; top: 58%; opacity: 1; } 62% { left: 70%; top: 44%; opacity: 1; } 86% { left: 66%; top: 50%; opacity: 1; } 92%, 100% { left: 66%; top: 50%; opacity: 0; } }
@keyframes inst { 0%, 47% { opacity:0;transform:translateY(-10px) } 52%, 90% { opacity:1;transform:none } 96%, 100% { opacity:0 } }
@keyframes inst2 { 0%, 61% { opacity:0;transform:translateY(-10px) } 66%, 90% { opacity:1;transform:none } 96%, 100% { opacity:0 } }
@keyframes inst3 { 0%, 75% { opacity:0;transform:translateY(-10px) } 80%, 90% { opacity:1;transform:none } 96%, 100% { opacity:0 } }
@keyframes mcFe { 0%, 38% { left: 20%; top: 6%; opacity: 0; } 42% { left: 18%; top: 14%; opacity: 1; } 50% { left: 80%; top: 40%; opacity: 1; } 58% { left: 86%; top: 36%; opacity: 1; } 66% { left: 30%; top: 60%; opacity: 1; } 78% { left: 80%; top: 88%; opacity: 1; } 88% { left: 70%; top: 80%; opacity: 1; } 94%, 100% { left: 70%; top: 80%; opacity: 0; } }
@keyframes mcBe { 0%, 52% { left: 92%; top: 10%; opacity: 0; } 56% { left: 86%; top: 20%; opacity: 1; } 64% { left: 80%; top: 64%; opacity: 1; } 74% { left: 88%; top: 58%; opacity: 1; } 88% { left: 84%; top: 60%; opacity: 1; } 94%, 100% { left: 84%; top: 60%; opacity: 0; } }
@keyframes auScan { 0%, 4% { top:16%;opacity:0 } 6% { top:16%;opacity:1 } 40% { top:85%;opacity:1 } 44%, 100% { top:85%;opacity:0 } }
@keyframes pin1 { 0%, 13% { opacity:0;transform:scale(.6) } 16% { opacity:1;transform:scale(1.1) } 18%, 90% { opacity:1;transform:none } 96%, 100% { opacity:0;transform:none } }
@keyframes fix1 { 0%, 57% { background:#EF4444;box-shadow:0 0 0 3px rgba(239,68,68,.22) } 59%, 100% { background:#22C55E;box-shadow:0 0 0 3px rgba(34,197,94,.22) } }
@keyframes note1 { 0%, 57% { opacity:1;text-decoration:none } 59%, 100% { opacity:.45;text-decoration:line-through } }
@keyframes pin2 { 0%, 25% { opacity:0;transform:scale(.6) } 28% { opacity:1;transform:scale(1.1) } 30%, 90% { opacity:1;transform:none } 96%, 100% { opacity:0;transform:none } }
@keyframes fix2 { 0%, 65% { background:#EF4444;box-shadow:0 0 0 3px rgba(239,68,68,.22) } 67%, 100% { background:#22C55E;box-shadow:0 0 0 3px rgba(34,197,94,.22) } }
@keyframes note2 { 0%, 65% { opacity:1;text-decoration:none } 67%, 100% { opacity:.45;text-decoration:line-through } }
@keyframes pin3 { 0%, 37% { opacity:0;transform:scale(.6) } 40% { opacity:1;transform:scale(1.1) } 42%, 90% { opacity:1;transform:none } 96%, 100% { opacity:0;transform:none } }
@keyframes fix3 { 0%, 73% { background:#EF4444;box-shadow:0 0 0 3px rgba(239,68,68,.22) } 75%, 100% { background:#22C55E;box-shadow:0 0 0 3px rgba(34,197,94,.22) } }
@keyframes note3 { 0%, 73% { opacity:1;text-decoration:none } 75%, 100% { opacity:.45;text-decoration:line-through } }
@keyframes mcAu { 0% { left: 90%; top: 90%; opacity: 0; } 4% { left: 80%; top: 84%; opacity: 1; } 12% { left: 68%; top: 40%; opacity: 1; } 16% { left: 68%; top: 40%; opacity: 1; } 24% { left: 12%; top: 58%; opacity: 1; } 28% { left: 12%; top: 58%; opacity: 1; } 36% { left: 65%; top: 76%; opacity: 1; } 40% { left: 65%; top: 76%; opacity: 1; } 56% { left: 68%; top: 40%; opacity: 1; } 64% { left: 12%; top: 58%; opacity: 1; } 72% { left: 65%; top: 76%; opacity: 1; } 86% { left: 80%; top: 30%; opacity: 1; } 92%, 100% { left: 80%; top: 30%; opacity: 0; } }
@keyframes mcSt { 0%, 14% { left:10%;top:62% } 20%, 34% { left:30%;top:62% } 40%, 54% { left:50%;top:62% } 60%, 74% { left:70%;top:62% } 80%, 94% { left:90%;top:62% } 100% { left:10%;top:62% } }
@keyframes tc1 { 0%, 12% { border-color:var(--line-strong);background:#141414 } 13%, 88% { border-color:rgba(34,197,94,.55);background:rgba(34,197,94,.08) } 92%, 100% { border-color:var(--line-strong);background:#141414 } }
@keyframes tcc1 { 0%, 12% { width:0 } 13%, 88% { width:.8em } 92%, 100% { width:0 } }
@keyframes tc2 { 0%, 28% { border-color:var(--line-strong);background:#141414 } 29%, 88% { border-color:rgba(34,197,94,.55);background:rgba(34,197,94,.08) } 92%, 100% { border-color:var(--line-strong);background:#141414 } }
@keyframes tcc2 { 0%, 28% { width:0 } 29%, 88% { width:.8em } 92%, 100% { width:0 } }
@keyframes tc3 { 0%, 44% { border-color:var(--line-strong);background:#141414 } 45%, 88% { border-color:rgba(34,197,94,.55);background:rgba(34,197,94,.08) } 92%, 100% { border-color:var(--line-strong);background:#141414 } }
@keyframes tcc3 { 0%, 44% { width:0 } 45%, 88% { width:.8em } 92%, 100% { width:0 } }
@keyframes tc4 { 0%, 60% { border-color:var(--line-strong);background:#141414 } 61%, 88% { border-color:rgba(34,197,94,.55);background:rgba(34,197,94,.08) } 92%, 100% { border-color:var(--line-strong);background:#141414 } }
@keyframes tcc4 { 0%, 60% { width:0 } 61%, 88% { width:.8em } 92%, 100% { width:0 } }
@keyframes mcTc { 0% { left: 110%; top: 120%; opacity: 0; } 4% { left: 90%; top: 110%; opacity: 1; } 10%, 15% { left: 25%; top: 25%; opacity: 1; } 26%, 31% { left: 75%; top: 25%; opacity: 1; } 42%, 47% { left: 25%; top: 75%; opacity: 1; } 58%, 63% { left: 75%; top: 75%; opacity: 1; } 80% { left: 100%; top: 50%; opacity: 1; } 88%, 100% { left: 100%; top: 50%; opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .why__art * { animation: none !important; }
  .mc, .cp-frame, .au-scan { display: none; }
  .cp-card, .cp-tag, .inst, .au-pin { opacity: 1; transform: none; }
}
@media (max-width: 560px) {
  .st-row { grid-template-columns: repeat(5, 3.6rem); }
  .split__label { font-size: .66rem; }
}

/* fixes */
.why__art--split { align-items: stretch; justify-content: stretch; }
.split__half { height: 100%; }

/* 3 ─ a happy user who gets it done, even on 3G */
.why__art--happy { display: grid; place-items: center; }
.hp-phone { position: relative; width: 150px; height: 178px; border-radius: 22px; background: #f6f6f6; color: #111;
            border: 4px solid #1f1f1f; box-shadow: 0 0 0 1px #333, 0 24px 40px -20px rgba(0,0,0,.9); overflow: hidden; margin-top: 18px; }
.hp-step { position: absolute; inset: 0; display: grid; align-content: start; gap: 7px; padding: 16px 12px; }
.hp-h { font-weight: 600; font-size: .82rem; letter-spacing: -.01em; }
.hp-field { display: grid; gap: 1px; padding: 6px 8px; border-radius: 8px; background: #fff; border: 1px solid #e6e6e6; }
.hp-field em { font-style: normal; font-size: .58rem; color: #8a8a8a; }
.hp-field b { font-weight: 500; font-size: .7rem; white-space: nowrap; }
.hp-cta { margin-top: 4px; padding: 7px 0; text-align: center; border-radius: 8px; background: #111; color: #fff; font-size: .72rem; font-weight: 500;
          animation: hpCta 9s infinite; }
.hp-step--1 { animation: hpS1 9s infinite; }
.hp-step--2 { justify-items: center; align-content: center; text-align: center; animation: hpS2 9s infinite; opacity: 0; }
.hp-ok { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #22C55E; color: #fff;
         box-shadow: 0 0 0 6px rgba(34,197,94,.18); }
.hp-ok svg { width: 22px; height: 22px; max-width: none; }
.hp-sub { font-size: .66rem; color: #6b6b6b; }
.hp-net { position: absolute; top: .7rem; left: .8rem; font-size: .7rem; color: var(--fg-muted); display: flex; align-items: center; gap: 6px; }
.hp-net::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #F59E0B; box-shadow: 0 0 8px #F59E0B; }
.hp-bubble { position: absolute; right: 12%; top: 26%; padding: 6px 11px; border-radius: 12px 12px 12px 3px; background: #fff; color: #111;
             font-size: .75rem; font-weight: 500; box-shadow: 0 10px 24px -10px rgba(0,0,0,.8); opacity: 0; animation: hpBub 9s infinite; }
.mc--user { animation: mcUser 9s infinite; }

/* 4 ─ me through every stage, a new colleague at each */
.st-row > .mc--co { animation: none; }
.mc--co { opacity: 0; }
.mc--co b { top: auto; bottom: 18px; left: 12px; }
.mc--co svg { transform: scaleY(-1); top: auto; bottom: -2px; }
@keyframes hpS1 { 0%, 54% { opacity:1;transform:none } 58%, 92% { opacity:0;transform:translateX(-12px) } 96%, 100% { opacity:1;transform:none } }
@keyframes hpS2 { 0%, 55% { opacity:0;transform:translateX(12px) } 60%, 92% { opacity:1;transform:none } 96%, 100% { opacity:0 } }
@keyframes hpCta { 0%, 46% { transform:none;background:#111 } 48% { transform:scale(.94);background:#333 } 52%, 100% { transform:none;background:#111 } }
@keyframes hpBub { 0%, 62% { opacity:0;transform:translateY(6px) scale(.9) } 66%, 90% { opacity:1;transform:none } 95%, 100% { opacity:0 } }
@keyframes mcUser { 0% { left: 78%; top: 96%; opacity: 0; } 6% { left: 62%; top: 86%; opacity: 1; } 16% { left: 52%; top: 44%; opacity: 1; } 22% { left: 52%; top: 44%; opacity: 1; } 32% { left: 52%; top: 60%; opacity: 1; } 38% { left: 52%; top: 60%; opacity: 1; } 46% { left: 50%; top: 80%; opacity: 1; } 50% { left: 50%; top: 80%; opacity: 1; } 64% { left: 58%; top: 62%; opacity: 1; } 88% { left: 60%; top: 60%; opacity: 1; } 94%, 100% { left: 60%; top: 60%; opacity: 0; } }
@keyframes mcSt2 { 0%, 15% { left:10%;top:64%;opacity:1 } 20%, 35% { left:30%;top:64%;opacity:1 } 40%, 55% { left:50%;top:64%;opacity:1 } 60%, 75% { left:70%;top:64%;opacity:1 } 80%, 95% { left:90%;top:64%;opacity:1 } 100% { left:10%;top:64%;opacity:1 } }
@keyframes co1 { 0% { left:10%;top:-40%;opacity:0 } 0% { left:10%;top:-40%;opacity:0 } 3% { left:calc(10% + 6px);top:-6%;opacity:1 } 15% { left:calc(10% + 6px);top:-6%;opacity:1 } 19%, 100% { left:10%;top:-40%;opacity:0 } }
@keyframes co2 { 0% { left:30%;top:-40%;opacity:0 } 20% { left:30%;top:-40%;opacity:0 } 23% { left:calc(30% + 6px);top:-6%;opacity:1 } 35% { left:calc(30% + 6px);top:-6%;opacity:1 } 39%, 100% { left:30%;top:-40%;opacity:0 } }
@keyframes co3 { 0% { left:50%;top:-40%;opacity:0 } 40% { left:50%;top:-40%;opacity:0 } 43% { left:calc(50% + 6px);top:-6%;opacity:1 } 55% { left:calc(50% + 6px);top:-6%;opacity:1 } 59%, 100% { left:50%;top:-40%;opacity:0 } }
@keyframes co4 { 0% { left:70%;top:-40%;opacity:0 } 60% { left:70%;top:-40%;opacity:0 } 63% { left:calc(70% + 6px);top:-6%;opacity:1 } 75% { left:calc(70% + 6px);top:-6%;opacity:1 } 79%, 100% { left:70%;top:-40%;opacity:0 } }
@keyframes co5 { 0% { left:90%;top:-40%;opacity:0 } 80% { left:90%;top:-40%;opacity:0 } 83% { left:calc(90% + 6px);top:-6%;opacity:1 } 95% { left:calc(90% + 6px);top:-6%;opacity:1 } 99%, 100% { left:90%;top:-40%;opacity:0 } }
@keyframes stOn2 { 0%, 18% { background:#fff;color:#000;border-color:#fff } 20%, 100% { background:transparent;color:#d4d4d4;border-color:var(--line-strong) } }
.st-row > .mc--co1 { animation: co1 10s infinite; }
.st-row > .mc--co2 { animation: co2 10s infinite; }
.st-row > .mc--co3 { animation: co3 10s infinite; }
.st-row > .mc--co4 { animation: co4 10s infinite; }
.st-row > .mc--co5 { animation: co5 10s infinite; }
.mc--st { animation: mcSt2 10s infinite !important; }
.st-row > span:nth-child(1) { animation: stOn2 10s infinite; animation-delay: 0s; }
.st-row > span:nth-child(2) { animation: stOn2 10s infinite; animation-delay: 2s; }
.st-row > span:nth-child(3) { animation: stOn2 10s infinite; animation-delay: 4s; }
.st-row > span:nth-child(4) { animation: stOn2 10s infinite; animation-delay: 6s; }
.st-row > span:nth-child(5) { animation: stOn2 10s infinite; animation-delay: 8s; }

@media (prefers-reduced-motion: reduce) {
  .hp-step--2, .hp-bubble { opacity: 1; } .hp-step--1 { opacity: 0; }
}

/* ================= Work on the timeline ================= */
.rail--work { margin-top: clamp(2.5rem, 5vw, 4rem); }
.rail--work .step { grid-template-columns: 9.5rem minmax(0, 1fr); }
.rail--work .step--case { --row-h: calc(clamp(1.5rem, 3vw, 2.5rem) * 2 + 32px); }
.rail--work .step__yr { height: auto; min-height: var(--row-h); line-height: 1.35; }
.rail--work .proj { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.rail--work .proj__meta { min-height: 32px; }
@media (max-width: 920px) {
  .rail--work .step { grid-template-columns: 1fr; }
  .rail--work .step__yr { min-height: 0; height: var(--row-h); }
  .rail--work .step--case { --row-h: 1.5rem; }
}

/* logos on the product shots: plain black, no plate */
.proj__logo { background: none; border: 0; padding: 0; backdrop-filter: none; -webkit-backdrop-filter: none; top: 16px; right: 18px; }
.proj__logo .co__logo { color: #000; height: 22px; }
.proj__logo .co__logo--hp { height: 30px; }

/* the 3D cursor above "What sets me apart" */
.icon3d[src*="cursor"] { width: clamp(150px, 15vw, 210px); filter: drop-shadow(0 26px 40px rgba(232,120,74,.25)) drop-shadow(0 18px 30px rgba(0,0,0,.8)); }

/* AI card: a white highlight instead of violet */
.skill--hero { background: radial-gradient(80% 70% at 50% 0%, rgba(255,255,255,.13), transparent 70%), var(--card), #050505;
               border-color: rgba(255,255,255,.26); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 30px 80px -40px rgba(255,255,255,.18); }
.skill--hero .skill__ic { background: linear-gradient(180deg, #1c1c1c, #0d0d0d); border-color: rgba(255,255,255,.35);
                          box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 0 22px rgba(255,255,255,.18); }
.skill--hero .skill__ic svg { color: #fff; }

/* contact photo: bigger, edge to edge, with two cursors on it */
.cta__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
.cta__photo { position: relative; justify-self: stretch; width: 100%; max-width: none; margin: 0; border: 0; border-radius: var(--r-card);
              overflow: hidden; aspect-ratio: 4 / 5; align-self: center; background: #050505; }
.cta__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.18); transform-origin: 50% 30%; }
.pc { position: absolute; left: 0; top: 0; z-index: 2; color: var(--c); pointer-events: none; }
.pc svg { position: absolute; left: -3px; top: -2px; width: 22px; height: 22px; max-width: none; filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); }
.pc b { position: absolute; left: 15px; top: 19px; white-space: nowrap; padding: 4px 10px 4px 9px; border-radius: 8px; background: var(--c);
        color: #fff; font-size: 13px; font-weight: 500; box-shadow: 0 8px 20px -8px rgba(0,0,0,.6); }
.pc--me { left: 66%; top: 24%; animation: pcMe 9s ease-in-out infinite; }
.pc--you { left: 22%; top: 68%; animation: pcYou 11s ease-in-out infinite; }
.cta__photo.is-you { cursor: none; }
.cta__photo.is-you .pc--you { animation: none; transition: left 90ms linear, top 90ms linear; }
@keyframes pcMe { 0%, 100% { transform: translate(0, 0); } 30% { transform: translate(-18px, 10px); } 60% { transform: translate(8px, 22px); } }
@keyframes pcYou { 0%, 100% { transform: translate(0, 0); } 35% { transform: translate(26px, -14px); } 70% { transform: translate(-10px, -26px); } }
@media (prefers-reduced-motion: reduce) { .pc { animation: none !important; } }
@media (max-width: 920px) { .cta__photo { width: 100%; max-width: 520px; justify-self: start; order: -1; } }
.hp-phone { height: 168px; margin-top: 12px; }
.hp-step { gap: 6px; padding: 13px 11px; }
.hp-field { padding: 5px 8px; }
/* stage pills: wide enough for "Business" with room to breathe */
.st-row { grid-template-columns: repeat(5, 6.2rem); gap: .45rem; }
.st-row > span:not(.mc) { height: 2.4rem; padding: 0 .9rem; white-space: nowrap; }
@media (max-width: 1100px) { .st-row { grid-template-columns: repeat(5, 5.4rem); } }
@media (max-width: 560px) { .st-row { grid-template-columns: repeat(5, 4.3rem); gap: .3rem; } .st-row > span:not(.mc) { padding: 0 .3rem; font-size: .7rem; } }

/* the user's app: wide enough to show the whole flow */
.hp-phone { width: min(72%, 320px); height: 156px; margin-top: 10px; border-radius: 14px; border: 1px solid #2c2c2c;
            box-shadow: 0 0 0 4px #161616, 0 24px 40px -20px rgba(0,0,0,.9); background: #f6f6f6; }
.hp-step { padding: 14px 14px; gap: 8px; }
.hp-step--1 { grid-template-columns: 1fr 1fr; align-content: center; }
.hp-step--1 .hp-h, .hp-step--1 .hp-cta { grid-column: 1 / -1; }
.hp-field { padding: 6px 9px; }
.hp-field b { font-size: .74rem; }
.hp-cta { margin-top: 2px; padding: 8px 0; font-size: .76rem; }
.hp-step--2 { gap: 6px; }
.hp-ok { width: 38px; height: 38px; }
.hp-bubble { right: 5%; top: 9%; }
.mc--user { animation: mcUser2 9s infinite; }
@keyframes mcUser2 { 0% { left: 86%; top: 96%; opacity: 0; } 6% { left: 74%; top: 88%; opacity: 1; } 16% { left: 33%; top: 47%; opacity: 1; } 22% { left: 33%; top: 47%; opacity: 1; } 32% { left: 66%; top: 47%; opacity: 1; } 38% { left: 66%; top: 47%; opacity: 1; } 46% { left: 52%; top: 71%; opacity: 1; } 50% { left: 52%; top: 71%; opacity: 1; } 64% { left: 60%; top: 58%; opacity: 1; } 88% { left: 62%; top: 56%; opacity: 1; } 94%, 100% { left: 62%; top: 56%; opacity: 0; } }

/* the audit shows each issue in the UI, and the UI changes when it is fixed */
.au-screen { gap: 6px; }
.au-label, .au-value { border-radius: 6px; padding: 0 6px; }
.au-value { animation: auVal 10s infinite, flagVal 10s infinite; }
.au-label { animation: auLab 10s infinite; }
.au-bar { animation: flagBar 10s infinite; }
.au-cap { font-size: .66rem; color: var(--fg-muted); height: 0; opacity: 0; overflow: hidden; animation: auCap 10s infinite; }
.au-btn { animation: auBtn 10s infinite, flagBtn 10s infinite; white-space: nowrap; text-align: center; }
@keyframes flagVal { 0%, 13% { box-shadow:0 0 0 0 rgba(0,0,0,0) } 16% { box-shadow:0 0 0 1.5px rgba(239,68,68,.9), 0 0 0 5px rgba(239,68,68,.15) } 57% { box-shadow:0 0 0 1.5px rgba(239,68,68,.9), 0 0 0 5px rgba(239,68,68,.15) } 60% { box-shadow:0 0 0 1.5px rgba(34,197,94,.9), 0 0 0 5px rgba(34,197,94,.15) } 67%, 100% { box-shadow:0 0 0 0 rgba(0,0,0,0) } }
@keyframes flagBar { 0%, 25% { box-shadow:0 0 0 0 rgba(0,0,0,0) } 28% { box-shadow:0 0 0 1.5px rgba(239,68,68,.9), 0 0 0 5px rgba(239,68,68,.15) } 65% { box-shadow:0 0 0 1.5px rgba(239,68,68,.9), 0 0 0 5px rgba(239,68,68,.15) } 68% { box-shadow:0 0 0 1.5px rgba(34,197,94,.9), 0 0 0 5px rgba(34,197,94,.15) } 75%, 100% { box-shadow:0 0 0 0 rgba(0,0,0,0) } }
@keyframes flagBtn { 0%, 37% { box-shadow:0 0 0 0 rgba(0,0,0,0) } 40% { box-shadow:0 0 0 1.5px rgba(239,68,68,.9), 0 0 0 5px rgba(239,68,68,.15) } 73% { box-shadow:0 0 0 1.5px rgba(239,68,68,.9), 0 0 0 5px rgba(239,68,68,.15) } 76% { box-shadow:0 0 0 1.5px rgba(34,197,94,.9), 0 0 0 5px rgba(34,197,94,.15) } 83%, 100% { box-shadow:0 0 0 0 rgba(0,0,0,0) } }
@keyframes auVal { 0%, 57% { color:#4a4a4a } 60%, 94% { color:#ffffff } 98%, 100% { color:#4a4a4a } }
@keyframes auLab { 0%, 57% { color:#3a3a3a } 60%, 94% { color:#a1a1a1 } 98%, 100% { color:#3a3a3a } }
@keyframes auCap { 0%, 65% { height:0;opacity:0 } 69%, 94% { height:1.1em;opacity:1 } 98%, 100% { height:0;opacity:0 } }
@keyframes auBtn { 0%, 73% { padding:2px 8px;font-size:9px;background:#2a2a2a;color:#8a8a8a;min-width:0 } 77%, 94% { padding:7px 14px;font-size:11.5px;background:#fff;color:#000;min-width:62% } 98%, 100% { padding:2px 8px;font-size:9px;background:#2a2a2a;color:#8a8a8a;min-width:0 } }
@media (prefers-reduced-motion: reduce) {
  .au-value { color: #fff; } .au-label { color: #a1a1a1; } .au-cap { height: 1.1em; opacity: 1; }
  .au-btn { padding: 7px 14px; font-size: 11.5px; background: #fff; color: #000; min-width: 62%; }
}

/* card 1: the parts on the left, a whole screen built from them on the right */
.split__half--me .cp-frame { left: 10%; top: 24%; }
.k-c { position: absolute; left: 16%; display: flex; align-items: center; gap: 10px; opacity: 0; }
.k-c em { font-style: normal; font-size: 10px; color: #c4b5fd; padding: 1px 7px; border-radius: 999px; background: rgba(139,92,246,.16); white-space: nowrap; }
.k-c--btn { top: 32%; animation: kBtn 10s infinite; }
.k-c--in  { top: 51%; animation: kIn 10s infinite; }
.k-c--tg  { top: 70%; animation: kTg 10s infinite; }
.k-btn { display: inline-grid; place-items: center; padding: 5px 14px; border-radius: 7px; background: #fff; color: #000; font-size: 10.5px; font-weight: 500; white-space: nowrap; }
.k-btn--full { display: grid; width: 100%; padding: 6px 0; }
.k-in { display: flex; align-items: center; width: 82px; height: 22px; padding: 0 8px; border-radius: 6px; background: #121212; border: 1px solid #333; }
.k-in i { display: block; width: 56%; height: 5px; border-radius: 3px; background: #3a3a3a; }
.k-in--full { width: 100%; }
.k-tg { position: relative; width: 30px; height: 17px; border-radius: 999px; background: #333; flex: none; }
.k-tg i { position: absolute; left: 2px; top: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; }
.k-tg--on { background: #22C55E; } .k-tg--on i { left: 15px; }
.k-app { position: absolute; left: 10%; top: 22%; width: 80%; height: 70%; border-radius: 12px; background: #121212; border: 1px solid #272727;
         box-shadow: inset 0 1px 0 rgba(255,255,255,.04); opacity: 0; animation: kApp 10s infinite; }
.k-app__top { position: absolute; left: 10px; top: 9px; display: flex; align-items: center; gap: 7px; font-size: 10.5px; color: #d4d4d4; }
.k-app__top b { font-weight: 500; }
.k-app__top .cp-av { width: 14px; height: 14px; }
.k-slot { position: absolute; left: 16%; width: 68%; opacity: 0; }
.k-slot--in { top: 45%; animation: kSIn 10s infinite; }
.k-slot--tg { top: 61%; animation: kSTg 10s infinite; }
.k-slot--btn { top: 76%; animation: kSBtn 10s infinite; }
.k-row { display: flex; align-items: center; justify-content: space-between; font-size: 10.5px; color: #bdbdbd; }
.split__half .cp-card, .split__half .cp-tag, .split__half .inst, .mc--me, .mc--fe, .mc--be { display: none; }
.mc--me2 { animation: mcMe2 10s infinite; } .mc--fe2 { animation: mcFe2 10s infinite; } .mc--be2 { animation: mcBe2 10s infinite; }
@keyframes cpFrame { 0%, 7% { width:0;height:0;opacity:0 } 8% { width:0;height:0;opacity:1 } 24%, 88% { width:72%;height:64%;opacity:1 } 95%, 100% { width:72%;height:64%;opacity:0 } }
@keyframes kBtn { 0%, 27% { opacity:0;transform:translateY(-6px) scale(.96) } 31%, 90% { opacity:1;transform:none } 96%, 100% { opacity:0;transform:none } }
@keyframes kIn { 0%, 35% { opacity:0;transform:translateY(-6px) scale(.96) } 39%, 90% { opacity:1;transform:none } 96%, 100% { opacity:0;transform:none } }
@keyframes kTg { 0%, 43% { opacity:0;transform:translateY(-6px) scale(.96) } 47%, 90% { opacity:1;transform:none } 96%, 100% { opacity:0;transform:none } }
@keyframes kApp { 0%, 46% { opacity:0;transform:translateY(-6px) scale(.96) } 50%, 90% { opacity:1;transform:none } 96%, 100% { opacity:0;transform:none } }
@keyframes kSIn { 0%, 54% { opacity:0;transform:translateY(-6px) scale(.96) } 58%, 90% { opacity:1;transform:none } 96%, 100% { opacity:0;transform:none } }
@keyframes kSTg { 0%, 64% { opacity:0;transform:translateY(-6px) scale(.96) } 68%, 90% { opacity:1;transform:none } 96%, 100% { opacity:0;transform:none } }
@keyframes kSBtn { 0%, 74% { opacity:0;transform:translateY(-6px) scale(.96) } 78%, 90% { opacity:1;transform:none } 96%, 100% { opacity:0;transform:none } }
@keyframes mcMe2 { 0% { left: 60%; top: 92%; opacity: 0; } 4% { left: 50%; top: 86%; opacity: 1; } 8% { left: 10%; top: 24%; opacity: 1; } 24% { left: 82%; top: 88%; opacity: 1; } 28% { left: 34%; top: 38%; opacity: 1; } 34% { left: 34%; top: 38%; opacity: 1; } 36% { left: 40%; top: 57%; opacity: 1; } 42% { left: 40%; top: 57%; opacity: 1; } 44% { left: 26%; top: 75%; opacity: 1; } 52% { left: 26%; top: 75%; opacity: 1; } 70% { left: 56%; top: 46%; opacity: 1; } 88% { left: 52%; top: 50%; opacity: 1; } 94%, 100% { left: 52%; top: 50%; opacity: 0; } }
@keyframes mcFe2 { 0%, 46% { left: 30%; top: 8%; opacity: 0; } 50% { left: 30%; top: 20%; opacity: 1; } 55% { left: 50%; top: 49%; opacity: 1; } 62% { left: 50%; top: 49%; opacity: 1; } 75% { left: 50%; top: 80%; opacity: 1; } 84% { left: 62%; top: 86%; opacity: 1; } 92%, 100% { left: 62%; top: 86%; opacity: 0; } }
@keyframes mcBe2 { 0%, 58% { left: 88%; top: 14%; opacity: 0; } 61% { left: 80%; top: 30%; opacity: 1; } 65% { left: 76%; top: 64%; opacity: 1; } 74% { left: 70%; top: 58%; opacity: 1; } 86% { left: 74%; top: 56%; opacity: 1; } 92%, 100% { left: 74%; top: 56%; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .k-c, .k-app, .k-slot { opacity: 1; transform: none; } }

/* card 3: give the grid a real column so the app card has a width to take */
.why__art--happy { grid-template-columns: minmax(0, 1fr); justify-items: center; }

/* project cards: the image fills its side, 0.5rem from the card's edges */
.rail--work .proj { padding: .5rem; gap: 0; align-items: stretch; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.rail--work .proj__body { padding: clamp(1.25rem, 2.6vw, 2rem); }
.rail--work .proj__media { height: 100%; min-height: 320px; border-radius: calc(var(--r-card) - .5rem); }
.rail--work .proj__media img { height: 100%; aspect-ratio: auto; object-fit: cover; }
.rail--work .step--case { --row-h: calc((.5rem + clamp(1.25rem, 2.6vw, 2rem)) * 2 + 32px); }
@media (max-width: 920px) {
  .rail--work .proj { grid-template-columns: 1fr; }
  .rail--work .proj__media { min-height: 0; height: auto; aspect-ratio: 16 / 10; }
  .rail--work .step--case { --row-h: 1.5rem; }
}

/* education rows on the work timeline */
.rail--work .step--edu { --row-h: calc(clamp(1.25rem, 2.4vw, 1.75rem) * 2 + 30px); }
.edu { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 1.1rem; align-items: start;
       padding: clamp(1.25rem, 2.4vw, 1.75rem); border-radius: var(--r-card); background: var(--card), #050505;
       border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.edu__ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
           background: linear-gradient(180deg, #1c1c1c, #0d0d0d); border: 1px solid var(--line-strong); box-shadow: inset 0 1px 0 rgba(255,255,255,.1); }
.edu__ic svg { width: 22px; height: 22px; max-width: none; color: #fff; }
.edu__body { display: grid; gap: .55rem; }
.edu__t { font-size: clamp(1.2rem, 1.7vw, 1.5rem); letter-spacing: -.025em; }
.edu__w { color: var(--fg-muted); }
.edu__n { color: #d4d4d4; }

/* the Microchip shot is dark, so its logo stays white */
#p-microchip .proj__logo .co__logo { color: #fff; }

/* cursors take their tag's colour, never the pill styles around them */
.why__art .mc { color: var(--c); padding: 0; border: 0; border-radius: 0; background: none; font-size: inherit; height: auto; }
.why__art--stages .st-row > span:nth-child(3) { background: transparent; color: #d4d4d4; border-color: var(--line-strong); }

/* text never clipped */
.au-cap { line-height: 1.35; animation-name: auCap2; }
@keyframes auCap2 { 0%, 65% { height: 0; opacity: 0; } 69%, 94% { height: 1.45em; opacity: 1; } 98%, 100% { height: 0; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .au-cap { height: 1.45em; } }
/* a tag flips to the side that has room, like Figma does near an edge */
.why__art .mc.is-fx b { left: auto; right: 6px; }
.why__art .mc.is-fy:not(.mc--co) b { top: auto; bottom: 6px; }
@media (max-width: 560px) {
  .st-row { grid-template-columns: repeat(5, 3.7rem); gap: .2rem; }
  .st-row > span:not(.mc) { font-size: .62rem; padding: 0 .2rem; height: 2.1rem; }
}

/* ================= Generator polish ================= */
/* concentric corners: inner radius = outer radius − the 10px gap */
.gen { border-radius: 22px; }
.gen__stage { border-radius: 12px; }
.gen__prompt { border-radius: 12px; }
.gen__url { border-radius: 7px; }

/* blocks arrive out of a soft blur, their contents a beat later */
.g-blk { filter: blur(4px); transform: scale(.985) translateY(3px);
         transition: opacity 380ms cubic-bezier(.23,1,.32,1), transform 380ms cubic-bezier(.23,1,.32,1), filter 380ms cubic-bezier(.23,1,.32,1); }
.g-blk.is-in { filter: none; }
.g-blk .st { opacity: 0; transform: translateY(3px); transition: opacity 260ms ease-out, transform 260ms cubic-bezier(.23,1,.32,1); }
.g-blk.is-in .st { opacity: 1; transform: none; }
.g-blk.is-in .st:nth-child(2) { transition-delay: 40ms; } .g-blk.is-in .st:nth-child(3) { transition-delay: 80ms; }
.g-blk.is-in .st:nth-child(4) { transition-delay: 120ms; } .g-blk.is-in .st:nth-child(5) { transition-delay: 160ms; }
.g-blk.is-in .st:nth-child(6) { transition-delay: 200ms; } .g-blk.is-in .st:nth-child(7) { transition-delay: 240ms; }

/* tags step aside while dragging, so the size badge stays readable */
.gen .agent[data-tool="cross"] .agent__tag, .gen .agent[data-tool="ibeam"] .agent__tag { top: -4px; left: 16px; }
.gen .agent.is-flip[data-tool] .agent__tag { left: auto; right: 14px; }

/* generated product UI, with real content */
.gen__stage svg { width: 1em; height: 1em; max-width: none; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.g-side { display: flex; flex-direction: column; gap: .35em; padding: 1em .7em; background: #f3f3f2; border-right: 1px solid #e7e7e5; }
.g-brand { display: flex; align-items: center; gap: .5em; font-weight: 600; font-size: 1em; margin: 0 0 .7em .35em; color: #111; }
.g-brand i { width: 1.15em; height: 1.15em; border-radius: .35em; background: var(--g-acc); box-shadow: inset 0 -2px 0 rgba(0,0,0,.15); }
.g-ni { display: flex; align-items: center; gap: .55em; padding: .45em .55em; border-radius: .5em; color: #6b6b6b; font-size: .9em; white-space: nowrap; }
.g-ni em { font-style: normal; overflow: hidden; text-overflow: ellipsis; }
.g-ni.is-on { background: #fff; color: #111; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 0 0 1px #ebebeb; }
.g-ni.is-on svg { color: var(--g-acc); }
.g-head { display: grid; align-content: center; gap: .15em; }
.g-head b { font-size: 1.55em; font-weight: 600; letter-spacing: -.025em; line-height: 1; }
.g-head em { font-style: normal; color: #8a8a8a; font-size: .85em; }
.g-btn { gap: .4em; box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 1px 2px rgba(0,0,0,.18); }
.g-btn--acc { box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 2px 6px -2px color-mix(in srgb, var(--g-acc) 60%, transparent); }
.g-card { border-color: #ebebea; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 16px -10px rgba(0,0,0,.12); }
.g-kpi { position: relative; overflow: hidden; }
.g-spark { position: absolute; right: .7em; bottom: .8em; width: 32%; height: 1.4em; }
.g-spark path { fill: none; stroke: var(--g-acc); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.g-chart { position: relative; }
.g-chart svg { stroke: none; }
.g-chart::before { content: ""; position: absolute; left: .9em; right: .9em; top: 2.2em; bottom: 0;
                   background: repeating-linear-gradient(180deg, transparent 0 calc(33.3% - 1px), #f0f0ef calc(33.3% - 1px) 33.3%); pointer-events: none; }
.g-chart::after { content: "1.2M RON"; position: absolute; right: .8em; top: 2.1em; padding: .15em .5em; border-radius: .4em;
                  background: #111; color: #fff; font-size: .75em; font-weight: 500; opacity: 0; transition: opacity 300ms 900ms ease-out; }
.g-chart.is-drawn::after { opacity: 1; }
.g-row { gap: .8em; }
.g-row--last { border-bottom: 0; }
.g-ini { width: 1.9em; height: 1.9em; flex: none; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .72em; font-weight: 600;
         color: hsl(var(--h) 60% 30%); background: hsl(var(--h) 80% 90%); }
.g-row__t { font-size: .88em; color: #6b6b6b; }
.g-row__t b { color: #111; font-weight: 500; margin-right: .3em; }
.g-amt { font-variant-numeric: tabular-nums; font-size: .88em; color: #333; white-space: nowrap; }
.g-bar { gap: 1.4em; }
.g-bar em { font-style: normal; font-size: .9em; color: #6b6b6b; }
.g-bar em.is-on { color: #111; font-weight: 500; }
.g-eyebrow span { display: inline-flex; padding: .25em .7em; border-radius: 999px; background: #FFF4CC; color: #7A5B00; font-size: .78em; font-weight: 600; letter-spacing: .04em; }
.g-callout { display: grid; align-content: center; gap: .3em; background: linear-gradient(160deg, #1d1d1d, #0b0b0b); box-shadow: 0 12px 24px -12px rgba(0,0,0,.5); }
.g-callout b { font-size: 2em; letter-spacing: -.04em; color: var(--g-acc); line-height: 1; }
.g-callout span { font-size: .82em; color: #d4d4d4; font-weight: 400; line-height: 1.3; }
.g-plan { gap: .5em; }
.g-plan__top { display: flex; align-items: center; justify-content: space-between; gap: .5em; }
.g-badge { font-style: normal; font-size: .72em; font-weight: 600; padding: .15em .55em; border-radius: 999px; background: var(--g-acc); color: #111; }
.g-plan__p { color: #8a8a8a; font-size: .85em; } .g-plan__p b { color: #111; font-size: 1.5em; letter-spacing: -.03em; font-weight: 600; }
.g-plan__li { display: flex; align-items: center; gap: .45em; height: auto; background: none; font-size: .85em; color: #444; white-space: nowrap; }
.g-plan__li svg { color: #16A34A; }
.g-plan .g-btn { height: 2.3em; margin-top: auto; }
.g-chip svg { color: var(--g-acc); margin-right: .35em; }
.g-copy { display: grid; align-content: start; gap: .55em; font-size: .88em; line-height: 1.5; color: #555; }
.g-copy mark { background: color-mix(in srgb, var(--g-acc) 16%, #fff); color: #333; padding: 0 .2em; border-radius: .2em; }
.g-code { font-size: .8em; }
.g-code__bar em { margin-left: auto; font-style: normal; font-size: .85em; color: #8a8a8a; }
.g-code code { display: grid; gap: .35em; padding: .8em 1em; font-family: ui-monospace, "SF Mono", Menlo, monospace; color: #d4d4d4; white-space: pre; overflow: hidden; }
.g-code s { text-decoration: none; } .g-code .ck { color: color-mix(in srgb, var(--g-acc) 60%, #fff); } .g-code .cs { color: #86efac; } .g-code .cc { color: #7a7a7a; }
.g-review { gap: .7em; }
.g-cm { gap: .55em; }
.g-cm .g-ini { width: 1.8em; height: 1.8em; }
.g-cm span { gap: .15em; }
.g-cm b { font-size: .85em; }
.g-cm q { quotes: none; font-size: .8em; color: #6b6b6b; line-height: 1.35; }
.g-review .g-pill { display: inline-flex; align-items: center; gap: .3em; }

@media (hover: hover) and (pointer: fine) {
  .proj__media img { filter: grayscale(1) contrast(1.04); transition: filter 600ms cubic-bezier(.23,1,.32,1), transform 700ms cubic-bezier(.23,1,.32,1); }
  .proj:hover .proj__media img { filter: none; }
}

/* project cards, compact */
.rail--work .proj__body { padding: clamp(.9rem, 1.6vw, 1.35rem); gap: .65rem; }
.rail--work .proj__name { font-size: clamp(1.4rem, 2vw, 1.85rem); }
.rail--work .proj__desc { font-size: .9375rem; line-height: 1.55; }
.rail--work .proj__points { gap: .4rem; }
.rail--work .proj__points li { font-size: .9375rem; line-height: 1.5; }
.rail--work .proj .btn-row { margin-top: .2rem; }
.rail--work .proj__media { min-height: 280px; }
.rail--work .step--case { --row-h: calc((.5rem + clamp(.9rem, 1.6vw, 1.35rem)) * 2 + 32px); }
.rail--work .step { padding-block: clamp(.9rem, 1.8vw, 1.5rem); }

/* Microchip: the source is only 512px wide, so show it at its own size instead of stretching it */
#p-microchip .proj__media { display: grid; place-items: center; background: radial-gradient(60% 60% at 50% 45%, #1a1a1a, #070707); }
#p-microchip .proj__media img { width: min(78%, 440px); height: auto; object-fit: contain; aspect-ratio: auto; }

/* case study screenshots: no frame around them */
.fig img { border: 0; background: none; }

/* case study pages: tighter rhythm between sections */
.cs ~ .section, body:not(:has(.hero)) .section { padding-block: clamp(2.75rem, 5vw, 4.5rem); }
.cs__body h2 { line-height: 1.12; }
/* highlighted words read white, the rest stays muted */
.cs__prose mark { background: none; color: #fff; font-weight: 500; }
.g-blk.g-kpi, .g-blk.g-chart { position: absolute; }
.g-review { overflow: hidden; }
.g-cm span { min-width: 0; }
.g-cm q { display: block; overflow-wrap: anywhere; }
.g-cm .g-ini { width: 1.6em; height: 1.6em; font-size: .66em; }
.cs__body h2 { line-height: 1.08; padding-bottom: .04em; }
.cs__body h2 + .cs__prose > .cs__sub3:first-child { margin-top: 0; }
.gen__stage .g-chart svg { width: 100%; height: auto; flex: 1; min-height: 0; stroke: none; }
.gen__stage .g-chart .g-line { stroke: var(--g-acc); }
.g-review .g-cm .g-ini { width: 1.7em; height: 1.7em; flex: none; border-radius: 50%; background: hsl(var(--h) 80% 90%); color: hsl(var(--h) 55% 32%); font-size: .62em; }
.g-review .g-cm { display: grid; grid-template-columns: auto minmax(0, 1fr); }

/* more work cards: image 0.5rem from the card edges, heading left, logo right */
.rel { padding: .5rem .5rem 1.1rem; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "shot shot" "title logo"; column-gap: 1rem; row-gap: 1rem; }
.rel__shot { grid-area: shot; border-radius: calc(var(--r-card) - .5rem); }
.rel__title { grid-area: title; padding-left: .6rem; align-self: start; }
.rel__co { grid-area: logo; padding-right: .6rem; align-self: start; padding-top: .15rem; }

/* case header meta: logo on its own row, then role, then the Current badge */
.cs__meta { flex-wrap: wrap; row-gap: .9rem; column-gap: .7rem; }
.cs__meta .co { flex-basis: 100%; }
.cs__meta .kicker { order: 2; }
.cs__meta .badge { order: 3; }
.cs__facts dd.facts__num { line-height: 1.55; color: var(--fg-muted); }
.cs__facts dd.facts__num b { color: #fff; font-weight: 500; font-size: 1.15em; letter-spacing: -.02em; margin-right: .2em; font-variant-numeric: tabular-nums; }
/* dashboard rows: calmer, columns line up */
.g-row { gap: 1em; padding: 0 1em; }
.g-row__t b { font-weight: 500; }
.g-amt { width: 7.5em; text-align: right; color: #555; }
.g-row .g-pill { width: 5.8em; text-align: center; }

/* the request arrives as a message */
.gen__prompt { gap: 10px; padding: 9px 12px 9px 10px; align-items: center; }
.gen__prompt::after { content: none; }
.gen__spark, .gen__caret { display: none; }
.gen__av { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 10.5px; font-weight: 600;
           color: hsl(var(--h, 210) 60% 28%); background: hsl(var(--h, 210) 80% 86%); position: relative; }
.gen__av::after { content: ""; position: absolute; right: -1px; top: -1px; width: 8px; height: 8px; border-radius: 50%; background: #EF4444;
                  box-shadow: 0 0 0 2px #141414; opacity: 0; transform: scale(.6); transition: opacity 200ms ease-out, transform 200ms cubic-bezier(.23,1,.32,1); }
.gen__prompt.is-ping .gen__av::after { opacity: 1; transform: none; }
.gen__body { display: grid; gap: 1px; min-width: 0; flex: 1; }
.gen__from { display: flex; align-items: baseline; gap: 6px; font-size: 11px; white-space: nowrap; overflow: hidden; }
.gen__from b { font-weight: 600; color: #fff; }
.gen__from em { font-style: normal; color: #8a8a8a; overflow: hidden; text-overflow: ellipsis; }
.gen__from time { margin-left: auto; color: #6e6e6e; font-size: 10.5px; }
.gen__text { font-size: 12.5px; color: #e5e5e5; opacity: 0; transform: translateY(4px);
             transition: opacity 260ms ease-out, transform 260ms cubic-bezier(.23,1,.32,1); }
.gen__prompt.is-in .gen__text { opacity: 1; transform: none; }
.gen__prompt.is-ping { border-color: rgba(255,255,255,.26); box-shadow: 0 0 0 4px rgba(255,255,255,.05), inset 0 1px 0 rgba(255,255,255,.06); }
.gen__prompt { transition: border-color 300ms ease, box-shadow 300ms ease; }
.gen__dots { position: absolute; left: 50px; bottom: 11px; display: flex; gap: 3px; opacity: 0; transition: opacity 150ms ease; }
.gen__prompt.is-typing .gen__dots { opacity: 1; }
.gen__dots i { width: 5px; height: 5px; border-radius: 50%; background: #9a9a9a; animation: gdot 900ms ease-in-out infinite; }
.gen__dots i:nth-child(2) { animation-delay: 150ms; } .gen__dots i:nth-child(3) { animation-delay: 300ms; }
@keyframes gdot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }

/* ---- generator consistency ---- */
.g-btn { border-radius: 8px; } .g-chip { border-radius: 999px; }
.g-btn span { white-space: nowrap; }
.g-code code { white-space: nowrap; }
.g-code code > span { display: block; }
.g-code code > span.in { padding-left: 2ch; }
.g-review .g-cm { grid-template-columns: 2.1em minmax(0, 1fr); column-gap: .6em; align-items: start; }
.g-review .g-cm .g-ini { width: 2.1em; height: 2.1em; font-size: .7em; margin-top: -.1em; }
.g-ni em { text-overflow: clip; }

/* ---- project cards lift, the image lifts a little more ---- */
.rail--work .proj { transition: transform 420ms cubic-bezier(.23,1,.32,1), box-shadow 420ms cubic-bezier(.23,1,.32,1), border-color 300ms ease; }
.rail--work .proj__media { transition: transform 520ms cubic-bezier(.23,1,.32,1), box-shadow 520ms cubic-bezier(.23,1,.32,1); }
@media (hover: hover) and (pointer: fine) {
  .rail--work .proj:hover { transform: translateY(-4px); border-color: var(--line-strong);
                            box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 30px 70px -36px rgba(255,255,255,.12); }
  .rail--work .proj:hover .proj__media { transform: translateY(-4px); box-shadow: 0 24px 40px -22px rgba(0,0,0,.9); }
  .rail--work .proj:hover .proj__media img { transform: scale(1.02); }
}
@media (prefers-reduced-motion: reduce) { .rail--work .proj, .rail--work .proj__media { transition: none; } }
.g-plan { gap: .45em; padding: .8em 1em; }
.g-plan .g-btn { height: 2.2em; flex: none; }

/* case study fade in */
.fx { opacity: 0; transform: translateY(26px); filter: blur(6px);
      transition: opacity 800ms cubic-bezier(.23,1,.32,1), transform 800ms cubic-bezier(.23,1,.32,1), filter 800ms cubic-bezier(.23,1,.32,1); }
.fx.fx-in { opacity: 1; transform: none; filter: none; }

/* images open full screen */
.fig img, .cs__cover img, .proj__media img { cursor: zoom-in; }
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
      opacity: 0; transition: opacity 200ms ease-out; }
.lb.is-open { opacity: 1; }
.lb__stage { position: absolute; inset: 0 0 76px; display: grid; place-items: center; overflow: hidden; touch-action: none; cursor: zoom-out;
             padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }
.lb__img { max-width: min(94vw, 1800px); max-height: calc(100vh - 120px); width: auto; height: auto; border-radius: 12px; cursor: zoom-in;
           transform-origin: center; user-select: none; -webkit-user-drag: none; box-shadow: 0 30px 80px -20px rgba(0,0,0,.9);
           transition: transform 240ms cubic-bezier(.23,1,.32,1); }
.lb.is-open .lb__img { animation: lbIn 260ms cubic-bezier(.23,1,.32,1); }
@keyframes lbIn { from { opacity: 0; scale: .96; } }
.lb.is-zoomed .lb__img { cursor: grab; } .lb.is-zoomed .lb__img:active { cursor: grabbing; }
.lb__bar { position: absolute; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: flex; align-items: center; gap: 4px;
           padding: 5px; border-radius: 999px; background: rgba(20,20,20,.9); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 10px 30px -10px rgba(0,0,0,.8); }
.lb__b { min-width: 36px; height: 36px; padding: 0 8px; border: 0; border-radius: 999px; background: transparent; color: #fff; font-size: 18px; line-height: 1; cursor: pointer;
         transition: background 150ms ease, transform 120ms ease-out; }
.lb__b--txt { font-size: 13px; font-weight: 500; }
.lb__b:hover { background: rgba(255,255,255,.1); } .lb__b:active { transform: scale(.94); }
.lb__b:focus-visible { outline: 1.5px solid #fff; outline-offset: 1px; }
.lb__x { margin-left: 6px; background: rgba(255,255,255,.08); font-size: 14px; }
.lb__z, .lb__n { min-width: 44px; text-align: center; color: #a1a1a1; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.lb__n:empty, .lb__n:empty ~ [data-a="prev"], .lb__n:empty ~ [data-a="next"] { display: none; }
.lb__hint { position: absolute; left: 0; right: 0; top: calc(14px + env(safe-area-inset-top, 0px)); text-align: center; color: #8a8a8a; font-size: 12px; margin: 0; pointer-events: none; }
html.lb-lock, html.lb-lock body { overflow: hidden; }
@media (max-width: 560px) { .lb__hint { display: none; } .lb__z { display: none; } }
@media (prefers-reduced-motion: reduce) { .fx { opacity: 1; transform: none; filter: none; } .lb__img { animation: none !important; transition: none !important; } }
/* scannable lists in case studies */
.cs__list { list-style: none; margin: .25rem 0 .5rem; padding: 0; display: grid; gap: 0; max-width: 62ch; border-top: 1px solid var(--line); }
.cs__list li { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); column-gap: .5rem; padding: .95rem 0; border-bottom: 1px solid var(--line); }
.cs__list li::before { content: ""; grid-row: 1 / 3; width: 7px; height: 7px; margin-top: .55em; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.08); }
.cs__list b { color: #fff; font-weight: 500; }
.cs__list span { color: var(--fg-muted); font-size: .95em; margin-top: .2rem; }
@media (hover: hover) and (pointer: fine) {
  .rel__shot img { filter: grayscale(1) contrast(1.04); transition: filter 600ms cubic-bezier(.23,1,.32,1), transform 700ms cubic-bezier(.23,1,.32,1); }
  .rel:hover .rel__shot img { filter: none; }
}

/* problem markers on screenshots */
.fig--ann { position: relative; }
.ann__layer { position: absolute; inset: 0; pointer-events: none; }
.ann { position: absolute; border: 2px dashed #EF4444; border-radius: 10px; background: rgba(239,68,68,.06);
       opacity: 0; transform: scale(.96); transition: opacity 420ms var(--d) cubic-bezier(.23,1,.32,1), transform 420ms var(--d) cubic-bezier(.23,1,.32,1); }
.fig--ann.fx-in .ann, .fig--ann:not(.fx) .ann { opacity: 1; transform: none; }
.ann b { position: absolute; top: -12px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
         background: #EF4444; color: #fff; font-size: 12px; font-weight: 600; box-shadow: 0 0 0 4px rgba(239,68,68,.2); }
.ann em { position: absolute; top: -12px; white-space: nowrap; font-style: normal; font-size: clamp(11px, 1vw, 13.5px); font-weight: 500;
          padding: 4px 10px; border-radius: 8px; background: #111; color: #fff; box-shadow: 0 8px 20px -8px rgba(0,0,0,.6); }
.ann--r b { right: -12px; } .ann--r em { left: calc(100% + 20px); }
.ann--l b { left: -12px; }  .ann--l em { right: calc(100% + 20px); }
@media (max-width: 620px) { .ann em { display: none; } }
@media (prefers-reduced-motion: reduce) { .ann { opacity: 1; transform: none; transition: none; } }
.cs__prose .cs__list { padding: 0; gap: 0; }

/* stat strip at the top of each case */
.cs__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; max-width: none; margin-bottom: .75rem;
             border-radius: var(--r-tile); overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.cs__stats > div { display: grid; gap: .35rem; align-content: start; padding: 1.1rem 1.15rem 1.2rem; background: #050505; }
.cs__stats b { font-size: clamp(1.6rem, 2.4vw, 2.2rem); font-weight: 500; letter-spacing: -.045em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.cs__stats span { font-size: .875rem; line-height: 1.4; color: var(--fg-muted); }
@media (max-width: 760px) { .cs__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* pull quotes */
.cs__pull { margin: .75rem 0; padding: .2rem 0 .2rem 1.25rem; border-left: 2px solid #fff; max-width: 52ch; }
.cs__pull p { font-size: clamp(1.25rem, 1.9vw, 1.6rem); line-height: 1.35; letter-spacing: -.02em; color: #fff; }
.cs__pull mark { color: inherit; font-weight: inherit; }

/* card 1, left: a new Insights screen in progress */
.nx { position: absolute; left: 10%; top: 24%; width: 72%; height: 64%; }
.nx .k-c { position: absolute; left: 7%; right: 7%; display: flex; align-items: center; gap: 8px; }
.nx__top { top: 10%; justify-content: space-between; }
.nx__top b { font-size: 11.5px; font-weight: 600; color: #fff; }
.nx__top i { font-style: normal; font-size: 9.5px; color: #c4b5fd; padding: 2px 7px; border-radius: 999px; background: rgba(139,92,246,.16); }
.nx__bars { top: 32%; height: 38%; align-items: flex-end; gap: 7%; }
.nx__bars i { flex: 1; height: calc(var(--v) * 100%); border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, #8B5CF6, rgba(139,92,246,.35));
              transform-origin: bottom; animation: nxBar 10s infinite; }
.nx__bars i:nth-child(2) { animation-delay: 60ms; } .nx__bars i:nth-child(3) { animation-delay: 120ms; } .nx__bars i:nth-child(4) { animation-delay: 180ms; }
.nx__bars i:nth-child(5) { animation-delay: 240ms; } .nx__bars i:nth-child(6) { animation-delay: 300ms; }
@keyframes nxBar { 0%, 36% { transform: scaleY(.08); } 44%, 100% { transform: none; } }
.nx__row { top: 78%; padding: 5px 8px; border-radius: 7px; background: #141414; border: 1px solid #262626; left: 7%; right: 7%; }
.nx__row i { width: 8px; height: 8px; border-radius: 50%; background: #F59E0B; flex: none; }
.nx__row b { font-size: 10px; font-weight: 500; color: #d4d4d4; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx__row em { font-style: normal; font-size: 9.5px; color: #000; background: #fff; padding: 2px 7px; border-radius: 5px; }
@media (prefers-reduced-motion: reduce) { .nx__bars i { animation: none; } }
.nx .nx__bars { align-items: flex-end; border-bottom: 1px solid #2a2a2a; padding-bottom: 2px; }
/* chart: grid behind the data, label clear of the line */
.g-chart::before { z-index: 0; }
.gen__stage .g-chart svg { position: relative; z-index: 1; }
.g-chart::after { top: .55em; z-index: 2; }
/* avatars: squircles, initials centred */
.gen__av, .g-ini { border-radius: 32%; }
.gen__av { border-radius: 30%; }
.g-review .g-cm .g-ini { display: grid; place-items: center; line-height: 1; height: 2.1em; width: 2.1em; border-radius: 32%; margin-top: 0; }
.g-review .g-cm { align-items: center; }
.g-review .g-cm span { align-self: start; }
.g-review .g-cm { align-items: start; } .g-review .g-cm .g-ini { margin-top: -.05em; }

/* skill cards: a soft glow follows the pointer */
.skill { position: relative; overflow: hidden; isolation: isolate;
         transition: border-color 300ms ease, transform 420ms cubic-bezier(.23,1,.32,1), box-shadow 420ms cubic-bezier(.23,1,.32,1); }
.skill::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0;
                background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.1), transparent 60%);
                transition: opacity 300ms ease; }
@media (hover: hover) and (pointer: fine) {
  .skill:hover { border-color: rgba(255,255,255,.22); transform: translateY(-2px);
                 box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 24px 60px -30px rgba(255,255,255,.18); }
  .skill:hover::after { opacity: 1; }
  .skill:hover .skill__ic { box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 0 18px rgba(255,255,255,.14); }
}
.proj.is-link { cursor: pointer; } .proj__media img { cursor: inherit; }

/* process steps: faded icon, current and passed highlights */
.proc__steps { border-top: 0; display: grid; gap: 4px; }
.proc__step { position: relative; padding: 1.35rem 4.5rem 1.35rem 1.1rem; border: 0; border-radius: 16px; background: rgba(255,255,255,0);
              box-shadow: inset 0 -1px 0 var(--line); transition: background 360ms cubic-bezier(.23,1,.32,1), box-shadow 360ms ease; }
.proc__step.is-past { background: rgba(255,255,255,.05); box-shadow: none; }
.proc__step.is-current { background: rgba(255,255,255,.10); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.proc__ic { position: absolute; top: 1.2rem; right: 1.2rem; width: 40px; height: 40px; color: #fff; opacity: .1;
            transition: opacity 360ms ease, transform 360ms cubic-bezier(.23,1,.32,1); }
.proc__ic svg { width: 100%; height: 100%; max-width: none; }
.proc__step.is-past .proc__ic { opacity: .16; }
.proc__step.is-current .proc__ic { opacity: .32; transform: scale(1.06); }
.proc__step.is-current .proc__n { color: #fff; }
@media (prefers-reduced-motion: reduce) { .proc__step, .proc__ic { transition: none; } }
.gen__av { border-radius: 22%; } .g-ini, .g-review .g-cm .g-ini { border-radius: 24%; }
.g-p { white-space: normal; overflow: hidden; }
.gen__chrome { position: relative; } .gen__url { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; white-space: nowrap; }
/* Vola scene: taller plan cards that run past the fold, faded at the bottom */
.g-plan { justify-content: flex-start; }
.g-plan .g-btn { margin-top: .6em; }
.gen__stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 16%; z-index: 50; pointer-events: none;
                     background: linear-gradient(to bottom, rgba(250,250,250,0), #fafafa 85%); opacity: 0; transition: opacity 300ms ease; }
.gen[data-scene="1"] .gen__stage::after { opacity: 1; }
.gen__stage::after { height: 7%; background: linear-gradient(to bottom, rgba(250,250,250,0), #fafafa 90%); }
.g-plan { gap: .38em; }
/* message bar: one height for every state (sender only, typing, message) */
.gen__prompt { height: 60px; box-sizing: border-box; flex: none; }
.gen__body { align-content: center; }
.gen__from { height: 16px; line-height: 16px; }
.gen__text { display: block; height: 18px; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gen__dots { bottom: auto; top: 35px; }
.g-chip { font-size: .82em; padding: 0 .8em; width: auto !important; }
.g-code code { font-size: .78em; gap: .45em; padding: .8em 1em; white-space: nowrap; } .g-code code > span { padding-left: 0; text-indent: 0; } .g-code code > span.in { padding-left: 2ch; }
.g-ni { padding: .55em .7em; gap: .6em; } .g-side { gap: .25em; padding-inline: .6em; }
.k-slot--in { top: 41%; } .k-slot--tg { top: 56%; } .k-slot--btn { top: 70%; }
/* Insights frame: equal side margins, row fully inside the frame */
.nx { left: 8%; width: 84%; top: 22%; height: 70%; }
.split__half--me .cp-frame { left: 8%; top: 22%; animation-name: cpFrame2; }
@keyframes cpFrame2 { 0%, 7% { width: 0; height: 0; opacity: 0; } 8% { width: 0; height: 0; opacity: 1; } 24%, 88% { width: 84%; height: 70%; opacity: 1; } 95%, 100% { width: 84%; height: 70%; opacity: 0; } }
.nx__row { top: auto; bottom: 7%; }
.nx__bars { top: 27%; height: 38%; }
.gen__prompt { height: 50px; padding-block: 6px; } .gen__av { width: 26px; height: 26px; } .gen__dots { top: 30px; }
.gen__stage { z-index: 1; } .gen__fx { z-index: 10; }
.g-code code { padding-left: 1em; } .g-code code > span:not(.in) { padding-left: 0; }
/* process steps: big bleeding icon, even padding, straight dividers */
.proc__step { overflow: hidden; padding: 1.35rem 6rem 1.35rem 1.35rem; box-shadow: none; }
.proc__step::after { content: ""; position: absolute; left: 1.35rem; right: 1.35rem; bottom: -2px; height: 1px; background: var(--line); transition: opacity 300ms ease; }
.proc__step.is-past::after, .proc__step.is-current::after, .proc__step:has(+ .is-past)::after, .proc__step:has(+ .is-current)::after { opacity: 0; }
.proc__step:last-child::after { display: none; }
.proc__ic { width: 132px; height: 132px; top: -26px; right: -26px; opacity: .07; }
.proc__step.is-past .proc__ic { opacity: .1; }
.proc__step.is-current .proc__ic { opacity: .2; transform: rotate(-8deg) scale(1.04); }
.proc__step::after { bottom: 0; }
/* testimonials: a soft light follows the pointer */
.quote { position: relative; overflow: hidden; isolation: isolate; transition: border-color 300ms ease; }
.quote::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; border-radius: inherit;
                background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.1), transparent 60%); transition: opacity 300ms ease; }
@media (hover: hover) and (pointer: fine) { .quote:hover::after { opacity: 1; } .quote:hover { border-color: rgba(255,255,255,.2); } }
