.webdesign-filmstrip-page,
.webdesign-filmstrip-page .webdesign-main {
  background: #29444b;
}

.webdesign-filmstrip-page::selection {
  color: #030711;
  background: #9fe0d1;
}

.web-round {
  --round-card-width: 282px;
  --round-card-height: 402px;
  --round-radius: 900px;
  --round-ink: #f1efe8;
  --round-accent: #9fe0d1;
  --round-muted: rgba(225, 239, 235, 0.66);
  --round-line: rgba(194, 225, 218, 0.23);
  --round-pad: clamp(20px, 2.8vw, 44px);
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 780px;
  overflow: hidden;
  isolation: isolate;
  color: var(--round-ink);
  background: #29444b;
  outline: none;
}

.web-round .web-filmstrip-backgrounds,
.web-round .web-filmstrip-background,
.web-round .web-filmstrip-background img,
.web-round .web-filmstrip-background-colour,
.web-round .web-filmstrip-ripple,
.web-round .web-filmstrip-wash,
.web-round .web-filmstrip-grain {
  position: absolute;
  inset: 0;
}

.web-round .web-filmstrip-backgrounds {
  z-index: -5;
  display: none;
  transition: opacity 420ms ease;
}

.web-round.has-kinetic-grid .web-filmstrip-backgrounds {
  opacity: 0;
}

.web-round .web-filmstrip-background {
  margin: 0;
  opacity: 0;
  transition: opacity 620ms ease;
}

.web-round .web-filmstrip-background.is-active {
  opacity: 1;
}

.web-round .web-filmstrip-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  opacity: 0.76;
  filter: saturate(0.68) contrast(0.98) brightness(0.72);
  transform: scale(1.08);
  transition: transform 7s linear;
  user-select: none;
  -webkit-user-drag: none;
}

.web-round .web-filmstrip-background.is-active img {
  transform: scale(1.025);
}

.web-round .web-filmstrip-background-colour {
  opacity: 0.12;
  background: var(--case-accent);
  mix-blend-mode: color;
}

.web-round .web-filmstrip-ripple {
  z-index: -4;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  background: #29444b;
  transition: opacity 420ms ease;
}

.web-round.has-kinetic-grid .web-filmstrip-ripple {
  opacity: 1;
}

.web-round .web-filmstrip-wash {
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 48%, transparent 34%, rgba(15, 38, 44, 0.27) 100%),
    linear-gradient(180deg, rgba(27, 59, 66, 0.08), transparent 22%, transparent 70%, rgba(17, 42, 48, 0.54));
}

.web-round .web-filmstrip-grain {
  z-index: 19;
  opacity: 0.045;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 190px 190px;
  mix-blend-mode: soft-light;
}

.web-round-heading,
.web-round-controls,
.web-round-position,
.web-round-title > p,
.web-round-card-index,
.web-round-card-open {
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.web-round-heading {
  position: absolute;
  top: clamp(104px, 9svh, 126px);
  left: var(--round-pad);
  z-index: 14;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  pointer-events: none;
}

.web-round-heading h1,
.web-round-heading p {
  margin: 0;
}

.web-round-heading h1 {
  display: flex;
  flex-direction: column;
  color: var(--round-ink);
  font-size: clamp(4.5rem, 8.2vw, 6rem);
  font-weight: 790;
  letter-spacing: -0.04em;
  line-height: 0.76;
  text-transform: none;
}

.web-round-heading h1 > span {
  display: block;
}

.web-round-heading-depth {
  color: var(--round-accent);
  text-shadow: none;
}

.web-round-heading p {
  max-width: 24rem;
  color: rgba(229, 241, 237, 0.82);
  font-size: clamp(0.96rem, 1.35vw, 1.18rem);
  font-weight: 640;
  letter-spacing: -0.015em;
  line-height: 1.42;
  text-transform: none;
}

.web-round-controls {
  position: absolute;
  top: clamp(102px, 9svh, 124px);
  right: var(--round-pad);
  z-index: 22;
  display: flex;
  gap: 8px;
}

.web-round-controls button {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--round-line);
  border-radius: 50%;
  color: var(--round-ink);
  background: rgba(21, 27, 29, 0.34);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.web-round-controls button:hover,
.web-round-controls button:focus-visible {
  color: #202729;
  background: var(--round-ink);
  transform: translateY(-2px);
}

.web-round-controls svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.web-round-viewport {
  position: absolute;
  inset: 64px 0 18px;
  z-index: 8;
  display: grid;
  place-items: center;
  overflow: visible;
  perspective: 2700px;
  perspective-origin: 50% 48%;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.web-round.is-dragging .web-round-viewport {
  cursor: grabbing;
}

.web-round-tilt,
.web-round-ring,
.web-round-card {
  transform-style: preserve-3d;
}

.web-round-tilt {
  position: relative;
  width: var(--round-card-width);
  height: var(--round-card-height);
  transform: translateY(clamp(24px, 4svh, 46px)) rotateX(-11deg);
}

.web-round-ring {
  position: absolute;
  inset: 0;
  transform: translateZ(calc(var(--round-radius) * -1)) rotateY(0deg);
  will-change: transform;
}

.web-round-card {
  position: absolute;
  inset: 0;
  color: #fff;
  transform: rotateY(var(--round-angle)) translateZ(var(--round-radius));
  transition: filter 460ms ease, opacity 460ms ease;
}

.web-round-card:not(.is-active) {
  filter: saturate(0.68) brightness(0.72);
}

.web-round-face {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: clamp(14px, 1.5vw, 23px);
  background: #192022;
  box-shadow: 0 32px 90px rgba(3, 7, 8, 0.46);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.web-round-front {
  transform: rotateY(0deg) translateZ(1px);
}

.web-round-back {
  transform: rotateY(180deg) translateZ(1px);
  filter: brightness(0.34) saturate(0.45);
}

.web-round-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 14%;
  transform: scale(1.01);
  transition: transform 800ms cubic-bezier(0.16, 1, 0.3, 1), filter 420ms ease;
  user-select: none;
  -webkit-user-drag: none;
}

.web-round-card:hover .web-round-front img,
.web-round-card:focus-visible .web-round-front img,
.web-round-card.is-active .web-round-front img {
  transform: scale(1.045);
}

.web-round-card:focus-visible {
  outline: none;
}

.web-round-card:focus-visible .web-round-front {
  outline: 2px solid var(--round-ink);
  outline-offset: 5px;
}

.web-round-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 10, 11, 0.18), transparent 54%, rgba(5, 7, 8, 0.62));
}

.web-round-card-index {
  position: absolute;
  top: 16px;
  left: 17px;
  font-size: 0.56rem;
  font-weight: 850;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.72);
}

.web-round-card-open {
  position: absolute;
  right: 17px;
  bottom: 16px;
  display: flex;
  gap: 9px;
  align-items: center;
  opacity: 0;
  font-size: 0.58rem;
  font-weight: 850;
  text-shadow: 0 2px 9px rgba(0, 0, 0, 0.76);
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.web-round-card.is-active .web-round-card-open {
  opacity: 1;
  transform: translateY(0);
}

.web-round-story {
  position: absolute;
  right: var(--round-pad);
  bottom: clamp(37px, 4.4svh, 54px);
  left: clamp(260px, 27vw, 410px);
  z-index: 14;
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) minmax(300px, 1.2fr);
  gap: clamp(34px, 7vw, 110px);
  align-items: end;
  pointer-events: none;
}

.web-round-title > p,
.web-round-title h2,
.web-round-summary p {
  margin: 0;
}

.web-round-title > p {
  margin-bottom: 9px;
  color: var(--round-muted);
  font-size: 0.59rem;
  font-weight: 820;
}

.web-round-title h2 {
  color: var(--round-ink);
  font-size: clamp(2.1rem, 4vw, 4.25rem);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 0.84;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}

.web-round-title-clip {
  display: block;
  overflow: hidden;
}

.web-round-title-clip > span {
  display: block;
}

.web-round-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  padding-top: 13px;
  border-top: 1px solid var(--round-line);
}

.web-round-summary p {
  max-width: 37rem;
  color: rgba(242, 241, 235, 0.86);
  font-size: clamp(0.92rem, 1.08vw, 1.06rem);
  font-weight: 620;
  line-height: 1.5;
}

.web-round-summary a {
  display: inline-flex;
  gap: 24px;
  align-items: center;
  min-height: 56px;
  padding: 0 25px;
  border-radius: 999px;
  color: #202729;
  background: var(--round-accent);
  font-size: 0.76rem;
  font-weight: 840;
  white-space: nowrap;
  pointer-events: auto;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.web-round-summary a:hover,
.web-round-summary a:focus-visible {
  color: #030711;
  background: #d9f3ec;
  transform: translateY(-3px);
}

.web-round-position {
  position: absolute;
  bottom: max(31px, 4svh);
  left: var(--round-pad);
  z-index: 14;
  width: min(18vw, 240px);
  min-width: 180px;
  font-size: 0.63rem;
  font-weight: 760;
}

.web-round-count {
  display: flex;
  justify-content: space-between;
}

.web-round-count span:last-child {
  opacity: 0.48;
}

.web-round-progress {
  position: relative;
  height: 1px;
  margin-top: 9px;
  overflow: hidden;
  background: var(--round-line);
}

.web-round-progress span {
  position: absolute;
  inset: 0;
  background: var(--round-ink);
  transform: scaleX(calc(1 / 18));
  transform-origin: left center;
  transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.web-round-position p {
  margin: 11px 0 0;
  color: var(--round-muted);
  font-size: 0.51rem;
  line-height: 1.5;
}

.webdesign-filmstrip-page .site-footer {
  width: 100%;
  margin: 0;
  padding: 32px var(--round-pad, clamp(20px, 2.8vw, 44px)) 36px;
  border-top: 1px solid rgba(159, 224, 209, 0.18);
  color: rgba(215, 232, 227, 0.62);
  background: #223a40;
}

.webdesign-filmstrip-page .legal-site-footer a {
  color: #9fe0d1;
  text-decoration-color: rgba(159, 224, 209, 0.35);
}

.webdesign-filmstrip-page .legal-site-footer a:hover,
.webdesign-filmstrip-page .legal-site-footer a:focus-visible {
  color: #d9f3ec;
  text-decoration-color: currentColor;
}

@media (max-width: 980px) {
  .web-round {
    min-height: 760px;
  }

  .web-round-heading {
    top: 110px;
  }

  .web-round-controls {
    top: 104px;
  }

  .web-round-viewport {
    top: 70px;
    bottom: 18px;
  }

  .web-round-story {
    right: var(--round-pad);
    bottom: 72px;
    left: var(--round-pad);
    grid-template-columns: minmax(210px, 0.75fr) minmax(300px, 1.25fr);
    gap: 32px;
  }

  .web-round-position {
    bottom: 22px;
    width: 42vw;
  }

  .web-round-position p {
    display: none;
  }

}

@media (max-width: 680px) {
  .web-round {
    min-height: 790px;
  }

  .web-round-heading {
    top: 104px;
    max-width: calc(100% - 118px);
    gap: 12px;
  }

  .web-round-heading h1 {
    font-size: clamp(3.2rem, 16vw, 4.4rem);
  }

  .web-round-controls {
    top: 102px;
    gap: 5px;
  }

  .web-round-controls button {
    width: 40px;
    height: 40px;
  }

  .web-round-viewport {
    inset: 72px 0 16px;
    perspective: 2100px;
  }

  .web-round-story {
    right: 20px;
    bottom: 75px;
    left: 20px;
    display: block;
  }

  .web-round-title h2 {
    font-size: clamp(2.35rem, 12vw, 3.7rem);
  }

  .web-round-summary {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    margin-top: 15px;
  }

  .web-round-summary p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.78rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .web-round-summary a {
    width: 54px;
    min-height: 54px;
    padding: 0;
    justify-content: center;
    font-size: 0;
  }

  .web-round-summary a span {
    font-size: 0.94rem;
  }

  .web-round-position {
    right: 20px;
    bottom: 24px;
    left: 20px;
    width: auto;
    min-width: 0;
  }

  .webdesign-filmstrip-page .site-footer {
    padding: 28px 20px 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .web-round .web-filmstrip-background,
  .web-round .web-filmstrip-background img,
  .web-round-card,
  .web-round-face img,
  .web-round-card-open,
  .web-round-progress span {
    transition-duration: 1ms !important;
  }
}
