/* ersworks — corner-navigated one-pager */

:root {
  --accent: #ff8fba;
  --cyan: #00ffff;
  --violet: #5445ff;

  --ink-dark: #030623;
  --ink-light: #e4e4e4;

  --corner-size: 12vmin;
  --zone-ease: cubic-bezier(.55, .06, .13, 1);
  --zone-duration: 1700ms;

  --label-size: clamp(12px, 1.1vw, 15px);
  --edge: clamp(16px, 4vw, 40px);
  --pad: clamp(24px, 6vw, 80px);
  --pad-top: clamp(70px, 9vw, 110px);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: var(--ink-dark);
  font-family: 'Urbanist', system-ui, sans-serif;
}

h1, h2, p, figure { margin: 0; }

/* Links carry a slide-in underline drawn with a background gradient, so it
   animates from zero width without layout shifts. */
a {
  color: var(--accent);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) left bottom / 0% 1.5px no-repeat;
  padding-bottom: 2px;
  transition: color 300ms ease, background-size 450ms cubic-bezier(.22, 1, .36, 1);
}
a:hover { color: #ffd0e4; background-size: 100% 1.5px; }

button { font: inherit; }

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--violet);
  z-index: 60;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ── fixed header logo ──────────────────────────────────────────────────
   Mask-painted from the white SVGs so the mark and the type can fade
   independently. Percentages come from the combined logo (649.69×133.58):
   the type starts at x=148.68 and is 501.01 wide, 101.98 tall. */

/* The brand is a real button: clicking it always leads home, including from
   the detail overlay where the corner hotspots are disabled. */
.brand {
  position: fixed;
  top: clamp(20px, 3vw, 34px);
  left: clamp(18px, 3vw, 34px);
  height: clamp(30px, 3.6vw, 46px);
  aspect-ratio: 649.69 / 133.58;
  z-index: 45;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: opacity 300ms ease;
}

/* On phones the fixed logo would ride over scrolled detail content; it
   fades out while the detail page is scrolled (class from main.js). */
@media (max-width: 899px) {
  .is-detail-scrolled .brand {
    opacity: 0;
    pointer-events: none;
  }
}

.brand__mark,
.brand__type {
  position: absolute;
  top: 0;
  height: 100%;
  background: var(--ink-light);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.brand__mark {
  left: 0;
  width: 23.539%;
  -webkit-mask-image: url('assets/ersworks-mark-white.svg');
  mask-image: url('assets/ersworks-mark-white.svg');
}

/* The type only shows away from home, where the big wordmark isn't. */
.brand__type {
  left: 22.885%;
  width: 77.115%;
  height: 76.343%;
  -webkit-mask-image: url('assets/ersworks-type-white.svg');
  mask-image: url('assets/ersworks-type-white.svg');
  opacity: 1;
  transition: opacity 900ms ease 350ms;
}

body[data-zone="home"] .brand__type {
  opacity: 0;
  transition: opacity 600ms ease;
}

/* ── zones ──────────────────────────────────────────────────────────────
   Every zone is a full-viewport layer clipped to a circle at its own
   corner. Activating a zone grows that circle past the viewport; the
   outgoing one collapses back to its corner. */

/* Registered so the reveal radius itself can transition — the mask gradients
   below derive from it and follow the same easing. */
@property --clip {
  syntax: '<length>';
  inherits: false;
  initial-value: 0px;
}

.zone {
  position: fixed;
  inset: 0;
  z-index: 1;
  --clip: 0vmax;
  clip-path: circle(var(--clip) at var(--origin));
  /* Only the incoming zone animates its circle; the outgoing zone stays
     fully expanded underneath and snaps closed after it's covered, so a
     single circle is ever visible. */
  transition:
    clip-path 0ms linear calc(var(--zone-duration) + 100ms),
    --clip 0ms linear calc(var(--zone-duration) + 100ms);
}

/* While a zone is being revealed its rim gets a clean, soft feather (no
   grain). At rest the zone is unmasked so nothing inside it is re-masked. */
.zone.is-revealing {
  -webkit-mask-image: radial-gradient(circle at var(--origin), #000 calc(var(--clip) - 140px), transparent var(--clip));
  mask-image: radial-gradient(circle at var(--origin), #000 calc(var(--clip) - 140px), transparent var(--clip));
}

.zone.is-active {
  --clip: 150vmax;
  z-index: 2;
  transition:
    clip-path var(--zone-duration) var(--zone-ease),
    --clip var(--zone-duration) var(--zone-ease);
}

.zone--home     { --origin: 0% 0%;     background: var(--ink-dark);  color: var(--ink-light); }
.zone--works    { --origin: 100% 0%;   background: #000000;          color: var(--ink-light); }
.zone--services { --origin: 0% 100%;   background: var(--ink-dark);  color: var(--ink-light); }
.zone--contact  { --origin: 100% 100%; background: var(--violet);    color: #ffffff; }

.zone__label {
  position: absolute;
  font-size: var(--label-size);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .55;
}

.zone--services .zone__label { bottom: var(--edge); left: var(--edge); }
.zone--works .zone__label    { top: var(--edge); right: var(--edge); }
.zone--contact .zone__label  { bottom: var(--edge); right: var(--edge); }
.zone--services .zone__label { opacity: .5; }

.zone__label--top-right { top: var(--edge); right: var(--edge); }

/* ── blueprint grid (built in js/grid.js) ───────────────────────────────
   Negative z-index keeps it above the zone's own background but under all
   of its content — the zone's clip-path guarantees the stacking context. */

.zone-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.zone-grid svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ── home ───────────────────────────────────────────────────────────── */

.home {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--pad);
  text-align: center;
}

/* Wordmark with a comet-trail color light that follows the pointer
   (js/logo-spotlight.js). The box keeps the old size; the SVG fills it. */

.logo {
  position: relative;
  display: inline-block;
  width: clamp(300px, 52vw, 720px);
  max-width: 92vw;
  aspect-ratio: 501.01 / 101.98;
}

.logo__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  pointer-events: none;
}



.home__tagline {
  margin-top: 18px;
  font-size: clamp(15px, 1.8vw, 24px);
  font-weight: 500;
  opacity: .8;
  max-width: 46ch;
}

/* ── works ──────────────────────────────────────────────────────────── */

/* The contact zone mirrors the blueprint grid at every size, so the map's
   edges always sit on grid lines. Stacked: the top third is left to the
   fixed logo, the map fills the full-width middle third, text follows.
   Desktop: the map is the left-middle cell of the 2×3 grid, text centered
   in the right half. The first two rows are hard thirds of the viewport
   (not fr) so overflowing text can never squeeze them off the grid lines. */
.contact {
  height: 100%;
  overflow: auto;
  display: grid;
  /* Stacked: header strip, then the map takes a wide 60% band — both edges
     on the blueprint lines (grid.js mirrors these same rows). */
  grid-template-rows: var(--pad-top) 60% auto;
}

/* The cover is always full-bleed and splits the zone with the text at every
   size: stacked on narrow screens (cover on top, ~40% of the height), side
   by side 40/60 from 900px up. Only the text column carries padding. */
.works {
  height: 100%;
  overflow: auto;
  display: grid;
  /* Stacked: a header strip first, so the full-bleed cover never sits under
     the fixed brand logo. */
  grid-template-rows: var(--pad-top) minmax(200px, 36vh) 1fr;
}

.works__cover {
  grid-row: 2;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.works__cover .media { border-radius: 0; }

/* The cover is the doorway to the detail page: it zooms softly under the
   pointer while the cursor itself turns into a "see details" pill. */
.works__cover { cursor: pointer; }

/* A video cover replaces the img: it opens on its first frame (or the
   sibling .avif still), plays on hover and freezes where it stopped. */
.works__cover video {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.works__cover .media--has-video video { display: block; }

.works__cover .media--has-video img,
.works__cover .media--has-video figcaption { display: none; }

.works__cover .media img {
  transform: scale(1);
  transition: transform 900ms cubic-bezier(.22, 1, .36, 1);
}

.works__cover:hover .media img { transform: scale(1.05); }

.works__body {
  grid-row: 3;
  min-width: 0;
  align-self: center;
  padding: clamp(24px, 5vw, 48px) var(--pad) var(--pad);
}

@media (min-width: 900px) {
  .works {
    grid-template-rows: none;
    grid-template-columns: 40fr 60fr;
  }

  .works__cover { grid-row: 1; grid-column: 1; }

  .works__body {
    grid-row: 1;
    grid-column: 2;
    padding-top: var(--pad-top);
  }
}

.eyebrow {
  font-size: clamp(12px, 1.1vw, 14px);
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .7;
}

.eyebrow--tight {
  font-size: clamp(11px, 1vw, 13px);
  letter-spacing: .14em;
  color: var(--accent);
  opacity: .9;
}

.project__title {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 800;
  margin-top: 8px;
  color: var(--accent);
  text-transform: lowercase;
}

.project__desc {
  margin-top: 18px;
  font-size: clamp(14px, 1.25vw, 17px);
  line-height: 1.65;
  max-width: 58ch;
  opacity: .92;
}

.project__desc--wide { margin-top: 16px; max-width: 70ch; }

/* Directional swap: carousel content slides in from the side you paged
   toward (classes applied per change from main.js). */

.slide-in--right { animation: slideInRight 700ms cubic-bezier(.22, 1, .36, 1) both; }
.slide-in--left  { animation: slideInLeft  700ms cubic-bezier(.22, 1, .36, 1) both; }

@keyframes slideInRight { from { opacity: 0; transform: translateX(64px); } }
@keyframes slideInLeft  { from { opacity: 0; transform: translateX(-64px); } }

/* ── carousel controls ──────────────────────────────────────────────── */

.carousel {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
}

.carousel__dots { display: flex; gap: 9px; }
.carousel__dots--wrap { flex-wrap: wrap; max-width: 220px; }

.nav-btn {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .4);
  background: transparent;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 350ms cubic-bezier(.22, 1, .36, 1),
    background-color 350ms ease,
    border-color 350ms ease,
    color 350ms ease;
}

.nav-btn:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink-dark);
  transform: scale(1.12);
}

.nav-btn:active { transform: scale(.92); }

.dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .35);
  cursor: pointer;
  transition: transform 200ms ease, background 200ms ease;
}

.dot:hover:not(.is-active) {
  background: rgba(255, 255, 255, .85);
  transform: scale(1.35);
}

.dot.is-active {
  background: var(--accent);
  transform: scale(1.3);
}

.detail-btn {
  margin-top: 30px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .4);
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition:
    transform 350ms cubic-bezier(.22, 1, .36, 1),
    background-color 350ms ease,
    border-color 350ms ease,
    color 350ms ease;
}

.detail-btn:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink-dark);
  transform: translateY(-2px);
}

.detail-btn:active { transform: translateY(0) scale(.97); }

/* ── work detail overlay ────────────────────────────────────────────── */

.detail {
  position: fixed;
  inset: 0;
  z-index: 25;
  background: #000000;
  color: var(--ink-light);
}

.detail[hidden] { display: none; }

.detail__inner {
  height: 100%;
  overflow: auto;
  padding: var(--pad-top) var(--pad) clamp(40px, 6vw, 80px);
}

/* Sector filter chips + masonry gallery. Cards keep their natural aspect
   ratio and CSS columns pack them; videos are hover/tap-to-play with a
   static poster until then (wired in main.js). */

/* Behance-style presentation: a gapless flow of authored rows. Each row
   holds 1–4 items side by side at equal width, each at its natural ratio —
   so the number of items in a row is what sets the row's height (narrower
   strips are proportionally shorter, exactly like Behance). Row membership
   comes from a "2up"/"3up"/"4up" token in the file name; renderGallery in
   main.js chunks consecutive same-size items into .gallery-row elements. */
.detail__gallery {
  margin: 32px calc(-1 * var(--pad)) calc(-1 * clamp(40px, 6vw, 80px));
  display: flex;
  flex-direction: column;
}

.gallery-row { display: flex; }

.detail__gallery .gallery-card {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
}

.detail__gallery .media--is-empty { aspect-ratio: 4 / 3; }

.detail__gallery .gallery-card img,
.detail__gallery .gallery-card video {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1);
  filter: saturate(.96);
  transition:
    transform 700ms cubic-bezier(.22, 1, .36, 1),
    filter 700ms ease;
}

/* Until its metadata is in, a lazy video has no intrinsic size — fall back
   to 16:9 so it still holds a sensible slot in the row. */
.detail__gallery .gallery-card video { aspect-ratio: auto 16 / 9; }

/* Items sharing a row all fill the height the row settles on (the tallest
   natural height in it), cover-cropping any slightly-off neighbors. */
.gallery-row:not(.gallery-row--1) .gallery-card img,
.gallery-row:not(.gallery-row--1) .gallery-card video {
  height: 100%;
  object-fit: cover;
}

/* Small screens: 3- and 4-item rows fold into two per line. */
@media (max-width: 679px) {
  .gallery-row { flex-wrap: wrap; }

  .gallery-row--3 .gallery-card,
  .gallery-row--4 .gallery-card { flex-basis: 40%; }
}

.detail__gallery .gallery-card:hover img,
.detail__gallery .gallery-card:hover video {
  transform: scale(1.045);
  filter: saturate(1.1);
}

/* Composed media grid (admin media page): rows carry a viewport-relative
   height and weighted columns — set inline by renderGallery — so here the
   cells just fill whatever box the composition gave them. */
.detail__gallery--grid { gap: var(--grid-gap, 8px); }

.gallery-lrow {
  display: flex;
  gap: var(--grid-gap, 8px);
  min-height: 40px;
  height: calc(var(--row-h, 40) * 1vh - var(--grid-gap, 8px));
}

.gallery-cell {
  flex: 1 1 0;
  min-width: 0;
}

/* Mobile: the composed columns stack — every media full-width, one per
   line, each keeping the row's admin-given height. */
@media (max-width: 899px) {
  .gallery-lrow {
    flex-direction: column;
    height: auto;
  }

  .gallery-lrow .gallery-cell {
    /* basis:auto so the aspect box below (not the desktop flex-basis:0)
       sizes the cell; the inline flex-grow is a no-op in an auto-height
       column. Height follows the cell's composed shape (--cell-ar) at the
       phone's width, capped by the admin row height so nothing towers. */
    flex-shrink: 0;
    flex-basis: auto;
    aspect-ratio: var(--cell-ar, 4 / 3);
    max-height: calc(var(--row-h, 40) * 1vh);
  }
}

.detail__gallery .gallery-cell img,
.detail__gallery .gallery-cell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* the cell's box is authored — no intrinsic-ratio fallbacks */
.detail__gallery .gallery-cell video { aspect-ratio: auto; }
.detail__gallery .gallery-cell.media--is-empty { aspect-ratio: auto; }
.gallery-cell.media--is-empty { border: 1px dashed rgba(255, 255, 255, .14); }

.detail__gallery .gallery-card--video { cursor: pointer; }

/* Desktop: text on the left (25%, sticky, centered in its column), gallery
   on the right (75%) — the works split mirrored. The gallery bleeds to the
   right and bottom edges. */
@media (min-width: 900px) {
  .detail__inner {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: clamp(24px, 3vw, 48px);
    align-items: start;
  }

  /* The text column rides along (sticky) and its content sits at the
     vertical center of the viewport. */
  .detail__info {
    position: sticky;
    top: 0;
    min-height: calc(100vh - var(--pad-top) - clamp(40px, 6vw, 80px));
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .detail__gallery {
    margin: 0 calc(-1 * var(--pad)) calc(-1 * clamp(40px, 6vw, 80px)) 0;
  }
}

/* While the detail is open, the only corner that means anything is "back". */
.is-detail-open .corner:not(.detail__back) {
  opacity: 0;
  pointer-events: none;
}

.detail__back { z-index: 30; }

/* ── contact ────────────────────────────────────────────────────────── */

.contact__map {
  grid-row: 2;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.contact__map iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: rgba(255, 255, 255, .12);
}

.contact__body {
  grid-row: 3;
  align-self: center;
  padding: var(--pad);
}

@media (min-width: 900px) {
  .contact {
    grid-template-columns: 1fr 1fr;
    /* 20 / 60 / 20: the middle band carries the map and the content. */
    grid-template-rows: 1fr 3fr 1fr;
  }

  .contact__map {
    grid-column: 1;
    grid-row: 2;
  }

  .contact__body {
    grid-column: 2;
    grid-row: 1 / -1;
  }
}

.contact__eyebrow {
  font-size: clamp(13px, 1.3vw, 16px);
  letter-spacing: .05em;
  opacity: .75;
}

.contact__city {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 700;
  margin-top: 4px;
}

.contact__address {
  margin-top: 22px;
  font-size: clamp(13px, 1.15vw, 15px);
  line-height: 1.7;
  opacity: .85;
  max-width: 38ch;
}

.contact__link { margin-top: 18px; }
.contact__link--follow { margin-top: 10px; }

.contact__link a {
  font-size: clamp(13px, 1.15vw, 15px);
  font-weight: 700;
  text-decoration: none;
}

.contact__note {
  margin-top: 26px;
  font-size: clamp(13px, 1.1vw, 15px);
  line-height: 1.6;
  opacity: .7;
  max-width: 36ch;
}

/* ── services ───────────────────────────────────────────────────────── */

.services {
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: center;
  justify-content: center;
  gap: clamp(28px, 5vw, 72px);
  padding: var(--pad);
}

.services__visual {
  flex: 0 1 clamp(260px, 36vw, 500px);
  width: clamp(260px, 36vw, 500px);
}

.services__visual svg {
  width: 100%;
  height: auto;
  max-height: 62vh;
  display: block;
  overflow: visible;
}

.services__visual svg[hidden] { display: none; }

.services__body {
  flex: 1 1 340px;
  max-width: 560px;
  min-width: 0;
}

/* Each service's wireframe self-draws: strokes trace in via dash offset,
   anchor squares pop in, everything fades to restart the loop. */

.wf-s {
  fill: none;
  stroke-dasharray: var(--l);
  stroke-dashoffset: var(--l);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  vector-effect: non-scaling-stroke;
  animation: wfShape 7.6s cubic-bezier(.45, .05, .25, 1) infinite;
}

.wf-a {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: wfAnchor 7.6s cubic-bezier(.22, 1, .36, 1) infinite;
}

@keyframes wfShape {
  0%        { stroke-dashoffset: var(--l); opacity: 0; transform: scale(.86); }
  2%        { opacity: 1; }
  32%       { stroke-dashoffset: 0; transform: scale(1); }
  84%       { opacity: 1; stroke-dashoffset: 0; transform: scale(1); }
  93%, 100% { opacity: 0; stroke-dashoffset: 0; transform: scale(1); }
}

@keyframes wfAnchor {
  0%, 12%   { opacity: 0; transform: scale(0); }
  24%       { opacity: 1; }
  48%       { transform: scale(1); }
  84%       { opacity: 1; transform: scale(1); }
  93%, 100% { opacity: 0; transform: scale(1); }
}

.service__title {
  font-size: clamp(34px, 5.4vw, 64px);
  font-weight: 700;
  margin-top: 6px;
  text-transform: lowercase;
}

.service__desc {
  margin-top: 20px;
  font-size: clamp(14px, 1.3vw, 18px);
  line-height: 1.7;
  opacity: .85;
}

/* ── media slots ────────────────────────────────────────────────────── */

.media {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, .05);
}

.detail__gallery .media { border-radius: 0; }

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media figcaption {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: lowercase;
  opacity: .5;
  border: 1.5px dashed currentColor;
  border-radius: inherit;
}

.media--is-empty img { display: none; }
.media--is-empty figcaption { display: flex; }

/* ── corner triggers ────────────────────────────────────────────────── */

.corner {
  position: fixed;
  width: clamp(64px, var(--corner-size), 160px);
  height: clamp(64px, var(--corner-size), 160px);
  padding: 0;
  border: 0;
  background: transparent;
  z-index: 40;
  cursor: pointer;
  opacity: 1;
  transition: opacity 400ms ease;
}

.corner.is-hidden { opacity: 0; pointer-events: none; }

/* Two thin rings per corner ripple outward like rings on water: each grows
   from the corner and fades as it expands. Duration and phase are randomized
   per ring from main.js, so the four corners never blink in sync. */
.corner__ring {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-style: solid;
  border-color: rgba(0, 255, 255, .65);
  border-width: 0;
  opacity: 0;
  animation: cornerRipple 3.8s cubic-bezier(.25, .6, .35, 1) infinite;
}

.corner--home     { top: 0; left: 0; }
.corner--works    { top: 0; right: 0; }
.corner--services { bottom: 0; left: 0; }
.corner--contact  { bottom: 0; right: 0; }

.corner--works .corner__ring {
  border-bottom-left-radius: 100%;
  border-bottom-width: 1px;
  border-left-width: 1px;
  transform-origin: 100% 0%;
}

.corner--services .corner__ring {
  border-top-right-radius: 100%;
  border-top-width: 1px;
  border-right-width: 1px;
  transform-origin: 0% 100%;
}

.corner--contact .corner__ring {
  border-top-left-radius: 100%;
  border-top-width: 1px;
  border-left-width: 1px;
  transform-origin: 100% 100%;
}

@keyframes cornerRipple {
  0%   { opacity: 0;   transform: scale(.45); }
  22%  { opacity: .5; }
  60%  { opacity: .18; }
  100% { opacity: 0;   transform: scale(1.6); }
}

/* ── custom cursor ──────────────────────────────────────────────────── */

.cursor {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate3d(-100px, -100px, 0);
}

.cursor__ring,
.cursor__dot { position: absolute; top: 0; left: 0; border-radius: 50%; }

/* Soft gradient halo riding the cursor itself (not any canvas), so it can
   never be clipped to a box. Two mask layers — tiled turbulence noise
   intersected with a radial falloff — make the edge dissolve into grain
   instead of a hard circle. */
/* The old floating glow is retired — the gradient now lives inside the
   homepage letters (js/logo-spotlight.js). */
.cursor__glow { display: none; }

.cursor__ring {
  width: 26px;
  height: 26px;
  border: 1.3px solid var(--cyan);
  transform: translate(-50%, -50%);
  animation: cursorBreath 2.6s ease-in-out infinite;
  transition:
    width 300ms ease,
    height 300ms ease,
    border-color 300ms ease,
    opacity 200ms ease;
}

.cursor__ring--delayed { animation-delay: 1.3s; }

/* Over anything clickable the rings widen and take the accent — the cursor
   itself signals interactivity (class set from main.js). */
.cursor.is-on-link .cursor__ring {
  width: 44px;
  height: 44px;
  border-color: var(--accent);
}

.cursor.is-on-link .cursor__dot { background: var(--accent); }

/* Over a card that opens something (data-cursor-label), the cursor morphs
   into an accent pill carrying the action's name. */
.cursor__label {
  position: absolute;
  top: 0;
  left: 0;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: lowercase;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.6);
  transition:
    opacity 250ms ease,
    transform 350ms cubic-bezier(.22, 1, .36, 1);
}

.cursor.is-cta .cursor__label {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.cursor.is-cta .cursor__ring {
  animation: none;
  opacity: 0;
}

.cursor.is-cta .cursor__dot { opacity: 0; }

.cursor__dot {
  width: 6px;
  height: 6px;
  background: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 6px rgba(255, 255, 255, .8);
}

@keyframes cursorBreath {
  0%, 100% { transform: translate(-50%, -50%) scale(.8); opacity: .85; }
  50%      { transform: translate(-50%, -50%) scale(1.5); opacity: .3; }
}

/* The native cursor is replaced only where a real pointer exists. */
@media (hover: hover) and (pointer: fine) {
  html, body, * { cursor: none !important; }
  .cursor { display: block; }
}

/* ── reduced motion ─────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .zone { transition: none; }
  .corner__ring,
  .cursor__ring,
  .slide-in--right,
  .slide-in--left { animation: none; }
  /* Without the ripple animation the rings would sit at opacity 0; show
     them statically instead so the corners stay discoverable. */
  .corner__ring { opacity: .35; }
  .corner__ring--2 { display: none; }
  .wf-s { animation: none; opacity: 1; stroke-dashoffset: 0; }
  .wf-a { animation: none; opacity: 1; }
}

/* ── services background image (set from the admin panel) ───────────── */

.zone--services.has-bg {
  background-size: cover;
  background-position: center;
}

/* Keep the light text readable over an arbitrary photo. */
.zone--services.has-bg .services__body {
  background: rgba(3, 6, 35, .8);
  backdrop-filter: blur(6px);
  border-radius: 16px;
  padding: 32px;
}


/* ══ works v2: list (index / grid) + project page ═══════════════════════ */

.w2 [hidden], .w2d [hidden] { display: none !important; }
.works.w2 { display: block; height: 100%; overflow-y: auto; overflow-x: hidden; padding: var(--pad-top) 0 0; box-sizing: border-box; font-family: 'Urbanist', sans-serif; }
.w2 button, .w2d button, .w2-vm button { font-family: inherit; }

/* header that steps away while scrolling */
.w2-headbar { position: fixed; top: 0; left: 0; right: 0; z-index: 20; height: calc(2 * clamp(20px, 3vw, 34px) + clamp(30px, 3.6vw, 46px)); pointer-events: none; background: rgba(3,6,35,.78); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid rgba(84,69,255,.3); opacity: 0; transform: translateY(0); transition: opacity .35s ease, transform .5s cubic-bezier(.22,1,.36,1); }
.w2-headbar.is-solid { opacity: 1; }
.zone--works .zone__label, .detail .zone__label { z-index: 21; transition: opacity .35s ease, transform .5s cubic-bezier(.22,1,.36,1); }
.brand { transition: opacity 300ms ease, transform .5s cubic-bezier(.22,1,.36,1); }
body[data-zone="works"]:not(.is-detail-open).w2-hide-list .brand,
body.is-detail-open.w2-hide-detail .brand { transform: translateY(-170%); opacity: 0; }
body.w2-hide-list .zone--works .w2-headbar,
body.w2-hide-detail .detail .w2-headbar { transform: translateY(-100%); }
body.w2-hide-list .zone--works .zone__label,
body.w2-hide-detail .detail .zone__label { transform: translateY(-260%); opacity: 0; }

.w2-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; padding: clamp(24px, 6vh, 80px) var(--pad) 28px; }
.w2-title { display: flex; align-items: flex-start; gap: 14px; }
.w2-title h2 { margin: 0; font-size: clamp(72px, 10vw, 150px); font-weight: 800; line-height: .85; letter-spacing: -.03em; }
.w2-title span { font-size: 16px; font-weight: 600; color: #00ffff; padding-top: 8px; font-variant-numeric: tabular-nums; }
.w2-toggle { display: flex; gap: 2px; border: 1px solid rgba(84,69,255,.6); border-radius: 999px; padding: 3px; }
.w2-toggle button { font-size: 14px; font-weight: 600; padding: 8px 18px; border-radius: 999px; border: 0; cursor: pointer; background: transparent; color: #c9cbe6; transition: background .3s, color .3s; }
.w2-toggle button:hover { color: #ff8fba; }
.w2-toggle button.is-on { background: #e4e4e4; color: #030623; }
.w2-filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 var(--pad) 28px; }
.w2-filters button, .w2-chips button { font-size: 14px; font-weight: 500; padding: 8px 16px; border-radius: 999px; cursor: pointer; border: 1px solid rgba(84,69,255,.7); background: transparent; color: #c9cbe6; transition: border-color .25s, color .25s, background .25s, transform .35s cubic-bezier(.22,1,.36,1); }
.w2-filters button:hover, .w2-chips button:hover { border-color: #ff8fba; color: #ff8fba; transform: translateY(-2px); }
.w2-filters button.is-on, .w2-chips button.is-on { background: #00ffff; border-color: #00ffff; color: #030623; transform: none; }
.w2[data-layout="grid"] .w2-index, .w2[data-layout="index"] .w2-grid { display: none; }
.w2-foot { height: 12vh; }
.w2-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.6; padding: 12px; box-sizing: border-box; background: repeating-linear-gradient(135deg, rgba(84,69,255,.14) 0 1px, transparent 1px 14px); font-family: ui-monospace, monospace; font-size: 12px; color: #a3a6c4; }
img.is-broken { visibility: hidden; }

/* grid — every clickable part hovers on its own */
.w2-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); border-top: 1px solid rgba(84,69,255,.45); }
.w2-card { position: relative; background: #000; padding: clamp(14px, 1.6vw, 24px); display: flex; flex-direction: column; gap: 16px; border-right: 1px solid rgba(84,69,255,.45); border-bottom: 1px solid rgba(84,69,255,.45); }
.w2-card__media { position: relative; display: block; width: 100%; padding: 0; border: 0; aspect-ratio: 4/5; overflow: hidden; background: repeating-linear-gradient(135deg, rgba(84,69,255,.12) 0 1px, transparent 1px 14px), #0a0e33; border-radius: 18px; cursor: pointer; }
.w2-card__media > img, .w2-card__media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.w2-card__swap { opacity: 0; transform: scale(1.04); transition: opacity .45s ease, transform .9s cubic-bezier(.22,1,.36,1); }
.w2-card__loop { z-index: 2; opacity: 0; transition: opacity .5s ease; }
.w2-card__media:hover .w2-card__swap, .w2-card__media:hover .w2-card__loop { opacity: 1; transform: none; }
.w2-card__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.w2-card__meta div { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.w2-card__title { padding: 0; border: 0; background: none; color: #e4e4e4; cursor: pointer; font-size: 24px; font-weight: 700; line-height: 1.1; text-align: left; background-image: linear-gradient(#ff8fba, #ff8fba); background-size: 0 1.5px; background-repeat: no-repeat; background-position: 0 100%; transition: color .3s, background-size .45s cubic-bezier(.22,1,.36,1); }
.w2-card__title:hover { color: #ff8fba; background-size: 100% 1.5px; }
.w2-card__meta span { font-size: 15px; color: #a3a6c4; text-wrap: pretty; }
.w2-card__meta em { font-style: normal; font-size: 13px; font-weight: 600; color: #00ffff; }
.w2-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.w2-chips button { font-size: 12px; font-weight: 600; padding: 4px 10px; }
.w2-chips .w2-chip--year { font-size: 12px; font-weight: 600; padding: 4px 6px; color: #a3a6c4; }
.w2-chips .w2-chip--vid { display: inline-flex; align-items: center; gap: 5px; border-color: transparent; background: rgba(0,255,255,.12); color: #00ffff; }
.w2-chips .w2-chip--vid svg { width: 12px; height: 12px; }
.w2-chips .w2-chip--vid:hover { background: #00ffff; border-color: #00ffff; color: #030623; }

/* index */
.w2-index { position: relative; display: flex; flex-direction: column; border-top: 1px solid rgba(84,69,255,.45); }
.w2-row { display: grid; width: 100%; border: 0; background: transparent; color: inherit; text-align: left; grid-template-columns: 56px minmax(0,1.2fr) minmax(0,1fr) minmax(0,260px); justify-items: start; align-items: baseline; gap: 20px; padding: 22px var(--pad); border-bottom: 1px solid rgba(84,69,255,.45); cursor: pointer; transition: background .35s, padding .45s cubic-bezier(.22,1,.36,1); }
.w2-row:hover { background: rgba(255,143,186,.07); padding-left: calc(var(--pad) + 18px); }
.w2-row em { font-style: normal; font-size: 14px; font-weight: 600; color: #00ffff; }
.w2-row strong { font-size: clamp(28px, 4vw, 56px); font-weight: 700; line-height: 1; letter-spacing: -.01em; }
.w2-row span { font-size: 15px; color: #a3a6c4; text-align: left; }
.w2-row small { font-size: 14px; color: #c9cbe6; justify-self: end; text-align: right; }
.w2-preview { position: fixed; left: 0; top: 0; width: 260px; aspect-ratio: 4/5; pointer-events: none; z-index: 30; opacity: 0; transition: opacity .3s ease; background: #0a0e33; overflow: hidden; border-radius: 20px; outline: 2px solid #ff8fba; outline-offset: 6px; box-shadow: 0 30px 60px rgba(0,0,0,.5); will-change: transform; }
.w2-preview.is-on { opacity: 1; }
.w2-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; }
.w2-preview__ph { position: absolute; inset: 0; z-index: 4; display: none; align-items: center; justify-content: center; background: repeating-linear-gradient(135deg, rgba(84,69,255,.18) 0 1px, transparent 1px 14px), #0a0e33; font-family: ui-monospace, monospace; font-size: 12px; color: #a3a6c4; }
.w2-preview.is-empty .w2-preview__ph { display: flex; }

/* video player (in page + popup) */
.w2-player { position: relative; width: 100%; height: 100%; }
.w2-player video { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; background: #0a0e33; }
.w2-player__play { position: absolute; inset: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; border: 0; cursor: pointer; color: #e4e4e4; background: linear-gradient(to top, rgba(3,6,35,.7), rgba(3,6,35,.15)); font-size: 14px; font-weight: 600; }
.w2-player__play i { width: 72px; height: 72px; border-radius: 999px; border: 1.4px solid #e4e4e4; display: flex; align-items: center; justify-content: center; transition: transform .45s cubic-bezier(.22,1,.36,1), background .3s, border-color .3s, color .3s; }
.w2-player__play i svg { width: 26px; height: 26px; margin-left: 3px; }
.w2-player__play:hover i { transform: scale(1.08); background: #ff8fba; border-color: #ff8fba; color: #030623; }
.w2-player__wait, .w2-player__err, .w2-player__sound { display: none; }
.w2-player__wait { position: absolute; inset: 0; background: rgba(3,6,35,.45); pointer-events: none; }
.w2-player__wait .w2-loader { background: transparent; }
.w2-player__err { position: absolute; inset: 0; align-items: center; justify-content: center; background: rgba(3,6,35,.85); font-family: ui-monospace, monospace; font-size: 12px; color: #c9cbe6; }
.w2-player__sound { position: absolute; top: 12px; right: 12px; z-index: 3; width: 38px; height: 38px; padding: 0; border-radius: 999px; border: 1px solid rgba(228,228,228,.55); background: rgba(3,6,35,.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #e4e4e4; cursor: pointer; align-items: center; justify-content: center; transition: border-color .25s, color .25s, transform .35s cubic-bezier(.22,1,.36,1); }
.w2-player__sound svg { width: 18px; height: 18px; }
.w2-player__sound:hover { border-color: #ff8fba; color: #ff8fba; transform: scale(1.06); }
.w2-prog { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 3; height: 14px; cursor: pointer; opacity: 0; transition: opacity .3s; }
.w2-prog::before { content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 2px; border-radius: 2px; background: rgba(228,228,228,.28); }
.w2-prog i { position: absolute; left: 0; right: 0; top: 6px; height: 2px; border-radius: 2px; background: #00ffff; transform: scaleX(0); transform-origin: 0 50%; }
.w2-prog:hover::before, .w2-prog:hover i { height: 4px; top: 5px; }
.w2-player:not([data-state="idle"]) .w2-player__play { display: none; }
.w2-player[data-state="loading"] .w2-player__wait { display: block; }
.w2-player[data-state="error"] .w2-player__err { display: flex; }
.w2-player[data-state="playing"] .w2-player__sound, .w2-player[data-state="paused"] .w2-player__sound, .w2-player[data-state="loading"] .w2-player__sound { display: flex; }
.w2-player[data-state="playing"] .w2-prog, .w2-player[data-state="paused"] .w2-prog, .w2-player[data-state="loading"] .w2-prog { opacity: 1; }

/* case video popup */
.w2-vm { position: fixed; inset: 0; z-index: 95; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(3,6,35,.86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-family: 'Urbanist', sans-serif; color: #e4e4e4; }
.w2-vm[hidden] { display: none; }
.w2-vm__panel { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.w2-vm__top { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 15px; font-weight: 700; }
.w2-vm__top i { font-style: normal; font-weight: 500; color: #a3a6c4; }
.w2-vm__top button { width: 38px; height: 38px; padding: 0; border-radius: 999px; border: 1px solid rgba(228,228,228,.45); background: transparent; color: #e4e4e4; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: border-color .25s, color .25s, transform .4s cubic-bezier(.22,1,.36,1); }
.w2-vm__top button svg { width: 18px; height: 18px; }
.w2-vm__top button:hover { border-color: #ff8fba; color: #ff8fba; transform: rotate(90deg); }
.w2-vm__player { height: min(78vh, 760px); width: auto; aspect-ratio: 9/16; border-radius: 20px; overflow: hidden; background: #0a0e33; }
.w2-vm__more { border: 0; background: none; color: #00ffff; font-size: 15px; font-weight: 600; cursor: pointer; transition: color .25s, transform .35s cubic-bezier(.22,1,.36,1); }
.w2-vm__more:hover { color: #ff8fba; transform: translateX(4px); }

/* project page */
.detail__inner.w2d { display: block; overflow-x: hidden; padding: var(--pad-top) 0 0; font-family: 'Urbanist', sans-serif; }
.w2d-bar { display: flex; justify-content: flex-end; align-items: center; gap: 20px; padding: 0 var(--pad) 18px; border-bottom: 1px solid rgba(84,69,255,.45); font-size: 15px; font-weight: 600; }
.w2d-bar span { color: #00ffff; white-space: nowrap; }
.w2d-bar button { background: none; border: 0; padding: 0; cursor: pointer; color: #a3a6c4; font-size: 15px; font-weight: 600; white-space: nowrap; transition: color .25s; }
.w2d-bar button:hover { color: #00ffff; }
.w2d-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: clamp(28px, 5vw, 80px); padding: clamp(48px, 9vh, 100px) var(--pad) clamp(40px, 7vh, 80px); }
.w2d-hero h1 { margin: 0 0 16px; font-size: clamp(64px, 9vw, 140px); font-weight: 800; line-height: .88; letter-spacing: -.03em; }
.w2d-tag { margin: 0; font-size: clamp(18px, 1.6vw, 22px); color: #00ffff; font-weight: 500; }
.w2d-info { display: flex; flex-direction: column; gap: 28px; justify-content: flex-end; }
.w2d-info > p { margin: 0; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.6; max-width: 56ch; text-wrap: pretty; }
.w2d-info dl { margin: 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 48px; border-top: 1px solid rgba(84,69,255,.45); padding-top: 20px; }
.w2d-info dt { font-size: 13px; color: #a3a6c4; }
.w2d-info dd { margin: 0; font-size: 16px; font-weight: 600; }

.w2d-case { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: clamp(32px, 6vw, 110px); padding: clamp(48px, 9vh, 100px) var(--pad); background: #000; border-block: 1px solid rgba(84,69,255,.45); }
.w2d-case__text { flex: 0 1 420px; align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-width: 0; }
.w2d-case__text div { display: flex; flex-direction: column; gap: 6px; }
.w2d-case__text b { font-size: 14px; font-weight: 600; color: #00ffff; }
.w2d-case__text span { font-size: 13px; color: #a3a6c4; }
.w2d-case__text p { margin: 0; font-size: clamp(20px, 2vw, 30px); font-weight: 600; line-height: 1.3; max-width: 22ch; text-wrap: pretty; }
.w2d-case__media { flex: 0 0 auto; display: flex; align-items: flex-end; gap: clamp(12px, 1.4vw, 16px); }
.w2d-logogrid, .w2d-reel { position: relative; overflow: hidden; border-radius: 18px; background: #0a0e33; }
.w2d-logogrid { width: clamp(160px, 17vw, 270px); aspect-ratio: 3/4; }
.w2d-reel { width: clamp(220px, 26vw, 400px); aspect-ratio: 9/16; }
.w2d-logogrid video { width: 100%; height: 100%; object-fit: cover; display: block; }

.w2-loader { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: #0a0e33; pointer-events: none; transition: opacity .6s ease; font-size: 11px; font-weight: 600; color: #a3a6c4; }
.w2-loader.is-done { opacity: 0; }
.w2-loader.is-done .w2-ring { animation: none; }
.w2-ring { width: 22px; height: 22px; border-radius: 999px; border: 2px solid rgba(0,255,255,.18); border-top-color: #00ffff; animation: w2-spin .9s linear infinite; }
.w2-ring--big { width: 30px; height: 30px; }
@keyframes w2-spin { to { transform: rotate(360deg); } }

/* carousel pinned to the viewport, page scroll moves it sideways */
.w2d-hs { position: relative; }
.w2d-hs__pin { position: sticky; top: 0; display: flex; flex-direction: column; justify-content: center; gap: 18px; overflow: hidden; }
.w2d-hs.is-static { height: auto !important; }
.w2d-hs.is-static .w2d-hs__pin { position: relative; height: auto !important; padding: clamp(48px, 9vh, 110px) 0; }
.w2d-hs__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 0 var(--pad); }
.w2d-hs__count { font-size: 14px; font-weight: 600; color: #a3a6c4; font-variant-numeric: tabular-nums; }
.w2d-hs__count b { color: #00ffff; }
.w2d-hs__nav { display: flex; gap: 8px; }
.w2d-hs__nav button, .w2-lb__main > button { width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(84,69,255,.8); background: transparent; color: #e4e4e4; font-size: 18px; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.w2d-hs__nav button:hover, .w2-lb__main > button:hover { background: #00ffff; color: #030623; border-color: #00ffff; }
.w2d-hs__track { display: flex; gap: 12px; padding: 0 var(--pad); width: max-content; will-change: transform; cursor: grab; user-select: none; }
.w2d-hs__track.is-drag { cursor: grabbing; }
.w2d-hs.is-static .w2d-hs__track { width: auto; overflow-x: auto; scrollbar-width: none; }
.w2d-hs__prog { position: relative; margin: 0 var(--pad); height: 2px; background: rgba(84,69,255,.35); border-radius: 2px; overflow: hidden; }
.w2d-hs__prog i { position: absolute; inset: 0; background: #00ffff; transform: scaleX(0); transform-origin: 0 50%; }
.w2d-hs.is-static .w2d-hs__prog { display: none; }
.w2d-item { position: relative; flex: 0 0 auto; width: clamp(240px, calc((100vw - 2 * var(--pad) - 36px) / 3.5), 560px); max-height: 72vh; overflow: hidden; background: #0a0e33; cursor: zoom-in; transition: transform .5s cubic-bezier(.22,1,.36,1), box-shadow .5s; }
.w2d-item:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 2px #ff8fba; }
.w2d-item > img, .w2d-item > video { width: 100%; height: 100%; object-fit: cover; display: block; }

.w2d-story { padding: clamp(36px, 6vh, 72px) var(--pad); display: flex; flex-direction: column; gap: clamp(18px, 2.4vw, 32px); }
.w2d-story--cink { background: #ff8fba; color: #030623; --rule: rgba(3,6,35,.25); }
.w2d-story--bite { background: #e4e4e4; color: #5445ff; --rule: rgba(84,69,255,.3); }
.w2d-story__lead { display: flex; flex-direction: column; gap: 8px; }
.w2d-story__lead span { font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.w2d-story__lead p { margin: 0; font-size: clamp(22px, 2.2vw, 34px); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; max-width: 28ch; text-wrap: balance; }
.w2d-story__cols { column-count: 3; column-gap: clamp(28px, 4vw, 64px); column-rule: 1px solid var(--rule); }
.w2d-story__cols p { margin: 0 0 .9em; font-size: clamp(15px, 1vw, 17px); font-weight: 500; line-height: 1.55; text-wrap: pretty; orphans: 3; widows: 3; }
@media (max-width: 1099px) { .w2d-story__cols { column-count: 2; } }

/* vertical media after the story */
.w2d-stack { display: flex; flex-direction: column; align-items: center; gap: clamp(12px, 1.6vw, 24px); padding: clamp(48px, 9vh, 110px) var(--pad); }
.w2d-stack__item { position: relative; margin: 0; width: 100%; max-width: 1400px; min-height: 120px; background: #0a0e33; overflow: hidden; border-radius: 4px; cursor: zoom-in; }
.w2d-stack__item > img, .w2d-stack__item > video { width: 100%; height: auto; display: block; }

.w2d-next { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; width: 100%; padding: clamp(40px, 8vh, 90px) var(--pad); border: 0; border-top: 1px solid rgba(84,69,255,.45); background: transparent; color: inherit; cursor: pointer; text-align: left; transition: background .35s; }
.w2d-next:hover { background: rgba(84,69,255,.12); }
.w2d-next span { font-size: 15px; color: #a3a6c4; }
.w2d-next strong { font-size: clamp(48px, 7vw, 110px); font-weight: 800; line-height: .9; letter-spacing: -.03em; }
.w2d-next i { font-style: normal; color: #00ffff; display: inline-block; transition: transform .45s cubic-bezier(.22,1,.36,1); }
.w2d-next:hover i { transform: translateX(14px); }

.w2-lb { position: fixed; inset: 0; z-index: 90; background: rgba(3,6,35,.97); display: flex; flex-direction: column; color: #e4e4e4; font-family: 'Urbanist', sans-serif; }
.w2-lb[hidden] { display: none; }
.w2-lb__top { display: flex; justify-content: space-between; align-items: center; padding: 18px var(--pad); font-size: 15px; font-weight: 600; }
.w2-lb__top span:first-child { color: #00ffff; }
.w2-lb__top span:nth-child(2) { color: #a3a6c4; }
.w2-lb__top button { font: inherit; background: none; border: 0; color: #e4e4e4; cursor: pointer; transition: color .25s; }
.w2-lb__top button:hover { color: #ff8fba; }
.w2-lb__main { flex: 1; min-height: 0; display: flex; align-items: center; gap: 12px; padding: 0 clamp(8px, 2vw, 24px) 24px; }
.w2-lb__main > button { flex: 0 0 auto; width: 52px; height: 52px; font-size: 22px; }
.w2-lb__stage { flex: 1; min-width: 0; height: 100%; display: flex; align-items: center; justify-content: center; }
.w2-lb__stage img, .w2-lb__stage video { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }

@media (max-width: 719px) {
  .w2-toggle { display: none; }
  .w2-card { border-right: 0; }
  .w2d-case__media { flex-direction: column-reverse; align-items: center; width: 100%; }
  .w2d-logogrid, .w2d-reel { width: min(100%, 380px); }
  .w2d-story__cols { column-count: 1; }
  .w2d-bar { justify-content: space-between; }
  .w2-vm__player { height: auto; width: min(100%, 420px); }
}

/* ══ contact: start-a-project pop-up ═════════════════════════════════════ */
.cf-cta { display: inline-flex; align-items: center; gap: 12px; margin: 22px 0 6px; padding: 14px 24px; border-radius: 999px; border: 1.4px solid currentColor; background: transparent; color: inherit; font: 700 16px/1 'Urbanist', sans-serif; cursor: pointer; transition: background .3s, color .3s, border-color .3s, transform .45s cubic-bezier(.22,1,.36,1); }
.cf-cta i { font-style: normal; transition: transform .45s cubic-bezier(.22,1,.36,1); }
.cf-cta:hover { background: #ff8fba; border-color: #ff8fba; color: #030623; transform: translateY(-2px); }
.cf-cta:hover i { transform: translateX(5px); }
.cf { position: fixed; inset: 0; z-index: 96; display: flex; align-items: center; justify-content: center; padding: clamp(12px, 3vw, 40px); background: rgba(3,6,35,.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-family: 'Urbanist', sans-serif; overflow-y: auto; }
.cf[hidden] { display: none; }
.cf__panel { position: relative; width: min(720px, 100%); max-height: 100%; overflow-y: auto; box-sizing: border-box; display: flex; flex-direction: column; gap: 30px; padding: clamp(24px, 4vw, 44px); border-radius: 28px; background: #030623; color: #e4e4e4; border: 1px solid rgba(84,69,255,.5); box-shadow: 0 40px 120px rgba(0,0,0,.55); }
.cf__top { margin-bottom: 4px; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.cf__top h3, .cf__done h3 { margin: 0 0 6px; font-size: clamp(36px, 5vw, 56px); font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.cf__top p, .cf__done p { margin: 0; font-size: 15px; color: #a3a6c4; max-width: 44ch; }
.cf__close { flex: 0 0 auto; width: 40px; height: 40px; padding: 0; border-radius: 999px; border: 1px solid rgba(228,228,228,.45); background: transparent; color: #e4e4e4; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: border-color .25s, color .25s, transform .4s cubic-bezier(.22,1,.36,1); }
.cf__close svg { width: 18px; height: 18px; }
.cf__close:hover { border-color: #ff8fba; color: #ff8fba; transform: rotate(90deg); }
.cf__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.cf__two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
.cf-field { display: flex; flex-direction: column; gap: 6px; }
.cf-field--wide { grid-column: 1 / -1; }
.cf-field span, .cf-set legend { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: lowercase; color: #00ffff; }
.cf-field input, .cf-field textarea { font: 500 17px/1.45 'Urbanist', sans-serif; color: #e4e4e4; background: transparent; border: 0; border-bottom: 1px solid rgba(228,228,228,.28); border-radius: 0; padding: 8px 0 10px; outline: none; resize: vertical; transition: border-color .3s; }
.cf-field textarea { min-height: 110px; }
.cf-field input::placeholder, .cf-field textarea::placeholder { color: rgba(163,166,196,.6); }
.cf-field input:hover, .cf-field textarea:hover { border-color: rgba(228,228,228,.55); }
.cf-field input:focus, .cf-field textarea:focus { border-color: #ff8fba; }
.cf-field.is-bad input, .cf-field.is-bad textarea { border-color: #ff8fba; }
.cf-field.is-bad span { color: #ff8fba; }
.cf-set { margin: 0; padding: 0; border: 0; min-width: 0; }
.cf-set legend { padding: 0; margin-bottom: 12px; }
.cf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cf-chip input { position: absolute; opacity: 0; pointer-events: none; }
.cf-chip span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(84,69,255,.7); font-size: 14px; font-weight: 500; color: #c9cbe6; cursor: pointer; transition: border-color .25s, color .25s, background .25s, transform .35s cubic-bezier(.22,1,.36,1); }
.cf-chip:hover span { border-color: #ff8fba; color: #ff8fba; transform: translateY(-2px); }
.cf-chip input:checked + span { background: #00ffff; border-color: #00ffff; color: #030623; transform: none; }
.cf-chip input:focus-visible + span { outline: 2px solid #ff8fba; outline-offset: 2px; }
.cf__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cf__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.cf__msg { margin: 0; font-size: 14px; color: #ff8fba; }
.cf__msg a { color: #00ffff; }
.cf__send { display: inline-flex; align-items: center; gap: 12px; padding: 15px 30px; border-radius: 999px; border: 0; background: #ff8fba; color: #030623; font: 800 16px/1 'Urbanist', sans-serif; cursor: pointer; transition: background .3s, transform .45s cubic-bezier(.22,1,.36,1); }
.cf__send i { font-style: normal; transition: transform .45s cubic-bezier(.22,1,.36,1); }
.cf__send:hover { background: #00ffff; transform: translateY(-2px); }
.cf__send:hover i { transform: translateX(5px); }
.cf__send.is-busy { opacity: .6; pointer-events: none; }
.cf.is-done .cf__top, .cf__panel.is-done > :not(.cf__done) { display: none; }
.cf__done { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 24px 0 8px; }
@media (max-width: 600px) { .cf__grid, .cf__two { grid-template-columns: 1fr; } }

/* email: copy + where to write from */
.cf-mail-host { position: relative; }
.cf-mail { position: absolute; left: 0; top: calc(100% + 10px); z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px; border-radius: 18px; background: #030623; border: 1px solid rgba(84,69,255,.6); box-shadow: 0 20px 50px rgba(0,0,0,.4); font: 600 14px/1 'Urbanist', sans-serif; white-space: nowrap; }
.cf-mail[hidden] { display: none; }
.cf-mail__ok { padding: 8px 10px; color: #00ffff; }
.cf-mail a, .cf-mail button { padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(228,228,228,.25); background: transparent; color: #e4e4e4; font: inherit; text-decoration: none; cursor: pointer; transition: border-color .25s, color .25s, background .25s; }
.cf-mail a:hover, .cf-mail button:hover { border-color: #ff8fba; color: #ff8fba; }
.cf-mail button { background: #ff8fba; border-color: #ff8fba; color: #030623; }
.cf-mail button:hover { background: #00ffff; border-color: #00ffff; color: #030623; }

/* custom scrollbars, site-wide */
* { scrollbar-width: thin; scrollbar-color: rgba(84,69,255,.75) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(84,69,255,.7); border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: #ff8fba; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-corner { background: transparent; }
.zone--contact * { scrollbar-color: rgba(255,255,255,.55) transparent; }

/* player: volume, pause / replay indicators */
.w2-player__vol { position: absolute; top: 12px; right: 12px; z-index: 4; display: none; align-items: center; flex-direction: row-reverse; gap: 0; padding: 0; border-radius: 999px; background: rgba(3,6,35,.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(228,228,228,.45); transition: gap .35s, padding .35s, border-color .25s; }
.w2-player__vol .w2-player__sound { position: static; display: flex; border: 0; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.w2-player__vol input { width: 0; opacity: 0; margin: 0; transition: width .4s cubic-bezier(.22,1,.36,1), opacity .3s; -webkit-appearance: none; appearance: none; height: 2px; border-radius: 2px; cursor: pointer; background: linear-gradient(90deg, #00ffff var(--v, 0%), rgba(228,228,228,.3) var(--v, 0%)); }
.w2-player__vol:hover, .w2-player__vol:focus-within { gap: 8px; padding-left: 14px; border-color: #ff8fba; }
.w2-player__vol:hover input, .w2-player__vol:focus-within input { width: 86px; opacity: 1; }
.w2-player__vol input::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #e4e4e4; border: 0; }
.w2-player__vol input::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #e4e4e4; border: 0; }
.w2-player__vol input::-moz-range-track { background: transparent; }
@media (hover: none) { .w2-player__vol { gap: 8px; padding-left: 14px; } .w2-player__vol input { width: 70px; opacity: 1; } }
.w2-player[data-state="playing"] .w2-player__vol, .w2-player[data-state="paused"] .w2-player__vol, .w2-player[data-state="loading"] .w2-player__vol, .w2-player[data-state="ended"] .w2-player__vol { display: flex; }
.w2-player[data-state] .w2-player__sound { display: flex; }
.w2-player__flash { position: absolute; left: 50%; top: 50%; z-index: 3; width: 64px; height: 64px; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: rgba(3,6,35,.55); color: #e4e4e4; opacity: 0; pointer-events: none; transform: translate(-50%,-50%); }
.w2-player__flash svg { width: 26px; height: 26px; }
.w2-player__resume, .w2-player__replay { position: absolute; inset: 0; z-index: 2; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 12px; width: 100%; border: 0; cursor: pointer; color: #e4e4e4; background: rgba(3,6,35,.45); font: 600 14px/1 'Urbanist', sans-serif; }
.w2-player__resume i, .w2-player__replay i { width: 64px; height: 64px; border-radius: 999px; border: 1.4px solid #e4e4e4; display: flex; align-items: center; justify-content: center; transition: transform .45s cubic-bezier(.22,1,.36,1), background .3s, border-color .3s, color .3s; }
.w2-player__resume svg, .w2-player__replay svg { width: 24px; height: 24px; }
.w2-player__resume:hover i, .w2-player__replay:hover i { transform: scale(1.08); background: #ff8fba; border-color: #ff8fba; color: #030623; }
.w2-player[data-state="paused"] .w2-player__resume { display: flex; }
.w2-player[data-state="ended"] .w2-player__replay { display: flex; background: rgba(3,6,35,.65); }
.w2-player[data-state="ended"] .w2-prog { opacity: 1; }

/* "let us make you number 1" */
.w2-card--cta { justify-content: stretch; }
.w2-cta { flex: 1; display: flex; flex-direction: column; justify-content: flex-start; gap: 18px; min-height: 100%; padding: clamp(18px, 2vw, 28px); border-radius: 18px; border: 1px dashed rgba(255,143,186,.6); background: transparent; color: #e4e4e4; text-align: left; cursor: pointer; font-family: inherit; transition: background .45s, border-color .3s, color .3s; }
.w2-cta__no { font-size: 13px; font-weight: 600; color: #00ffff; margin-bottom: clamp(20px, 6vh, 64px); }
.w2-cta strong { font-size: clamp(34px, 3.4vw, 54px); font-weight: 800; line-height: .95; letter-spacing: -.02em; }
.w2-cta em { font-style: normal; color: #ff8fba; transition: color .3s; }
.w2-cta__go { margin-top: auto; font-size: 15px; font-weight: 600; color: #a3a6c4; }
.w2-cta__go i { font-style: normal; display: inline-block; transition: transform .45s cubic-bezier(.22,1,.36,1); }
.w2-cta:hover { background: #ff8fba; border-color: #ff8fba; color: #030623; }
.w2-cta:hover em, .w2-cta:hover .w2-cta__go, .w2-cta:hover .w2-cta__no { color: #030623; }
.w2-cta:hover .w2-cta__go i { transform: translateX(6px); }
.w2-row--cta strong { color: #ff8fba; }
.w2-row--cta small { color: #ff8fba; font-weight: 600; }
.w2-row--cta:hover { background: #ff8fba; color: #030623; }
.w2-row--cta:hover em, .w2-row--cta:hover strong, .w2-row--cta:hover span, .w2-row--cta:hover small { color: #030623; }

/* end of project: next · contact */
.w2d-end { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid rgba(84,69,255,.45); }
.w2d-end .w2d-next { border-top: 0; }
.w2d-end .w2d-next + .w2d-next { border-left: 1px solid rgba(84,69,255,.45); }
.w2d-end strong { font-size: clamp(36px, 4.6vw, 80px); }
.w2d-next--talk strong { color: #ff8fba; }
.w2d-next--talk:hover { background: #ff8fba; }
.w2d-next--talk:hover span, .w2d-next--talk:hover strong, .w2d-next--talk:hover i { color: #030623; }
@media (max-width: 719px) { .w2d-end { grid-template-columns: 1fr; } .w2d-end .w2d-next + .w2d-next { border-left: 0; border-top: 1px solid rgba(84,69,255,.45); } }
