/* ==========================================================================
   Effectus Media — homepage
   One idea per section, hairlines instead of shadows, motion only where it
   explains something. Every horizontal rule runs the full width and gets a
   crosshair where it crosses the rails.
   ========================================================================== */

/* Type follows the v4 roles in site.css everywhere: .h2 (56), .h3 (32), .lead (20 light), .card-title (20), body 16, .eyebrow */

/* Meta labels: Satoshi Regular, all caps, 30% letter spacing (brand book) */
.hero__hint {
  font-family: var(--f-text); font-weight: 400; letter-spacing: 0.3em; text-transform: uppercase;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 100svh; min-height: 720px; max-height: 1100px; overflow: hidden; color: #fff; isolation: isolate;
  background:
    radial-gradient(70% 55% at 50% 80%, rgba(150, 125, 255, 0.55), transparent 70%),
    linear-gradient(180deg, #173dd0 0%, #1d45d8 22%, #3c66ea 48%, #5a73ef 64%, #3546cf 82%, #141a86 100%);
}
.hero__rails { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.24)) no-repeat left var(--rail) top 0 / 1px 100%,
    linear-gradient(rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.24)) no-repeat right var(--rail) top 0 / 1px 100%;
}
.hero__band { position: relative; z-index: 2; padding-top: var(--nav-h); pointer-events: none; } /* the frame's top rule sits as far below the nav's buttons as they sit below the top */
/* The frame spans the full width, like the rails, so both resolve --rail against the same box */
.hero__frame { position: relative; padding-block: calc(clamp(30px, 4.6vh, 52px) + clamp(24px, 5vh, 64px)) clamp(30px, 4.6vh, 52px); }
.hero__frame::before, .hero__base { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: rgba(255, 255, 255, 0.3); }
.hero__frame::before { top: 0; }
.hero__base { z-index: 0; bottom: clamp(64px, 10vh, 112px); }
.hero__inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: clamp(16px, 2.4vh, 24px); }
.hero__inner a, .hero__inner button { pointer-events: auto; }
/* Season Mix ships up to Medium (500); that's the heaviest cut we have */
/* the band ignores the pointer (for the flower), so the heading and subheading take it back to be selectable text */
.hero__title { font: 400 clamp(2.2rem, 0.6rem + 3.8vw, 4rem)/1.02 var(--f-display); letter-spacing: -0.02em; pointer-events: auto; user-select: text; }
.hero__sub { pointer-events: auto; user-select: text; }
.hero__line { display: block; overflow: hidden; padding: 0.02em 0 0.1em; margin-bottom: -0.08em; }
.hero__line > span { display: inline-block; }
/* one line on desktop */
.hero__sub { max-width: none; white-space: nowrap; font-size: clamp(1.05rem, 0.96rem + 0.35vw, 1.25rem); font-weight: 300; line-height: 1.5; color: #fff; }
.hero__actions { justify-content: center; margin-top: 6px; }
.hero__hint { position: absolute; z-index: 2; left: 50%; bottom: 26px; transform: translateX(-50%); font-size: 11px; line-height: 1; color: rgba(255, 255, 255, 0.72); pointer-events: none; transition: opacity 0.8s; white-space: nowrap; }
/* second version (/?hero=split): the copy on the left, the flower on the right */
.hero--split .hero__band { display: grid; align-content: center; height: 100%; padding-top: var(--nav-h); }
.hero--split .hero__frame { padding-block: 0 clamp(40px, 8vh, 96px); }
.hero--split .hero__frame::before, .hero--split .hero__frame > .xh { display: none; }
.hero--split .hero__inner { align-items: flex-start; text-align: left; }
.hero--split .hero__title { font-size: clamp(2rem, 0.6rem + 3vw, 3.3rem); }
.hero--split .hero__sub { max-width: 27em; white-space: normal; }
@media (max-width: 900px) { .hero__sub { white-space: normal; text-wrap: balance; } } /* one line only where it fits */
.hero--split .hero__actions { justify-content: flex-start; }
.hero--split .hero__hint { left: 74%; }
.js .hero__line > span { transform: translateY(105%); animation: line-up 1.1s var(--ease-out) 0.15s forwards; }
.js .hero__line + .hero__line > span { animation-delay: 0.27s; }
.js .hero__sub, .js .hero__actions { opacity: 0; animation: fade-up 0.9s var(--ease-out) 0.55s forwards; }
.js .hero__actions { animation-delay: 0.68s; }
@keyframes line-up { to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Client logos (the rule under them is the showreel section's top rule) ---------- */
/* ---------- Showreel (v4) ---------- */
.showreel { padding-top: clamp(56px, 6vw, 88px); }
.showreel__panel { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; color: #fff; background: #2b2aa8; scale: calc(0.86 + 0.14 * var(--grow, 1)); will-change: scale; } /* scale, not transform: data-reveal owns transform */
.showreel__go { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.showreel__panel iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.showreel__go > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.showreel__play { position: absolute; left: 50%; top: 50%; width: 80px; height: 80px; margin: -40px 0 0 -40px; display: grid; place-items: center; background: #fff; color: var(--violet); transition: background-color 0.3s, color 0.3s, transform 0.5s var(--ease-out); }
.showreel__play .ic { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) { .showreel__panel:hover .showreel__play { background: var(--violet); color: #fff; transform: scale(1.06); } }

/* ---------- Services: a bento (after Stripe's): the first card two columns wide beside the second, then three across ---------- */
.hsx { padding-block: var(--sect-pad); }
.hsx__stage .sect-head { margin-bottom: clamp(40px, 4vw, 56px); }
.hsx__track { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.hsx__card:nth-child(-n+2) { grid-column: span 3; } /* two halves, then three across */
.hsx__card { grid-column: span 2; display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 18px; /* subgrid: titles, pictures and tags line up across a row */ padding: clamp(18px, 1.6vw, 24px); background: var(--tile); }
.hsx__top { display: flex; align-items: baseline; gap: 18px; }
.hsx__n { font: 400 12px/1.2 var(--f-text); letter-spacing: 0.3em; color: var(--text-3); }
.hsx__title { margin: 0; font: 400 clamp(1.5rem, 1.1rem + 0.8vw, 2rem)/1.15 var(--f-text); letter-spacing: -0.015em; color: var(--ink); }
/* every picture one height, so the rows line up */
.hsx__pic { height: clamp(200px, 19vw, 280px); overflow: hidden; background: var(--soft); }
.hsx__pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hsx__card .tags { align-content: flex-start; margin: 0; }
@media (max-width: 900px) {
  .hsx__track { grid-template-columns: minmax(0, 1fr); }
  .hsx__card, .hsx__card:nth-child(-n+2) { grid-column: auto; }
}

/* ---------- Selected work (after Konpo): the heading, then each project stacked with its own pictures ---------- */
.kw { overflow-x: clip; }
.kw__list { display: grid; margin: 0; padding: 0; list-style: none; }
.kw__proj { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 10fr); column-gap: clamp(20px, 2vw, 32px); row-gap: 28px; padding-block: clamp(40px, 4vw, 64px); border-top: 1px solid var(--line); }
.kw__cat { grid-column: 1; grid-row: 1; display: flex; align-items: center; gap: 10px; padding-top: 4px; font-size: 13px; color: var(--text-2); }
.kw__cat::before { content: ""; flex: none; width: 5px; height: 5px; background: var(--ink); }
.kw__meta { grid-column: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.kw__name { display: block; margin-bottom: 8px; font: 500 14px/1.3 var(--f-text); color: var(--text-2); }
.kw__line { max-width: 20em; margin: 0; font: 400 clamp(1.5rem, 1.1rem + 1vw, 2.25rem)/1.15 var(--f-display); letter-spacing: -0.01em; color: var(--ink); }
.kw__go { flex: none; }
/* a brand: one large and one tall, then three small. A website: its first mockup large, the other two stacked beside it */
.kw__gal { grid-column: 2; display: grid; gap: 12px; }
.kw__gal--brand { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: clamp(300px, 34vw, 540px) clamp(170px, 17vw, 270px); }
.kw__gal--brand .kw__f { grid-column: span 2; }
.kw__gal--brand .kw__f:first-child { grid-column: span 4; }
.kw__gal--web { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: repeat(2, clamp(144px, 16.4vw, 264px)); }
.kw__gal--web .kw__f:first-child { grid-row: span 2; }
.kw__f { margin: 0; overflow: hidden; background: var(--tile); }
.kw__f img { display: block; width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .kw__gal:hover .kw__f img { scale: 1.03; } }
@media (max-width: 900px) {
  .kw__proj { grid-template-columns: minmax(0, 1fr); }
  .kw__cat, .kw__meta, .kw__gal { grid-column: 1; grid-row: auto; }
  .kw__meta { flex-direction: column; align-items: flex-start; }
}

/* ---------- Work, the earlier version (after Stripe "What's happening"): cards drawn on a canvas by home.js. Not on the homepage now ---------- */
.sq-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(40px, 4vw, 56px); }

.sq { display: grid; gap: 32px; }
.sq__canvas { display: block; width: 100%; height: 460px; }
/* every caption sits in the same cell; only the open project's shows */
.sq__details { display: grid; }
.sq__item { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 32px; opacity: 0; pointer-events: none; transition: opacity 0.12s; }
.sq__item.is-active { opacity: 1; pointer-events: auto; }
.sq__copy { max-width: 818px; font: 300 22px/1.1 var(--f-text); color: var(--text-3); }
.sq__copy b { font-weight: inherit; color: var(--ink); }
.sq__cta { --btn-bd: rgba(86, 0, 229, 0.3); --btn-fg: var(--violet); --btn-hover-bg: transparent; --btn-hover-fg: var(--violet); --btn-hover-bd: var(--violet); gap: 6px; padding: 13px 20px 14px 24px; font-size: 16px; font-weight: 400; }
.sq__cta .ic__stem { opacity: 0; transition: opacity 0.2s; }
.sq__cta .ic__head { transition: transform 0.2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .sq__cta:hover .ic__stem { opacity: 1; } }
@media (hover: hover) and (pointer: fine) { .sq__cta:hover .ic__head { transform: translateX(1.5px); } }

/* ---------- Benefits: a bento of four visuals, soft objects on a faint grid ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.bcard { grid-column: span 5; display: flex; flex-direction: column; padding: 8px 8px 28px; background: var(--tile); }
.bcard--wide { grid-column: span 7; }
.bcard .card-title { margin: 22px 18px 6px; }
.bcard__desc { max-width: 30em; margin-inline: 18px; color: var(--text-2); }
/* a picture from the brand book in place of a drawing; it leans in under the pointer */
.bpic { position: relative; height: clamp(290px, 25vw, 372px); margin: 0; overflow: hidden; background: var(--soft); }
.bpic img { display: block; width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .bcard:hover .bpic img { scale: 1.05; } }
.bx { position: relative; height: clamp(290px, 25vw, 372px); overflow: hidden; background: #fbfbfe linear-gradient(rgba(0, 0, 26, 0.035) 1px, transparent 1px) 0 0 / 48px 48px; }
.bx::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 26, 0.035) 1px, transparent 1px) 0 0 / 48px 48px; }
.bx__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.bx text { font: 500 14px var(--f-text); fill: var(--ink); }
.bx-tw { animation: bx-tw 3.2s ease-in-out infinite var(--d); }
@keyframes bx-tw { 0%, 100% { opacity: 0.35; scale: 0.7; } 50% { opacity: 1; scale: 1; } }
.bx-pop, .bx-dash, .bx-lift, .bx-press { transform-box: fill-box; transform-origin: 50% 50%; }
.bx-lines path { stroke-dasharray: 14 12; animation: bx-run 1.6s linear infinite; }
@keyframes bx-run { to { stroke-dashoffset: -26; } }
/* at rest each drawing is whole; pointing at the card replays what it says, in order */
@keyframes bx-draw { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }
@keyframes bx-pop { from { opacity: 0; transform: translateY(12px) scale(0.9); } }
@keyframes bx-dash { from { opacity: 0.2; transform: translateX(-70px); } }
@keyframes bx-lift { 40% { transform: translateY(-8px) scale(1.04); } }
@keyframes bx-press { 45% { transform: scale(0.94); } }
@keyframes bx-hand { to { transform: rotate(360deg); } }
@media (hover: hover) and (pointer: fine) { .bcard:hover .bx-draw { animation: bx-draw 1.2s var(--ease-out) var(--d, 0s) backwards; } }
@media (hover: hover) and (pointer: fine) { .bcard:hover .bx-pop { animation: bx-pop 0.6s var(--ease-spring) var(--d, 0s) backwards; } }
@media (hover: hover) and (pointer: fine) { .bcard:hover .bx-dash { animation: bx-dash 0.7s var(--ease-out) var(--d, 0s) backwards; } }
@media (hover: hover) and (pointer: fine) { .bcard:hover .bx-lift { animation: bx-lift 1.1s var(--ease-out) 0.45s; } }
@media (hover: hover) and (pointer: fine) { .bcard:hover .bx-press { animation: bx-press 0.5s var(--ease-out) 0.1s; } }
@media (hover: hover) and (pointer: fine) { .bcard:hover .bx-hand { animation: bx-hand 1.4s var(--ease-out); } }
@media (prefers-reduced-motion: reduce) { .bx-tw, .bx-lines path, .bcard:hover .bx-draw, .bcard:hover .bx-pop, .bcard:hover .bx-dash, .bcard:hover .bx-lift, .bcard:hover .bx-press, .bcard:hover .bx-hand { animation: none; } }

/* ---------- Dark band ---------- */
.dark { position: relative; background: var(--ink); color: #fff; --text: #fff; --line: rgba(255, 255, 255, 0.14); --text-2: rgba(255, 255, 255, 0.72); --xh: rgba(255, 255, 255, 0.8); }
.dark::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.14)) no-repeat left var(--rail) top 0 / 1px 100%,
    linear-gradient(rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.14)) no-repeat right var(--rail) top 0 / 1px 100%;
}
.dark__metrics { position: relative; overflow: hidden; padding-block: clamp(96px, 10vw, 144px) clamp(72px, 7vw, 104px); }
/* the brand gradient, oversized so its pale edges sit just outside the content; it pans and breathes (never rotates,
   so its edges never show) while a violet glow drifts across it */
.dark__bg { position: absolute; inset: 0; overflow: hidden; background: #0d0a6e; }
.dark__bg img { position: absolute; left: -10%; top: -20%; width: 120%; max-width: none; height: 140%; object-fit: cover; animation: grad-flow 22s ease-in-out infinite alternate; }
.dark__bg::after { content: ""; position: absolute; left: -10%; top: -10%; width: 70%; height: 120%; background: radial-gradient(closest-side, rgba(142, 45, 226, 0.55), transparent); mix-blend-mode: screen; animation: grad-glow 17s ease-in-out infinite alternate; }
@keyframes grad-flow { from { transform: translate3d(-3%, -2%, 0) scale(1); } to { transform: translate3d(3%, 3%, 0) scale(1.08); } }
@keyframes grad-glow { from { transform: translate3d(0, 6%, 0); opacity: 0.7; } to { transform: translate3d(70%, -6%, 0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dark__bg img, .dark__bg::after { animation: none; } }
.dark__metrics .container { position: relative; z-index: 2; }
/* the stats' rules run the full width: they cross the rails (crosshairs) and meet the dividers (crosshairs) */
.stats-band { position: relative; z-index: 2; margin-top: clamp(40px, 4vw, 56px); }
.stats-band::before, .stats-band::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: rgba(255, 255, 255, 0.18); }
.stats-band::before { top: 0; }
.stats-band::after { bottom: 0; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.stat { position: relative; display: flex; flex-direction: column-reverse; gap: 12px; padding: 32px 20px 34px; text-align: center; opacity: 0.42; transition: opacity 0.6s; }
.stat + .stat { border-left: 1px solid rgba(255, 255, 255, 0.18); }
.stat + .stat::after { content: ""; position: absolute; left: -7px; top: -6px; bottom: -6px; width: 13px; pointer-events: none; --c: rgba(255, 255, 255, 0.8);
  background:
    linear-gradient(var(--c), var(--c)) no-repeat left 5.5px top 0 / 2px 13px, linear-gradient(var(--c), var(--c)) no-repeat left 0 top 5.5px / 13px 2px,
    linear-gradient(var(--c), var(--c)) no-repeat left 5.5px bottom 0 / 2px 13px, linear-gradient(var(--c), var(--c)) no-repeat left 0 bottom 5.5px / 13px 2px;
}
.stat::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--lavender), transparent); opacity: 0; transition: opacity 0.6s; }
.stat.is-active, .stats:not(.is-cycling) .stat { opacity: 1; }
.stat.is-active::before { opacity: 1; }
/* pointing at a figure lights it, whichever one the cycle has reached */
@media (hover: hover) and (pointer: fine) { .stats:hover .stat.is-active:not(:hover) { opacity: 0.42; } }
@media (hover: hover) and (pointer: fine) { .stats:hover .stat.is-active:not(:hover)::before { opacity: 0; } }
@media (hover: hover) and (pointer: fine) { .stats .stat:hover { opacity: 1; transition-duration: 0.2s; } }
@media (hover: hover) and (pointer: fine) { .stats .stat:hover::before { opacity: 1; transition-duration: 0.2s; } }
.stat__val { margin: 0; font: 400 clamp(2.4rem, 1.7rem + 2vw, 3.6rem)/1 var(--f-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat__label { font-size: 14px; color: rgba(255, 255, 255, 0.72); }

/* ---------- Free Homepage Redesign: the offer, centred ---------- */
.hredo__copy { display: grid; gap: 26px; justify-items: center; max-width: 44em; margin-inline: auto; text-align: center; }
.hredo__copy .lead { max-width: 32em; }
.hredo__b { display: block; }
.hredo__pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.hredo__pills li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.28); font-size: 14px; line-height: 1; color: #fff; }
.hredo__pills .ic { color: #fff; }
.hredo__compare { max-width: 1040px; margin: clamp(48px, 5vw, 72px) auto 0; border-color: rgba(255, 255, 255, 0.28); }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat + .stat { border-left: 0; }
  .stat + .stat::after { display: none; }
  .showreel__panel { aspect-ratio: 4 / 3.4; }
  .showreel__play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
}
@media (max-width: 600px) {
  .hero__hint { display: none; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .stat { padding: 24px 12px 26px; }
  .stat__val { font-size: clamp(2rem, 9vw, 2.6rem); }
}
@media (prefers-reduced-motion: reduce) {
  .js .hero__line > span, .js .hero__sub, .js .hero__actions { animation: none; opacity: 1; transform: none; }
}

/* ---------- Benefits, second take (to compare with the bento above): brand tints, each tile a small piece of how we work.
   Hovering a tile plays that piece one step forward, all on one timing, and it plays back when the pointer leaves ---------- */
.sbento[hidden] { display: none; } /* the first bento is hidden for now */
.sbento[hidden] + .b2 { margin-top: 0; }

/* one weight for every title, one for every line under it */
#benefits .b2__title { font-weight: 500; }

/* every tile's tint drifts slowly under it: two soft glows, moved by transform only */
#benefits .b2__t::before { content: ""; position: absolute; inset: -30%; z-index: -1; pointer-events: none;
  background: radial-gradient(30% 34% at 30% 40%, var(--glow-a), transparent 70%), radial-gradient(34% 38% at 70% 62%, var(--glow-b), transparent 70%);
  animation: b2-drift 22s ease-in-out infinite alternate; }
#benefits .b2__t:nth-child(2)::before { animation-delay: -6s; } #benefits .b2__t:nth-child(3)::before { animation-delay: -12s; } #benefits .b2__t:nth-child(4)::before { animation-delay: -17s; }
@keyframes b2-drift { 0% { transform: translate(-6%, -4%) rotate(0deg); } 50% { transform: translate(5%, 3%) rotate(8deg); } 100% { transform: translate(-2%, 6%) rotate(-6deg); } }

/* in-house: a feedback thread that plays out one message at a time, on a loop (home.js) */
.b2--chat { grid-column: 1; grid-row: 1 / span 2; --tint: #e4e0ff; --glow-a: rgba(167, 139, 255, 0.35); --glow-b: rgba(255, 255, 255, 0.55); }
.b2__thread { flex: 1; display: grid; align-content: start; gap: 12px; margin-top: 18px; padding: 22px; border-radius: 18px; background: #fff; box-shadow: 0 24px 50px -30px rgba(0, 0, 26, 0.3); }
.b2__msg { max-width: 82%; margin: 0; padding: 11px 16px; border-radius: 18px; font-size: 14px; line-height: 1.45; }
.b2__msg--you { justify-self: end; border-bottom-right-radius: 5px; background: #3d2bd6; color: #fff; }
.b2__msg--us { justify-self: start; border-bottom-left-radius: 5px; background: #f0f0f7; color: var(--ink); }
.b2__row { display: flex; align-items: center; gap: 10px; }
/* our mark in white on a violet-to-indigo disc, ringed in white */
.b2__av { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #7a4dff, #3d1fd6 55%, #10086b); box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(0, 0, 26, 0.12), 0 6px 12px -6px rgba(0, 0, 26, 0.45); }
.b2__av img { width: 17px; height: 17px; filter: brightness(0) invert(1); }
.b2__slot { display: grid; justify-items: start; flex: 1; min-width: 0; }
.b2__slot > * { grid-area: 1 / 1; }
.b2__slot .b2__msg { max-width: 92%; }
.b2__typing { display: flex; gap: 4px; align-self: end; padding: 14px 16px; opacity: 0; }
.b2__typing span { width: 6px; height: 6px; border-radius: 50%; background: #8a8aa3; opacity: 0.5; animation: b2-dot 1.2s ease-in-out infinite; }
.b2__typing span:nth-child(2) { animation-delay: 0.15s; } .b2__typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes b2-dot { 40% { opacity: 1; transform: translateY(-2px); } }
.b2__thread.is-live .b2__msg { opacity: 0; transform: translateY(8px) scale(0.97); transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out); }
.b2__thread.is-live .b2__msg--you { transform-origin: 100% 100%; } .b2__thread.is-live .b2__msg--us { transform-origin: 0 100%; }
.b2__thread.is-live .b2__msg.is-on { opacity: 1; transform: none; }
/* our mark shows with our first bubble in each turn, typing or not */
.b2__thread.is-live .b2__av { opacity: 0; transition: opacity 0.45s var(--ease-out); }
.b2__thread.is-live .b2__row:has(.is-on) .b2__av { opacity: 1; }

/* speed: the band walks the stages and ticks each one, then starts again (home.js) */
.b2--time { grid-column: 2 / span 2; grid-row: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); align-items: center; gap: clamp(24px, 3vw, 48px); --tint: #dfe4ff; --glow-a: rgba(139, 160, 255, 0.35); --glow-b: rgba(255, 255, 255, 0.5); }
.b2--time > div { display: grid; gap: 12px; }
.b2__picker { position: relative; padding: 14px; background: #fff; box-shadow: 0 30px 60px -30px rgba(0, 0, 26, 0.35); }
.b2__picker ol { position: relative; z-index: 1; margin: 0; padding: 0; list-style: none; }
.b2__picker li { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; font-size: 15px; color: var(--text-3); transition: color 0.4s var(--ease-out); }
.b2__picker .ic { width: 16px; height: 16px; opacity: 0; transform: scale(0.5); transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out); }
.b2__picker li.is-done { color: var(--ink); }
.b2__picker li.is-done .ic { opacity: 1; transform: none; }
.b2__band { position: absolute; left: 14px; right: 14px; top: 14px; height: 40px; background: var(--lavender); transform: translateY(calc(var(--at, 0) * 40px)); transition: transform 0.6s var(--ease-out); }

/* performs: the title, the number under it, and a chart that climbs, on a loop */
.b2--perf { grid-column: 2; grid-row: 2; --tint: #e6d9ff; --glow-a: rgba(150, 95, 255, 0.3); --glow-b: rgba(255, 255, 255, 0.5); }
.b2__chart { display: block; width: 100%; height: clamp(110px, 10vw, 150px); margin-bottom: auto; overflow: visible; }
.b2__grid { fill: none; stroke: rgba(0, 0, 26, 0.08); stroke-width: 1; vector-effect: non-scaling-stroke; }
.b2__line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1 1; animation: b2-climb 7s var(--ease-out) infinite; }
.b2__area { fill: rgba(86, 0, 229, 0.08); animation: b2-fill 7s var(--ease-out) infinite; }
@keyframes b2-climb { 0% { stroke-dashoffset: 1; opacity: 1; } 40%, 86% { stroke-dashoffset: 0; opacity: 1; } 96%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes b2-fill { 0%, 10% { opacity: 0; } 45%, 86% { opacity: 1; } 96%, 100% { opacity: 0; } }

/* young minds: the four faces; each says its name under the pointer */
.b2--team { grid-column: 3; grid-row: 2; --tint: #f3e4f4; --glow-a: rgba(255, 140, 170, 0.32); --glow-b: rgba(186, 120, 255, 0.32); }
/* four disciplines, four lanes, one line of work: a pulse runs each lane into the shared line, which lands on one node */
.b2__lanes { width: 100%; max-width: 300px; margin: 0 0 auto; }
.b2__lanes svg { display: block; width: 100%; height: auto; overflow: visible; }
.b2__lanes text { font: 500 10px/1 var(--f-text); letter-spacing: 0.18em; fill: rgba(0, 0, 26, 0.62); }
.b2__lane-base path { stroke: rgba(0, 0, 26, 0.2); stroke-width: 1; }
.b2__lane-flow path { stroke: var(--violet); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 0.16 1.2; stroke-dashoffset: 0.16; animation: b2-flow 4.2s cubic-bezier(0.65, 0, 0.35, 1) infinite; animation-delay: calc(var(--i, 0) * 0.12s); }
.b2__lane-flow .t { animation-name: b2-trunk; animation-delay: 0s; }
.b2__node { fill: var(--violet); }
.b2__node-ring { stroke: var(--violet); stroke-width: 1; opacity: 0; transform-box: fill-box; transform-origin: center; animation: b2-ring 4.2s var(--ease-out) infinite; }
@keyframes b2-flow { 0% { stroke-dashoffset: 0.16; } 45%, 100% { stroke-dashoffset: -1.04; } }
@keyframes b2-trunk { 0%, 40% { stroke-dashoffset: 0.16; } 68%, 100% { stroke-dashoffset: -1.04; } }
@keyframes b2-ring { 0%, 62% { opacity: 0; transform: scale(0.4); } 70% { opacity: 0.7; } 100% { opacity: 0; transform: scale(1.7); } }
@media (prefers-reduced-motion: reduce) { .b2__lane-flow, .b2__node-ring { display: none; } }
.b2__faces { display: flex; margin: 0 0 auto; padding: 0; list-style: none; }
.b2__faces li { position: relative; margin-right: -12px; transition: transform 0.4s var(--ease-out); }
.b2__faces img { display: block; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; outline: 3px solid #fff; }
.b2__faces li::after { content: attr(data-name); position: absolute; left: 50%; top: calc(100% + 10px); padding: 5px 10px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; white-space: nowrap; opacity: 0; transform: translate(-50%, -4px); transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out); pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .b2__faces li:hover { z-index: 2; transform: translateY(-4px); } }
@media (hover: hover) and (pointer: fine) { .b2__faces li:hover::after { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .b2__typing span, #benefits .b2__t::before, .b2__line, .b2__area { animation: none; } .b2__picker li { color: var(--ink); } .b2__picker .ic { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .b2--time { grid-template-columns: minmax(0, 1fr); }
}

/* bento tiles pause their loops while off-screen (home.js toggles .is-off) */
.b2__t.is-off, .b2__t.is-off *, .b2__t.is-off::before, .b2__t.is-off::after, .b2__t.is-off *::before, .b2__t.is-off *::after { animation-play-state: paused !important; }
