/* Yanivtech — motion layer.
   Printing moves like ink and paper; software moves like code and blueprints.
   Only transform / opacity / clip-path are animated. Everything is skipped under reduced motion. */

@property --wipe { syntax: "<percentage>"; inherits: false; initial-value: 0%; }

/* ---------- 1. Page-to-page transitions ---------- */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
.float-actions { view-transition-name: float-actions; }

::view-transition-old(root) { animation: vt-fade-out .22s ease both; }
::view-transition-new(root) { animation: vt-rise-in .42s cubic-bezier(.2, .7, .2, 1) both; }
/* Crossing from printing to software (and back) wipes in the direction of the home hero */
html.vt-to-soft::view-transition-new(root) { animation: vt-wipe-left .62s cubic-bezier(.7, 0, .2, 1) both; }
html.vt-to-print::view-transition-new(root) { animation: vt-wipe-right .62s cubic-bezier(.7, 0, .2, 1) both; }
html.vt-to-soft::view-transition-old(root),
html.vt-to-print::view-transition-old(root) { animation: vt-dim .62s ease both; }

@keyframes vt-fade-out { to { opacity: 0; } }
@keyframes vt-rise-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes vt-wipe-left { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
@keyframes vt-wipe-right { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes vt-dim { to { opacity: .4; transform: scale(.98); } }

/* ---------- 2. Scroll reveals ---------- */
/* Hidden only when JS is running; html.reveal-all is the safety net if motion.js never loads. */
.js:not(.reveal-all) :is(.section-head, .svc-row, .spec-list > li, .steps > li, .product, .callout, .browser-card, .faq, .post-list > li, .contact-grid, .prose-article, .clients):not(.in) {
  opacity: 0; transform: translateY(28px);
}
:is(.section-head, .svc-row, .spec-list > li, .steps > li, .product, .callout, .browser-card, .faq, .post-list > li, .contact-grid, .prose-article, .clients) {
  transition: opacity .7s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i, 0) * 90ms);
}

/* Ink reveal (printing images): cyan, then magenta passes, then the image settles into register */
.ink { position: relative; overflow: hidden; isolation: isolate; }
.ink::before, .ink::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  mix-blend-mode: multiply; opacity: .85;
  transition: transform .7s cubic-bezier(.7, 0, .2, 1), visibility 0s linear .9s;
}
.ink::before { background: var(--cyan); }
.ink::after { background: var(--magenta); transition-delay: .1s, 1s; }
.ink.in::before { transform: translateX(102%); visibility: hidden; }
.ink.in::after { transform: translateY(-102%); visibility: hidden; }
.ink img { transition: transform .9s cubic-bezier(.2, .7, .2, 1) .2s, filter .9s ease .2s; }
.js .ink:not(.in) img { transform: translate(-10px, 8px) scale(1.06); filter: saturate(.2) contrast(1.15); }
.reveal-all .ink::before, .reveal-all .ink::after { transform: translateX(101%); }

/* Decode (software headings): JS scrambles the letters, CSS holds the line steady */
.decoding { font-variant-numeric: tabular-nums; }

/* Blueprint grid draws itself across software heroes */
.js .page-hero-soft.blueprint, .js .callout-soft.blueprint {
  -webkit-mask-image: linear-gradient(90deg, #000 var(--wipe), rgba(0, 0, 0, .35) calc(var(--wipe) + 12%));
  mask-image: linear-gradient(90deg, #000 var(--wipe), rgba(0, 0, 0, .35) calc(var(--wipe) + 12%));
  --wipe: 0%;
  transition: --wipe 1.1s cubic-bezier(.4, 0, .2, 1);
}
.js .page-hero-soft.blueprint.in, .js .callout-soft.blueprint.in, .reveal-all .blueprint { --wipe: 110%; }

/* ---------- 3. Hero ---------- */
/* The widening halves (kept), now with depth: the other side steps back */
.half::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: rgba(17, 22, 26, .22); opacity: 0; transition: opacity .5s ease;
}
@media (hover: hover) and (min-width: 900px) {
  .split-hero:has(.half-print:hover) .half-soft::after,
  .split-hero:has(.half-soft:hover) .half-print::after { opacity: 1; }
  .half h2 { transition: transform .6s cubic-bezier(.2, .7, .2, 1); transform-origin: left bottom; }
  .half:hover h2 { transform: scale(1.04); }
}
/* Pointer parallax: the photo drifts against the cursor; the widening side zooms in a little */
@media (hover: hover) and (min-width: 900px) {
  .half:hover { --zoom: 1.09; }
}

/* ---------- 4. Wide showcase cards ---------- */
.showcase { display: grid; gap: 22px; }
.wide-card {
  position: relative; display: grid; grid-template-columns: minmax(300px, 4fr) 8fr; min-height: clamp(380px, 46vw, 680px);
  border-radius: var(--radius-l); overflow: hidden; color: #fff; text-decoration: none;
  background: var(--graphite); isolation: isolate;
}
.wide-card:hover { color: #fff; }
/* blurred copy of the photo fills the card, so square photos still sit well in a wide frame */
.wide-card .wc-backdrop { position: absolute; inset: -40px; z-index: -1; background-size: cover; background-position: center; filter: blur(36px) saturate(1.3) brightness(.55); transform: scale(1.1); }
.wide-card .wc-media { position: relative; overflow: hidden; display: grid; place-items: center; padding: clamp(16px, 3vw, 36px); }
.wide-card .wc-media img { width: 100%; height: 100%; max-height: 600px; object-fit: contain; border-radius: var(--radius-m); transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.wide-card.is-cover .wc-media { padding: 0; }
.wide-card.is-cover .wc-media img { object-fit: cover; max-height: none; border-radius: 0; }
.wide-card:hover .wc-media img { transform: scale(1.04); }
.wide-card .wc-body { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: clamp(24px, 4vw, 48px); background: linear-gradient(90deg, rgba(17, 22, 26, .78), rgba(17, 22, 26, .35)); }
.wc-label { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 700; }
.wc-label::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.wide-card.is-print .wc-label { color: #b7e08a; } .wide-card.is-print .wc-label::before { background: var(--print); }
.wide-card.is-soft .wc-label { color: #b7c9f7; } .wide-card.is-soft .wc-label::before { background: #6f93ee; }
.wide-card h3 { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.6rem); line-height: 1.05; margin: 0; color: #fff; }
.wide-card p { margin: 0; color: rgba(255, 255, 255, .82); max-width: 40ch; }
.wc-more { margin-top: 10px; font-weight: 700; display: inline-flex; gap: 8px; align-items: center; }
.wc-more svg { transition: transform .3s ease; }
.wide-card:hover .wc-more svg { transform: translateX(5px); }
.wide-card:nth-child(even) { grid-template-columns: 8fr minmax(300px, 4fr); }
.wide-card:nth-child(even) .wc-media { order: -1; }
.wide-card:nth-child(even) .wc-body { background: linear-gradient(270deg, rgba(17, 22, 26, .78), rgba(17, 22, 26, .35)); }

/* Desktop: cards stack like a portfolio being flipped through */
@media (min-width: 900px) {
  /* break out of the text column: up to 1440px wide */
  .showcase { width: min(1440px, calc(100vw - 48px)); margin-left: calc((100% - min(1440px, calc(100vw - 48px))) / 2); }
  .showcase-stack .wide-card { position: sticky; top: calc(var(--header-h) + 20px + var(--i, 0) * 14px); box-shadow: 0 -10px 40px rgba(0, 0, 0, .18); }
  @supports (animation-timeline: view()) {
    .showcase-stack .wide-card {
      animation: card-recede linear both;
      animation-timeline: view();
      animation-range: exit-crossing 0% exit-crossing 100%;
    }
  }
}
@keyframes card-recede { to { transform: scale(.92); filter: brightness(.6); } }

/* Phones: a swipeable strip with snap */
@media (max-width: 899px) {
  .showcase { grid-auto-flow: column; grid-auto-columns: 86%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; margin: 0 calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .showcase::-webkit-scrollbar { display: none; }
  .wide-card, .wide-card:nth-child(even) { grid-template-columns: 1fr; grid-template-rows: 240px auto; min-height: 0; scroll-snap-align: center; }
  .wide-card:nth-child(even) .wc-media { order: 0; }
  .wide-card .wc-body, .wide-card:nth-child(even) .wc-body { background: rgba(17, 22, 26, .6); }
  .showcase-hint { display: block; }
}
.showcase-hint { display: none; font-size: var(--fs-sm); color: var(--graphite-2); margin-top: 6px; }

/* Pop-out cards: free-standing after the stack, the product rises out of the top edge.
   --lift (0..1) is set by motion.js as the card scrolls up, so the object climbs a little faster than its card. */
.showcase-pop { gap: clamp(150px, 14vw, 220px); margin-top: clamp(150px, 14vw, 220px); }
.wc-wrap { position: relative; }
.wide-card.has-pop { min-height: clamp(340px, 34vw, 520px); }
.wide-card.has-pop:not(.is-cover) .wc-backdrop { opacity: .45; filter: blur(60px) saturate(1.4); }
.wide-card.has-pop.is-print:not(.is-cover) { background: radial-gradient(60% 80% at 68% 100%, rgba(133, 180, 78, .42), transparent 70%), var(--graphite); }
.wc-wrap:nth-child(even) .wide-card.has-pop.is-print:not(.is-cover) { background: radial-gradient(60% 80% at 32% 100%, rgba(133, 180, 78, .42), transparent 70%), var(--graphite); }
/* CMYK halftone glow under the product */
.wide-card.has-pop.is-print:not(.is-cover) .wc-media {
  background-image:
    radial-gradient(circle, rgba(0, 168, 222, .4) 1.3px, transparent 1.8px),
    radial-gradient(circle, rgba(229, 0, 126, .35) 1.3px, transparent 1.8px),
    radial-gradient(circle, rgba(255, 212, 0, .5) 1.3px, transparent 1.8px);
  background-size: 14px 14px; background-position: 0 0, 5px 5px, 9px 2px;
  -webkit-mask-image: radial-gradient(55% 65% at 50% 100%, #000, transparent); mask-image: radial-gradient(55% 65% at 50% 100%, #000, transparent);
}
.wc-wrap:nth-child(even) .wide-card { grid-template-columns: 8fr minmax(300px, 4fr); }
.wc-wrap:nth-child(even) .wc-media { order: -1; }
.wc-wrap:nth-child(even) .wc-body { background: linear-gradient(270deg, rgba(17, 22, 26, .78), rgba(17, 22, 26, .35)); }

.wc-pop {
  position: absolute; z-index: 2; right: 0; bottom: 7%; width: 66.6%; height: 132%;
  display: flex; align-items: flex-end; justify-content: center; pointer-events: none;
  transform: translateY(calc(var(--lift, 0) * -70px));
}
.wc-wrap:nth-child(even) .wc-pop { right: auto; left: 0; }
.pop-item {
  display: block; height: 100%; width: auto; max-width: none;
  filter: drop-shadow(0 28px 30px rgba(0, 0, 0, .5));
  transition: transform .9s cubic-bezier(.2, .7, .2, 1), opacity .9s ease;
  transition-delay: calc(var(--n, 0) * 120ms);
}
.wc-wrap:hover .pop-item { transform: translateY(-14px); transition-delay: 0s; }
.js .wc-wrap:not(.in) .pop-item { opacity: 0; transform: translateY(60px); }
/* three garments fan out, back to front */
.wc-pop-3 { height: 150%; }
.wc-pop-3 .pop-item:nth-child(1) { --n: 0; height: 82%; margin-right: -16%; rotate: -6deg; }
.wc-pop-3 .pop-item:nth-child(2) { --n: 1; height: 74%; margin-right: -16%; position: relative; z-index: 1; }
.wc-pop-3 .pop-item:nth-child(3) { --n: 2; height: 70%; rotate: 5deg; position: relative; z-index: 2; }
/* a phone frame drawn around a screen image, standing in front of the desktop photo */
.pop-phone {
  position: absolute; right: 6%; bottom: -10%; height: 80%; width: auto; aspect-ratio: 372 / 820;
  padding: 22px 9px 16px; border-radius: 36px; rotate: 4deg;
  background: linear-gradient(145deg, #3a3f44, #0e1012 40%); box-shadow: inset 0 0 0 1.5px #555b61;
}
.pop-phone::before { content: ""; position: absolute; top: 8px; left: 50%; width: 22%; height: 7px; translate: -50% 0; border-radius: 4px; background: #050606; box-shadow: inset 0 0 0 1px #2c3034; }
.pop-phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 10px; }

@media (max-width: 899px) {
  .showcase-pop { grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; margin: 130px 0 0; padding: 0; gap: 140px; }
  .showcase-pop .wide-card { grid-template-rows: 260px auto; }
  .showcase-pop .wc-media { order: -1; }
  .wc-pop-3 .pop-item:nth-child(1) { height: 64%; margin-right: -20%; }
  .wc-pop-3 .pop-item:nth-child(2) { height: 56%; margin-right: -20%; }
  .wc-pop-3 .pop-item:nth-child(3) { height: 52%; }
  .wc-wrap:nth-child(even) .wide-card { grid-template-columns: 1fr; }
  .wc-wrap:nth-child(even) .wc-media { order: 0; }
  .wc-wrap:nth-child(even) .wc-body { background: rgba(17, 22, 26, .6); }
  .wc-pop, .wc-wrap:nth-child(even) .wc-pop { left: 0; right: 0; top: -110px; bottom: auto; width: auto; height: 360px; }
  .pop-phone { right: 8%; bottom: 0; height: 78%; padding: 16px 6px 12px; border-radius: 26px; }
  .pop-phone::before { top: 6px; height: 5px; }
  .pop-phone img { border-radius: 8px; }
}

/* ---------- 5. Printing services as wide rows ---------- */
.svc-rows { display: grid; gap: clamp(40px, 7vw, 96px); }
.svc-row { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.svc-row:nth-child(even) { grid-template-columns: 5fr 7fr; }
.svc-row:nth-child(even) figure { order: 2; }
.svc-row figure { margin: 0; border-radius: var(--radius-l); background: var(--paper); aspect-ratio: 16 / 10; }
.svc-row figure img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.svc-row figure.is-cover img { object-fit: cover; padding: 0; }
.svc-row h3 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); }
.svc-row p { color: var(--graphite-2); font-size: 1.08rem; }
.svc-row .svc-num { font: 800 1rem/1 var(--display); color: var(--print); margin-bottom: 10px; }
.svc-row .text-link { font-weight: 700; color: var(--print-ink); background: none; border: 0; padding: 0; cursor: pointer; font-size: 1rem; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) {
  .svc-row, .svc-row:nth-child(even) { grid-template-columns: 1fr; }
  .svc-row:nth-child(even) figure { order: 0; }
}

/* ---------- 6. Websites in browser frames ---------- */
.browser-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.browser-card { margin: 0; border-radius: var(--radius-m); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.browser-card:first-child { grid-column: span 2; }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #eef1f6; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d3d8e0; }
.browser-bar i:nth-child(1) { background: #ff6159; } .browser-bar i:nth-child(2) { background: #ffbd2e; } .browser-bar i:nth-child(3) { background: #28c941; }
.browser-bar span { margin-left: 10px; flex: 1; font-size: .8rem; color: var(--graphite-2); background: #fff; border-radius: 6px; padding: 4px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser-view { aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper); }
.browser-card:first-child .browser-view { aspect-ratio: 21 / 9; }
/* the screenshot scrolls down slowly on hover, like someone browsing the site */
.browser-view img { width: 100%; height: auto; min-height: 100%; object-fit: cover; object-position: top; transform: translateY(0); transition: transform 5s cubic-bezier(.4, 0, .2, 1); }
.browser-card:hover .browser-view img { transform: translateY(calc(var(--scroll, 0px) * -1)); }
.browser-card figcaption { padding: 12px 16px; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; }
.browser-card figcaption span { font-weight: 400; color: var(--graphite-2); font-size: var(--fs-sm); }
@media (max-width: 760px) { .browser-grid { grid-template-columns: 1fr; } .browser-card:first-child { grid-column: auto; } .browser-card:first-child .browser-view { aspect-ratio: 16 / 9; } }

/* ---------- 7. Clients marquee ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; padding: 10px 0; }
.marquee-group { display: flex; align-items: center; gap: 56px; padding: 0 56px 0 0; margin: 0; list-style: none; }
.marquee-group li { max-width: none; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img { height: 56px; width: auto; filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s; }
.marquee-track img:hover { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 8. Software: light follows the pointer ---------- */
.glow { position: relative; isolation: isolate; }
.glow::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(133, 180, 78, .22), transparent 60%);
  opacity: 0; transition: opacity .35s ease;
}
.glow:hover::after { opacity: 1; }
.product.glow, .callout.glow { overflow: hidden; }

/* ---------- 9. Timeline steps ---------- */
.steps { position: relative; }
.steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--green);
  transform: scaleX(0); transform-origin: left; transition: transform 1.4s cubic-bezier(.4, 0, .2, 1) .2s; z-index: 1;
}
.side-print .steps::before { background: var(--print); }
.side-soft .steps::before { background: var(--soft); }
.steps.in::before, .reveal-all .steps::before { transform: scaleX(1); }
@media (max-width: 860px) { .steps::before { display: none; } }

/* ---------- 10. Small touches ---------- */
.btn { transition: background-color .15s, color .15s, border-color .15s, transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, .14); }
.btn:active { transform: translateY(0) scale(.97); box-shadow: none; }
.btn.magnetic { transition: transform .2s ease-out, box-shadow .25s, background-color .15s; }
.work figcaption { transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.work:hover figcaption { transform: translateY(-4px); }
.svc-catalogue img, .spec-icon { transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.spec-list li:hover .spec-icon { transform: translateY(-3px) rotate(-6deg); }
.site-nav a { position: relative; }

/* ---------- 6. About page ---------- */
/* Full-photo hero; the header slides in on scroll (desktop), like the home page */
.about-hero { position: relative; display: flex; align-items: flex-end; min-height: clamp(520px, 100svh, 980px); overflow: hidden; background: var(--graphite); color: #fff; isolation: isolate; }
.about-hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.06); animation: hero-settle 2.4s cubic-bezier(.2, .7, .2, 1) forwards; }
.about-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(17, 22, 26, .2) 0%, rgba(17, 22, 26, 0) 25%, rgba(17, 22, 26, .2) 55%, rgba(17, 22, 26, .92) 88%); }
@keyframes hero-settle { to { transform: scale(1); } }
.about-hero-text { padding-bottom: clamp(56px, 7vh, 88px); }
.about-hero-text .lead { margin-bottom: 0; }
.about-hero h1 { color: #fff; max-width: 26ch; font-size: clamp(2rem, 1.2rem + 2.6vw, 3.4rem); }
.about-hero .lead { color: rgba(255, 255, 255, .86); max-width: 52ch; }
.about-hero .crumbs, .about-hero .crumbs a { color: rgba(255, 255, 255, .75); }
.about-hero .hero-tag { color: var(--green); }
.about-hero-scroll { position: absolute; left: 50%; bottom: 18px; width: 24px; height: 38px; margin-left: -12px; border: 2px solid rgba(255, 255, 255, .6); border-radius: 14px; }
.about-hero-scroll::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: scroll-dot 1.8s ease-in-out infinite; }
@keyframes scroll-dot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* Founders: photo with floating name tags, story beside it */
.founders-grid { display: grid; grid-template-columns: minmax(280px, 5fr) 7fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.founders-photo { position: relative; margin: 0; }
.founders-photo img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--radius-l); box-shadow: 0 30px 60px rgba(35, 40, 43, .18); }
.founder-tag {
  position: absolute; left: var(--x); top: var(--y); z-index: 1;
  display: grid; gap: 2px; padding: 12px 18px; border-radius: 18px;
  background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 16px 36px rgba(17, 22, 26, .22); color: var(--graphite); white-space: nowrap;
  animation: tag-float 5s ease-in-out infinite; animation-delay: var(--d, 0s);
}
.founder-tag.is-left { translate: -50% 0; }
.founder-tag.is-right { translate: -50% 0; }
.founder-tag strong { font-family: var(--display); font-size: 1.05rem; line-height: 1.1; }
.founder-tag span { font-size: var(--fs-sm); color: var(--green-ink); font-weight: 600; }
/* the little tail that points down at the person */
.founder-tag::after { content: ""; position: absolute; bottom: -8px; width: 16px; height: 16px; background: inherit; rotate: 45deg; border-radius: 3px; }
.founder-tag.is-left::after { left: 70%; }
.founder-tag.is-right::after { left: 22%; }
@keyframes tag-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.founders-story h2 { margin-top: 0; }
.about-stats { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 28px 0 0; padding: 0; }
.about-stats li { padding: 16px 18px; border-radius: var(--radius-m); background: var(--green-wash); }
.about-stats strong { display: block; font-family: var(--display); font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.4rem); line-height: 1; color: var(--green-deep); }
.about-stats span { display: block; margin-top: 6px; font-size: var(--fs-sm); color: var(--graphite-2); }
.reach { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; }
.reach li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: var(--fs-sm); color: var(--graphite-2); }
.reach li::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #6f93ee; vertical-align: 1px; }
.reach li.is-local::before { background: var(--green); }

/* Parallax banner: the photo moves slower than the page (--py set by motion.js) */
.para-banner { position: relative; display: flex; align-items: center; min-height: clamp(420px, 78vh, 760px); overflow: hidden; color: #fff; isolation: isolate; background: var(--graphite); }
.para-bg { position: absolute; left: 0; top: -15%; z-index: -2; width: 100%; height: 130%; object-fit: cover; object-position: 50% 6%; transform: translateY(calc(var(--py, 0) * 1px)); will-change: transform; }
.para-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(17, 22, 26, .82) 0%, rgba(17, 22, 26, .45) 45%, rgba(17, 22, 26, .05) 75%); }
.para-banner .hero-tag { color: var(--green); }
.para-quote { margin: 0; max-width: 14ch; font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 1.2rem + 4vw, 4.4rem); line-height: 1.02; }
.para-quote em { font-style: normal; color: var(--green); }

/* Team grid */
.team-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 2vw, 22px); margin: 0; padding: 0; }
.team-card { position: relative; overflow: hidden; border-radius: var(--radius-l); background: var(--graphite); }
.team-card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1), filter .8s ease; filter: saturate(.9); }
.team-card::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(180deg, transparent, rgba(17, 22, 26, .8)); pointer-events: none; }
.team-name { position: absolute; left: 16px; bottom: 14px; z-index: 1; font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: #fff; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.team-name::before { content: ""; display: block; width: 22px; height: 3px; margin-bottom: 8px; border-radius: 2px; background: var(--green); transition: width .5s cubic-bezier(.2, .7, .2, 1); }
.team-card:hover img { transform: scale(1.05); filter: saturate(1.05); }
.team-card:hover .team-name { transform: translateY(-4px); }
.team-card:hover .team-name::before { width: 44px; }
.js .team-grid > li:not(.in) { opacity: 0; transform: translateY(24px); }
.team-grid > li { transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 70ms); }

@media (max-width: 899px) {
  .founders-grid { grid-template-columns: 1fr; }
  .founders-photo { max-width: 460px; margin: 0 auto; width: 100%; }
  .founder-tag { padding: 9px 14px; }
  /* small screens: tags sit at knee height so they never cover a face */
  .founder-tag { top: 74%; }
  .founder-tag::after { display: none; }
  .founder-tag.is-left { left: 3%; translate: 0 0; }
  .founder-tag.is-right { left: 97%; top: 64%; translate: -100% 0; }
  .founder-tag strong { font-size: .95rem; }
  .about-stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .about-stats li { padding: 12px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .para-banner::after { background: linear-gradient(180deg, rgba(17, 22, 26, .15), rgba(17, 22, 26, .78)); }
  .para-banner { align-items: flex-end; padding-bottom: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .about-hero-bg { animation: none; transform: none; }
  .about-hero-scroll::after, .founder-tag { animation: none; }
  .para-bg { transform: none; }
  .js .team-grid > li:not(.in) { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
  .js :is(.section-head, .svc-row, .spec-list > li, .steps > li, .product, .callout, .browser-card, .faq, .post-list > li, .contact-grid, .prose-article, .clients):not(.in) { opacity: 1; transform: none; }
  .ink::before, .ink::after { display: none; }
  .js .ink:not(.in) img { transform: none; filter: none; }
  .js .page-hero-soft.blueprint, .js .callout-soft.blueprint { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-track [aria-hidden="true"] { display: none; }
  .showcase-stack .wide-card { position: relative; top: auto; animation: none; }
  .js .wc-wrap:not(.in) .pop-item, .wc-wrap:hover .pop-item { opacity: 1; transform: none; }
  .wc-pop { transform: none; }
  .half-bg { transition: none; transform: none; }
}

/* ---------- 11. Added 2026-11-05: video hero, video rows, word rise, scroll progress, two-way logo strip ---------- */
/* Printing hero plays the embroidery-machine video behind the text */
.page-hero.has-video { background: #14181a; color: #fff; border-bottom: 0; min-height: clamp(460px, 72vh, 720px); display: flex; align-items: flex-end; }
.page-hero.has-video .wrap { width: 100%; }
.page-hero.has-video h1 { color: #fff; }
.page-hero.has-video .lead, .page-hero.has-video .crumbs { color: rgba(255, 255, 255, .86); }
.page-hero.has-video .hero-tag { color: #b7e08a; }
.page-hero.has-video::after { z-index: 0; opacity: .35; mix-blend-mode: screen; }
.hero-video { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-video video { width: 100%; height: 100%; object-fit: cover; animation: hero-drift 24s ease-in-out infinite alternate; }
.hero-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17, 22, 26, .88) 0%, rgba(17, 22, 26, .6) 45%, rgba(17, 22, 26, .2) 100%), linear-gradient(0deg, rgba(17, 22, 26, .7), transparent 50%); }
@keyframes hero-drift { from { transform: scale(1.04) translateX(0); } to { transform: scale(1.12) translateX(-2%); } }
.js .page-hero.has-video :is(.hero-tag, h1, .lead, .btn-row) { animation: hero-rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.js .page-hero.has-video h1 { animation-delay: .12s; }
.js .page-hero.has-video .lead { animation-delay: .24s; }
.js .page-hero.has-video .btn-row { animation-delay: .36s; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(26px); } }
@media (max-width: 760px) {
  .page-hero.has-video { min-height: 560px; }
  .hero-video::after { background: linear-gradient(0deg, rgba(17, 22, 26, .92) 10%, rgba(17, 22, 26, .45) 70%, rgba(17, 22, 26, .3)); }
}

/* A portrait video inside a wide service row: blurred frame behind, the clip standing in the middle */
.svc-row figure.is-video { position: relative; overflow: hidden; display: grid; place-items: center; background: #14181a; }
.vid-backdrop { position: absolute; inset: -30px; background-size: cover; background-position: center; filter: blur(28px) brightness(.6) saturate(1.3); }
.svc-row figure.is-video video { position: absolute; top: 4%; left: 50%; translate: -50% 0; height: 92%; width: auto; max-width: none; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--radius-m); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }

@media (max-width: 760px) { .svc-row figure.is-video { aspect-ratio: 4 / 5; } }

/* Section headings: words rise one after another */
.wr { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.wr > span { display: inline-block; transition: transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--wi, 0) * 60ms + 80ms); }
.js .section-head:not(.in) .wr > span { transform: translateY(105%); }

/* Service photos drift a little as they pass, so the page feels layered */
@supports (animation-timeline: view()) {
  .svc-row figure:not(.is-video) img, .work img { animation: img-drift linear both; animation-timeline: view(); animation-range: cover; }
}
@keyframes img-drift { from { translate: 0 22px; } to { translate: 0 -22px; } }

/* Thin green reading bar under the header */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1000; pointer-events: none; transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); background: linear-gradient(90deg, var(--green), var(--print) 55%, #6f93ee); }

/* Logo strip: two rows moving in opposite directions, logos lift on hover */
.marquee + .marquee { margin-top: 18px; }
.marquee-reverse .marquee-track { animation-direction: reverse; animation-duration: 56s; }
.marquee-track img { transition: filter .3s, opacity .3s, transform .4s cubic-bezier(.2, .7, .2, 1); }
.marquee-track img:hover { transform: translateY(-4px) scale(1.08); }

@media (prefers-reduced-motion: reduce) {
  .hero-video video { animation: none; }
  .js .page-hero.has-video :is(.hero-tag, h1, .lead, .btn-row) { animation: none; }
  .js .section-head:not(.in) .wr > span { transform: none; }
  .svc-row figure img, .work img { animation: none; }
  .scroll-progress { display: none; }
}

/* ---------- 12. Full-screen heroes (2026-11-05): every hero fills the screen below the header ---------- */
.page-hero, .shop-hero {
  min-height: calc(100svh - var(--header-h));
  display: flex; flex-direction: column; justify-content: center; align-items: stretch;
}
.page-hero > .wrap, .shop-hero > .wrap { width: 100%; }
.page-hero.has-video { min-height: calc(100svh - var(--header-h)); justify-content: flex-end; align-items: stretch; padding-bottom: clamp(64px, 10vh, 112px); }
.about-hero { min-height: calc(100svh - var(--header-h)); }
@media (min-width: 900px) {
  .split-hero { min-height: calc(100svh - var(--header-h)); }
  /* pages whose header slides in on scroll get the whole screen */
  .js .header-reveal :is(.split-hero, .about-hero, .page-hero, .page-hero.has-video, .shop-hero) { min-height: 100svh; }
}

/* Scroll cue at the bottom of full-screen heroes (added by motion.js) */
.hero-scroll { position: absolute; left: 50%; bottom: 20px; z-index: 2; width: 24px; height: 38px; margin-left: -12px; border: 2px solid currentColor; border-radius: 14px; opacity: .55; pointer-events: none; }
.hero-scroll::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: currentColor; animation: scroll-dot 1.8s ease-in-out infinite; }
.page-hero.has-video .hero-scroll, .shop-hero .hero-scroll, .page-hero-soft .hero-scroll, .page-hero-green .hero-scroll { color: #fff; }
@media (max-height: 560px), (max-width: 760px) { .hero-scroll { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero-scroll::after { animation: none; } }

/* ---------- 13. Software hero: a programmer's screen (code editor + terminal) ---------- */
.hero-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.has-ide .hero-copy h1 { font-size: clamp(2.2rem, 1.3rem + 2.4vw, 3.6rem); max-width: 14ch; }
.ide-stage { position: relative; perspective: 1600px; }
.ide {
  --ide-bg: #0b1226; --ide-panel: #0f1934; --ide-line: rgba(157, 183, 245, .14);
  position: relative; overflow: hidden; border-radius: 14px; background: var(--ide-bg); color: #cfdcff;
  border: 1px solid rgba(157, 183, 245, .25);
  box-shadow: 0 40px 100px rgba(3, 8, 30, .65), 0 0 0 1px rgba(255, 255, 255, .03) inset, 0 0 90px rgba(80, 120, 255, .28);
  font: 500 clamp(.68rem, .55rem + .32vw, .82rem)/1.7 var(--mono);
  transform: rotateY(calc(-9deg + var(--tx, 0) * 6deg)) rotateX(calc(3deg - var(--ty, 0) * 4deg));
  transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
/* the screen powers on: fades in from the right */
.js .ide { animation: ide-on 1s .25s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes ide-on { from { opacity: 0; translate: 60px 0; filter: brightness(2.2) saturate(0); } }
/* faint scanlines and a glass glare, so it reads as a real screen */
.ide::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px); }
.ide-glare { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .09), transparent 32%); }

.ide-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #0a1022; border-bottom: 1px solid var(--ide-line); }
.ide-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff6159; }
.ide-bar i:nth-child(2) { background: #ffbd2e; } .ide-bar i:nth-child(3) { background: #28c941; }
.ide-bar span { flex: 1; text-align: center; margin-right: 50px; font-size: .9em; color: rgba(207, 220, 255, .55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ide-main { display: grid; grid-template-columns: 26% 1fr; }
.ide-tree { background: var(--ide-panel); border-right: 1px solid var(--ide-line); padding: 10px 0; font-size: .92em; }
.ide-tree p { margin: 0 0 6px; padding: 0 14px; font-size: .78em; letter-spacing: .12em; color: rgba(207, 220, 255, .45); max-width: none; }
.ide-tree ul { list-style: none; margin: 0; padding: 0; }
.ide-tree li { max-width: none; margin: 0; padding: 1px 10px 1px 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: rgba(207, 220, 255, .72); }
.ide-tree li.d1 { padding-left: 26px; } .ide-tree li.d2 { padding-left: 40px; }
.ide-tree li.is-dir::before { content: "▾ "; color: rgba(207, 220, 255, .4); }
.ide-tree li.is-active { background: rgba(111, 147, 238, .22); color: #fff; box-shadow: inset 2px 0 0 #6f93ee; }
.f-js::before, .f-php::before, .f-py::before, .f-md::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin-right: 7px; vertical-align: .05em; }
.f-js::before { background: #f7d64a; } .f-php::before { background: #8b93f8; } .f-py::before { background: #4fa3e0; } .f-md::before { background: #9aa6c4; }

.ide-editor { min-width: 0; display: flex; flex-direction: column; }
.ide-tabs { display: flex; background: #0a1022; border-bottom: 1px solid var(--ide-line); overflow: hidden; }
.ide-tabs span { padding: 7px 14px; font-size: .9em; color: rgba(207, 220, 255, .5); border-right: 1px solid var(--ide-line); white-space: nowrap; transition: background .3s, color .3s; }
.ide-tabs span.is-active { background: var(--ide-bg); color: #fff; box-shadow: inset 0 2px 0 #6f93ee; }
.ide-code { display: flex; height: calc(15 * 1.7em + 20px); padding: 10px 0; overflow: hidden; }
.ide-gutter { margin: 0; padding: 0 12px 0 10px; text-align: right; color: rgba(207, 220, 255, .28); user-select: none; font: inherit; min-width: 3.2em; }
.ide-src { margin: 0; padding: 0 14px 0 4px; font: inherit; color: #cfdcff; white-space: pre; overflow: hidden; flex: 1; transition: opacity .25s; }
.ide-src.is-switching { opacity: 0; }

.ide-term { border-top: 1px solid var(--ide-line); background: #080e1f; }
.ide-term-head { display: flex; gap: 18px; padding: 6px 14px; font-size: .74em; letter-spacing: .1em; color: rgba(207, 220, 255, .4); }
.ide-term-head .is-active { color: #fff; box-shadow: 0 1px 0 #6f93ee; }
.ide-term pre { margin: 0; padding: 4px 14px 10px; height: calc(4 * 1.7em + 14px); overflow: hidden; font: inherit; white-space: pre; color: #cfdcff; }
.ide-status { display: flex; gap: 16px; padding: 4px 12px; background: #2b4fb8; color: #e6edff; font-size: .82em; white-space: nowrap; overflow: hidden; }
.ide-status .is-live { margin-left: auto; color: #b9f3a4; }

.ide .c-k { color: #c792ea; } .ide .c-s { color: #b7e08a; } .ide .c-c { color: #6c7fae; font-style: italic; }
.ide .c-f { color: #82aaff; } .ide .c-n { color: #f78c6c; } .ide .c-p { color: var(--green); } .ide .c-d { color: #82aaff; }
.ide .c-ok { color: #28c941; } .ide .c-w { color: #ffcb6b; }
.ide .caret { display: inline-block; width: .55em; height: 1.15em; vertical-align: -.22em; background: #b9cbff; animation: caret 1s steps(1) infinite; }

/* little notification that pops up when a command finishes */
.ide-toast {
  position: absolute; left: -22px; bottom: 54px; z-index: 3; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 12px; background: #fff; color: var(--graphite); font-size: .9rem; font-weight: 600;
  box-shadow: 0 18px 40px rgba(3, 8, 30, .45); opacity: 0; transform: translateY(14px) scale(.96);
  transition: opacity .4s ease, transform .5s cubic-bezier(.3, 1.4, .5, 1); pointer-events: none;
}
.ide-toast b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #28c941; color: #fff; font-size: .8rem; }
.ide-toast.is-on { opacity: 1; transform: none; }

@media (max-width: 1099px) {
  .hero-split { grid-template-columns: 1fr; }
  .has-ide .hero-copy h1 { max-width: 16ch; }
  .ide { transform: none; }
  .ide-stage { margin-top: 8px; }
  .ide-toast { left: 12px; }
}
@media (max-width: 640px) {
  .ide-main { grid-template-columns: 1fr; }
  .ide-tree { display: none; }
  .ide-code { height: calc(12 * 1.7em + 20px); }
  .ide-bar span { margin-right: 0; }
  .ide-status span:nth-child(3), .ide-status span:nth-child(4) { display: none; }
  .ide-toast { font-size: .8rem; bottom: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .ide { animation: none; }
  .ide { transition: none; }
}

/* ---------- 14. Home dispatch board (2026-11-13): "Work that leaves our office every week" ----------
   Job tickets on a dark board. Desktop (motion on): the board pins and the tickets slide sideways as you scroll,
   each stamped as it arrives (motion.js). Phones / reduced motion / no JS: a swipe row with the stamps already on. */
.section-dispatch {
  --dbg: #15191c; --mh: clamp(150px, 24vh, 250px);
  position: relative; overflow-x: hidden; overflow-x: clip; color: #fff;
  background: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.4px) 0 0 / 22px 22px, var(--dbg);
}
.section.section-dispatch { padding-block: clamp(56px, 8vw, 96px) clamp(40px, 5vw, 64px); }
.section-dispatch + .section { padding-top: clamp(56px, 8vw, 104px); }
.dispatch-pin { position: relative; }
.section-dispatch .section-head { margin-bottom: 0; }
.section-dispatch .section-head h2 { color: #fff; }
.section-dispatch .section-head p { color: rgba(255, 255, 255, .72); }
.dispatch-top { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
.dispatch-top .section-head { flex: 1 1 520px; }

/* big outlined words drifting behind the tickets */
.dispatch-bigword {
  position: absolute; left: 0; bottom: 6%; z-index: 0; white-space: nowrap; pointer-events: none;
  font: 800 clamp(6rem, 16vw, 15rem)/1 var(--display); text-transform: uppercase; letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .07);
  transform: translateX(calc(var(--dp, 0) * -30%));
}

/* counter: Job 03/07 with a progress line */
.dispatch-count { display: grid; gap: 6px; justify-items: end; font-family: var(--mono); }
.dc-label { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.dc-num { font: 800 clamp(2.6rem, 2rem + 2vw, 4rem)/1 var(--display); font-variant-numeric: tabular-nums; }
.dc-num span { color: rgba(255, 255, 255, .35); font-size: .5em; margin-left: 4px; }
.dc-bar { width: 180px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.dc-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--print), var(--green), #6f93ee); transform-origin: left; transform: scaleX(var(--dp, 0)); }
.section-dispatch:not(.is-pinned) .dc-bar { display: none; }

/* the row of tickets */
.dispatch-viewport { position: relative; z-index: 1; }
.dispatch-track {
  list-style: none; margin: 0; display: flex; align-items: stretch; gap: clamp(20px, 2.4vw, 36px);
  padding: 76px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 48px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.dispatch-track::-webkit-scrollbar { display: none; }
.tk-slot { flex: 0 0 auto; width: min(82vw, 380px); scroll-snap-align: center; }
.tk-slot:nth-child(odd) { --tilt: -1.3deg; }
.tk-slot:nth-child(even) { --tilt: 1.1deg; }

/* conveyor belt under the tickets; it runs as the board moves */
.dispatch-belt {
  position: absolute; left: 0; right: 0; bottom: 14px; height: 12px;
  border-block: 1px solid rgba(255, 255, 255, .1);
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .13) 0 18px, transparent 18px 40px);
  background-position-x: calc(var(--dp, 0) * -1600px);
}
.dispatch-hint { display: block; margin: 0 auto; font-size: var(--fs-sm); color: rgba(255, 255, 255, .55); }

/* ---- the ticket ---- */
.ticket {
  --ink: var(--print-ink); --muted: var(--graphite-2); --rule: rgba(35, 40, 43, .16);
  position: relative; display: flex; flex-direction: column; height: 100%;
  border-radius: 14px; color: var(--graphite); text-decoration: none;
  background: #fbf8f1; box-shadow: 0 28px 60px rgba(0, 0, 0, .45), 0 2px 0 rgba(255, 255, 255, .6) inset;
  transform: rotate(calc(var(--tilt, 0deg) + var(--sway, 0) * 1deg));
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .4s ease;
}
.ticket:hover, .ticket:focus-visible { transform: translateY(-10px) rotate(0deg); box-shadow: 0 40px 80px rgba(0, 0, 0, .55); color: var(--graphite); }
/* printing tickets: paper, halftone dots in the corner, a strip of green tape */
.ticket.is-print::before {
  content: ""; position: absolute; inset: 0 0 auto auto; width: 60%; height: 120px; border-top-right-radius: 14px; pointer-events: none;
  background: radial-gradient(circle, rgba(133, 180, 78, .4) 1.3px, transparent 1.7px) 0 0 / 8px 8px;
  -webkit-mask-image: linear-gradient(225deg, #000, transparent 70%); mask-image: linear-gradient(225deg, #000, transparent 70%);
}
.tk-tape {
  position: absolute; top: -15px; left: 46%; z-index: 3; width: 100px; height: 24px; translate: -50% 0; rotate: -4deg;
  background: repeating-linear-gradient(45deg, rgba(133, 180, 78, .92) 0 8px, rgba(160, 200, 110, .92) 8px 16px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .25); opacity: .92;
}
/* software tickets: a dark blueprint screen */
.ticket.is-soft {
  --ink: #9db7f5; --muted: rgba(232, 238, 252, .74); --rule: rgba(157, 183, 245, .28);
  color: #eef3ff; background:
    linear-gradient(rgba(157, 183, 245, .09) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(157, 183, 245, .09) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(160deg, #18337a, #0d1d45);
  box-shadow: 0 28px 60px rgba(0, 0, 0, .5), 0 0 0 1px rgba(157, 183, 245, .25) inset;
}
.ticket.is-soft:hover, .ticket.is-soft:focus-visible { color: #eef3ff; }

.tk-top { position: relative; display: flex; justify-content: space-between; gap: 12px; padding: 16px 18px 12px; font: 700 .74rem/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.tk-label { color: var(--ink); text-align: right; }
.tk-no::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--print); vertical-align: 1px; }
.is-soft .tk-no::before { background: #6f93ee; }

.tk-media { position: relative; height: var(--mh); margin: 0 14px; border-radius: 10px; overflow: hidden; background: var(--graphite); }
.tk-photo { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.tk-photo.is-contain { object-fit: contain; padding: 10px; }
.tk-blur { position: absolute; inset: -30px; background-size: cover; background-position: center; filter: blur(24px) brightness(.6) saturate(1.3); }
.ticket:hover .tk-photo { transform: scale(1.05); }
/* products standing out of the top of the photo frame */
.has-pop .tk-media { overflow: visible; }
.has-pop.is-print .tk-media { background: radial-gradient(70% 90% at 50% 100%, rgba(133, 180, 78, .55), transparent 72%), radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1.4px) 0 0 / 9px 9px, var(--graphite); }
.tk-pop { position: absolute; left: 0; right: 0; bottom: 0; height: 128%; display: flex; align-items: flex-end; justify-content: center; pointer-events: none; }
.tk-pop-item { height: 100%; width: auto; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .45)); transition: transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--n, 0) * 60ms); }
.ticket:hover .tk-pop-item { transform: translateY(-12px); }
.tk-pop-3 .tk-pop-item:nth-child(1) { --n: 0; height: 90%; margin-right: -18%; rotate: -7deg; }
.tk-pop-3 .tk-pop-item:nth-child(2) { --n: 1; height: 84%; margin-right: -18%; position: relative; z-index: 1; }
.tk-pop-3 .tk-pop-item:nth-child(3) { --n: 2; height: 80%; rotate: 6deg; position: relative; z-index: 2; }
.is-cover.has-pop .tk-pop { justify-content: flex-end; padding-right: 6%; height: 115%; }
.tk-phone { display: block; height: 100%; aspect-ratio: 372 / 820; border: 5px solid #0b0d10; border-radius: 20px; overflow: hidden; background: #000; }
.tk-phone img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* one-line terminal on software tickets */
.tk-cmd { display: block; margin: 10px 14px 0; padding: 8px 12px; border-radius: 8px; background: #06102a; color: #cfe0ff; font: .76rem/1.3 var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-prompt { color: var(--green); }
.tk-cmd em { font-style: normal; color: #3ddc66; transition: opacity .3s ease .35s; }

.tk-body { position: relative; display: block; padding: 16px 18px 10px; }
.tk-body h3 { margin: 0 0 6px; font-size: clamp(1.2rem, 1rem + .5vw, 1.5rem); line-height: 1.1; color: inherit; }
.tk-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: .9rem; color: var(--muted); }
.tk-spec { display: grid; gap: 7px; margin-top: 14px; font-size: .82rem; }
.tk-spec > span { display: flex; align-items: baseline; gap: 8px; }
.tk-spec b { font: 700 .68rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.tk-spec i { flex: 1; border-bottom: 1.5px dotted var(--rule); translate: 0 -3px; }
.tk-spec > span > span { font-weight: 600; text-align: right; }

/* tear-off foot: dashed line with a notch cut into each side */
.tk-foot { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding: 14px 18px 16px; border-top: 2px dashed var(--rule); }
.tk-foot::before, .tk-foot::after { content: ""; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--dbg); }
.tk-foot::before { left: -10px; } .tk-foot::after { right: -10px; }
.tk-barcode { width: 92px; height: 26px; opacity: .8; background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 4px, currentColor 4px 5px, transparent 5px 8px, currentColor 8px 11px, transparent 11px 12px, currentColor 12px 13px, transparent 13px 16px); }
.tk-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); }
.tk-more svg { transition: transform .3s ease; }
.ticket:hover .tk-more svg { transform: translateX(5px); }

/* the rubber stamp: thumps on when the ticket arrives */
.tk-stamp {
  position: absolute; right: 22px; top: calc(44px + var(--mh) - 50px); z-index: 4;
  padding: 5px 14px; border: 3px solid currentColor; border-radius: 6px; outline: 1.5px solid currentColor; outline-offset: 3px;
  font: 800 1.2rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase;
  color: var(--print); background: rgba(251, 248, 241, .93); rotate: -11deg; pointer-events: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.is-soft .tk-stamp { color: #2f5fd8; background: rgba(238, 243, 255, .95); font-family: var(--mono); font-size: 1.05rem; }
.js:not(.reveal-all) .tk-slot:not(.is-stamped) .tk-stamp { opacity: 0; transform: scale(2.4); }
.js:not(.reveal-all) .tk-slot:not(.is-stamped) .tk-cmd em { opacity: 0; }
.js:not(.reveal-all) .tk-slot.is-stamped .tk-stamp { animation: tk-thump .5s cubic-bezier(.3, 1.3, .5, 1) both; }
.js:not(.reveal-all) .tk-slot.is-stamped { animation: tk-jolt .4s ease .12s both; }
@keyframes tk-thump {
  0% { opacity: 0; transform: scale(2.4); }
  55% { opacity: 1; transform: scale(.92); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes tk-jolt { 0%, 100% { translate: 0 0; } 35% { translate: 0 5px; } }

/* ---- desktop with motion: the board pins and slides ---- */
.section-dispatch.is-pinned { padding: 0; }
.is-pinned .dispatch-pin {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; overflow: clip;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: var(--header-h);
}
.is-pinned .section-head h2 { font-size: clamp(2rem, 1.2rem + 1.6vw, 2.8rem); max-width: 22ch; }
.section-dispatch.is-pinned { --mh: clamp(130px, 22vh, 230px); }
.is-pinned .dispatch-track {
  overflow: visible; scroll-snap-type: none; padding-block: 56px 36px;
  transform: translate3d(calc(var(--dx, 0) * -1px), 0, 0); will-change: transform;
}
.is-pinned .tk-slot { width: clamp(320px, 26vw, 400px); }
.is-pinned .dispatch-hint { display: none; }
@media (max-height: 820px) {
  .is-pinned .tk-text { display: none; }
  .is-pinned .section-head p { display: none; }
}
@media (max-width: 640px) {
  .dispatch-count { grid-auto-flow: column; align-items: baseline; justify-content: start; gap: 14px; }
  .dc-num { font-size: 2.2rem; }
  .dispatch-track { padding-top: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .ticket, .tk-photo, .tk-pop-item { transition: none; }
  .ticket:hover { transform: none; }
}
/* last ticket: a blank one, "your job could be next", opens the quote form */
.ticket.is-blank {
  width: 100%; font: inherit; text-align: left; cursor: pointer; color: #fff;
  background: rgba(133, 180, 78, .06); border: 2px dashed rgba(133, 180, 78, .6); box-shadow: none;
}
.ticket.is-blank:hover, .ticket.is-blank:focus-visible { color: #fff; background: rgba(133, 180, 78, .12); box-shadow: 0 30px 60px rgba(0, 0, 0, .4); }
.is-blank { --ink: var(--green); --muted: rgba(255, 255, 255, .7); --rule: rgba(133, 180, 78, .4); }
.is-blank .tk-no::before { background: var(--green); }
.tk-blank-body { flex: 1; display: grid; align-content: center; justify-items: start; gap: 12px; padding: 18px 22px; }
.tk-blank-plus { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: var(--graphite); font: 700 2.2rem/1 var(--display); transition: transform .5s cubic-bezier(.3, 1.4, .5, 1); }
.ticket.is-blank:hover .tk-blank-plus { transform: rotate(90deg) scale(1.08); }
.tk-blank-title { font: 800 clamp(1.4rem, 1.1rem + .8vw, 1.9rem)/1.1 var(--display); }
.is-blank .tk-text { -webkit-line-clamp: 4; }
.is-pinned .is-blank .tk-text { display: -webkit-box; }
.is-blank .tk-foot::before, .is-blank .tk-foot::after { display: none; }
/* custom software ticket: a workflow drawn in the photo frame, a signal running through the steps */
.tk-flow { position: relative; width: 100%; height: 100%; padding: 6px; background: rgba(6, 16, 42, .72); }
.tk-flow-line { fill: none; stroke: rgba(157, 183, 245, .35); stroke-width: 2; stroke-dasharray: 5 6; }
.tk-flow-pulse { fill: none; stroke: #3ddc66; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 14 86; filter: drop-shadow(0 0 5px rgba(61, 220, 102, .8)); animation: tk-pulse 3.6s linear infinite; }
.tk-flow-node rect { fill: #10234f; stroke: #6f93ee; stroke-width: 1.5; }
.tk-flow-node text { fill: #eef3ff; font: 700 13px var(--mono); letter-spacing: .02em; }
.tk-flow-node { animation: tk-node 3.6s ease-in-out infinite; animation-delay: calc(var(--k) * 3.6s / var(--n)); }
@keyframes tk-pulse { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes tk-node { 0%, 18%, 100% { opacity: .75; } 6% { opacity: 1; } }
.tk-flow-node rect { transition: fill .3s ease; }
.ticket:hover .tk-flow-node rect { fill: #18337a; }
@media (prefers-reduced-motion: reduce) { .tk-flow-pulse, .tk-flow-node { animation: none; } }
