/* Jean Pierre Dev v4 "Jornada": preloader, one continuous stage, orbital reel, section entrances.
 * Tokens only (tokens.css). Anything that starts hidden does so inside a CSS animation that JS starts
 * on an element entering the viewport (`.j-in`, `.j-fly`, `.j-draw`) and that always ends visible. */

/* ======================================================================= Preloader */
@property --iris { syntax: "<length>"; inherits: false; initial-value: 0px; }

.pre { display: none; }
html.pre-on { overflow: hidden; }
html.pre-on .pre, .pre.is-open { display: block; }
.pre {
  --pre-x: 50vw; --pre-y: 40vh; --pre-r: 22vmin;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--c-void);
  color: var(--c-text-hi);
  -webkit-mask-image: radial-gradient(circle at var(--pre-x) var(--pre-y), transparent var(--iris), #000 calc(var(--iris) + 1.5px));
  mask-image: radial-gradient(circle at var(--pre-x) var(--pre-y), transparent var(--iris), #000 calc(var(--iris) + 1.5px));
}
.pre.is-open {
  --iris: 160vmax;
  opacity: 0;
  pointer-events: none;
  transition: --iris .62s cubic-bezier(.7, 0, .84, 0), opacity .2s linear .48s;
}
.pre__ring {
  position: absolute;
  left: calc(var(--pre-x) - var(--pre-r));
  top: calc(var(--pre-y) - var(--pre-r));
  width: calc(2 * var(--pre-r));
  height: calc(2 * var(--pre-r));
  overflow: visible;
  transform: rotate(-90deg);
}
.pre__track { fill: none; stroke: var(--c-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pre__arc {
  fill: none;
  stroke: var(--c-photon);
  stroke-width: .7;
  stroke-linecap: round;
  stroke-dasharray: 100 100;
  stroke-dashoffset: 100;
  filter: drop-shadow(0 0 4px var(--c-signal));
}
.pre__spark { fill: var(--c-photon); transform-box: view-box; transform-origin: 100px 100px; filter: drop-shadow(0 0 6px var(--c-signal)); }
.pre.is-ignite .pre__ring { animation: pre-ignite .5s var(--ease-out) both; }
@keyframes pre-ignite {
  0% { transform: rotate(-90deg) scale(1); filter: none; }
  40% { transform: rotate(-90deg) scale(.92); filter: drop-shadow(0 0 18px var(--c-signal)) brightness(1.6); }
  100% { transform: rotate(-90deg) scale(1.25); opacity: 0; }
}
.pre__lock {
  position: absolute;
  left: max(var(--gutter), env(safe-area-inset-left));
  bottom: calc(var(--s-6) + env(safe-area-inset-bottom));
  display: grid;
  gap: var(--s-3);
  transition: opacity .25s linear, transform .5s var(--ease-out);
}
.pre.is-open .pre__lock { opacity: 0; transform: translate3d(0, 12px, 0); }
.pre__brand, .pre__status {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--t-label);
  line-height: var(--lh-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
}
.pre__brand { color: var(--c-text-hi); }
.pre__sl, .pre__u { color: var(--c-signal); }
.pre__u { animation: pre-blink 1s steps(1) infinite; }
@keyframes pre-blink { 50% { opacity: 0; } }
.pre__status { color: var(--c-text-dim); min-height: 1.4em; }
.pre__count {
  display: flex;
  height: 1em;
  overflow: hidden;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(72px, 15vw, 184px);
  line-height: 1;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  color: var(--c-text-hi);
}
.pre__col { display: flex; flex-direction: column; transition: transform .42s var(--ease-out); will-change: transform; }
.pre__col > span { display: block; height: 1em; }
.pre.is-ignite .pre__count { color: var(--c-photon); }

/* the hero arrives as the iris opens (and stays put under the loader) */
html.pre-on .hero__main, html.pre-on .hero__top { opacity: 0; transform: translate3d(0, 24px, 0); }
html.pre-out .hero__main, html.pre-out .hero__top { transition: opacity .5s var(--ease-out) .1s, transform .7s var(--ease-out) .1s; }
html.pre-on .mini, html.pre-on .orbits { visibility: hidden; }

/* ======================================================================= One continuous stage */
/* Sections no longer hide the black hole: their content sits on dark plates (no backdrop-filter). */
.sec, .projects, .price { background: transparent; }
.sec { border-top-color: transparent; pointer-events: none; }
.sec .wrap, .sec .svc__rail, .sec .reel__ctrl { pointer-events: auto; }
.sec[data-side] > .wrap, .svc .rail__ctrl {
  background: var(--c-scrim);
  border: var(--border) solid var(--c-line);
}
.sec[data-side] > .wrap { padding-block: var(--s-7); }
.svc .rail__ctrl { padding: var(--s-3) var(--s-5); }
.svc .sec-head { margin-bottom: 0; }
.svc .svc__rail { margin-top: var(--s-5); }
.contact { border-top-color: transparent; }

@media (max-width: 767px) {
  :root { --section-y: 48px; }
  .sec[data-side] > .wrap { border-inline: 0; }
}

/* Wide screens: the plate takes one side, the hole frames the other (sides alternate down the page). */
@media (min-width: 1200px) and (orientation: landscape) {
  .sec[data-side] > .wrap, .svc[data-side] > .svc__rail {
    width: min(64%, 1120px);
    max-width: none;
    margin-inline: 0;
  }
  .sec[data-side] > .wrap { padding: var(--s-8); }
  .sec[data-side="l"] > .wrap, .svc[data-side="l"] > .svc__rail { margin-left: max(var(--gutter), calc((100% - var(--w-wide)) / 2 + var(--gutter))); }
  .sec[data-side="r"] > .wrap { margin-left: auto; margin-right: max(var(--gutter), calc((100% - var(--w-wide)) / 2 + var(--gutter))); }
  .svc[data-side] > .svc__rail { padding-inline: 0; }
  .sec[data-side] .sec-title, .show__titles .sec-title { font-size: clamp(40px, 4.2vw, 68px); }
  .sec[data-side] .sec-head > .sec-title { grid-column: 1 / -1; }
  .sec[data-side] .sec-head > .sec-intro { grid-column: 1 / span 10; justify-self: start; }
  .sec[data-side] .step__t { font-size: clamp(20px, 1.7vw, 26px); }
  .sec[data-side] .about__lists { grid-template-columns: minmax(0, 1fr); }
  .sec[data-side] .about__bio { font-size: clamp(18px, 1.45vw, 22px); }
  .sec[data-side] .caps__w { font-size: clamp(34px, 3.8vw, 60px); }
  .sec[data-side] .plan__val { font-size: clamp(28px, 2.5vw, 40px); }
  .sec[data-side] .plan__name { font-size: clamp(20px, 1.6vw, 26px); }
  .sec[data-side] .faq__grid { grid-template-columns: minmax(0, 1fr); }
  .sec[data-side] .faq__grid .sec-title { margin-bottom: var(--s-5); }
}

/* ======================================================================= Projects (v6): ten worlds you can open */
/* Every card is one link: a 16:10 media window (poster <img> + a muted preview <video> that journey.js plays on
 * hover/focus on desktop and for the centred card on phones), the name and one quiet line. No device mockup, no
 * metadata rows. Layouts: the desktop reel (journey.js pins and slides it), the phone carousel (< 768px, CSS
 * scroll-snap, works without JS) and a plain grid everywhere else (no JS, reduced motion, short landscape screens). */
.projects .pgrid { list-style: none; margin: 0; padding: 0; }
.projects .pj { position: relative; min-width: 0; }
.projects .pgrid > li > .pj__link { --reel-e: 0; --reel-side-x: 50%; }   /* the reel writes these on the li only */
.pj__link {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: inherit;
  text-decoration: none;
  border-radius: 16px;
  -webkit-tap-highlight-color: transparent;
}
.pj__link:focus-visible { outline: var(--focus-ring); outline-offset: 6px; }
.pj__media { aspect-ratio: 16 / 10; background: #0b0b0a; }
.pj__media > img,
.pj__media > .pj__video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
/* the poster stays until the preview really runs; a paused preview keeps its frame */
/* hidden (not only transparent) until it really plays: an empty video never sits over its poster */
.pj__video { opacity: 0; visibility: hidden; }
.pj__media.is-ready > .pj__video { opacity: 1; visibility: visible; }
html.motion-ok .pj__media.is-ready > .pj__video { transition: opacity .35s var(--ease-out), visibility 0s; }
.pj__media.is-gone > .pj__video { opacity: 0; visibility: hidden; transition: none; }   /* eaten by the black hole (fx.js clips the poster) */
/* eaten: while fx.js tears the capture off from the side facing the hole, the frame, the name and the line fade with
   it (the window empties onto the sky, not onto a dark slab); they come back with the capture */
.projects .pj .pj__body, .projects .pj .pj__media, .projects .pj .pj__media::after { transition: opacity .5s var(--ease-out), background-color .3s var(--ease-out); }
.projects .pj.is-eaten .pj__body { opacity: 0; }
.projects .pj.is-eaten .pj__media { background-color: transparent; }
/* v6 r3: each model throws a faint light of its own colour (--glow, site.html) onto the void around it: the host is lit
   by the worlds it shows. Gone with the card when the hole eats it. */
@media (hover: hover) and (pointer: fine) {
  .projects .pj__media { box-shadow: 0 26px 80px -30px rgba(var(--glow, 236, 228, 214), .5); }
  .projects .pj.is-eaten .pj__media { box-shadow: none; }
}
.projects .pj.is-eaten .pj__media::after { opacity: 0; }
.projects .pj.is-eaten::after { visibility: hidden; }
.pj__open {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px 8px 14px;
  border-radius: 999px;
  background: rgba(4, 4, 4, .74);
  color: var(--c-text-hi);
  font: 500 14px/1 var(--font-brand);
  opacity: 0;
  transform: translate3d(0, 4px, 0);
  pointer-events: none;
}
.pj__open .i { width: 16px; height: 16px; color: var(--c-signal); }
html.motion-ok .pj__open { transition: opacity .25s var(--ease-out), transform .25s var(--ease-out); }
html.motion-ok .pj__media::after { transition: box-shadow .25s var(--ease-out); }
.pj__link:focus-visible .pj__open,
.pj.is-cur .pj__open { opacity: 1; transform: none; }
.pj__link:focus-visible .pj__media::after { box-shadow: inset 0 0 0 1px rgba(216, 182, 106, .5); }
@media (hover: hover) {
  .pj__link:hover .pj__open { opacity: 1; transform: none; }
  .pj__link:hover .pj__media::after { box-shadow: inset 0 0 0 1px rgba(216, 182, 106, .5); }
}
.pj__body { position: relative; isolation: isolate; display: grid; gap: 4px; padding-inline: 2px; }
/* a soft dark patch behind the words: invisible over the void, it keeps them legible over the photon ring */
.pj__body::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -22px -28px -24px -28px;
  background: radial-gradient(closest-side, rgba(4, 4, 4, .8), rgba(4, 4, 4, .6) 50%, rgba(4, 4, 4, 0));
  pointer-events: none;
}
.pj__title {
  font-weight: 500;
  font-size: clamp(22px, 1.8vw, 27px);
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--c-text-hi);
  text-shadow: 0 1px 14px rgba(0, 0, 0, .7);
}
.pj__line { font-size: 15px; line-height: 1.45; color: var(--c-text-dim); text-shadow: 0 1px 12px rgba(0, 0, 0, .8); }
.pj--feat .pj__title { font-size: clamp(28px, 2.5vw, 40px); }
.pj__line--sum { max-width: 54ch; color: var(--c-text); }
/* the poster comes back on when its card returns to the reel: a short white-hot flicker settling to the capture */
@keyframes pj-relight {
  0% { opacity: 0; filter: brightness(2.4) saturate(.2); }
  30% { opacity: 1; }
  100% { opacity: 1; filter: none; }
}
html.motion-ok .pj__media > img.is-relit { animation: pj-relight .6s var(--ease-out) both; }

/* header: no box, only a soft dim behind the words so they read over the sky */
.projects .pj-head { position: relative; isolation: isolate; }
.projects .pj-head::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -36% -10% -44% -14%;
  background: radial-gradient(closest-side, rgba(4, 4, 4, .78), rgba(4, 4, 4, .52) 55%, rgba(4, 4, 4, 0));
  pointer-events: none;
}
.projects .pj-head > * { text-shadow: 0 1px 16px rgba(0, 0, 0, .6); }

/* controls: count, a faint progress line, one quiet hint (and arrows for a mouse on a narrow window) */
.reel__ctrl { display: none; }
.reel__count {
  flex: none;
  margin: 0;
  font-family: var(--font-brand);
  font-weight: 500;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--c-text-dim);
}
.reel__count > span { color: var(--c-text-hi); }
.reel__bar { position: relative; flex: 1; min-width: 40px; height: 2px; border-radius: 2px; background: rgba(244, 242, 238, .1); overflow: hidden; }
.reel__bar > span { position: absolute; inset: 0; background: rgba(244, 242, 238, .3); transform: scaleX(0); transform-origin: left; }
.reel__hint { flex: none; margin: 0; }
.reel__hint--swipe { display: none; }
.reel__btns { display: none; flex: none; gap: 8px; }
.reel__btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(244, 242, 238, .16);
  background: rgba(4, 4, 4, .6);
  color: var(--c-text-hi);
  cursor: pointer;
}
.reel__btn .i { width: 18px; height: 18px; }
.reel__btn:hover { border-color: rgba(216, 182, 106, .6); }
.reel__btn:disabled { opacity: .35; cursor: default; }
.reel__btn:focus-visible { outline: var(--focus-ring); outline-offset: 3px; }

/* ---------------------------------------------------------------- grid (no reel, >= 768px) */
@media (min-width: 768px) {
  .projects .pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 24px; }
  .projects .pj--feat { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .projects:not(.is-reel) .pj--feat .pj__link { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: end; }
}
@media (min-width: 1200px) {
  .projects .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 32px; }
}

/* ---------------------------------------------------------------- phones: one-screen swipe carousel */
@media (max-width: 767px) {
  .projects .reel__view { max-width: none; padding-inline: 0; }
  .projects .pgrid {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 84vw;
    gap: 12px;
    padding: 8px var(--gutter) 10px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .projects .pgrid::-webkit-scrollbar { display: none; }
  .projects .pj { scroll-snap-align: start; }
  .projects .sec-head { margin-bottom: var(--s-5); }
  .pj__title,
  .pj--feat .pj__title { font-size: 22px; }
  .pj__line--sum { color: var(--c-text-dim); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .reel__ctrl { display: flex; align-items: center; gap: 16px; margin-top: var(--s-4); }
  .reel__hint--reel { display: none; }
  .reel__hint--swipe { display: inline; }
}
@media (max-width: 767px) and (pointer: fine) {
  .reel__btns { display: flex; }
  .reel__hint { display: none; }
}

/* ---------------------------------------------------------------- desktop: the pinned orbital reel */
.projects.is-reel {
  --reel-gap: var(--s-5);
  --fh: min(clamp(220px, calc(100svh - 460px), 480px), 50vw);       /* featured media height */
  --mh: min(calc(var(--fh) / 1.42), 22vw, 340px);                     /* card media height */
  --cw: calc(var(--mh) * 1.6);
  --fw: calc(var(--fh) * 1.6);
  padding-block: 0;
}
.projects.is-reel .reel__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--reel-gap);
  padding-top: calc(var(--header-h) + var(--s-4));
  padding-bottom: var(--s-5);
  overflow: hidden;
  overflow: clip;
}
.projects.is-reel .sec-head { margin-bottom: 0; row-gap: var(--s-3); will-change: transform; }
.projects.is-reel .sec-title { font-size: clamp(36px, min(5.4vw, 8vh), 88px); }
.projects.is-reel .reel__view {
  max-width: none;
  padding: var(--reel-gap) 0;
  margin-block: calc(-1 * var(--reel-gap));
  overflow: hidden;
  overflow: clip;
  perspective: 1500px;
  perspective-origin: 50% 45%;
}
.projects.is-reel .pgrid {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(24px, 2.4vw, 44px);
  width: max-content;
  padding-inline: max(var(--gutter), calc((100vw - var(--w-content)) / 2 + var(--gutter)));
  transform-style: preserve-3d;
  will-change: transform;
  pointer-events: none;
}
html.has-mini .projects.is-reel .pgrid { padding-inline-end: calc(max(var(--gutter), calc((100vw - var(--w-content)) / 2 + var(--gutter))) + var(--mini-size, 84px) + var(--s-4)); }
.projects.is-reel .pj { flex: none; width: var(--cw); will-change: transform; pointer-events: auto; }
.projects.is-reel .pj--feat { width: var(--fw); }
.projects.is-reel .pj__title { font-size: clamp(20px, 1.6vw, 26px); }
.projects.is-reel .pj--feat .pj__title { font-size: clamp(26px, 2.3vw, 38px); }
.projects.is-reel .reel__ctrl { display: flex; align-items: center; gap: var(--s-5); padding-right: calc(var(--gutter) + var(--mini-size, 84px) + var(--s-4)); }
/* light falls off away from the black hole and the side facing it catches gold: one static picture over each media,
   drawn by the li, whose opacity is --reel-e (scrolling repaints nothing inside the card) */
.projects.is-reel .pj::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  pointer-events: none;
  background:
    radial-gradient(42% 120% at calc(100% - var(--reel-side-x, 50%)) 42%, rgba(240, 210, 140, .16), rgba(216, 182, 106, 0) 72%),
    radial-gradient(130% 150% at calc(100% - var(--reel-side-x, 50%)) 45%, rgba(4, 4, 3, .16) 0, rgba(4, 4, 3, .8) 100%);
  opacity: var(--reel-e, 0);
  will-change: opacity;
}
@media (orientation: portrait) {
  .projects.is-reel { --mh: min(calc(var(--fh) / 1.42), 40vw, 340px); }
}
@media (max-height: 760px) {
  .projects.is-reel { --reel-gap: var(--s-3); }
  .projects.is-reel .reel__pin { padding-top: calc(var(--header-h) + var(--s-2)); padding-bottom: var(--s-3); }
  .projects.is-reel .sec-head { row-gap: var(--s-2); }
  .projects.is-reel .pj__link { gap: 10px; }
}
@media (max-width: 1023px) { .projects.is-reel .reel__hint { display: none; } }

/* ======================================================================= Entrances */
.j-type { width: fit-content; max-width: 100%; }
html.motion-ok .j-type.j-in { animation: j-type calc(var(--n, 20) * 28ms + 120ms) steps(var(--n, 20), end) both; }
@keyframes j-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 -1em 0 0); } }

html.motion-ok [data-enter]:not(.j-type).j-in { animation-duration: .8s; animation-timing-function: var(--ease-out); animation-fill-mode: both; animation-delay: calc(var(--i, 0) * 90ms); }
html.motion-ok [data-enter="rise"].j-in { animation-name: j-rise; }
html.motion-ok [data-enter="row"].j-in { animation-name: j-row; }
html.motion-ok [data-enter="sling"].j-in { animation-name: j-sling; animation-duration: 1s; }
html.motion-ok [data-enter="slide"].j-in { animation-name: j-slide; animation-delay: calc(var(--i, 0) * 70ms); }
html.motion-ok [data-enter="plan"].j-in { animation-name: j-plan; animation-duration: .9s; }
html.motion-ok [data-enter="orbit"].j-in { animation-name: j-orbit; animation-duration: 1.2s; }
html.motion-ok [data-enter="unveil"].j-in { animation-name: j-unveil; animation-duration: 1.1s; }
html.motion-ok [data-enter="panel"].j-in { animation-name: j-panel; animation-duration: .9s; }
@keyframes j-rise { from { opacity: 0; transform: translate3d(0, 28px, 0); } to { opacity: 1; transform: none; } }
@keyframes j-row { from { opacity: 0; transform: translate3d(-24px, 0, 0); } to { opacity: 1; transform: none; } }
/* capability rows are slung out of the hole's orbit (it sits to their left on wide screens) */
@keyframes j-sling {
  0% { opacity: 0; transform: translate3d(-90px, 18px, 0) rotate(-3deg) scale(.94); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@keyframes j-slide { from { opacity: 0; transform: translate3d(36px, 0, 0); } to { opacity: 1; transform: none; } }
/* prices are never hidden: plans only travel, their top rule draws */
@keyframes j-plan { from { transform: translate3d(0, 40px, 0); } to { transform: none; } }
@keyframes j-orbit { from { clip-path: circle(0% at 100% 40%); } to { clip-path: circle(150% at 100% 40%); } }
@keyframes j-unveil { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes j-panel { from { clip-path: inset(0 0 100% 0); opacity: .2; } to { clip-path: inset(0 0 0 0); opacity: 1; } }

/* scan line riding the unveil / panel edge */
.show__fig, .svc-panel { position: relative; }
html.motion-ok .show__fig.j-in::after, html.motion-ok .svc-panel.j-in::after {
  content: "";
  position: absolute;
  inset: 0;
  border-bottom: 2px solid var(--c-photon);
  box-shadow: 0 10px 24px -12px var(--c-signal);
  pointer-events: none;
  animation: j-scan 1.1s var(--ease-out) both;
}
html.motion-ok .svc-panel.j-in::after { animation-duration: .9s; }
@keyframes j-scan { 0% { transform: translate3d(0, -100%, 0); opacity: 1; } 85% { opacity: 1; } 100% { transform: none; opacity: 0; } }

.plan { position: relative; }
html.motion-ok .plan.j-in::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--c-signal);
  box-shadow: 0 0 10px var(--c-signal);
  transform-origin: left;
  animation: j-rule 1.1s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 90ms + 120ms);
}
@keyframes j-rule { 0% { transform: scaleX(0); opacity: 1; } 70% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }

/* capability words: an orbiting glyph around the index, and a gravitational-lens shimmer on hover */
.caps__i { position: relative; }
html.motion-ok .caps__i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: var(--c-signal);
  box-shadow: 0 0 6px var(--c-signal);
  animation: j-orbit-dot 3.6s linear infinite;
  animation-delay: calc(var(--i, 0) * -1.2s);
}
@keyframes j-orbit-dot {
  from { transform: rotate(0deg) translate3d(1.5em, 0, 0) scale(1); }
  to { transform: rotate(360deg) translate3d(1.5em, 0, 0) scale(1); }
}
@media (hover: hover) and (pointer: fine) {
  html.motion-ok .caps__row:hover .caps__w { filter: url(#f-lens); color: var(--c-photon); }
  html.motion-ok .caps__row:hover .caps__i::after { animation-duration: 1.1s; }
  .caps__w { transition: color var(--d-base) var(--ease-out); }
}

/* ======================================================================= Services: figures draw themselves */
html.motion-ok .svc-panel.j-draw .fig__svg .fx-draw {   /* a class, not [pathLength]: Chrome left attribute-only matches unstyled after .j-draw */
  stroke-dasharray: 1 1;
  animation: j-stroke 1.1s var(--ease-out) both;
  animation-delay: calc(var(--k, 0) * 70ms + 150ms);
}
html.motion-ok .svc-panel.j-draw .fig__svg .fx-box rect { animation-name: j-stroke-box; }
html.motion-ok .svc-panel.j-draw .fig__svg .fx-text,
html.motion-ok .svc-panel.j-draw .fig__svg .fx-dash { animation: j-fade .5s var(--ease-out) both; animation-delay: calc(var(--k, 0) * 110ms + 500ms); }
html.motion-ok .svc-panel.j-draw .fig__svg .fx-node {
  transform-box: fill-box;
  transform-origin: center;
  animation: j-node .7s var(--ease-pop, var(--ease-out)) both;
  animation-delay: calc(var(--k, 0) * 160ms + 450ms);
}
html.motion-ok .svc-panel.j-draw .sheet__cell { animation: j-cell .8s var(--ease-out) both; animation-delay: calc(var(--k, 0) * 140ms + 150ms); }
@keyframes j-stroke { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes j-stroke-box { from { stroke-dashoffset: 1; fill-opacity: 0; } 60% { fill-opacity: 0; } to { stroke-dashoffset: 0; fill-opacity: 1; } }
@keyframes j-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes j-node {
  0% { transform: scale(0); filter: none; }
  55% { transform: scale(1.9); filter: drop-shadow(0 0 6px var(--c-signal)); }
  100% { transform: scale(1); filter: none; }
}
@keyframes j-cell { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ======================================================================= Process: the trajectory draws with scroll */
.process.j-on .step__rail::after {
  content: "";
  position: absolute;
  top: var(--s-3);
  bottom: calc(-1 * var(--s-7));
  left: 50%;
  width: 1px;
  margin-left: -.5px;
  background: var(--c-signal);
  box-shadow: 0 0 8px var(--c-signal);
  transform-origin: top;
  transform: scaleY(var(--f, 0));
}
.process.j-on .step:last-child .step__rail::after { bottom: 0; }
@media (min-width: 1024px) {
  .process.j-on .step__rail::after { top: 50%; bottom: auto; left: 0; right: calc(-1 * var(--gap) - var(--s-6)); width: auto; height: 1px; margin: -.5px 0 0; transform-origin: left; transform: scaleX(var(--f, 0)); }
  .process.j-on .step:last-child .step__rail::after { right: 0; }
}
.process.j-on .step__node { z-index: 1; background: var(--c-void); box-shadow: inset 0 0 0 1px var(--c-line-ui); transition: background-color var(--d-base) var(--ease-out), box-shadow var(--d-slow) var(--ease-out); }
.process.j-on .step.is-lit .step__node { background: var(--c-signal); box-shadow: 0 0 0 6px var(--c-signal-wash), 0 0 18px var(--c-signal); animation: j-ignite .9s var(--ease-out) both; }
.process.j-on .step .step__t, .process.j-on .step .step__d, .process.j-on .step .step__n { transition: opacity var(--d-slow) var(--ease-out), color var(--d-slow) var(--ease-out); }
.process.j-on .step:not(.is-lit) .step__t, .process.j-on .step:not(.is-lit) .step__d { opacity: .55; }
.process.j-on .step.is-lit .step__n { color: var(--c-signal); }
@keyframes j-ignite {
  0% { box-shadow: 0 0 0 0 var(--c-photon), 0 0 0 0 var(--c-signal); }
  40% { box-shadow: 0 0 0 14px rgba(216, 182, 106, 0), 0 0 30px var(--c-signal); }
  100% { box-shadow: 0 0 0 6px var(--c-signal-wash), 0 0 18px var(--c-signal); }
}

/* ======================================================================= Motion off: everything static */
html:not(.motion-ok) .caps__i::after { content: none; }
@media (prefers-reduced-motion: reduce) {
  .pre { display: none !important; }
  [data-enter], .j-type { animation: none !important; }
}
@media print {
  .pre, .reel__ctrl { display: none !important; }
  .projects.is-reel { height: auto !important; }
  .projects.is-reel .reel__pin { position: static; height: auto; }
}
@media (min-width: 1200px) and (orientation: landscape) {
  .sec[data-side] .svc-panel__t { font-size: clamp(28px, 2.6vw, 44px); }
}

/* v6 round 2, phones: one card in the middle of its screen. The window takes the width between the gutters (an 8px
   sliver of the neighbour says "swipe"), still 16:10; under it the name with a gold "Abrir" on the same row, and the
   line. The whole card stays one link (the pill is its visible call, not a second target). No corner mark. */
.pj__go { display: none; }
@media (max-width: 767px) {
  .pj__open { display: none; }
  .projects .pgrid {
    grid-auto-columns: calc(100vw - 2 * var(--gutter));
    gap: 8px;
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
  }
  .projects .pj { scroll-snap-align: center; }
  .pj__link { gap: 12px; }
  .projects .sec-head { margin-bottom: var(--s-4); }
  .pj__body { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; row-gap: 6px; padding-inline: 2px 0; }
  .pj__body > .pj__title { grid-column: 1; grid-row: 1; font-size: 24px; }
  .pj__body > .pj__line { grid-column: 1 / -1; grid-row: 2; }
  .pj__line--sum { -webkit-line-clamp: 2; }
  .pj__go {
    grid-column: 2;
    grid-row: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 12px 0 16px;
    border-radius: 999px;
    background: var(--c-signal);
    color: var(--c-void);
    font: 600 14px/1 var(--font-brand);
    text-shadow: none;
  }
  .pj__go .i { width: 16px; height: 16px; }
  /* only the centred card shows its pill (journey.js marks it .is-cur): no gold slivers at the screen's edges */
  html.js .projects .pj:not(.is-cur) .pj__go { opacity: 0; }
  /* v6 r3: the 8 px slivers of the neighbours show only their media frame (cut letters at the edges read as clipped) */
  html.js .projects .pgrid:has(.is-cur) .pj:not(.is-cur) .pj__body { opacity: 0; }
  html.js .projects .pj__body { transition: opacity .3s var(--ease-out); }
  html.motion-ok .pj__go { transition: opacity .25s var(--ease-out), background-color .15s var(--ease-out); }
  .pj__link:active .pj__go { background: var(--c-signal-press); }
  .projects .reel__ctrl { margin-top: var(--s-4); }
  /* the hole owns the top band: the eyebrow goes (the intro already says these are concept models) */
  .projects .pj-head > .label { display: none; }
}

/* 2026-12-03, owner: on phones the ten models are the most important thing on the page, so they are not a sideways
   carousel any more: one under the other, full width. As the visitor scrolls, the card that reaches the middle of the
   screen is the one in the spotlight (journey.js marks it .is-cur): fully lit, its "Abrir" pill on, its preview video
   playing. The others rest a little dimmer until their turn. Without JS every card is fully lit. */
@media (max-width: 767px) {
  .projects .pgrid {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
    padding: 8px var(--gutter) 0;
    overflow: visible;
    scroll-snap-type: none;
  }
  .projects .pj { scroll-snap-align: none; }
  .projects .pj__body { opacity: 1; }
  html.js .projects .pgrid:has(.is-cur) .pj:not(.is-cur) .pj__body { opacity: 1; }
  html.js .projects .pj:not(.is-cur) .pj__go { opacity: 0; }
  html.js .projects .pgrid:has(.is-cur) .pj:not(.is-cur) .pj__link { opacity: .42; transform: scale(.965); }
  html.js .projects .pj__link { transform-origin: 50% 40%; }
  html.motion-ok.js .projects .pj__link { transition: opacity .45s var(--ease-out), transform .55s var(--ease-out); }
  .pj__body > .pj__title { font-size: 26px; }
  .pj__line--sum { -webkit-line-clamp: 3; }
  /* the count and the "swipe" hint belonged to the carousel */
  .projects .reel__ctrl { display: none; }
  html.v5-on .projects { min-height: 0; display: block; }
}

/* v6 round 2, desktop reel: the progress is a short line beside the count, not a rule across the screen (at the end of
   the reel it ran right through the black hole) */
.projects.is-reel .reel__bar { flex: 0 1 180px; }
.projects.is-reel .reel__hint { margin-left: auto; }
/* the hint and the cards' lines cross the photon ring as the reel turns (3.4-4.4:1 measured): full text strength and
   a soft pool of dark under the hint, like the one under each card's name */
.projects .reel__hint { position: relative; isolation: isolate; color: var(--c-text); text-shadow: 0 1px 12px rgba(0, 0, 0, .9); }
.projects .reel__hint::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -16px -28px;
  background: radial-gradient(closest-side, rgba(4, 4, 4, .82), rgba(4, 4, 4, .62) 55%, rgba(4, 4, 4, 0));
  pointer-events: none;
}
.projects.is-reel .pj__line { color: var(--c-text); }
.projects.is-reel .pj__body::before { background: radial-gradient(closest-side, rgba(4, 4, 4, .9), rgba(4, 4, 4, .74) 55%, rgba(4, 4, 4, 0)); }
