/* Visual Labs Studio — site styles */
@font-face {
  font-family: "Bioweapon";
  src: url("../fonts/bioweapon.woff2") format("woff2");
  font-display: swap;
}
:root {
  --u: min(.8px, calc(100vw / 2381)); /* Wix px → screen px (80% view, shrinks on small screens) */
  --cyan: #3cd0f7;
  --cyan-deep: #12a9d6;
  --black: #000;
  --night: #1b1f23;
  --night-line: #2a3036;
  --ink: #0d0f11;
  --white: #fff;
  --sky: #e9f7fd;
  --display: "Bioweapon", "Arial Black", sans-serif;
  --body: "Montserrat", system-ui, sans-serif;
  --wrap: 1430px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--white);
  background: var(--night);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--black);
  border-bottom: 1px solid #0b2a33;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-block: .4rem;
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand .mark { width: clamp(60px, min(11.2vw, 16vh), 150px); height: auto; filter: drop-shadow(0 0 14px rgba(60,208,247,.45)); }
.brand .wordmark { width: clamp(130px, min(19.6vw, 30vh), 280px); height: auto; }
.nav { display: flex; gap: .55rem; }
.nav a {
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  background: var(--cyan);
  border: 1px solid var(--cyan);
  border-radius: 14px;
  min-height: 37px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 clamp(1rem, 1.9vw, 2.6rem); white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav a:hover, .nav a:focus-visible { background: var(--white); color: var(--cyan); }
.nav a[aria-current="page"] { background: #1a1a1a; color: var(--cyan); }
.nav a[aria-current="page"]:hover { background: var(--white); }
.nav-toggle {
  display: none;
  background: none; border: 2px solid var(--cyan); color: var(--cyan);
  border-radius: 10px; padding: .45rem .7rem; cursor: pointer;
  font: 600 .9rem var(--body);
}

/* ---------- Backgrounds ---------- */
.bg-night {
  background: var(--night) url("../img/vl-dark.webp") center / cover no-repeat;
}
@media (min-width: 861px) and (hover: hover) {
  .bg-night { background-attachment: fixed; }
}
.bg-sky { position: relative; color: var(--ink); background: var(--sky); overflow: hidden; }
.bg-sky > .bg-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.bg-sky > *:not(.bg-video) { position: relative; z-index: 1; }

/* ---------- Section headings with faded lines ---------- */
.section { padding: 4.5rem 0; }
.heading {
  width: 100vw;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(.6rem, .9vw, 1.1rem);
  margin: 0 0 clamp(2rem, 4vw, 4.5rem) calc(50% - 50vw);
}
.heading::before, .heading::after {
  content: ""; height: clamp(14px, 2.41vw, 33px);
  background: url("../img/line-left.png") right center / 140% 100% no-repeat;
}
.heading::after { background-image: url("../img/line-right.png"); background-position: left center; }
html, body { overflow-x: clip; }
.heading h1, .heading h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 7.28vw, 100px);
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: uppercase;
  text-align: center;
}
.bg-sky .heading h1, .bg-sky .heading h2 { color: #16191c; text-shadow: 0 4px 10px rgba(0,0,0,.18); }

/* ---------- Hero: Wix positions (px from the page centre / section top), shown at the
   same 80% scale as the Services section, and shrinking together on smaller screens ---------- */
.hero {
  --u: min(.8px, calc(100vw / 2381));
  min-height: max(calc(100vh - var(--hdr, 7rem)), calc(930 * var(--u)));
  min-height: max(calc(100svh - var(--hdr, 7rem)), calc(930 * var(--u)));
}
.hero-stage { position: relative; }
.hero-stage > * { position: absolute; left: calc(50% - 956 * var(--u)); margin: 0; }
.kicker {
  top: calc(128 * var(--u));
  font-family: var(--body); font-weight: 900; font-size: calc(30 * var(--u)); line-height: 1.22;
  color: rgb(61, 211, 255); text-transform: uppercase; white-space: nowrap;
}
.hero h1 {
  top: calc(260 * var(--u));
  font-family: var(--display); font-weight: 400; text-transform: uppercase; white-space: nowrap;
  font-size: calc(100 * var(--u)); line-height: calc(140 * var(--u));
  color: #000; text-shadow: 0 calc(4 * var(--u)) calc(5 * var(--u)) rgba(0,0,0,.4);
}
.hero h1 > span { display: block; margin-bottom: calc(5 * var(--u)); }
.hero h1 .cy { color: rgb(61, 211, 255); font-style: italic; }
.hero h1 .life { display: inline; margin-left: calc(101 * var(--u)); }
.hero .lede {
  top: calc(815 * var(--u)); width: calc(794 * var(--u));
  font-weight: 900; font-size: calc(25 * var(--u)); line-height: calc(30 * var(--u));
  color: rgb(24, 24, 25); text-shadow: 0 calc(4 * var(--u)) calc(5 * var(--u)) rgba(0,0,0,.4);
}
@media (max-width: 860px) {
  .hero { min-height: calc(100svh - var(--hdr, 4rem)); padding: 2.5rem 1.25rem; }
  .hero-stage > * { position: static; }
  .kicker { font-size: 15px; margin-bottom: 1.5rem; white-space: normal; }
  .hero h1 { font-size: 44px; line-height: 1.3; }
  .hero h1 > span { margin: 0; }
  .hero h1 .life { margin-left: 22px; }
  .hero .lede { width: auto; max-width: 30em; font-size: 15px; line-height: 1.25; margin-top: 2rem; }
}

/* ---------- Services: measured from the Wix page (1795px-wide reference, scaled by screen width) ---------- */
.section.services-section { padding: 1.2vw 0 1.6vw; }
.services-section .heading { margin-bottom: 2.85vw; }
.services-section .heading h2 { font-size: max(2.2rem, 5.08vw); line-height: 1.1; }
.services {
  width: 100vw; margin-left: calc(50% - 50vw);
  display: grid; grid-template-columns: repeat(4, 27vw); justify-content: center;
}
.service { position: relative; width: 21.17vw; aspect-ratio: 1; justify-self: center; isolation: isolate; }
.service::before {
  content: ""; position: absolute; inset: 14.645%;
  background: var(--cyan); transform: rotate(45deg); z-index: -1;
}
.service .inner { position: absolute; inset: 0; padding-top: 2.2vw; text-align: center; }
.service:nth-child(3) .inner { padding-top: 2.75vw; }
.service:nth-child(4) .inner { padding-top: 2.4vw; }
.service svg { display: block; width: 6.4vw; height: 5.2vw; margin: 0 auto 1.25vw; color: var(--white); }
.service h3 {
  margin: 0 auto 1.73vw;
  font-weight: 900; font-style: italic; text-transform: uppercase;
  font-size: 1.1vw; line-height: 1.45;
}
.service p { margin: 0 auto; font-weight: 700; font-size: .79vw; line-height: 1.27; white-space: nowrap; }
.tagline {
  width: 100vw; margin: 3.2vw 0 0 calc(50% - 50vw); padding-inline: 2vw;
  text-align: center; text-transform: uppercase; font-weight: 900; white-space: nowrap;
  font-size: 1.26vw; line-height: 1.2;
}
@media (max-width: 860px) {
  .section.services-section { padding: 2.5rem 0; }
  .services { grid-template-columns: repeat(2, 300px); justify-content: center; gap: 0; }
  .service { width: 280px; }
  .service .inner, .service:nth-child(n) .inner { padding-top: 40px; }
  .service svg { width: 52px; height: 52px; margin-bottom: 14px; }
  .service h3 { font-size: 16px; margin-bottom: 18px; }
  .service p { font-size: 12px; }
  .tagline { white-space: normal; font-size: 16px; margin-top: 1.5rem; padding-inline: 1.25rem; }
}
@media (max-width: 620px) { .services { grid-template-columns: 300px; } }

#work-h, #software-h { font-size: clamp(2.2rem, 6.1vw, 84px); }

/* ---------- Video cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 3.5vw, 4.5rem) clamp(1.5rem, 10.22vw, 140px); }
.work h3 {
  margin: 1.1rem -1.5rem 0; text-align: center; text-transform: uppercase; color: #262626;
  font-weight: 900; font-size: clamp(17px, 1.46vw, 20px); line-height: 1.25;
}
.work h3 em { display: block; font-weight: 900; }
.yt {
  position: relative; display: block; aspect-ratio: 16 / 9; width: 100%;
  background: #000 center / cover no-repeat;
  border: 0; padding: 0; cursor: pointer; overflow: hidden; font: inherit; text-align: left; color: #fff;
}
.yt-top {
  position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: .6rem;
  padding: .6rem .75rem 1.6rem; background: linear-gradient(rgba(0,0,0,.6), transparent);
}
.yt-top img { width: 36px; height: auto; flex-shrink: 0; }
.yt-title {
  font-family: Roboto, Arial, sans-serif; font-size: 15px; font-weight: 500; line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 0 2px rgba(0,0,0,.5);
}
.yt-title small { display: block; font-size: 12px; font-weight: 400; opacity: .9; }
.yt-watch {
  position: absolute; right: .75rem; bottom: .7rem; padding: .35rem .7rem; border-radius: 999px;
  background: rgba(23,23,23,.8); font: 500 13px Roboto, Arial, sans-serif;
}
.yt::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 68px; height: 48px; transform: translate(-50%, -50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 48'%3E%3Cpath d='M66.5 7.7A8.5 8.5 0 0 0 60.5 1.7C55.2.3 34 .3 34 .3s-21.2 0-26.5 1.4A8.5 8.5 0 0 0 1.5 7.7C.1 13 .1 24 .1 24s0 11 1.4 16.3a8.5 8.5 0 0 0 6 6C12.8 47.7 34 47.7 34 47.7s21.2 0 26.5-1.4a8.5 8.5 0 0 0 6-6C67.9 35 67.9 24 67.9 24s0-11-1.4-16.3z' fill='%23f00'/%3E%3Cpath d='M45 24 27 14v20' fill='%23fff'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .15s;
}
.yt:hover::after { transform: translate(-50%, -50%) scale(1.08); }
.yt iframe, .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }

/* ---------- Project cards ---------- */
.project { text-align: center; }
.pill {
  display: inline-block; margin: 0 0 1rem;
  font-family: var(--display); font-size: .95rem; letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink); background: var(--cyan); padding: .4rem 1.4rem; border-radius: 999px;
  width: 92%;
}
.project .sub {
  margin: .9rem 0 0; font-weight: 900; font-style: italic; text-transform: uppercase; font-size: .92rem;
}

/* ---------- Gallery ---------- */
.gallery { position: relative; aspect-ratio: 16 / 9; background: #0b0c0e; border-radius: 6px; overflow: hidden; }
.gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .3s; }
.gallery img.on { opacity: 1; }
.gallery button {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0,0,0,.55); color: #fff; font-size: 1.2rem; line-height: 1;
}
.gallery .prev { left: .5rem; }
.gallery .next { right: .5rem; }
.gallery .count { position: absolute; right: .6rem; bottom: .5rem; font-size: .75rem; font-weight: 700; background: rgba(0,0,0,.55); padding: .1rem .5rem; border-radius: 999px; }

/* ---------- Marquee ---------- */
.logo-marquee {
  --gap: 4rem; --logo-height: 96px;
  position: relative; overflow: hidden; width: 100%; padding: 2rem 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.logo-marquee__track { display: flex; width: max-content; will-change: transform; animation: logo-scroll-right var(--duration, 60s) linear infinite; }
.logo-marquee__group { display: flex; align-items: center; gap: var(--gap); padding-right: var(--gap); flex-shrink: 0; }
.logo-marquee__group img { height: var(--logo-height); width: auto; flex-shrink: 0; }
@keyframes logo-scroll-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.ai-note { text-align: right; font-weight: 800; font-size: clamp(.85rem, 1.18vw, 16px); margin: 0; padding-right: 1.5vw; }
.section.software-section { padding: clamp(.5rem, 1vw, 1rem) 0 clamp(.75rem, 1.2vw, 1.25rem); }
.software-section .heading { margin-bottom: 0; }
@media (max-width: 600px) { .logo-marquee { --gap: 2.5rem; --logo-height: 64px; padding: 1.25rem 0; } }

/* ---------- Text blocks ---------- */
.prose { max-width: 62ch; margin-inline: auto; text-align: center; font-weight: 800; font-size: clamp(1rem, 1.5vw, 1.2rem); }
.prose p { margin: 0 0 1.4rem; }
.note { text-align: center; font-weight: 800; font-size: 1.05rem; }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.founder .prose { text-align: center; color: #121416; }
.founder-photo { position: relative; justify-self: center; width: min(100%, 460px); }
.founder-photo img { filter: drop-shadow(0 18px 30px rgba(0,0,0,.18)); }

/* ---------- Contact ---------- */
.contact-lines { text-align: center; font-size: 1.1rem; margin-bottom: 3rem; }
.contact-lines p { margin: 0 0 1.4rem; }
.contact-lines a { color: var(--cyan); }
.form-card {
  max-width: 640px; margin-inline: auto; padding: 1.75rem;
  border: 2px solid var(--cyan); border-radius: 14px; background: rgba(0,0,0,.25);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: .8rem; font-weight: 700; margin-bottom: .35rem; }
input, textarea {
  width: 100%; font: inherit; font-size: .95rem; color: #fff;
  background: transparent; border: 1.5px solid var(--cyan); border-radius: 6px; padding: .6rem .7rem;
}
textarea { min-height: 130px; resize: vertical; }
.btn {
  display: block; width: 100%; margin-top: 1.25rem; cursor: pointer;
  font: 800 1rem var(--body); color: #fff; background: var(--cyan-deep);
  border: 0; border-radius: 999px; padding: .8rem 1rem;
}
.btn:hover { background: var(--cyan); color: var(--ink); }
.form-help { font-size: .85rem; margin: .9rem 0 0; text-align: center; min-height: 1.2em; }

/* ---------- Footer (Wix: 170px tall; email 16px; "Social Platforms" 18px; 56px icons) ---------- */
.site-footer {
  background: rgb(24, 24, 25); text-align: center;
  padding: calc(14 * var(--u)) 0 calc(19 * var(--u));
}
.site-footer a.mail {
  display: inline-block; color: rgb(45, 189, 247); text-decoration: underline;
  font-size: max(13px, calc(16 * var(--u))); line-height: calc(22 * var(--u));
}
.site-footer h2 {
  margin: calc(18 * var(--u)) 0 calc(19 * var(--u)); color: #f3f3f3;
  font-weight: 900; font-size: max(14px, calc(18 * var(--u))); line-height: calc(22 * var(--u));
}
.socials { display: flex; justify-content: center; gap: calc(10 * var(--u)); }
.socials a { display: block; width: max(40px, calc(56 * var(--u))); height: max(40px, calc(56 * var(--u))); padding: calc(10 * var(--u)); color: #fff; }
.socials a:hover { color: var(--cyan); }
.socials svg { width: 100%; height: 100%; }
.legal { margin: calc(14 * var(--u)) 0 0; font-size: max(11px, calc(13 * var(--u))); color: #8a9096; }

/* ---------- Showreels page (Wix positions) ---------- */
.reel-stage { position: relative; height: calc(1361 * var(--u)); }
.rs { position: absolute; left: 0; right: 0; top: calc(var(--y) * var(--u)); margin: 0; text-align: center; color: #fff; }
.reel-stage { overflow: hidden; }
.rs-title {
  display: flex; align-items: center; justify-content: center; gap: calc(30 * var(--u));
  font-family: var(--display); font-weight: 400; text-transform: uppercase; white-space: nowrap;
  font-size: calc(var(--fs, 76) * var(--u)); line-height: calc(var(--lh, 93) * var(--u));
}
.rs-title::before, .rs-title::after {
  content: ""; flex: 0 0 calc(703 * var(--u)); height: calc(33 * var(--u));
  background: url("../img/line-left.png") center / 100% 100% no-repeat;
}
.rs-title::after { background-image: url("../img/line-right.png"); }
.rs-note { font-weight: 900; font-size: calc(25 * var(--u)); line-height: 1.2; text-shadow: 0 calc(4 * var(--u)) calc(5 * var(--u)) rgba(0,0,0,.4); }
.rs-video { left: calc(50% - 432 * var(--u)); right: auto; width: calc(864 * var(--u)); height: calc(486 * var(--u)); background: #000; }
.rs-video iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 860px) {
  .reel-stage { height: auto; padding: 2.5rem 1.25rem 3rem; }
  .rs { position: static; }
  .rs-title { font-size: 30px; line-height: 1.3; margin: 0 -1.25rem 1rem; gap: .6rem; white-space: normal; }
  .rs-title::before, .rs-title::after { flex: 1 1 0; height: 14px; }
  .rs-note { font-size: 15px; margin-bottom: 3rem; }
  .rs-video { width: 100%; height: auto; aspect-ratio: 16 / 9; margin-top: 1rem; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav a { padding: .4rem .85rem; font-size: .74rem; }
  .brand .wordmark { width: 150px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; padding: 1rem 1.25rem 1.4rem; background: var(--black);
  }
  .nav.open { display: flex; }
  .nav a { text-align: center; font-size: .9rem; padding: .7rem; }
  .founder { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .ai-note { text-align: center; }
}
@media (max-width: 600px) {
  .brand .mark { width: 54px; }
  .brand .wordmark { width: 130px; }
  .grid-3 { grid-template-columns: 1fr; }
  .heading { gap: .6rem; }
  .form-grid { grid-template-columns: 1fr; }
  .section { padding: 3.25rem 0; }
}
@media (prefers-reduced-motion: reduce) {
  .logo-marquee__track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Services: exact copy of the Wix layout ----------
   Positions and sizes are the Wix values in px at a 1905px-wide page,
   measured from the page centre. Below 1905px everything scales down together. */
.services-stage-wrap { --u: min(.8px, calc(100vw / 2381)); }
.stage { position: relative; height: calc(var(--h) * var(--u)); overflow: hidden; }
.st {
  position: absolute; margin: 0;
  left: calc(50% + var(--x) * var(--u)); top: calc(var(--y) * var(--u));
  width: calc(var(--w) * var(--u));
}
.st[style*="--hh"] { height: calc(var(--hh) * var(--u)); }
img.st { object-fit: fill; max-width: none; }
.st-title {
  font-family: var(--display); font-weight: 400; text-transform: uppercase; text-align: center;
  font-size: calc(100 * var(--u)); line-height: calc(140 * var(--u)); color: #fff;
  text-shadow: 0 4px 10px rgba(0,0,0,.35);
}
.st-diamond { background: var(--cyan); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.st-icon svg { width: 100%; height: 100%; color: #fff; display: block; }
.st-h {
  text-align: center; text-transform: uppercase; color: #fff;
  font-weight: 900; font-style: italic; font-size: calc(22 * var(--u)); line-height: 1.4;
}
.st-p { text-align: center; color: #fff; font-weight: 700; font-size: calc(16 * var(--u)); line-height: 1.219; }
.st-tag {
  text-align: center; text-transform: uppercase; color: #fff; white-space: nowrap;
  font-weight: 900; font-size: calc(25 * var(--u)); line-height: 1.2;
}
.services-mobile { display: none; }
@media (max-width: 860px) {
  .stage { display: none; }
  .services-mobile { display: block; padding: 2.5rem 0; }
  .services-mobile .heading { width: 100%; margin: 0 0 1.5rem; }
  .services-mobile .heading h2 { font-size: 2.6rem; }
}

/* ---------- Advert video box (Showreels + About) ---------- */
.vbox { position: absolute; overflow: hidden; background: #000; }
.vbox video { display: block; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.rs-advert { left: calc(50% - 481 * var(--u)); right: auto; width: calc(965 * var(--u)); height: calc(543 * var(--u)); }
.vbox.ab { height: calc(var(--hh) * var(--u)); }
.vbox-sound {
  position: absolute; right: 0; bottom: 0; width: max(40px, calc(51 * var(--u))); height: max(36px, calc(44 * var(--u)));
  border: 0; padding: 0; cursor: pointer; color: #fff; background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center; transition: background .15s, color .15s;
}
.vbox-sound:hover, .vbox-sound:focus-visible { background: var(--cyan); color: #000; }
.vbox-sound svg { width: 55%; height: 55%; }
.vbox-sound .i-on, .vbox.sound-on .vbox-sound .i-off { display: none; }
.vbox.sound-on .vbox-sound .i-on { display: block; }
.vbox::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: max(56px, calc(80 * var(--u))); aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .15s;
  background: rgba(0,0,0,.5) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l9 5-9 5z' fill='%23fff'/%3E%3C/svg%3E") center / 55% no-repeat;
}
.vbox.paused::after { opacity: 1; }
@media (max-width: 860px) {
  .vbox, .vbox.ab, .rs-advert { position: relative; left: auto; top: auto; width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .rs-advert { margin: 1rem 0 3rem; }
  .vbox-sound { width: 48px; height: 44px; }
}

/* ---------- About page (Wix positions, px from page centre / section top) ---------- */
.stg { position: relative; height: calc(var(--h) * var(--u)); overflow: hidden; }
.ab { position: absolute; margin: 0; left: calc(50% + var(--x) * var(--u)); top: calc(var(--y) * var(--u)); width: calc(var(--w) * var(--u)); }
img.ab { height: calc(var(--hh) * var(--u)); max-width: none; object-fit: fill; }
.ab-title {
  font-family: var(--display); font-weight: 400; text-transform: uppercase; text-align: center; color: #fff; white-space: nowrap;
  font-size: calc(var(--fs) * var(--u)); line-height: calc(var(--lh) * var(--u));
  text-shadow: 0 calc(4 * var(--u)) calc(5 * var(--u)) rgba(0,0,0,.4);
}
.ab-text {
  text-align: center; color: #fff; font-weight: 900; font-size: calc(25 * var(--u)); line-height: 1.2;
  text-shadow: 0 calc(4 * var(--u)) calc(5 * var(--u)) rgba(0,0,0,.4);
}
.ab-title.dark, .ab-text.dark { color: rgb(24, 24, 25); text-shadow: none; }
.ab-text.tall { line-height: calc(40 * var(--u)); }
.founder-stage { background: #e9f7fd url("../img/vl-light.webp") center / cover no-repeat; }
@media (max-width: 860px) {
  .stg { height: auto; padding: 2.5rem 1.25rem; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
  .ab { position: static; width: 100%; }
  img.ab[src*="line-"] { display: none; }
  .ab-title { font-size: 30px; line-height: 1.3; white-space: normal; }
  .ab-text, .ab-text.tall { font-size: 15px; line-height: 1.4; }
  img.ab { height: auto; max-width: 340px; }
}

/* ---------- Projects page cards (Wix sizes: pill 376×47, media 376×211, 21px / 20px text) ---------- */
.projects-page { padding-bottom: calc(141 * var(--u)); }
.pstage { position: relative; height: calc(1192 * var(--u)); }
.pcard { position: absolute; left: calc(50% + var(--x) * var(--u)); top: calc(var(--y) * var(--u)); width: calc(376 * var(--u)); text-align: center; }
.pcard .pill {
  display: flex; align-items: center; justify-content: center; width: 100%;
  height: calc(47 * var(--u)); margin: 0 0 calc(12 * var(--u)); padding: 0;
  background: rgb(61, 211, 255); border: 1px solid rgb(61, 211, 255); border-radius: 100px;
  font-family: var(--body); font-weight: 900; font-size: calc(21 * var(--u)); letter-spacing: 0;
  color: #fff; text-transform: uppercase; white-space: nowrap;
}
.pcard .pmedia { height: calc(211 * var(--u)); }
.pcard .pmedia .yt, .pcard .pmedia .frame, .pcard .pmedia .gallery { height: 100%; aspect-ratio: auto; border-radius: 0; }
.pcard .gallery { background: rgb(47, 46, 46); }
.pcard .sub {
  margin: calc(18 * var(--u)) 0 0; color: #fff; font-weight: 900; font-style: italic;
  font-size: calc(20 * var(--u)); line-height: calc(24 * var(--u)); text-transform: uppercase;
}
.pcard .yt-top img { width: calc(36 * var(--u)); }
.pcard .yt-title { font-size: max(11px, calc(15 * var(--u))); }
.pcard .yt-watch { font-size: max(10px, calc(13 * var(--u))); }
@media (max-width: 860px) {
  .pstage { height: auto; display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding: 0 1.25rem; }
  .pcard { position: static; width: 100%; max-width: 420px; margin: 0 auto; }
  .pcard .pill { height: 40px; font-size: 15px; }
  .pcard .pmedia { height: auto; aspect-ratio: 16 / 9; }
  .pcard .sub { font-size: 15px; line-height: 1.3; margin-top: .8rem; }
}
.projects-page .heading h1 { font-size: clamp(2rem, 5.8vw, 80px); }

/* ---------- Projects: pills are links to each project page ---------- */
.pcard .pill-h { margin: 0 0 calc(12 * var(--u)); }
.pcard .pill-h .pill { margin: 0; text-decoration: none; transition: background .15s, color .15s; }
.pcard .pill-h .pill:hover, .pcard .pill-h .pill:focus-visible { background: #fff; color: rgb(61, 211, 255); }

/* ---------- Project detail pages (Wix: title 45px, banner 702×72 at 31px, text 20px / 32px) ---------- */
.pp-title { text-align: center; color: #fff; font-weight: 900; font-size: calc(45 * var(--u)); line-height: 1.22; text-transform: uppercase; }
.pp-banner {
  display: flex; align-items: center; justify-content: center; height: calc(72 * var(--u));
  background: rgb(45, 189, 247); box-shadow: 0 0 calc(6 * var(--u)) rgba(0,0,0,.35);
  color: #fff; font-weight: 900; font-size: calc(var(--fs) * var(--u)); text-transform: uppercase; white-space: nowrap;
}
.pp-media { height: calc(var(--hh) * var(--u)); }
.pp-media .yt, .pp-media .frame, .pp-media .gallery { width: 100%; height: 100%; aspect-ratio: auto; }
.pp-media .gallery { background: rgb(47, 46, 46); border-radius: 0; }
.pp-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-desc { text-align: center; color: #fff; font-weight: 400; font-size: calc(20 * var(--u)); line-height: calc(32 * var(--u)); }
.pp-desc p { margin: 0; }
.pp-desc p.gap { height: calc(32 * var(--u)); }
.pp-desc a { color: #2DBDF7; text-decoration: underline; }
.pp-label { text-align: center; color: #fff; font-weight: 900; font-size: calc(22 * var(--u)); line-height: calc(27 * var(--u)); }
@media (max-width: 860px) {
  .project-detail { gap: 1.25rem; }
  .pp-title { font-size: 26px; }
  .pp-banner { height: auto; padding: .7rem 1rem; font-size: 16px; white-space: normal; text-align: center; }
  .pp-media { height: auto; aspect-ratio: 16 / 9; }
  .pp-desc { font-size: 15px; line-height: 1.6; }
  .pp-desc p.gap { height: .8rem; }
  .pp-label { font-size: 17px; line-height: 1.3; }
}

/* =====================================================================
   Mobile V 0.1 — phone and tablet layout (desktop is unchanged)
   ===================================================================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

/* Tap-to-zoom (all screen sizes, like Wix "press to zoom") */
.gallery, .zoomable { cursor: zoom-in; }
.gallery button { cursor: pointer; }
.lb {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(0,0,0,.96); touch-action: pan-y;
}
.lb.open { display: block; animation: lb-in .18s ease-out; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb img {
  position: absolute; inset: 0; margin: auto; max-width: 100%; max-height: 100%;
  width: auto; height: auto; padding: 3.5rem .5rem; object-fit: contain; user-select: none;
}
.lb button {
  position: absolute; border: 0; cursor: pointer; color: #fff; background: rgba(255,255,255,.12);
  width: 48px; height: 48px; border-radius: 50%; font: 400 26px/1 var(--body);
  display: flex; align-items: center; justify-content: center;
}
.lb button:hover, .lb button:focus-visible { background: var(--cyan); color: var(--ink); }
.lb .lb-close { top: max(.75rem, env(safe-area-inset-top)); right: .75rem; font-size: 30px; }
.lb .lb-prev { left: .75rem; top: 50%; transform: translateY(-50%); }
.lb .lb-next { right: .75rem; top: 50%; transform: translateY(-50%); }
.lb .lb-count {
  position: absolute; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); transform: translateX(-50%);
  font-weight: 700; font-size: .9rem; color: #fff; background: rgba(255,255,255,.12); padding: .25rem .8rem; border-radius: 999px;
}
.lb.single .lb-prev, .lb.single .lb-next, .lb.single .lb-count { display: none; }
body.no-scroll { overflow: hidden; }

@media (max-width: 860px) {
  /* Header: compact bar, big full-screen menu */
  .site-header .wrap { padding-block: .35rem; width: calc(100% - 1.5rem); }
  .brand .mark { width: 46px; }
  .brand .wordmark { width: 124px; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: .55rem; min-height: 44px;
    padding: 0 .9rem; font: 700 .95rem var(--body); border-radius: 12px;
  }
  .nav-toggle .bars { position: relative; width: 20px; height: 2px; background: currentColor; transition: background .15s; }
  .nav-toggle .bars::before, .nav-toggle .bars::after {
    content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; transition: transform .2s;
  }
  .nav-toggle .bars::before { top: -6px; }
  .nav-toggle .bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }
  .nav {
    position: fixed; top: var(--hdr, 57px); bottom: 0; left: 0; right: 0;
    padding: 1.5rem 1.25rem calc(2rem + env(safe-area-inset-bottom));
    background: #000; gap: .8rem; justify-content: flex-start; overflow-y: auto;
  }
  .nav.open { animation: menu-in .2s ease-out; }
  @keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  .nav a { min-height: 58px; font-size: 1.3rem; border-radius: 14px; padding: 0 1rem; }

  /* Hero: content centred in the first screen, title sized to the phone */
  .hero { display: flex; align-items: center; padding: 2rem 1.25rem 2.5rem; }
  .hero-stage { width: 100%; }
  .kicker { font-size: 14px; letter-spacing: .02em; margin-bottom: 1.1rem; }
  .hero h1 { font-size: clamp(34px, min(15vw, 10.5svh), 84px); line-height: 1.22; }
  .hero h1 .life { margin-left: .45em; }
  .hero .lede { font-size: 16px; line-height: 1.45; font-weight: 800; margin-top: 1.6rem; max-width: 26em; }

  /* Services text wraps inside each diamond */
  .services-mobile .service .inner, .services-mobile .service:nth-child(n) .inner { padding-inline: 16%; }
  .services-mobile .service p { white-space: normal; }

  /* Text sizes that read comfortably on a phone */
  .ab-text, .ab-text.tall { font-size: 16px; line-height: 1.5; }
  .pp-desc { font-size: 16px; line-height: 1.65; }
  .rs-note { font-size: 16px; }
  input, textarea { font-size: 16px; padding: .75rem .8rem; } /* 16px stops iPhones zooming in */
  label { font-size: .85rem; }
  .btn { min-height: 50px; font-size: 1.05rem; }
  .contact-lines { font-size: 1.05rem; }
  .contact-lines a { display: inline-block; padding: .2rem 0; }

  /* Breathing room under the header */
  .projects-page { padding-top: 2rem; padding-bottom: 3rem; }
  .projects-page .heading { margin-bottom: 2rem; }
  .project-detail { padding-top: 2.25rem; padding-bottom: 3rem; }

  /* Short pages: footer sits at the bottom of the screen */
  body { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
  body > main { flex: 1 0 auto; }

  /* Video thumbnails on the Projects page: readable title bar */
  .pcard .yt-top img { width: 30px; }
  .pcard .yt-title { font-size: 13px; }
  .pcard .yt-title small { font-size: 11px; }
  .pcard .yt-watch { font-size: 11px; }

  /* Galleries: bigger arrows for thumbs, swipe enabled in main.js */
  .gallery { touch-action: pan-y; }
  .gallery button { width: 44px; height: 44px; font-size: 1.35rem; }
  .gallery .count { font-size: .8rem; padding: .15rem .6rem; }

  /* Footer: same content, spaced out with finger-sized icons */
  .site-footer { padding: 2rem 1rem calc(1.6rem + env(safe-area-inset-bottom)); }
  .site-footer a.mail { font-size: 15px; line-height: 1.4; padding: .3rem 0; }
  .site-footer h2 { margin: .9rem 0 .4rem; font-size: 16px; line-height: 1.3; }
  .socials { gap: 10px; }
  .socials a { width: 48px; height: 48px; padding: 9px; }
  .legal { margin-top: 1rem; font-size: 12px; }
}

/* Phones: services diamonds in a 2 x 2 grid, tips touching (same layout as tablets, scaled to the screen) */
@media (max-width: 620px) {
  .services-mobile .services { --d: min(250px, 48.5vw); display: grid; grid-template-columns: repeat(2, var(--d)); justify-content: center; gap: 0; }
  .services-mobile .service { width: var(--d); }
  .services-mobile .service .inner, .services-mobile .service:nth-child(n) .inner { padding: calc(var(--d) * .15) 15% 0; }
  .services-mobile .service svg { width: calc(var(--d) * .17); height: calc(var(--d) * .17); margin-bottom: calc(var(--d) * .04); }
  .services-mobile .service h3 { font-size: max(11px, calc(var(--d) * .06)); margin-bottom: calc(var(--d) * .045); line-height: 1.3; }
  .services-mobile .service p { font-size: max(9px, calc(var(--d) * .049)); line-height: 1.3; white-space: normal; }
  .tagline { font-size: 15px; line-height: 1.35; margin-top: 2rem; }
}

/* =====================================================================
   Samsung Internet dark mode: the browser forces dark text to white but leaves
   light background pictures alone, so the light sections switch to a dark look
   (only when Samsung Internet is in dark mode; everyone else sees the light design)
   ===================================================================== */
.sb-dark .bg-sky { background: #0b1014; color: #fff; }
.sb-dark .bg-sky::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: rgba(8, 12, 16, .84);
}
.sb-dark .bg-sky > .bg-video { z-index: 0; }
.sb-dark .bg-sky::before { z-index: 1; }
.sb-dark .bg-sky > *:not(.bg-video) { z-index: 2; }
.sb-dark .hero h1, .sb-dark .hero .lede { color: #fff; }
.sb-dark .bg-sky .heading h1, .sb-dark .bg-sky .heading h2 { color: #fff; }
.sb-dark .work h3 { color: #f2f6f8; }
.sb-dark .founder-stage { background: #0b1014 url("../img/vl-dark.webp") center / cover no-repeat; }
.sb-dark .ab-title.dark, .sb-dark .ab-text.dark { color: #fff; }
