/* ============================================================
   Site layer: everything personal on top of css/base.css
   ============================================================ */

/* Header typefaces (self-hosted in assets/fonts) */
@font-face {
  font-family: 'Barlow Condensed';
  src: url('/assets/fonts/barlow-condensed-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/assets/fonts/instrument-serif-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bv-display: 'Barlow Condensed', Impact, 'Arial Narrow', sans-serif;
  --bv-editorial: 'Instrument Serif', Georgia, serif;
  --bv-ink: var(--color--dark-green, #282c20);
  --bv-paper: var(--color--white, #f4f4ed);
  --bv-neon: var(--color--lime, #00f5d4);
  --bv-teal: #007b6e;
}

/* The Rive interface animations use their own baked-in neon color. */
[class*="rive"] canvas {
  filter: url('#yellow-to-turquoise');
}

/* ------------------------------------------------------------
   Header: wordmark (top left) + BV monogram (top center)
   Colour follows the background via [data-bv-tone] (js/site.js)
   ------------------------------------------------------------ */
.nav-brand {
  position: relative;
  width: auto;
  height: auto;
}
.nav-brand svg { display: none; }

.balint-brand {
  display: flex;
  flex-direction: column;
  width: max-content;
  color: var(--bv-ink);
  font: 400 clamp(2.15rem, 2.9vw, 3.1rem)/.77 var(--bv-editorial);
  letter-spacing: -.045em;
  white-space: nowrap;
  transition: color .35s ease;
}
.balint-brand > strong {
  font: 800 1.13em/.78 var(--bv-display);
  letter-spacing: -.01em;
}
.balint-brand i {
  font-style: normal;
  color: var(--bv-teal);
  transition: color .35s ease;
}

.page-logo-svg {
  position: relative;
  overflow: visible;
}
.page-logo-svg::after { content: none; }
.page-logo-svg canvas { visibility: hidden; }

.balint-center-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: baseline;
  color: var(--bv-ink);
  font: 800 2.1rem/.8 var(--bv-display);
  white-space: nowrap;
  transform: translate(-50%, -50%) skew(-9deg);
  transition: color .35s ease;
}
.balint-center-mark b {
  font-weight: inherit;
  color: var(--bv-teal);
  transition: color .35s ease;
}

[data-bv-tone="light"].balint-brand,
[data-bv-tone="light"].balint-center-mark { color: var(--bv-paper); }
[data-bv-tone="light"].balint-brand i,
[data-bv-tone="light"].balint-center-mark b { color: var(--bv-neon); }

@media (max-width: 767px) {
  .balint-brand { font-size: 1.7rem; }
  .balint-center-mark { font-size: 1.55rem; }
}

/* ------------------------------------------------------------
   BV loader — the original minimal screen (turquoise Rive surface
   and its own wipe-out), with a quiet BV. mark in the middle
   ------------------------------------------------------------ */
.transition-w::after { content: none; }
.transition-btn { display: none !important; }
/* the Rive surface has a logo baked in, so it is hidden and redrawn below */
.transition-rive { opacity: 0 !important; }

/* keep the overlay up until the wipe below has finished */
.transition-w.is-bl-leaving { visibility: visible !important; }
.transition-w.is-bl-done .balint-loader { display: none; }

.balint-loader {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  color: var(--bv-ink);
  pointer-events: none;
}
.bl-curtain,
.bl-panel {
  position: absolute;
  inset: 0;
  will-change: transform;
}
.bl-curtain { background: var(--bv-ink); }
.bl-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  background: var(--bv-neon);
}

/* the mark: drawn as strokes (B, then V) that grow in, hold and retract,
   on a loop; the full stop stays put */
.bl-mark {
  display: block;
  width: auto;
  height: clamp(28px, 2.6vw, 40px);
  overflow: visible;
}
.bl-s {
  fill: none;
  stroke: currentColor;
  stroke-width: 7;
  stroke-dasharray: 1 2;
  stroke-dashoffset: 0;
  animation: 2.4s .35s infinite both;
}
.bl-s-b { stroke-linejoin: round; animation-name: bl-draw-b; }
.bl-s-v { stroke-linejoin: miter; stroke-miterlimit: 10; animation-name: bl-draw-v; }
.bl-dot {
  fill: currentColor;
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: bl-pop .6s cubic-bezier(.34, 1.56, .64, 1) .1s both;
}

.bl-name {
  position: absolute;
  inset: auto 0 max(1.6rem, 20px);
  text-align: center;
  font: 800 11px/1 var(--bv-display);
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: bl-fade-in .6s ease .3s both;
}

/* exit: the mark and name lift away, then the surface follows like a curtain */
.is-bl-leaving .bl-mark,
.is-bl-leaving .bl-name { animation: bl-away .4s cubic-bezier(.7, 0, .84, 0) both; }
.is-bl-leaving .bl-name { animation-delay: .03s; }
.is-bl-leaving .bl-panel { animation: bl-lift .85s cubic-bezier(.76, 0, .24, 1) .2s forwards; }
.is-bl-leaving .bl-curtain { animation: bl-lift .85s cubic-bezier(.76, 0, .24, 1) .3s forwards; }

/* page transitions: the surface rises back in from below */
.is-bl-entering .bl-curtain { animation: bl-cover .55s cubic-bezier(.76, 0, .24, 1) both; }
.is-bl-entering .bl-panel { animation: bl-cover .55s cubic-bezier(.76, 0, .24, 1) .07s both; }

/* pathLength is 1: offset 1 = not drawn, 0 = drawn, -1 = retracted to its end */
@keyframes bl-draw-b {
  0% { stroke-dashoffset: 1; animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  32% { stroke-dashoffset: 0; }
  64% { stroke-dashoffset: 0; animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  86%, 100% { stroke-dashoffset: -1; }
}
@keyframes bl-draw-v {
  0%, 20% { stroke-dashoffset: 1; animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  42% { stroke-dashoffset: 0; }
  72% { stroke-dashoffset: 0; animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  92%, 100% { stroke-dashoffset: -1; }
}
@keyframes bl-pop { from { transform: scale(0); } }
@keyframes bl-fade-in { from { opacity: 0; } }
@keyframes bl-away { to { opacity: 0; transform: translateY(-14px); } }
@keyframes bl-lift {
  to { transform: translateY(-100%); border-radius: 0 0 50% 50% / 0 0 14vh 14vh; }
}
@keyframes bl-cover {
  from { transform: translateY(100%); border-radius: 50% 50% 0 0 / 14vh 14vh 0 0; }
}

/* ------------------------------------------------------------
   "balintvitan" signature — drawn with the scroll (progress handled in js/signature.js)
   ------------------------------------------------------------ */
.marquee-gl-rive-w { position: relative; }
.marquee-gl-rive-w canvas[data-rive-file="signature"] { visibility: hidden; }

.balint-signature-hero {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 122%;
  height: auto;
  overflow: visible;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.balint-signature-hero .sig-stroke {
  fill: none;
  stroke: var(--bv-neon);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
}

.marquee-signature-w {
  width: clamp(8rem, 11vw, 10rem);
  height: auto;
  aspect-ratio: 607 / 208;
}
.marquee-signature-w .is-home-marquee-sig-img.is-hero-mark {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.horizontal-rive-placeholder {
  width: clamp(7rem, 18vw, 11rem);
  height: auto;
  aspect-ratio: 607 / 208;
}
.horizontal-rive-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ------------------------------------------------------------
   Hero portrait fallback (no WebGL) + mobile name
   ------------------------------------------------------------ */
.home-hero .balint-hero-portrait {
  display: none;
  position: absolute;
  z-index: 11;
  left: 50%;
  bottom: -38svh;
  width: auto;
  max-width: none;
  height: 135svh;
  object-fit: contain;
  transform: translateX(-50%);
  pointer-events: none;
}

html.gl-fallback .home-hero .balint-hero-portrait { display: block; }

.home-hero .balint-hero-mobile-name {
  display: none;
  color: var(--color--dark-green);
  font-family: Brier, Georgia, serif;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.05em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}

.home-hero .home-hero-next-race-w { z-index: 14; }

@media (max-width: 991px) {
  .home-hero .balint-hero-portrait {
    bottom: -36svh;
    height: 125svh;
  }

  .home-hero .home-hero-tablet-hero-text {
    z-index: 13;
    margin-top: 9rem;
  }
  .home-hero .balint-hero-mobile-name {
    display: block;
    font-size: clamp(1.75rem, 4vw, 2.6rem);
  }
}

@media (max-width: 767px) {
  .home-hero .balint-hero-portrait {
    bottom: -19svh;
    height: 102svh;
  }
}

/* ------------------------------------------------------------
   Reduced motion
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .balint-loader *,
  .balint-loader *::after { animation: none !important; }
  .is-bl-leaving .balint-loader { animation: bl-fade .3s ease forwards; }
  .balint-signature-hero .sig-stroke { opacity: 1; }
}
@keyframes bl-fade { to { opacity: 0; } }

/* ------------------------------------------------------------
   Footer portrait (assets/images/portrait.png).
   To change it, point the footer <img> at another transparent-background,
   front-facing head-and-shoulders cutout.
   ------------------------------------------------------------ */
.footer-bg-img.is-balint {
  object-fit: contain;
  object-position: 50% 100%;
  transform: translateY(11%);
}

/* ------------------------------------------------------------
   Hero info cards (left: about me, right: right now) — outlined
   like the other cards on the page
   ------------------------------------------------------------ */
.bv-card.is-right {
  left: auto;
  right: var(--gap);
}
.bv-card.is-right .home-hero-next-race-outline svg { transform: scaleX(-1); }
.bv-card.is-right .home-hero-next-race-top { justify-content: flex-end; }

.bv-card-row.home-hero-next-race-row {
  flex-flow: column;
  justify-content: center;
  align-items: center;
  gap: .45rem;
}
.bv-card-art {
  width: 5.5rem;
  height: 4.7rem;
  flex: none;
}
.bv-card-art.is-wide {
  width: 6.0625rem;
  height: 3.1875rem;
}
.bv-card-art svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.eyebrow-w.bv-stack {
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  max-width: 92%;
  text-align: center;
}
.bv-card .text-eyebrow { white-space: nowrap; }

/* Danube: Budapest -> Vienna */
.bv-danube-river {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
}
.bv-danube-trip {
  fill: none;
  stroke: var(--bv-teal);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 14 120;
  stroke-dashoffset: 14;
}
.bv-city.is-budapest { fill: currentColor; }
.bv-city.is-vienna { fill: var(--bv-teal); }
.bv-city-pulse {
  fill: none;
  stroke: var(--bv-teal);
  stroke-width: 1;
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
}

/* laurel + age */
.bv-laurel-stem {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  stroke-linecap: round;
}
.bv-laurel-leaf { fill: currentColor; }
.bv-age {
  fill: var(--bv-ink);
  font: 800 27px var(--bv-display);
  letter-spacing: -.02em;
}

/* WU badge */
.bv-badge-edge {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  stroke-dasharray: 1.5 3.2;
}
.bv-badge-spin {
  transform-box: view-box;
  transform-origin: 44px 37.5px;
}
.bv-badge-text {
  fill: currentColor;
  font: 800 7px var(--bv-display);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.bv-badge-wu {
  fill: var(--bv-ink);
  font: 800 24px var(--bv-display);
  letter-spacing: -.01em;
}

/* Vienna clock */
.bv-clock-face {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1;
}
.bv-tick {
  stroke: currentColor;
  stroke-width: .9;
  stroke-linecap: round;
}
.bv-tick.is-major { stroke-width: 1.6; }
.bv-hand {
  stroke: var(--bv-ink);
  stroke-linecap: round;
  transform-box: view-box;
  transform-origin: 48.5px 25.5px;
}
.bv-hand.is-hour { stroke-width: 2.4; }
.bv-hand.is-min { stroke-width: 1.6; }
.bv-hand.is-sec { stroke: var(--bv-teal); stroke-width: .9; }
.bv-clock-pin { fill: var(--bv-ink); }
.bv-clock-label [data-bv-clock] { font-variant-numeric: tabular-nums; }

/* motion — starts when the loader has lifted (html.bv-intro) */
.bv-intro .bv-danube-river { animation: bv-draw 1.6s cubic-bezier(.65, 0, .35, 1) .2s both; }
.bv-intro .bv-danube-trip { animation: bv-trip 3.6s cubic-bezier(.65, 0, .35, 1) 1.6s infinite; }
.bv-intro .bv-city-pulse { animation: bv-pulse 2.2s ease-out 1.6s infinite; }
.bv-intro .bv-laurel-branches { animation: bv-grow .9s cubic-bezier(.16, 1, .3, 1) .35s both; transform-origin: 48.5px 45px; }
.bv-intro .bv-age { animation: bv-age-in .8s cubic-bezier(.16, 1, .3, 1) .55s both; }
.bv-badge-spin { animation: bv-spin 18s linear infinite; }

@keyframes bv-draw { from { stroke-dashoffset: 100; } }
@keyframes bv-trip {
  0% { stroke-dashoffset: 14; }
  80%, 100% { stroke-dashoffset: -100; }
}
@keyframes bv-pulse {
  0% { transform: scale(1); opacity: .9; }
  100% { transform: scale(3.2); opacity: 0; }
}
@keyframes bv-grow { from { transform: scale(.6); opacity: 0; } }
@keyframes bv-age-in { from { transform: translateY(8px); opacity: 0; } }
@keyframes bv-spin { to { transform: rotate(360deg); } }

@media (max-width: 991px) {
  .bv-card.is-right { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bv-card * { animation: none !important; }
}

/* ------------------------------------------------------------
   Footer: contact button + e-mail, AI / tech logo marquee
   ------------------------------------------------------------ */
/* constant right-to-left loop (the base script reversed it on scroll-up) */
.bv-marquee { overflow: hidden; }
.marquee-adv-scroll.bv-marquee-track {
  display: flex;
  width: max-content;
  margin: 0;
  animation: bv-marquee var(--bv-marquee-dur, 90s) linear infinite;
  will-change: transform;
}
.bv-marquee-track > .marquee-adv-collection { flex: none; }
@keyframes bv-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-adv-scroll.bv-marquee-track { animation: none; }
}

.footer-marquee-logo-w.bv-tech {
  gap: .6rem;
  color: var(--bv-paper);
}
.bv-tech-icon {
  display: block;
  flex: none;
  width: 1.9rem;
  height: 1.9rem;
}
.bv-tech-name {
  font: 800 1.6rem/1 var(--bv-display);
  letter-spacing: .01em;
  text-transform: uppercase;
  white-space: nowrap;
}
@media (max-width: 479px) {
  .bv-tech-icon { width: 1.5rem; height: 1.5rem; }
  .bv-tech-name { font-size: 1.25rem; }
}

/* ------------------------------------------------------------
   Tech stack tiles ("Daily drivers")
   ------------------------------------------------------------ */
.bv-stack-art {
  overflow: hidden;
  border-radius: .5rem;
}
.bv-stack-art::before {
  content: '';
  position: absolute;
  inset: 12% 12% 18%;
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--brand) 26%, transparent) 0%, transparent 62%);
  pointer-events: none;
}
.bv-stack-reveal {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 46%, color-mix(in srgb, var(--brand) 34%, transparent) 0%, transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--brand) 14%, transparent), transparent 75%);
  clip-path: ellipse(100% 0% at 50% 0);
  transition: clip-path var(--animation-default, .6s cubic-bezier(.65, 0, .35, 1));
}
[data-helmet-item]:hover .bv-stack-reveal { clip-path: ellipse(100% 120% at 50% 0%); }

.helmet-grid-item-img-helmet.bv-stack-icon {
  position: relative;
  inset: auto;
  width: 36%;
  height: auto;
  aspect-ratio: 1;
  margin-bottom: 6%;
  overflow: visible;
  filter: drop-shadow(0 .6rem 1.6rem color-mix(in srgb, var(--brand) 35%, transparent));
}

.bv-stack-code {
  position: absolute;
  top: 1.1rem;
  left: 1.2rem;
  color: var(--color--dark-green-tint-2, #535450);
  font: 500 .78rem/1 ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0;
  white-space: nowrap;
  transition: color .4s ease;
}
.bv-stack-code::before { content: '> '; color: var(--bv-neon); }
[data-helmet-item]:hover .bv-stack-code { color: var(--bv-paper); }

@media (max-width: 479px) {
  .bv-stack-code { top: .7rem; left: .75rem; font-size: .6rem; }
  .helmet-grid-item-img-helmet.bv-stack-icon { width: 40%; }
}

/* ---------- On duty / Off duty: the two portraits ---------- */
/* The photos are wider than their image boxes, so the boxes crop the shoulders.
   Each photo is nudged so the whole head (ears, headphones) sits inside the box, and the
   shoulders fade out on the inner edge instead of ending in a hard vertical line.
   Two mask layers: the head area stays solid, the horizontal fade only shows below it.
   The slide-in animation is untouched. */
.otot-home-img-w.is-1 .bv-otot-photo {
  object-position: 60% 50%;
  -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 62%), linear-gradient(to left, transparent 0, #000 24%);
          mask-image: linear-gradient(to bottom, #000 50%, transparent 62%), linear-gradient(to left, transparent 0, #000 24%);
}
.otot-home-img-w.is-2 .bv-otot-photo {
  object-position: 40% 50%;
  -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 62%), linear-gradient(to right, transparent 0, #000 24%);
          mask-image: linear-gradient(to bottom, #000 50%, transparent 62%), linear-gradient(to right, transparent 0, #000 24%);
}
/* phones: the base CSS pushes both images 7rem off-screen, which would cut a
   front-facing face in half; push them out less so both faces stay visible */
@media screen and (max-width: 479px) {
  .is-otot-home .otot-home-img-w.is-1 { left: -3rem; }
  .is-otot-home .otot-home-img-w.is-2 { right: -3rem; }
}

/* ---------- WU Vienna feature ---------- */
/* dark base so nothing shows through while the lazy photo is still loading */
.otot-home-end-img-w.bv-wu-w { background-color: #1b1e16; }
.bv-wu-w .is-otot-home-end { object-fit: cover; object-position: 58% 30%; }

.bv-wu-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(14, 16, 11, .62) 0%, rgba(14, 16, 11, .16) 20%, rgba(14, 16, 11, 0) 38%, rgba(14, 16, 11, .38) 62%, rgba(14, 16, 11, .9) 100%),
    linear-gradient(90deg, rgba(14, 16, 11, .5) 0%, rgba(14, 16, 11, 0) 58%);
}

.bv-wu {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 9.75rem 2.5rem 2.75rem;
  color: var(--bv-paper);
  pointer-events: none;
}

.bv-wu-top { display: flex; }

/* WU logo: chrome fill cut out by the logo shape, with a glint sweeping across */
.bv-wu-logo-w {
  display: block;
  filter: drop-shadow(0 0 1.1rem rgba(0, 245, 212, .24)) drop-shadow(0 .15rem .5rem rgba(0, 0, 0, .5));
}
.bv-wu-logo {
  display: block;
  width: clamp(10rem, 15vw, 17rem);
  aspect-ratio: 251.302 / 130.373;
  background:
    linear-gradient(105deg, transparent 41%, rgba(255, 255, 255, .7) 46.5%, #fff 49%, #7ffbe6 50%, #fff 51%, rgba(255, 255, 255, .7) 53.5%, transparent 59%) 100% 0 / 260% 100% no-repeat,
    linear-gradient(180deg, #f6f7f2 0%, #d3d7cc 34%, #9ba293 50%, #e4e7de 64%, #b3b9ac 100%);
  -webkit-mask: url('/assets/icons/wu-logo.svg') center / contain no-repeat;
  mask: url('/assets/icons/wu-logo.svg') center / contain no-repeat;
  animation: bv-glint 4.8s cubic-bezier(.45, 0, .2, 1) 1s infinite;
}
@keyframes bv-glint {
  0% { background-position: 100% 0, 0 0; }
  42%, 100% { background-position: 0% 0, 0 0; }
}

.bv-wu-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2.5rem;
}
.bv-wu-main { max-width: 56rem; }

.bv-wu-kicker {
  display: flex;
  align-items: center;
  margin: 0 0 1.3rem;
  color: var(--bv-neon);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.bv-wu-title { display: flex; flex-direction: column; margin: 0; }
.bv-wu-line { display: block; overflow: hidden; padding-bottom: .05em; }
.bv-wu-line > span { display: block; }
.bv-wu .text-impact-reg-brier {
  color: var(--bv-paper);
  font-size: clamp(3.1rem, 8.6vw, 8.6rem);
  letter-spacing: -.02em;
}
.bv-wu .text-impact-reg-mona {
  color: var(--bv-neon);
  font-size: clamp(2.9rem, 8.1vw, 8.1rem);
  letter-spacing: -.035em;
}


.bv-wu-year {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}
.bv-wu-year-label {
  margin-bottom: -.15em;
  color: var(--bv-neon);
  font: 400 clamp(1.6rem, 2.6vw, 2.6rem)/1 var(--bv-editorial);
  font-style: italic;
}
.bv-wu-year-num {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(244, 244, 237, .92);
  font: 800 clamp(4.6rem, 12.5vw, 12rem)/.82 var(--bv-display);
  letter-spacing: -.01em;
  transform: skewX(-9deg);
}
.bv-wu-year-place {
  margin-top: .9rem;
  color: rgba(244, 244, 237, .72);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* reveal: only hidden once the JS has armed it, so the text never stays invisible */
.bv-wu-armed .bv-wu-line > span { transform: translateY(108%); }
.bv-wu-armed .bv-wu-logo-w,
.bv-wu-armed .bv-wu-kicker span,
.bv-wu-armed .bv-wu-year { opacity: 0; transform: translateY(1.2rem); }
.bv-wu-armed .bv-wu-year-num { clip-path: inset(0 0 100% 0); }

.bv-wu-line > span,
.bv-wu-logo-w,
.bv-wu-kicker span,
.bv-wu-year,
.bv-wu-year-num {
  transition:
    transform 1.15s cubic-bezier(.16, 1, .3, 1),
    opacity .9s ease,
    clip-path 1.3s cubic-bezier(.16, 1, .3, 1);
}

.bv-wu-armed.is-in .bv-wu-line > span,
.bv-wu-armed.is-in .bv-wu-logo-w,
.bv-wu-armed.is-in .bv-wu-kicker span,
.bv-wu-armed.is-in .bv-wu-year { opacity: 1; transform: none; }
.bv-wu-armed.is-in .bv-wu-year-num { clip-path: inset(0 0 0 0); }

.bv-wu-armed.is-in .bv-wu-kicker span { transition-delay: .1s; }
.bv-wu-armed.is-in .bv-wu-line:nth-child(1) > span { transition-delay: .15s; }
.bv-wu-armed.is-in .bv-wu-line:nth-child(2) > span { transition-delay: .27s; }
.bv-wu-armed.is-in .bv-wu-year { transition-delay: .3s; }
.bv-wu-armed.is-in .bv-wu-year-num { transition-delay: .4s; }

@media (max-width: 767px) {
  .otot-home-end-img-w.bv-wu-w { min-height: calc(var(--vh, 1vh) * 100); }
  .bv-wu-w .is-otot-home-end { height: calc(var(--vh, 1vh) * 120); object-position: 62% 30%; }
  .bv-wu { padding: 7.75rem 1rem 1.75rem; }
  .bv-wu-bottom { flex-direction: column; align-items: flex-start; gap: 1.6rem; }
  .bv-wu-kicker, .bv-wu-year-place { font-size: .72rem; }
  .bv-wu-year { flex-direction: row; align-items: baseline; gap: .7rem; text-align: left; }
  .bv-wu-year-label { margin: 0; }
  .bv-wu-year-num { font-size: 4.2rem; -webkit-text-stroke-width: 1.2px; }
  .bv-wu-year-place { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .bv-wu-armed .bv-wu-line > span,
  .bv-wu-armed .bv-wu-logo-w,
  .bv-wu-armed .bv-wu-kicker span,
  .bv-wu-armed .bv-wu-year { opacity: 1; transform: none; transition: none; }
  .bv-wu-armed .bv-wu-year-num { clip-path: none; transition: none; }
  .bv-wu-logo { animation: none; }
}

/* ------------------------------------------------------------
   Projects fan
   The fan motion comes from js/app.js; each card is a project. Click one and it grows into .bv-pm (js/site.js).
   ------------------------------------------------------------ */
/* two lines: "PROJECTS I'M" is ~5.9em
   wide and "PROJECTS I'M PROUD" ~9em, so this cap breaks right between them */
#projects .text-title-lg-mona { max-width: 7.4em; }
/* room for the hover lift of the centre card */
#projects .bv-proj-layout { margin-top: 2.5rem; }

.bv-proj-card {
  container-type: inline-size;
  background-color: #1b1e16;
  -webkit-tap-highlight-color: transparent;
}
.bv-proj-card[data-bv-project] { cursor: pointer; }
.bv-proj-card:focus-visible { outline: 2px solid var(--bv-neon); outline-offset: 5px; }

.bv-proj-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 7.5cqw 7.5cqw 9cqw;
  overflow: hidden;
  border-radius: inherit;
  color: var(--bv-paper);
  text-align: left;
}

.bv-proj-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
  transform: scale(1.02);
  transition: transform 1.1s cubic-bezier(.16, 1, .3, 1);
}
.bv-proj-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 15, 11, .5) 0%, rgba(12, 15, 11, 0) 20%, rgba(12, 15, 11, 0) 40%, rgba(12, 15, 11, .74) 63%, rgba(12, 15, 11, .97) 100%);
}

.bv-proj-top,
.bv-proj-bottom { position: relative; z-index: 2; }

.bv-proj-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bv-proj-num {
  padding: .7em 1.15em;
  border: 1px solid rgba(244, 244, 237, .2);
  border-radius: 999px;
  background: rgba(17, 17, 18, .45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font: 500 max(9px, 3.4cqw)/1 ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .08em;
}
.bv-proj-go {
  display: grid;
  place-items: center;
  width: 14cqw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--bv-neon);
  color: var(--bv-ink);
  box-shadow: 0 .4rem 1.4rem rgba(0, 245, 212, .28);
  transition: transform .7s cubic-bezier(.16, 1, .3, 1), background-color .4s ease;
}
.bv-proj-go svg {
  width: 48%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bv-proj-eyebrow {
  display: flex;
  align-items: center;
  gap: .7em;
  margin-bottom: 3cqw;
  color: var(--bv-neon);
  font-size: max(8px, 3.3cqw);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.bv-proj-eyebrow i {
  width: .62em;
  height: .62em;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 55%, transparent);
  animation: bv-live 2.2s ease-out infinite;
}
@keyframes bv-live {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 55%, transparent); }
  70%, 100% { box-shadow: 0 0 0 .7em transparent; }
}
.bv-proj-title {
  margin-left: -.02em;
  font: 800 17.5cqw/.84 var(--bv-display);
  letter-spacing: -.005em;
  text-transform: uppercase;
}
.bv-proj-sub {
  max-width: 15em;
  margin-top: 2.6cqw;
  color: rgba(244, 244, 237, .86);
  font: italic 400 6.6cqw/1.02 var(--bv-editorial);
}
.bv-proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .45em;
}
.bv-proj-tags { margin-top: 5.5cqw; font-size: max(8px, 3.1cqw); }
.bv-proj-tags span {
  padding: .5em .95em;
  border: 1px solid rgba(244, 244, 237, .3);
  border-radius: 999px;
  font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1;
  white-space: nowrap;
}

@media (hover: hover) {
  .bv-proj-card[data-bv-project]:hover .bv-proj-img { transform: scale(1.07); }
  .bv-proj-card[data-bv-project]:hover .bv-proj-go { transform: rotate(45deg) scale(1.06); background-color: var(--bv-paper); }
}

/* ---------- coded cards: each one acts out the moment its project is about ---------- */
.bv-proj-face[data-tone] {
  --c-bg: #1b1e16;
  --c-fg: #f4f4ed;
  --c-accent: var(--bv-neon);
  --c-go-bg: var(--bv-neon);
  --c-go-fg: var(--bv-ink);
  --bv-ui: 'Mona Sans Variable', Arial, sans-serif;
  --bv-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--c-bg);
  color: var(--c-fg);
}
.bv-proj-face[data-tone="teal"]  { --c-bg: #007b6e; --c-accent: #7ffbe6; }
.bv-proj-face[data-tone="cream"] { --c-bg: #dde1d2; --c-fg: #282c20; --c-accent: var(--bv-teal); --c-go-bg: #282c20; --c-go-fg: var(--bv-neon); }
.bv-proj-face[data-tone="neon"]  { --c-bg: #00f5d4; --c-fg: #1a1d14; --c-accent: #1a1d14; --c-go-bg: #1a1d14; --c-go-fg: var(--bv-neon); }

/* Keep the English card labels legible over the generated covers. */
.bv-proj-card .bv-proj-face[data-tone] {
  --c-fg: #f4f4ed;
  --c-accent: #7ffbe6;
  --c-go-bg: #00f5d4;
  --c-go-fg: #1a1d14;
}
.bv-proj-card .bv-proj-scene { opacity: 0; }

.bv-proj-face[data-tone] .bv-proj-num {
  border-color: color-mix(in srgb, var(--c-fg) 24%, transparent);
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.bv-proj-face[data-tone] .bv-proj-go { background: var(--c-go-bg); color: var(--c-go-fg); box-shadow: none; }
.bv-proj-face[data-tone] .bv-proj-eyebrow { color: var(--c-accent); }
.bv-proj-face[data-tone] .bv-proj-sub { color: color-mix(in srgb, var(--c-fg) 84%, transparent); }
.bv-proj-face[data-tone] .bv-proj-tags span { border-color: color-mix(in srgb, var(--c-fg) 30%, transparent); }
@media (hover: hover) {
  .bv-proj-card:hover .bv-proj-face[data-tone] .bv-proj-go { background-color: var(--c-fg); color: var(--c-bg); }
}

.bv-proj-scene {
  position: absolute;
  z-index: 1;
  top: 25cqw;
  left: 7.5cqw;
  width: 85cqw;
  height: 75cqw;
  font-family: var(--bv-mono);
  line-height: 1;
}

/* the demos wait for the section, and rest while it is off screen; in the open panel they replay */
.bv-proj-card .bv-proj-scene *,
.bv-proj-card .bv-proj-scene *::before,
.bv-proj-card .bv-proj-scene *::after { animation-play-state: paused !important; }
#projects.bv-live.bv-onscreen .bv-proj-card .bv-proj-scene *,
#projects.bv-live.bv-onscreen .bv-proj-card .bv-proj-scene *::before,
#projects.bv-live.bv-onscreen .bv-proj-card .bv-proj-scene *::after { animation-play-state: running !important; }

/* shared pieces */
.bv-type {
  display: block;
  width: calc(var(--n) * 1ch);
  overflow: hidden;
  white-space: nowrap;
}
.bv-type.bv-l1 { animation: bv-type calc(var(--n) * .05s) steps(var(--n)) .6s both; }
.bv-type.bv-l2 {
  width: calc((var(--n) + 1) * 1ch);
  animation: bv-type calc(var(--n) * .05s) steps(var(--n)) calc(.75s + var(--n0, 17) * .05s) both;
}
.bv-type.bv-l2::after {
  content: '';
  display: inline-block;
  width: .55ch;
  height: 1.05em;
  margin-left: .12ch;
  vertical-align: -.17em;
  background: currentColor;
  animation: bv-caret 1.1s steps(1) infinite;
}
@keyframes bv-type { from { width: 0; } }
@keyframes bv-caret { 50% { opacity: 0; } }
@keyframes bv-rise { from { opacity: 0; transform: translateY(3cqw); } }
@keyframes bv-pop { from { opacity: 0; transform: scale(.6); } }
@keyframes bv-fade { from { opacity: 0; } }

/* ---- 02 Ingovo: one sentence becomes filters, then a ranked match ---- */
.bv-sc-ingovo { display: flex; flex-direction: column; gap: 3.2cqw; }
.bv-ig-search {
  padding: 3.4cqw 4cqw 3.8cqw;
  border-radius: 4.5cqw;
  background: #f4f4ed;
  color: #1b1e16;
  box-shadow: 0 2cqw 5cqw rgba(0, 40, 34, .28);
  animation: bv-rise .7s cubic-bezier(.16, 1, .3, 1) .1s both;
}
.bv-ig-bot {
  display: flex;
  align-items: center;
  gap: 1.4cqw;
  margin-bottom: 1.9cqw;
  color: var(--bv-teal);
  font: 700 2.7cqw/1 var(--bv-ui);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.bv-ig-bot i {
  width: 2.4cqw;
  aspect-ratio: 1;
  background: currentColor;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.bv-ig-q { font-size: 4.4cqw; line-height: 1.3; }
.bv-sc-ingovo .bv-l2 { --n0: 17; }

.bv-ig-chips { display: flex; flex-wrap: wrap; gap: 1.6cqw; }
.bv-ig-chips span {
  padding: 1.3cqw 2.5cqw;
  border: 1px solid rgba(244, 244, 237, .3);
  border-radius: 999px;
  background: rgba(244, 244, 237, .12);
  font-size: 3.2cqw;
  white-space: nowrap;
  animation: bv-pop .5s cubic-bezier(.34, 1.56, .64, 1) both;
}
.bv-ig-chips span:nth-child(1) { animation-delay: 2.85s; }
.bv-ig-chips span:nth-child(2) { animation-delay: 3s; }
.bv-ig-chips span:nth-child(3) { animation-delay: 3.15s; }
.bv-ig-chips span:nth-child(4) { animation-delay: 3.3s; }

.bv-ig-hit {
  display: flex;
  align-items: center;
  gap: 2.6cqw;
  padding: 2.4cqw;
  border: 1px solid rgba(244, 244, 237, .16);
  border-radius: 4cqw;
  background: rgba(4, 44, 38, .34);
  animation: bv-rise .8s cubic-bezier(.16, 1, .3, 1) 3.65s both;
}
.bv-ig-hit.is-top { margin-top: auto; }
.bv-ig-hit.is-next { margin-top: -1.2cqw; border-color: transparent; background: rgba(4, 44, 38, .16); opacity: .6; animation-delay: 3.85s; }
.bv-ig-thumb {
  display: grid;
  flex: none;
  place-items: center;
  width: 14cqw;
  aspect-ratio: 1;
  border-radius: 2.6cqw;
  background: linear-gradient(160deg, #ffd8a8, #e2895a);
}
.is-next .bv-ig-thumb { background: linear-gradient(160deg, #d9e6de, #86ad9f); }
.bv-ig-thumb svg { width: 74%; }
.bv-ig-thumb path { fill: #24291d; }
.bv-ig-thumb .w { fill: #ffe2b8; }
.bv-ig-thumb .b { fill: none; stroke: #24291d; stroke-width: 2; }
.bv-ig-info { display: flex; flex: 1; flex-direction: column; gap: 1.4cqw; min-width: 0; }
.bv-ig-info b { font: 700 3.5cqw/1 var(--bv-ui); white-space: nowrap; }
.bv-ig-info span { font-size: 2.6cqw; opacity: .75; white-space: nowrap; }

@property --bv-pct { syntax: '<integer>'; inherits: false; initial-value: 96; }
.bv-ig-match { position: relative; display: grid; flex: none; place-items: center; width: 14cqw; aspect-ratio: 1; }
.bv-ig-match svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.bv-ig-match circle { fill: none; stroke-width: 3.2; }
.bv-ig-match .t { stroke: rgba(244, 244, 237, .18); }
.bv-ig-match .p {
  stroke: #7ffbe6;
  stroke-linecap: round;
  stroke-dasharray: 96 100;
  animation: bv-ring 1.3s cubic-bezier(.16, 1, .3, 1) 4s both;
}
.bv-ig-match b {
  counter-reset: bv-pct var(--bv-pct);
  font: 800 4.4cqw/1 var(--bv-display);
  animation: bv-count 1.3s cubic-bezier(.16, 1, .3, 1) 4s both;
}
.bv-ig-match b::after { content: counter(bv-pct) '%'; }
.is-next .bv-ig-match .p { stroke-dasharray: 91 100; animation-delay: 4.2s; }
.is-next .bv-ig-match b { --bv-pct: 91; animation-delay: 4.2s; }
@keyframes bv-ring { from { stroke-dashoffset: 96; } }
@keyframes bv-count { from { --bv-pct: 0; } }

/* ---- 03 Somicus: the question, then its mark flies to the right button ---- */
.bv-sm-win {
  position: absolute;
  top: 0;
  left: 0;
  width: 85cqw;
  height: 47cqw;
  overflow: hidden;
  border-radius: 3.6cqw;
  background: #f4f4ed;
  color: #282c20;
  box-shadow: 0 2.5cqw 6cqw rgba(0, 0, 0, .35);
  animation: bv-rise .7s cubic-bezier(.16, 1, .3, 1) .1s both;
}
.bv-sm-bar { display: flex; align-items: center; gap: 1.2cqw; height: 7cqw; padding: 0 3cqw; background: #e3e6da; }
.bv-sm-bar i { width: 1.7cqw; aspect-ratio: 1; border-radius: 50%; background: rgba(40, 44, 32, .24); }
.bv-sm-bar span { margin: 0 auto; padding-right: 6cqw; font: 600 2.5cqw/1 var(--bv-ui); opacity: .5; }
.bv-sm-tools {
  display: flex;
  align-items: center;
  gap: 1.6cqw;
  height: 9cqw;
  padding: 0 3cqw;
  border-bottom: 1px solid rgba(40, 44, 32, .1);
}
.bv-sm-tools span {
  padding: 1.2cqw 2.3cqw;
  border: 1px solid rgba(40, 44, 32, .16);
  border-radius: 1.6cqw;
  font: 600 2.6cqw/1 var(--bv-ui);
}
.bv-sm-tools .bv-sm-target {
  margin-left: auto;
  border-color: #00b89f;
  background: rgba(0, 245, 212, .22);
  box-shadow: 0 0 0 .7cqw rgba(0, 245, 212, .35);
  animation: bv-sm-hit .5s ease 3.25s both;
}
@keyframes bv-sm-hit { from { border-color: rgba(40, 44, 32, .16); background: transparent; box-shadow: 0 0 0 0 rgba(0, 245, 212, 0); } }
.bv-sm-body { display: flex; gap: 3cqw; padding: 3cqw; }
.bv-sm-side { display: flex; flex-direction: column; gap: 1.9cqw; width: 17cqw; }
.bv-sm-doc { display: flex; flex: 1; flex-direction: column; gap: 1.9cqw; }
.bv-sm-side i,
.bv-sm-doc i { height: 2cqw; border-radius: 1cqw; background: rgba(40, 44, 32, .11); }
.bv-sm-side i:first-child { background: rgba(0, 123, 110, .4); }
.bv-sm-doc i:nth-child(1) { width: 62%; height: 3cqw; background: rgba(40, 44, 32, .2); }
.bv-sm-doc i:nth-child(3) { width: 84%; }
.bv-sm-doc i:nth-child(4) { width: 70%; }
.bv-sm-doc i:nth-child(6) { width: 48%; }
.bv-sm-tip {
  position: absolute;
  top: 18cqw;
  right: 7cqw;
  padding: 1.5cqw 2.3cqw;
  border-radius: 1.6cqw;
  background: #1b1e16;
  color: var(--bv-neon);
  font-size: 2.5cqw;
  white-space: nowrap;
  transform-origin: 100% 0;
  animation: bv-pop .45s cubic-bezier(.34, 1.56, .64, 1) 3.45s both;
}
.bv-sm-ask {
  position: absolute;
  top: 51.5cqw;
  right: 0;
  max-width: 58cqw;
  padding: 2.1cqw 3cqw;
  border: 1px solid rgba(244, 244, 237, .14);
  border-radius: 3cqw 3cqw .8cqw 3cqw;
  background: rgba(244, 244, 237, .08);
  font: 500 3.1cqw/1.25 var(--bv-ui);
  transform-origin: 100% 100%;
  animation: bv-pop .5s cubic-bezier(.34, 1.56, .64, 1) .7s both;
}
.bv-sm-modes {
  position: absolute;
  bottom: 0;
  left: 0;
  display: flex;
  padding: .8cqw;
  border: 1px solid rgba(244, 244, 237, .18);
  border-radius: 999px;
  animation: bv-fade .6s ease 1s both;
}
.bv-sm-modes span {
  padding: 1.5cqw 2.9cqw;
  border-radius: 999px;
  color: rgba(244, 244, 237, .55);
  font: 700 2.5cqw/1 var(--bv-ui);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.bv-sm-modes span:first-child { animation: bv-sm-was .35s ease 1.7s both; }
.bv-sm-modes .bv-sm-show { background: var(--bv-neon); color: #1b1e16; animation: bv-sm-now .35s ease 1.7s both; }
@keyframes bv-sm-was { from { background: var(--bv-neon); color: #1b1e16; } }
@keyframes bv-sm-now { from { background: transparent; color: rgba(244, 244, 237, .55); } }

/* the mark: x and y ease differently, so it flies on a curve */
.bv-sm-mark {
  position: absolute;
  top: 12.6cqw;
  left: 77.4cqw;
  width: 4.4cqw;
  height: 4.4cqw;
  animation: bv-sm-fly-x 1.5s 1.85s both;
}
.bv-sm-mark::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--bv-neon);
  box-shadow: 0 0 0 1.1cqw rgba(0, 245, 212, .22), 0 0 4cqw rgba(0, 245, 212, .6);
  animation: bv-sm-fly-y 1.5s 1.85s both;
}
.bv-sm-mark::after {
  content: '';
  position: absolute;
  inset: 0;
  border: .45cqw solid var(--bv-neon);
  border-radius: 50%;
  opacity: 0;
  animation: bv-sm-ping 2s ease-out 3.4s infinite;
}
@keyframes bv-sm-fly-x {
  0%, 22% { transform: translateX(-46cqw); animation-timing-function: cubic-bezier(.25, .1, .25, 1); }
  100% { transform: none; }
}
@keyframes bv-sm-fly-y {
  0% { opacity: 0; transform: translateY(41cqw) scale(0); }
  22% { opacity: 1; transform: translateY(41cqw) scale(1); animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  100% { opacity: 1; transform: none; }
}
@keyframes bv-sm-ping {
  0% { opacity: .85; transform: scale(1); }
  100% { opacity: 0; transform: scale(2.8); }
}

/* ---- 04 AIFLIX: prompt, the pipeline ticks through, the film runs ---- */
.bv-sc-film { display: flex; flex-direction: column; gap: 3cqw; }
.bv-fm-prompt {
  padding: 3cqw 3.6cqw 3.4cqw;
  border: 1px solid rgba(40, 44, 32, .2);
  border-radius: 3.6cqw;
  background: #eceee4;
  animation: bv-rise .7s cubic-bezier(.16, 1, .3, 1) .1s both;
}
.bv-fm-label {
  margin-bottom: 1.8cqw;
  color: var(--bv-teal);
  font: 700 2.5cqw/1 var(--bv-ui);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.bv-fm-q { font-size: 4cqw; line-height: 1.3; }
.bv-sc-film .bv-l2 { --n0: 19; }

.bv-fm-steps { display: flex; justify-content: space-between; padding: 0 .5cqw; }
.bv-fm-steps span {
  display: flex;
  align-items: center;
  gap: 1.2cqw;
  font: 700 2.5cqw/1 var(--bv-ui);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.bv-fm-steps i {
  display: grid;
  place-items: center;
  width: 3.6cqw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #282c20;
  color: var(--bv-neon);
  animation: bv-fm-tick .4s ease both;
}
.bv-fm-steps svg { width: 70%; fill: none; stroke: currentColor; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.bv-fm-steps span:nth-child(1) i { animation-delay: 3.05s; }
.bv-fm-steps span:nth-child(2) i { animation-delay: 3.4s; }
.bv-fm-steps span:nth-child(3) i { animation-delay: 3.75s; }
.bv-fm-steps span:nth-child(4) i { animation-delay: 4.1s; }
@keyframes bv-fm-tick { from { background: transparent; color: transparent; box-shadow: inset 0 0 0 1px rgba(40, 44, 32, .35); } }

.bv-fm-strip {
  position: relative;
  flex: none;
  width: 100cqw;
  margin: 0 -7.5cqw;
  padding: 4cqw 0;
  overflow: hidden;
  background: #111112;
  animation: bv-fade .8s ease 2.9s both;
}
.bv-fm-strip::before,
.bv-fm-strip::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1.7cqw;
  background: repeating-linear-gradient(90deg, rgba(244, 244, 237, .5) 0 2.2cqw, transparent 2.2cqw 4.6cqw);
}
.bv-fm-strip::before { top: 1.15cqw; }
.bv-fm-strip::after { bottom: 1.15cqw; }
.bv-fm-reel {
  display: flex;
  gap: 1.6cqw;
  width: max-content;
  padding-right: 1.6cqw;
  animation: bv-reel 22s linear infinite;
}
.bv-fm-frame { width: 41cqw; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 1cqw; }
.bv-fm-frame svg { display: block; width: 100%; height: 100%; }
.bv-fm-frame.is-dusk { background: linear-gradient(180deg, #2b1e3f 0%, #b4506a 40%, #f0794f 62%, #ffc07a 70%); }
.bv-fm-frame.is-night { background: linear-gradient(180deg, #081221, #17355a 64%); }
.bv-fm-frame.is-signal { background: radial-gradient(circle at 50% 50%, #12463f, #08201c 75%); }
.bv-fm-frame.is-keeper { background: linear-gradient(180deg, #3d2a20, #160f0b); }
@keyframes bv-reel { to { transform: translateX(-50%); } }

.bv-fm-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  font-size: 2.7cqw;
  animation: bv-fade .6s ease 3.2s both;
}
.bv-fm-ready { display: flex; align-items: center; gap: 1.2cqw; color: var(--bv-teal); font-weight: 700; animation: bv-fade .4s ease 4.45s both; }
.bv-fm-ready::before { content: ''; width: 1.6cqw; aspect-ratio: 1; border-radius: 50%; background: currentColor; }

/* ---- 05 World API: one GET, the same value in every shape ---- */
.bv-ap-term {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 4cqw;
  background: #121412;
  color: #f4f4ed;
  box-shadow: 0 2.5cqw 6cqw rgba(0, 70, 58, .3);
  animation: bv-rise .7s cubic-bezier(.16, 1, .3, 1) .1s both;
}
.bv-ap-bar { display: flex; align-items: center; gap: 1.2cqw; flex: none; height: 6.5cqw; padding: 0 3.4cqw; background: #1b1e1b; }
.bv-ap-bar i { width: 1.6cqw; aspect-ratio: 1; border-radius: 50%; background: rgba(244, 244, 237, .22); }
.bv-ap-req { padding: 3cqw 3.6cqw 0; font-size: 3.1cqw; white-space: nowrap; }
.bv-ap-req em { margin-right: .5ch; color: var(--bv-neon); font-style: normal; font-weight: 700; }
.bv-ap-shapes { display: flex; align-items: center; gap: 1.1cqw; padding: 2.2cqw 3.6cqw 2.6cqw; font-size: 2.5cqw; }
.bv-ap-shapes span { margin-right: .4cqw; opacity: .5; }
.bv-ap-shapes b {
  padding: 1cqw 1.6cqw;
  border: 1px solid rgba(244, 244, 237, .16);
  border-radius: 999px;
  font-weight: 500;
  animation: bv-ap-tab 11.2s ease infinite;
}
.bv-ap-out {
  position: relative;
  flex: 1;
  margin: 0 3.6cqw;
  border-top: 1px dashed rgba(244, 244, 237, .16);
}
.bv-ap-o {
  position: absolute;
  inset: 2.6cqw 0 0;
  font-size: 2.95cqw;
  line-height: 1.5;
  white-space: pre;
  opacity: 0;
  animation: bv-ap-show 11.2s ease infinite;
}
.bv-ap-o span { display: block; }
.bv-ap-o k { color: rgba(244, 244, 237, .58); }
.bv-ap-o q { color: #7ffbe6; quotes: none; }
.bv-ap-o n { color: var(--bv-neon); font-weight: 700; }
.bv-ap-o.s1 span { animation: bv-fade .3s ease both; }
.bv-ap-o.s1 span:nth-child(2) { animation-delay: .75s; }
.bv-ap-o.s1 span:nth-child(3) { animation-delay: .85s; }
.bv-ap-o.s1 span:nth-child(4) { animation-delay: .95s; }
.bv-ap-o.s1 span:nth-child(5) { animation-delay: 1.05s; }
.bv-ap-o.s1 span:nth-child(6) { animation-delay: 1.15s; }
.bv-ap-o.s1 span:nth-child(7) { animation-delay: 1.25s; }
.bv-ap-num { color: var(--bv-neon); font: 800 30cqw/.9 var(--bv-display); }
.bv-ap-text { padding-right: 4cqw; font: italic 400 5.6cqw/1.1 var(--bv-editorial); white-space: normal; }
.bv-ap-shapes .s1, .bv-ap-o.s1 { animation-delay: .6s; }
.bv-ap-shapes .s2, .bv-ap-o.s2 { animation-delay: 3.4s; }
.bv-ap-shapes .s3, .bv-ap-o.s3 { animation-delay: 6.2s; }
.bv-ap-shapes .s4, .bv-ap-o.s4 { animation-delay: 9s; }
@keyframes bv-ap-show {
  0% { opacity: 0; }
  4%, 21% { opacity: 1; }
  25%, 100% { opacity: 0; }
}
@keyframes bv-ap-tab {
  0%, 25%, 100% { border-color: rgba(244, 244, 237, .16); background: transparent; color: #f4f4ed; }
  4%, 21% { border-color: var(--bv-neon); background: var(--bv-neon); color: #121412; }
}
.bv-ap-foot {
  display: flex;
  align-items: center;
  gap: 1.3cqw;
  margin: 0 3.6cqw;
  padding: 2.2cqw 0 3.2cqw;
  font-size: 2.5cqw;
  opacity: .6;
}
.bv-ap-foot i { width: 1.4cqw; aspect-ratio: 1; border-radius: 50%; background: var(--bv-neon); }

/* small cards (laptops under ~1200px, phones): the text has pixel minimums, so trim it to stay clear of the demo */
@container (max-width: 229px) {
  .bv-proj-eyebrow { letter-spacing: .09em; white-space: nowrap; }
  .bv-proj-tags span:nth-child(n + 3) { display: none; }
}
@container (max-width: 169px) {
  .bv-proj-tags { display: none; }
}

/* in the open panel the demo moves to the middle of the card */
.bv-pm-media .bv-proj-scene { opacity: 0; transition: opacity .45s ease .2s, top .9s cubic-bezier(.16, 1, .3, 1) .1s; }
.bv-pm.is-open .bv-pm-media .bv-proj-scene { top: calc(50% - 37.5cqw); opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .bv-proj-scene *,
  .bv-proj-scene *::before,
  .bv-proj-scene *::after { animation: none !important; }
  .bv-ap-o.s1 { opacity: 1; }
  .bv-ap-shapes .s1 { border-color: var(--bv-neon); background: var(--bv-neon); color: #121412; }
  .bv-sm-mark::after { display: none; }
}

/* ---------- expanded project: light and quiet, in the site's own type ---------- */
html.bv-pm-lock,
html.bv-pm-lock body { overflow: hidden; }

.bv-pm {
  --pm-r: 1.75rem;
  --pm-ink: var(--color--dark-green, #282c20);
  --pm-soft: var(--color--dark-green-tint-1, #3b3c38);
  --pm-muted: var(--color--dark-green-tint-2, #535450);
  --pm-line: rgba(40, 44, 32, .14);
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(.75rem, 2.4vw, 2.25rem);
}
.bv-pm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(40, 44, 32, .28);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity .6s ease;
}
.bv-pm.is-open .bv-pm-backdrop { opacity: 1; }

.bv-pm-panel {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: 100%;
  width: min(68rem, 100%);
  height: min(100%, max(44rem, 580px));
  color: var(--pm-ink);
}
.bv-pm-bg {
  position: absolute;
  inset: 0;
  border-radius: var(--pm-r);
  background: var(--color--white, #f4f4ed);
  box-shadow: 0 2rem 5rem rgba(40, 44, 32, .2);
}

/* the card itself, flush on the left; its labels fade off as it opens */
.bv-pm-media {
  position: relative;
  container-type: inline-size;
  height: 100%;
  aspect-ratio: 20 / 35;
  overflow: hidden;
  border-radius: var(--pm-r) 0 0 var(--pm-r);
  background-color: #e4e7dc;
  will-change: transform;
}
.bv-pm-media .bv-proj-go { display: none; }
.bv-pm-media .bv-proj-img { transform: none; transition: opacity .45s ease .15s; }
.bv-pm.is-open .bv-pm-media .bv-proj-face[data-tone] .bv-proj-img { opacity: 0; }
.bv-pm-media .bv-proj-shade,
.bv-pm-media .bv-proj-top,
.bv-pm-media .bv-proj-bottom { transition: opacity .45s ease .05s; }
.bv-pm.is-open .bv-pm-media .bv-proj-shade,
.bv-pm.is-open .bv-pm-media .bv-proj-top,
.bv-pm.is-open .bv-pm-media .bv-proj-bottom { opacity: 0; }

.bv-pm-body {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2.25rem clamp(1.75rem, 4.2vw, 4rem) clamp(2rem, 3.8vw, 3.5rem);
  scrollbar-width: none;
}
.bv-pm-body::-webkit-scrollbar { display: none; }
.bv-pm-body > * {
  opacity: 0;
  transform: translateY(.9rem);
  transition: opacity .6s ease, transform .9s cubic-bezier(.16, 1, .3, 1);
}
.bv-pm.is-open .bv-pm-body > * {
  opacity: 1;
  transform: none;
  transition-delay: calc(.4s + var(--i, 0) * .07s);
}
.bv-pm.is-closing .bv-pm-body > *,
.bv-pm.is-closing .bv-pm-close {
  opacity: 0;
  transition: opacity .2s ease;
  transition-delay: 0s;
}

/* same square outline button as the site menu */
.bv-pm-close {
  position: absolute;
  top: 2.25rem;
  right: clamp(1.75rem, 4.2vw, 4rem);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid var(--pm-ink);
  border-radius: .54rem;
  background: var(--color--white, #f4f4ed);
  color: var(--pm-ink);
  cursor: pointer;
  opacity: 0;
  transition: opacity .5s ease .45s, background-color .3s ease, color .3s ease;
}
.bv-pm.is-open .bv-pm-close { opacity: 1; }
.bv-pm-close:hover { background: var(--pm-ink); color: var(--color--white, #f4f4ed); }
.bv-pm-close svg {
  width: 40%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.bv-pm-close:focus-visible,
.bv-pd-btn:focus-visible { outline: 2px solid var(--bv-teal); outline-offset: 3px; }

.bv-pd-top {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 3rem;
  padding-right: 4rem;
  color: var(--pm-muted);
  font-family: 'Mona Sans Variable', Arial, sans-serif;
  font-variation-settings: "wght" 700, "wdth" 100;
  font-size: 12px;
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.bv-pd-top i { width: 1.5rem; height: 1px; background: currentColor; opacity: .5; }

.bv-pd-title {
  display: flex;
  flex-direction: column;
  margin: auto 0 0;
  padding-top: 1.75rem;
  color: var(--pm-ink);
  font-family: 'Mona Sans Variable', Arial, sans-serif;
  font-variation-settings: "wght" 750, "wdth" 93;
  font-weight: 400;
  font-size: clamp(40px, 4.3vw, 72px);
  line-height: .886;
  letter-spacing: -.025em;
  text-transform: uppercase;
}
.bv-pd-title .span-font-brier { letter-spacing: -.01em; }

.bv-pd-lead {
  max-width: 29em;
  margin: 1.5rem 0 0;
  color: var(--pm-soft);
  font-family: 'Mona Sans Variable', Arial, sans-serif;
  font-variation-settings: "wght" 500, "wdth" 100;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.38;
  letter-spacing: -.005em;
}

/* how it works: numbered steps in the same ruled rhythm as the facts below */
.bv-pd-how { margin-top: 2.25rem; }
.bv-pd-label {
  margin-bottom: .85rem;
  color: var(--pm-muted);
  font-family: 'Mona Sans Variable', Arial, sans-serif;
  font-variation-settings: "wght" 700, "wdth" 100;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.bv-pd-steps {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--pm-line);
  list-style: none;
  counter-reset: bv-step;
}
.bv-pd-steps li {
  position: relative;
  list-style: none;
  padding: .8rem 0 .8rem 3rem;
  border-bottom: 1px solid var(--pm-line);
  color: var(--pm-soft);
  font-family: 'Mona Sans Variable', Arial, sans-serif;
  font-variation-settings: "wght" 500, "wdth" 100;
  font-size: 14.5px;
  line-height: 1.4;
  counter-increment: bv-step;
}
.bv-pd-steps li::before {
  position: absolute;
  top: .8rem;
  left: 0;
  content: counter(bv-step, decimal-leading-zero);
  color: var(--bv-teal);
  font: 500 12px/1.75 ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
}
.bv-pd-steps b { color: var(--pm-ink); font-weight: 400; font-variation-settings: "wght" 720, "wdth" 100; }
.bv-pd-steps code {
  padding: .1em .35em;
  border-radius: .3em;
  background: rgba(40, 44, 32, .07);
  color: var(--pm-ink);
  font: .92em ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
}

.bv-pd-meta { margin: 2.25rem 0 0; border-top: 1px solid var(--pm-line); }
.bv-pd-meta div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: baseline;
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--pm-line);
}
.bv-pd-meta dt {
  color: var(--pm-muted);
  font-family: 'Mona Sans Variable', Arial, sans-serif;
  font-variation-settings: "wght" 700, "wdth" 100;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.bv-pd-meta dd {
  margin: 0;
  color: var(--pm-ink);
  font-family: 'Mona Sans Variable', Arial, sans-serif;
  font-variation-settings: "wght" 550, "wdth" 100;
  font-size: 15px;
  line-height: 1.3;
}

/* same turquoise button as PROJECTS in the header */
.bv-pd-actions { display: flex; margin-top: 2.25rem; }
.bv-pd-btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  height: 3.25rem;
  min-height: 46px;
  padding: 0 1.1rem 0 1.25rem;
  border: 1px solid var(--bv-neon);
  border-radius: .54rem;
  background: var(--bv-neon);
  color: var(--pm-ink);
  font-family: 'Mona Sans Variable', Arial, sans-serif;
  font-variation-settings: "wght" 800, "wdth" 86;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}
.bv-pd-btn svg {
  width: 1.05em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}
.bv-pd-btn:hover { background: var(--pm-ink); border-color: var(--pm-ink); color: var(--bv-neon); }
.bv-pd-btn:hover svg { transform: translate(.1em, -.1em); }

@media (max-width: 767px) {
  .bv-pm { padding: .5rem; }
  .bv-pm-panel { grid-template-columns: minmax(0, 1fr); grid-template-rows: 46% minmax(0, 1fr); height: 100%; }
  .bv-pm-media { aspect-ratio: auto; border-radius: var(--pm-r) var(--pm-r) 0 0; }
  .bv-pm-media .bv-proj-img { object-position: 50% 24%; }
  .bv-pm-body { padding: 1.5rem 1.25rem 1.5rem; }
  .bv-pm-close { top: 1rem; right: 1rem; }
  .bv-pd-top { min-height: 0; padding-right: 0; }
  .bv-pd-title { margin-top: 0; padding-top: 1.25rem; }
  .bv-pd-lead { margin-top: 1.1rem; }
  .bv-pd-how { margin-top: 1.5rem; }
  .bv-pd-steps li { padding: .7rem 0 .7rem 2.75rem; font-size: 14px; }
  .bv-pd-steps li::before { top: .7rem; }
  .bv-pd-meta { margin-top: 1.5rem; }
  .bv-pd-actions { margin-top: auto; padding-top: 1.5rem; }
  .bv-pd-meta div { padding: .7rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  .bv-proj-eyebrow i { animation: none; }
  .bv-pm-body > * { transform: none; }
}

/* ---------- GitHub mark above "See what I've been building" ---------- */
.bv-gh {
  display: block;
  width: 3rem;
  height: 3rem;
  margin: 0 auto;
  color: var(--bv-neon);
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1);
}
.bv-gh:hover { transform: rotate(-9deg) scale(1.08); }
.bv-gh:focus-visible { outline: 2px solid var(--bv-neon); outline-offset: 6px; border-radius: 50%; }
.bv-gh-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.bv-gh-mark { fill: currentColor; stroke: currentColor; stroke-width: .35; stroke-linejoin: round; }
/* draw-in when it scrolls into view: the outline writes itself, then the mark fills */
.bv-gh-armed .bv-gh-mark { fill-opacity: 0; stroke-dasharray: 1 2; stroke-dashoffset: 1; }
.bv-gh-armed.is-in .bv-gh-mark {
  fill-opacity: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.2s cubic-bezier(.65, 0, .35, 1) .1s, fill-opacity .5s ease 1.05s;
}

@media (prefers-reduced-motion: reduce) {
  .bv-gh:hover { transform: none; }
  .bv-gh-armed .bv-gh-mark { fill-opacity: 1; stroke-dashoffset: 0; transition: none; }
}

/* ---------- terminal badge in the laurel ---------- */
.bv-term-badge .base-helmet-rive { color: inherit; }
.bv-term-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.bv-term-badge .bv-laurel-branches { animation: none; transform-origin: 48.5px 45px; }
.bv-term-frame,
.bv-term-bar,
.bv-term-chev,
.bv-term-cursor {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bv-term-bar { stroke-width: 1.1; }
.bv-term-dot { fill: currentColor; }
.bv-term-chev,
.bv-term-cursor { stroke: var(--bv-neon); stroke-width: 1.9; }
.bv-term-cursor { animation: bv-blink 1.05s steps(1, end) infinite; }
@keyframes bv-blink { 50% { opacity: 0; } }

/* draw-in when it scrolls into view (only once the JS has armed it) */
.bv-term-armed .bv-term-frame,
.bv-term-armed .bv-term-bar,
.bv-term-armed .bv-term-chev { stroke-dasharray: 1; stroke-dashoffset: 1; }
.bv-term-armed .bv-term-dot,
.bv-term-armed .bv-term-cursor { opacity: 0; }
.bv-term-armed .bv-laurel-branches { transform: scale(.6); opacity: 0; }
.bv-term-armed.is-in .bv-term-frame { transition: stroke-dashoffset 1s cubic-bezier(.65, 0, .35, 1) .15s; stroke-dashoffset: 0; }
.bv-term-armed.is-in .bv-term-bar { transition: stroke-dashoffset .6s ease .75s; stroke-dashoffset: 0; }
.bv-term-armed.is-in .bv-term-chev { transition: stroke-dashoffset .5s ease 1s; stroke-dashoffset: 0; }
.bv-term-armed.is-in .bv-term-dot { transition: opacity .3s ease .9s; opacity: 1; }
.bv-term-armed.is-in .bv-term-cursor { opacity: 1; transition: opacity .2s ease 1.35s; animation: bv-blink 1.05s steps(1, end) 1.6s infinite; }
.bv-term-armed.is-in .bv-laurel-branches { transition: transform .9s cubic-bezier(.16, 1, .3, 1), opacity .6s ease; transform: none; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .bv-term-cursor,
  .bv-term-armed.is-in .bv-term-cursor { animation: none; }
  .bv-term-armed .bv-term-frame,
  .bv-term-armed .bv-term-bar,
  .bv-term-armed .bv-term-chev { stroke-dashoffset: 0; transition: none; }
  .bv-term-armed .bv-term-dot,
  .bv-term-armed .bv-term-cursor,
  .bv-term-armed .bv-laurel-branches { opacity: 1; transform: none; transition: none; }
}

/* attribution under the home quote */
.bv-quote-by {
  margin-top: 2.25rem;
  color: var(--color--lime-off, #3cafa2);
  text-align: center;
  letter-spacing: .08em;
}

/* ---------------- placeholder photo boxes ----------------
   Photos still to come use assets/images/placeholder.svg. The <img> tags stay
   so the menu blend, the gallery parallax and the scroll effects keep running;
   swap the src to drop in a real photo. */
.image.is-exe-scroll.is-clip { object-fit: cover; }
.exe-cta-sticker-w,
.horizontal-item-pill-w { display: none !important; }
