/* ==========================================================================
   /selected-works — page layout
   Framer (1602 px canvas): a 562 px white header with the Unicorn Studio scene behind the title,
   a 603 px black band holding the works strip (Framer's Carousel component), then the footer.
   Sizes marked "Framer:" are its measurements; the phone rules are at the bottom.
   ========================================================================== */

body { background: var(--c-black); }                 /* Framer: html body { background: #000 } */

/* ── HEADER — SELECTED [WORKS] 25' ────────────────────────────────────── */
.works-head { height: 562px; overflow: hidden; background: var(--c-white); }   /* Framer: 562 px, white, clip */
.us-bg--works { inset: 0 -1px 0 0; }                  /* Framer: the scene's container, inset 0 -1 0 0 */

.works-head .works-head__title {                      /* ".works-head" twice: beats .has-us > * (hybrd.css) */
  position: absolute; left: 65px; top: 122px;         /* Framer: left 65; glyph tops at 102 / 234 / 366 */
  font: 700 150px/132px var(--f-display);             /* Framer: Clash Display 700, 150 px, lines 132 px apart */
  white-space: nowrap;
}
.works-head .works-head__hint {
  position: absolute; left: 65px; bottom: 14px;       /* Framer: left 65, bottom 14 */
  font: italic 400 16px/1.2 var(--f-body);            /* Framer: Inter italic 400, 16 / 19.2 */
}

/* ── WORKS STRIP ──────────────────────────────────────────────────────── */
.works { position: relative; height: 603px; overflow: hidden; }            /* Framer: 603 px black band */

@property --fade-l { syntax: "<number>"; inherits: true; initial-value: 1; }
@property --fade-r { syntax: "<number>"; inherits: true; initial-value: 0; }

.works__carousel {                                    /* Framer: top 72, left/right −2, 513 tall, padding 10 */
  position: absolute; top: 72px; left: -2px; right: -2px; height: 513px;
  display: flex; padding: 10px;
  --fade-l: 0; --fade-r: 0;                          /* 0 = that edge fades out; 1 = no fade */
  transition: --fade-l .3s ease-out, --fade-r .3s ease-out;   /* Framer: spring (stiffness 500, damping 60) */
}
.works__carousel.is-start { --fade-l: 1; }
.works__carousel.is-end   { --fade-r: 1; }

.works__track {
  flex: 1 1 100%; display: flex; align-items: flex-start; gap: 11px;       /* Framer: gap 11, align top */
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;                      /* Framer: snap on, edge centre, not fluid */
  -webkit-overflow-scrolling: touch;
  /* Framer's fade: 19 % wide, i.e. the outer 9.5 % of each side */
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, var(--fade-l)) 0%, #000 9.5%, #000 90.5%, rgba(0, 0, 0, var(--fade-r)) 100%);
          mask-image: linear-gradient(to right, rgba(0, 0, 0, var(--fade-l)) 0%, #000 9.5%, #000 90.5%, rgba(0, 0, 0, var(--fade-r)) 100%);
}
@media (pointer: fine) {                              /* Framer hides the scrollbar for mouse / trackpad only */
  .works__track { scrollbar-width: none; }
  .works__track::-webkit-scrollbar { display: none; }
}
.works__track > li { flex-shrink: 0; scroll-snap-align: center; scroll-snap-stop: always; }

.works__tile, .works__stack { display: block; width: calc(var(--w) * 1px); height: calc(var(--h) * 1px); overflow: hidden; }
.works__tile > video { width: 100%; height: 100%; object-fit: cover; }
.works__stack { display: flex; flex-direction: column; align-items: center; justify-content: space-between; }   /* Framer "horizon": two clips top and bottom */
.works__stack--clip { justify-content: center; gap: 10px; }                 /* Framer "hori2": 2 × 212 + 10 in 429, centred and cut */
.works__stack > .works__tile { flex: none; }

/* Arrows: Framer's own SVGs on a 40 px round, 20 % black button, 20 px in from the strip's edges */
.works__controls {
  position: absolute; inset: 0; padding: 20px;
  display: flex; justify-content: space-between; align-items: center;
  pointer-events: none;
}
.works__arrow {
  display: block; width: 40px; height: 40px; margin: 0; padding: 0; border: 0; border-radius: 40px; overflow: hidden;
  background: rgba(0, 0, 0, .2);
  cursor: pointer; pointer-events: auto;
  transition: opacity .3s ease-out, transform .05s;   /* Framer: same spring as the fade; tap 0.05 s */
}
.works__arrow img { display: block; width: 40px; height: 40px; }
.works__arrow:active { transform: scale(.9); }        /* Framer: whileTap scale .9 */
.is-start .works__arrow--prev,
.is-end .works__arrow--next { opacity: 0; pointer-events: none; cursor: default; }   /* hidden at its end, as in Framer */

/* ── Footer: on this page Framer sets "©2025 HYBRD" in Clash Display (services uses Inter) ── */
.site-footer small { font-family: var(--f-display); }

/* ── Phone: title scales down, the strip stays a swipeable row ────────── */
@media (max-width: 900px) {
  .works-head { height: auto; padding: calc(var(--header-h) + var(--s-4)) var(--gutter) var(--s-3); }
  .works-head .works-head__title, .works-head .works-head__hint { position: relative; left: auto; top: auto; bottom: auto; }
  .works-head .works-head__title { font-size: 14vw; line-height: .88; }
  .works-head .works-head__hint { margin-top: var(--s-3); }
  .works { height: auto; padding: var(--s-5) 0; }
  .works__carousel { position: relative; top: auto; left: auto; right: auto; height: auto; }
}
