/* Portfolio page accent and readable case showcase. */

.page-story-section--portfolio {
  --page-accent: #6f5cff;
  --page-accent-rgb: 111, 92, 255;
}

@media (min-width: 769px) {
  .page-story-section--portfolio .page-story-visual {
    transform: translateX(clamp(-36px, -1.8vw, -22px));
  }
}

.page-story-section--portfolio .page-story-chapters {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 28px);
  min-height: 0;
  padding: clamp(26px, 3.4vw, 46px);
}

.page-story-section--portfolio .page-feature-panel {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  padding: clamp(24px, 2.8vw, 38px);
}

.page-story-section--portfolio .page-feature-panel .about-founders-media {
  display: none;
}

.page-story-section--portfolio .page-feature-panel .about-founders-content {
  min-height: 0;
  grid-template-rows: auto auto;
  gap: clamp(20px, 2.2vw, 28px);
}

.page-story-section--portfolio .page-feature-panel .about-founders-copy {
  grid-row: auto;
  justify-self: center;
  width: min(100%, 780px);
  max-width: 780px;
  text-align: center;
}

.page-story-section--portfolio.page-story-section--about .page-feature-panel.page-feature-panel--portfolio .about-founders-title {
  max-width: min(100%, 980px);
  margin-inline: auto;
  font-size: clamp(1.92rem, 2.65vw, 3.05rem);
  line-height: 1.03;
}

.page-story-section--portfolio .page-feature-panel .about-founders-text {
  max-width: 62ch;
  margin-inline: auto;
}

.page-story-section--portfolio .page-feature-panel .about-founders-stats {
  grid-row: auto;
  align-self: start;
}

.page-story-section--portfolio .page-feature-panel .about-founders-stat {
  min-height: 78px;
  padding: 14px;
}

.page-story-section--portfolio .page-chapter {
  --chapter-accent-rgb: 111, 92, 255;
  --chapter-accent: rgb(var(--chapter-accent-rgb));
  grid-column: 1 / -1;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 2.4vw, 32px);
  min-width: 0;
  padding: clamp(22px, 2.8vw, 40px);
  border-radius: clamp(26px, 2.8vw, 40px);
  overflow: hidden;
}

.page-story-section--portfolio .page-chapter::after {
  display: none;
}

.page-story-section--portfolio .page-chapter--01 {
  color: #ffffff;
  background:
    radial-gradient(circle at 9% 8%, rgba(133, 213, 226, 0.22), transparent 29%),
    radial-gradient(circle at 91% 10%, rgba(111, 92, 255, 0.32), transparent 34%),
    linear-gradient(135deg, #101820 0%, #172235 54%, #0d1118 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 24px 58px rgba(18, 38, 62, 0.18);
}

.page-story-section--portfolio .page-chapter--01::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 42%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 16px);
  opacity: 0.64;
  pointer-events: none;
}

.page-story-section--portfolio .page-chapter > * {
  position: relative;
  z-index: 1;
}

.page-story-section--portfolio .page-chapter-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 14px clamp(16px, 2vw, 26px);
  min-width: 0;
  padding: 0;
}

.page-story-section--portfolio .page-chapter-copy {
  display: grid;
  grid-template-columns: minmax(200px, 0.32fr) minmax(0, 0.68fr);
  align-items: end;
  gap: 10px clamp(18px, 3vw, 42px);
  min-width: 0;
}

.page-story-section--portfolio .page-chapter-index {
  display: none;
}

.page-story-section--portfolio .page-chapter-title {
  max-width: none;
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.74rem, 2.2vw, 2.58rem);
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: normal;
  hyphens: none;
}

.page-story-section--portfolio .page-chapter-intro {
  max-width: 64ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(0.92rem, 0.98vw, 1.02rem);
  line-height: 1.5;
}

.page-story-section--portfolio .page-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(12px, 1.45vw, 18px);
  min-width: 0;
}

@media (min-width: 1181px) {
  .page-story-section--portfolio .page-points {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .page-story-section--portfolio .page-point--has-media,
  .page-story-section--portfolio .page-point--has-media:first-child,
  .page-story-section--portfolio .page-point--has-media:last-child {
    grid-column: span 2;
  }

  .page-story-section--portfolio .page-point--has-media:nth-child(1),
  .page-story-section--portfolio .page-point--has-media:nth-child(2) {
    grid-column: span 3;
  }

  .page-story-section--portfolio .page-point--large + .page-point--has-media,
  .page-story-section--portfolio .page-point--large + .page-point--has-media + .page-point--has-media {
    grid-column: span 3;
  }

  .page-story-section--portfolio .page-point--large.page-point--has-media,
  .page-story-section--portfolio .page-point--large.page-point--has-media:first-child,
  .page-story-section--portfolio .page-point--large.page-point--has-media:last-child {
    grid-column: 1 / -1;
  }
}

.page-story-section--portfolio .page-point,
.page-story-section--portfolio .page-point:first-child,
.page-story-section--portfolio .page-point:last-child {
  box-sizing: border-box;
  min-width: 0;
  height: auto;
  min-height: 0;
  padding: 0;
  border-top: 0;
  overflow: hidden;
}

.page-story-section--portfolio .page-point::before {
  display: none;
}

.page-story-section--portfolio .page-point--has-media,
.page-story-section--portfolio .page-point--has-media:first-child,
.page-story-section--portfolio .page-point--has-media:last-child {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 10px;
  min-width: 0;
  border-radius: clamp(18px, 1.7vw, 24px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(242, 247, 252, 0.92)),
    #f8fbff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 18px 38px rgba(0, 0, 0, 0.15);
}

@media (min-width: 769px) {
  .page-story-section--portfolio .page-point--large.page-point--has-media,
  .page-story-section--portfolio .page-point--large.page-point--has-media:first-child,
  .page-story-section--portfolio .page-point--large.page-point--has-media:last-child {
    grid-template-columns: minmax(0, 0.56fr) minmax(360px, 0.44fr);
    grid-template-rows: auto auto 1fr auto;
    gap: clamp(10px, 1vw, 14px) clamp(26px, 2.8vw, 44px);
    min-height: clamp(360px, 33vw, 470px);
    padding: clamp(16px, 1.45vw, 22px);
  }

  .page-story-section--portfolio .page-point--large .page-point-media {
    grid-row: 1 / -1;
    height: 100%;
    min-height: 100%;
    border-radius: clamp(14px, 1.3vw, 20px);
  }

  .page-story-section--portfolio .page-point--large .page-point-meta,
  .page-story-section--portfolio .page-point--large .page-point-title,
  .page-story-section--portfolio .page-point--large .page-point-text,
  .page-story-section--portfolio .page-point--large .page-point-link,
  .page-story-section--portfolio .page-point--large .page-point-tags {
    grid-column: 2;
  }

  .page-story-section--portfolio .page-point--large .page-point-meta {
    align-self: end;
    margin: clamp(18px, 2.1vw, 30px) clamp(14px, 1.4vw, 22px) 0 0;
  }

  .page-story-section--portfolio .page-point--large .page-point-title {
    margin: 0 clamp(14px, 1.4vw, 22px) 0 0;
    font-size: clamp(1.5rem, 2.02vw, 2.45rem);
    line-height: 0.98;
    white-space: normal;
  }

  .page-story-section--portfolio .page-point--large .page-point-title-line {
    display: block;
    white-space: nowrap;
  }

  .page-story-section--portfolio .page-point--large .page-point-text,
  .page-story-section--portfolio .page-point--large .page-point-link {
    margin: 0 clamp(14px, 1.4vw, 22px) 0 0;
    max-width: 48ch;
    font-size: clamp(0.98rem, 1.02vw, 1.08rem);
    line-height: 1.5;
  }

  .page-story-section--portfolio .page-point--large .page-point-tags {
    margin: 0 clamp(14px, 1.4vw, 22px) clamp(18px, 2vw, 28px) 0;
  }

  .page-story-section--portfolio .page-point--large.page-point--has-video,
  .page-story-section--portfolio .page-point--large.page-point--has-video:first-child,
  .page-story-section--portfolio .page-point--large.page-point--has-video:last-child {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: auto auto auto auto;
    gap: clamp(14px, 1.45vw, 22px) clamp(22px, 2.2vw, 34px);
    min-height: 0;
    padding: clamp(22px, 2.1vw, 32px) clamp(22px, 2.1vw, 32px) 0;
  }

  .page-story-section--portfolio .page-point--large.page-point--has-video .page-point-media {
    grid-column: 1 / -1;
    grid-row: 4;
    height: auto;
    min-height: clamp(520px, 45vw, 680px);
  }

  .page-story-section--portfolio .page-point--large.page-point--has-video .page-point-meta {
    grid-column: 1 / 9;
    grid-row: 1;
    align-self: start;
    margin: 0;
  }

  .page-story-section--portfolio .page-point--large.page-point--has-video .page-point-title {
    grid-column: 1 / 9;
    grid-row: 2;
    align-self: end;
    margin: 0;
    font-size: clamp(1.62rem, 2.05vw, 2.58rem);
    line-height: 0.98;
  }

  .page-story-section--portfolio .page-point--large.page-point--has-video .page-point-title-line {
    display: block;
    white-space: nowrap;
  }

  .page-story-section--portfolio .page-point--large.page-point--has-video .page-point-text,
  .page-story-section--portfolio .page-point--large.page-point--has-video .page-point-link {
    grid-column: 1 / 8;
    grid-row: 3;
    align-self: start;
    margin: 0;
    max-width: 60ch;
  }

  .page-story-section--portfolio .page-point--large.page-point--has-video .page-point-tags {
    grid-column: 9 / -1;
    grid-row: 1 / 4;
    align-self: center;
    justify-self: end;
    justify-content: flex-end;
    margin: 0;
  }
}

.page-story-section--portfolio.page-story-section--about .page-chapter--01 .page-point--has-media,
.page-story-section--portfolio.page-story-section--about .page-chapter--01 .page-point--has-media:first-child,
.page-story-section--portfolio.page-story-section--about .page-chapter--01 .page-point--has-media:last-child {
  height: auto;
  min-height: 0;
}

.page-story-section--portfolio .page-point-media {
  position: relative;
  inset: auto;
  z-index: 0;
  grid-column: 1;
  margin: 0;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 8%, rgba(133, 213, 226, 0.16), transparent 34%),
    #111821;
  box-shadow: inset 0 -1px 0 rgba(48, 56, 68, 0.16);
}

.page-story-section--portfolio .page-point-video-showcase {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  gap: 0;
  padding: clamp(34px, 3vw, 46px) 0 clamp(60px, 4.8vw, 70px);
  background: transparent;
}

.page-story-section--portfolio .page-point-video-showcase::before {
  display: none;
}

@media (min-width: 769px) {
  .page-story-section--portfolio .page-point--large.page-point--has-video .page-point-video-showcase {
    position: relative;
    display: block;
    height: 100%;
    min-height: inherit;
    padding: 0;
  }

  .page-story-section--portfolio .page-point--large.page-point--has-video .page-point-video-device--desktop {
    position: absolute;
    left: 50%;
    top: auto;
    bottom: clamp(38px, 3.7vw, 49px);
    transform: translateX(-50%);
  }
}

.page-story-section--portfolio .page-point-video-device {
  position: relative;
  z-index: 1;
  overflow: visible;
  box-sizing: border-box;
  min-width: 0;
  background:
    linear-gradient(145deg, #293341 0%, #111923 46%, #05080d 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.58),
    0 24px 54px rgba(0, 0, 0, 0.38);
}

.page-story-section--portfolio .page-point-video-device--desktop {
  grid-column: 1;
  justify-self: center;
  left: auto;
  top: auto;
  width: min(100%, 1030px);
  max-width: none;
  transform: none;
  padding: clamp(8px, 0.9vw, 13px) clamp(8px, 0.9vw, 13px) clamp(13px, 1.25vw, 18px);
  border-radius: clamp(18px, 1.5vw, 24px);
}

.page-story-section--portfolio .page-point-video-device--desktop::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: clamp(-38px, -2.9vw, -28px);
  z-index: 0;
  width: clamp(58px, 8vw, 104px);
  height: clamp(30px, 3.1vw, 44px);
  transform: translateX(-50%);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent 24% 76%, rgba(255, 255, 255, 0.08)),
    linear-gradient(180deg, #222c38, #070b11);
  clip-path: polygon(28% 0, 72% 0, 84% 100%, 16% 100%);
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.22);
}

.page-story-section--portfolio .page-point-video-device--desktop::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: clamp(-49px, -3.7vw, -38px);
  z-index: 0;
  width: clamp(140px, 19vw, 230px);
  height: clamp(10px, 1vw, 14px);
  transform: translateX(-50%);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent 18% 82%, rgba(255, 255, 255, 0.08)),
    linear-gradient(180deg, #232d39, #060a10);
  box-shadow: 0 20px 34px rgba(0, 0, 0, 0.26);
}

.page-story-section--portfolio .page-point-video-device--mobile {
  display: none;
  grid-column: 1;
  justify-self: center;
  right: auto;
  bottom: auto;
  width: min(58%, 178px);
  max-width: none;
  padding: clamp(9px, 1.15vw, 13px) clamp(7px, 0.9vw, 10px) clamp(11px, 1.3vw, 15px);
  background:
    linear-gradient(145deg, #2b3440 0%, #0b1118 48%, #05070b 100%);
  border-radius: clamp(27px, 2.25vw, 36px);
  border-width: 2px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    0 24px 46px rgba(0, 0, 0, 0.38);
}

.page-story-section--portfolio .page-point-video-device--mobile::before {
  content: "";
  position: absolute;
  top: clamp(7px, 0.9vw, 10px);
  left: 50%;
  z-index: 3;
  width: 30%;
  height: 5px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(12, 17, 23, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.page-story-section--portfolio .page-point-video-device--mobile::after {
  content: "";
  position: absolute;
  top: clamp(7px, 0.9vw, 10px);
  right: 23%;
  z-index: 3;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #111820;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.22);
}

.page-story-section--portfolio .page-point-video-screen {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: #ffffff;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.12),
    inset 0 1px 10px rgba(0, 0, 0, 0.06);
}

.page-story-section--portfolio .page-point-video-device--desktop .page-point-video-screen {
  aspect-ratio: 1806 / 944;
  border-radius: clamp(12px, 1.1vw, 18px);
}

.page-story-section--portfolio .page-point-video-device--mobile .page-point-video-screen {
  aspect-ratio: 384 / 836;
  border-radius: clamp(20px, 1.7vw, 28px);
}

.page-story-section--portfolio .page-point-video {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: center;
}

.page-story-section--portfolio .page-point-video-label {
  display: none;
}

.page-story-section--portfolio .page-point--has-video:not(.page-point--large) .page-point-video-showcase {
  display: block;
  padding: 0;
  overflow: hidden;
  background: #111821;
  box-shadow: inset 0 -1px 0 rgba(48, 56, 68, 0.2);
}

.page-story-section--portfolio .page-point--has-video:not(.page-point--large) .page-point-video-device {
  position: static;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  box-shadow: none;
}

.page-story-section--portfolio .page-point--has-video:not(.page-point--large) .page-point-video-device::before,
.page-story-section--portfolio .page-point--has-video:not(.page-point--large) .page-point-video-device::after {
  display: none;
}

.page-story-section--portfolio .page-point--has-video:not(.page-point--large) .page-point-video-screen {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: inherit;
  box-shadow: none;
}

.page-story-section--portfolio .page-point--has-video:not(.page-point--large) .page-point-video-showcase:has(.page-point-video-device--monitor) {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: clamp(14px, 1.5vw, 20px) clamp(16px, 1.8vw, 24px) clamp(31px, 2.55vw, 40px);
  background:
    radial-gradient(circle at 12% 10%, rgba(133, 213, 226, 0.2), transparent 32%),
    radial-gradient(circle at 88% 6%, rgba(142, 204, 255, 0.32), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(236, 246, 253, 0.94)),
    #f8fbff;
}

.page-story-section--portfolio .page-point--has-video:not(.page-point--large) .page-point-video-device--monitor {
  position: relative;
  width: min(100%, 390px);
  height: auto;
  padding: clamp(7px, 0.8vw, 10px) clamp(7px, 0.8vw, 10px) clamp(11px, 1vw, 14px);
  border-radius: clamp(12px, 1.1vw, 17px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(145deg, #2a3441 0%, #121a24 48%, #05080d 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.58),
    0 20px 38px rgba(0, 0, 0, 0.34);
}

.page-story-section--portfolio .page-point--has-video:not(.page-point--large) .page-point-video-device--monitor::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: clamp(-25px, -2vw, -18px);
  display: block;
  width: clamp(38px, 5.4vw, 70px);
  height: clamp(18px, 2vw, 27px);
  transform: translateX(-50%);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent 24% 76%, rgba(255, 255, 255, 0.08)),
    linear-gradient(180deg, #222c38, #070b11);
  clip-path: polygon(28% 0, 72% 0, 84% 100%, 16% 100%);
  box-shadow: 0 14px 20px rgba(0, 0, 0, 0.22);
}

.page-story-section--portfolio .page-point--has-video:not(.page-point--large) .page-point-video-device--monitor::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: clamp(-31px, -2.55vw, -24px);
  display: block;
  width: clamp(92px, 12vw, 150px);
  height: clamp(7px, 0.8vw, 10px);
  transform: translateX(-50%);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent 18% 82%, rgba(255, 255, 255, 0.08)),
    linear-gradient(180deg, #232d39, #060a10);
  box-shadow: 0 16px 26px rgba(0, 0, 0, 0.24);
}

.page-story-section--portfolio .page-point--has-video:not(.page-point--large) .page-point-video-device--monitor .page-point-video-screen {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: clamp(8px, 0.8vw, 12px);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.16),
    inset 0 1px 8px rgba(0, 0, 0, 0.08);
}

.page-story-section--portfolio .page-point--large.page-point--has-video,
.page-story-section--portfolio .page-point--large.page-point--has-video:first-child,
.page-story-section--portfolio .page-point--large.page-point--has-video:last-child {
  background:
    radial-gradient(circle at 86% 0%, rgba(142, 204, 255, 0.34), transparent 33%),
    radial-gradient(circle at 6% 96%, rgba(133, 213, 226, 0.2), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 252, 0.94)),
    #f8fbff;
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 22px 56px rgba(22, 44, 66, 0.18);
}

.page-story-section--portfolio .page-point--large.page-point--has-video .page-point-media {
  align-self: stretch;
  justify-self: stretch;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: clamp(420px, 36vw, 540px);
  overflow: visible;
  background: transparent;
  border-radius: 0;
}

.page-story-section--portfolio .page-point--large.page-point--has-video .page-point-meta {
  color: #1689c7;
  background:
    linear-gradient(145deg, rgba(58, 162, 245, 0.12), rgba(133, 213, 226, 0.14)),
    rgba(255, 255, 255, 0.78);
  border-color: rgba(41, 145, 219, 0.2);
}

.page-story-section--portfolio .page-point--large.page-point--has-video .page-point-title {
  color: rgba(35, 42, 52, 0.98);
}

.page-story-section--portfolio .page-point--large.page-point--has-video .page-point-text,
.page-story-section--portfolio .page-point--large.page-point--has-video .page-point-link {
  color: rgba(46, 51, 59, 0.7);
}

.page-story-section--portfolio .page-point--large.page-point--has-video .page-point-tags span {
  color: rgba(46, 51, 59, 0.66);
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(48, 56, 68, 0.09);
}

.page-story-section--portfolio .page-point--large.page-point--has-video .page-point-media::after {
  display: none;
}

.page-story-section--portfolio .page-point-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 48%),
    radial-gradient(circle at 0% 0%, rgba(111, 92, 255, 0.14), transparent 42%);
  box-shadow: inset 0 -1px 0 rgba(48, 56, 68, 0.22);
  pointer-events: none;
}

.page-story-section--portfolio .page-point-media-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.96) contrast(1.03);
}

.page-story-section--portfolio .page-point--has-media:nth-child(1) .page-point-media-image,
.page-story-section--portfolio .page-point--has-media:nth-child(4) .page-point-media-image {
  object-position: center 42%;
}

.page-story-section--portfolio .page-point--has-media:nth-child(6) .page-point-media-image,
.page-story-section--portfolio .page-point--has-media:nth-child(7) .page-point-media-image {
  object-position: center 48%;
}

.page-story-section--portfolio .page-point-icon {
  display: none;
}

.page-story-section--portfolio .page-point-meta,
.page-story-section--portfolio .page-point-title,
.page-story-section--portfolio .page-point-text,
.page-story-section--portfolio .page-point-link,
.page-story-section--portfolio .page-point-tags {
  grid-column: 1;
  position: relative;
  z-index: 1;
}

.page-story-section--portfolio .page-point-meta {
  box-sizing: border-box;
  width: max-content;
  max-width: calc(100% - 32px);
  margin: 7px 16px 0;
  padding: 7px 10px;
  border-radius: 999px;
  color: #2963d8;
  background:
    linear-gradient(145deg, rgba(111, 92, 255, 0.13), rgba(133, 213, 226, 0.14)),
    rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(var(--page-accent-rgb), 0.16);
  font-family: var(--font-ui-accent);
  font-size: 0.7rem;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-story-section--portfolio .page-point-title {
  margin: 0 16px;
  color: rgba(35, 42, 52, 0.98);
  font-size: clamp(1.04rem, 1.14vw, 1.22rem);
  line-height: 1.1;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.page-story-section--portfolio .page-point-text,
.page-story-section--portfolio .page-point-link {
  align-self: start;
  margin: 0 16px;
  color: rgba(46, 51, 59, 0.7);
  font-size: clamp(0.88rem, 0.92vw, 0.96rem);
  line-height: 1.45;
}

.page-story-section--portfolio .page-point-tags {
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 2px 16px 16px;
  min-width: 0;
}

.page-story-section--portfolio .page-point-tags span {
  box-sizing: border-box;
  max-width: 100%;
  padding: 6px 9px;
  border-radius: 999px;
  color: rgba(46, 51, 59, 0.68);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(48, 56, 68, 0.09);
  font-size: 0.72rem;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1180px) {
  .page-story-section--portfolio .page-chapter-copy {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .page-story-section--portfolio .page-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .page-story-section--portfolio .page-story-chapters {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .page-story-section--portfolio .page-feature-panel {
    border-radius: 24px;
  }

  .page-story-section--portfolio .page-chapter {
    gap: 16px;
    padding: 17px;
    border-radius: 24px;
  }

  .page-story-section--portfolio .page-chapter-head {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 12px;
  }

  .page-story-section--portfolio .page-chapter-index {
    min-width: 50px;
    height: 31px;
    font-size: 0.76rem;
  }

  .page-story-section--portfolio .page-chapter-title {
    font-size: clamp(1.42rem, 6.5vw, 1.86rem);
    line-height: 1;
  }

  .page-story-section--portfolio .page-chapter-intro {
    max-width: 100%;
    font-size: 0.9rem;
    line-height: 1.46;
  }

  .page-story-section--portfolio .page-points {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .page-story-section--portfolio .page-point--has-media,
  .page-story-section--portfolio .page-point--has-media:first-child,
  .page-story-section--portfolio .page-point--has-media:last-child {
    gap: 9px;
    border-radius: 18px;
  }

  .page-story-section--portfolio .page-point-media {
    aspect-ratio: 16 / 11;
  }

  .page-story-section--portfolio .page-point-meta {
    max-width: calc(100% - 28px);
    margin: 6px 14px 0;
    font-size: 0.66rem;
  }

  .page-story-section--portfolio .page-point-title {
    margin-inline: 14px;
    font-size: clamp(1.02rem, 4.7vw, 1.22rem);
    line-height: 1.1;
  }

  .page-story-section--portfolio .page-point-text,
  .page-story-section--portfolio .page-point-link {
    margin-inline: 14px;
    font-size: 0.87rem;
    line-height: 1.44;
  }

  .page-story-section--portfolio .page-point-tags {
    gap: 6px;
    margin: 1px 14px 14px;
  }

  .page-story-section--portfolio .page-point-tags span {
    font-size: 0.68rem;
  }

  .page-story-section--portfolio .page-point--large.page-point--has-video,
  .page-story-section--portfolio .page-point--large.page-point--has-video:first-child,
  .page-story-section--portfolio .page-point--large.page-point--has-video:last-child {
    gap: 9px;
    padding: 0;
    border-radius: 18px;
  }

  .page-story-section--portfolio .page-point--large.page-point--has-video .page-point-media {
    min-height: 0;
    aspect-ratio: 384 / 836;
    overflow: hidden;
    background: transparent;
    border-radius: 18px 18px 0 0;
  }

  .page-story-section--portfolio .page-point--large.page-point--has-video .page-point-title {
    color: rgba(35, 42, 52, 0.98);
    font-size: clamp(1.15rem, 5.6vw, 1.42rem);
    line-height: 1.05;
  }

  .page-story-section--portfolio .page-point--large.page-point--has-video .page-point-title-line {
    white-space: normal;
  }

  .page-story-section--portfolio .page-point--large.page-point--has-video .page-point-text,
  .page-story-section--portfolio .page-point--large.page-point--has-video .page-point-link {
    color: rgba(46, 51, 59, 0.7);
  }

  .page-story-section--portfolio .page-point--large.page-point--has-video .page-point-video-device--desktop {
    display: none;
    grid-column: 1;
    justify-self: center;
    left: auto;
    top: auto;
    width: 100%;
    border-radius: 14px;
  }

  .page-story-section--portfolio .page-point--large.page-point--has-video .page-point-video-device--mobile {
    display: block;
    grid-column: 1;
    position: static;
    width: 100%;
    height: 100%;
    max-width: none;
    padding: 0;
    border: 0;
    border-radius: inherit;
    background: transparent;
    box-shadow: none;
  }

  .page-story-section--portfolio .page-point--large.page-point--has-video .page-point-video-device--mobile::before,
  .page-story-section--portfolio .page-point--large.page-point--has-video .page-point-video-device--mobile::after {
    display: none;
  }

  .page-story-section--portfolio .page-point--large.page-point--has-video .page-point-video-device--mobile .page-point-video-screen {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    border-radius: inherit;
    box-shadow: none;
  }

  .page-story-section--portfolio .page-point--large.page-point--has-video .page-point-video-showcase {
    display: block;
    padding: 0;
  }
}
