/* ==========================================================================
   pages/interview.css — staff interview detail pages

   Mobile-first: the rules below describe the phone layout; the
   `@media (width >= 768px)` block at the end restores the desktop collage.
   --accent drives the per-interview colour; it is set on the page wrapper.
   ========================================================================== */

.p-iv {
  --accent: #e04cfe;
  --accent-2: #8f5cff;
  --accent-gradient: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
}

.p-iv-main {
  background-image: url("../../img/interview/main-bg.webp");
  background-size: 200% auto;
  background-position: left top;
  background-repeat: repeat;
  width: 100%;
  overflow: hidden;
}

@media (width >= 768px) {
  .p-iv-main {
    background-size: 100% auto;
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.p-iv-hero {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 390 / 900;
  padding: 47.179vw 4.615vw 0;
  color: var(--color-text-inverse);
  --u: 0.2564cqw;
}

/* Paint splashes and the colour panel sit behind the content. */
.p-iv-hero__deco {
  position: absolute;
  max-width: none;
  transform-origin: 0 0;
  pointer-events: none;
}

.p-iv-hero__splat {
  top: 0;
  left: 0;
  width: 178%;
  height: auto;
  z-index: 1;
  mix-blend-mode: multiply;
}

.p-iv-hero__graffiti {
  top: 127.5vw;
  left: 4%;
  width: 136.4%;
  height: auto;
  z-index: 0;
}
/* The splash is a window onto a larger splatter, exactly as the design masks
   it. The artwork keeps its own transparency, so nothing paints a white box. */
.p-iv-hero__splash {
  top: 31vw;
  left: 6%;
  width: 148%;
  z-index: 1;
  animation: pop-in 0.5s forwards;
}

/* The panel tints whatever shows through it, as in the design. */
.p-iv-hero__panel {
  top: 61.794vw;
  left: 5%;
  width: 103%;
  aspect-ratio: 645 / 510;
  background-color: #ff5cdc;
  mix-blend-mode: color;
  transform: rotate(10deg);
  z-index: 0;
}

.p-iv-hero__panel.green {
  background-color: #528500;
}

.p-iv-hero__panel.orange {
  background-color: #da6600;
}

.p-iv-hero__header {
  position: absolute;
  top: 110px;
  left: 4.615vw;
  z-index: 2;
}

.p-iv-hero__label {
  font-family: var(--font-display);
  font-size: 9.23vw;
  font-weight: var(--fw-bold);
  letter-spacing: -5%;
  line-height: 1.5;
}

.p-iv-hero__no {
  font-family: var(--font-display);
  font-size: 19.23vw;
  font-weight: var(--fw-bold);
  letter-spacing: -5%;
  line-height: 60%;
}

/* Each headline line is a white highlight bar behind coloured type. */
.p-iv-hero__headline {
  position: absolute;
  top: 128.544vw;
  left: 4.615vw;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2.308vw;
}

.p-iv-hero__headline span {
  display: table;
  padding-inline: 0.6rem;
  background-color: var(--color-white);
  color: var(--accent);
  font-size: 6.667vw;
  font-weight: var(--fw-semibold);
  line-height: 1.32;
  font-feature-settings: 'palt';
}

.p-iv-hero__profile {
  margin-top: 5.8vw;
}

.p-iv-hero__role {
  font-size: 4.103vw;
  font-weight: var(--fw-semibold);
  line-height: 1.0;
}

.p-iv-hero__name {
  display: flex;
  align-items: baseline;
  gap: 1.6rem;
  margin-top: 0.4rem;
  font-size: 9.231vw;
  font-weight: var(--fw-semibold);
  line-height: 1.44;
}

.p-iv-hero__name small {
  font-family: var(--font-display);
  font-size: 5.128vw;
  font-weight: var(--fw-bold);
  letter-spacing: 0;
}

.p-iv-hero__tags {
  margin-top: 0.8rem;
  font-size: 4.103vw;
  font-weight: var(--fw-semibold);
  line-height: 1.44;
}

/* Portrait cluster */

.p-iv-hero__figure {
  position: relative;
  aspect-ratio: 355 / 441;
  width: 100%;
  z-index: 2;
}

/* The cutout carries its own alpha. The wrapper clips it the way the design
   crops the fill, and the gradient mask reproduces the soft bottom fade. */
.p-iv-hero__portrait {
  width: 100%;
  height: auto;
  aspect-ratio: 355 / 425;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 95.4%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 95.4%, transparent 100%);
  position: absolute;
  bottom: 0;
}

.p-iv-hero__portrait img {
  display: block;
  width: 98%;
  height: 104.34%;
  object-fit: cover;
  object-position: top;
}

.p-iv-hero__portrait.portrait-2 img {
  width: 84%;
  margin-inline: auto;
}

.p-iv-hero__portrait.portrait-3 img {
  width: 77%;
  margin-inline: auto;
}

/* Snapshots are photos in a white keyline, tilted. Building the frame in CSS
   keeps the corners transparent — a baked-in export would square them off. */
.p-iv-hero__snap {
  position: absolute;
  box-sizing: content-box;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform-origin: 0 0;
}

.p-iv-hero__snap--1 {
  top: 15%;
  left: -7%;
  width: 45.972%;
  aspect-ratio: 272 / 204;
  transform: rotate(-9.28deg);
}

.p-iv-hero__snap--2 {
  top: 28%;
  left: 74%;
  width: 35.775%;
  aspect-ratio: 213 / 305;
  transform: rotate(12.93deg);
}

/* Speech-bubble badge linking to the day-in-the-life block. */
.p-iv-hero__badge {
  position: absolute;
  top: -2.5%;
  right: -2.8%;
  display: grid;
  place-items: center;
  width: 38%;
  aspect-ratio: 139.66 / 142.33;
  transform: rotate(15.7deg);
}

.p-iv-hero__badge img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.p-iv-hero__badge span {
  position: relative;
  color: var(--accent);
  font-size: 4.103vw;
  font-weight: var(--fw-semibold);
  line-height: 1.5;
  text-align: center;
}

.p-iv-hero__badge span::before {
  content: '';
  display: block;
  width: 3em;
  height: 1.5em;
  background-image: url(../../img/interview/eye-icon.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  position: absolute;
  top: -1.5em;
  left: 16%;
  transform: rotate(-10deg);
}


.p-iv-hero__next {
  padding-left: 10.256vw;
  position: relative;
  margin-top: 5.6vw;
}

.p-iv-hero__next span {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 5.128vw;
  font-weight: var(--fw-semibold);
  letter-spacing: 0;
  line-height: 120%;
  transform: rotate(-11.05deg);
  position: absolute;
  top: 12%;
  left: 23%;
}

.p-iv-hero__next img {
  width: 8.462vw;
  height: auto;
}

.p-iv-hero__caption {
  margin-top: 3.2rem;
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Body
   -------------------------------------------------------------------------- */

/* No clipping here: the portrait deliberately rides up over the hero. */
.p-iv-body {
  position: relative;
  color: var(--color-text);
}

.p-iv-body__headline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 5.128vw;
  font-weight: var(--fw-semibold);
  color: var(--color-white);
  padding-inline: 2rem;
  line-height: 1.32;
  text-align: center;
}

.p-iv-body__video {
  display: flex;
  padding-left: 2rem;
  padding-top: 3.4rem;
  gap: 0.4rem;
  position: relative;
  z-index: 1;
}

.p-iv-body__video-title {
  font-family: var(--font-display);
  font-size: 7.179vw;
  font-weight: var(--fw-semibold);
  letter-spacing: 0;
  line-height: 1.0;
  color: var(--color-white);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  padding-top: 0.6rem;
}

.p-iv-body__video-container {
  position: relative;
}

.p-iv-body__video-content {
  width: 76.153vw;
  height: auto;
  border-radius: 1.6rem;
  border: 6px solid var(--color-white);
}

.p-iv-body__video-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.p-iv-body__video-button:hover {
  transform: translate(-50%, -50%) scale(1.05);
  background-color: rgba(0, 0, 0, 0.8);
}

.p-iv-body__video-button.hidden {
  display: none;
}

.p-iv-body__video-button::after {
  content: '';
  display: block;
  margin-left: 4px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #fff;
}

.p-iv-body__panel {
  position: relative;
  padding-block: 196px 60px;
  padding-left: 30px;
  margin-top: -156px;
  margin-left: 20px;
  background-color: var(--color-white);
  border-radius: 2rem 0 0 2rem;
}

/* The standing portrait that rides up the left edge of the panel. */
.p-iv-body__figure {
  display: block;
  width: 100%;
  max-width: 32rem;
  aspect-ratio: 420.49 / 670;
  margin: 0 auto 4rem;
  border-radius: var(--radius-md);
  object-fit: cover;
}

/* Q&A */

.p-iv-qa + .p-iv-qa {
  margin-top: 4.8rem;
}

.p-iv-qa__label {
  display: block;
  padding-left: 1.1rem;
  background: var(--accent-gradient);
  color: var(--color-text-inverse);
  font-size: 1.6rem;
  font-weight: var(--fw-semibold);
  line-height: 3rem;
}

.p-iv-qa__title {
  margin-top: 1.7rem;
  font-size: 2rem;
  font-weight: var(--fw-bold);
  line-height: 1.5;
  padding-right: 2rem;
}

.p-iv-qa__text {
  margin-top: 1.1rem;
  font-size: 1.4rem;
  line-height: 3rem;
  padding-right: 2rem;
}

/* Day in the life */

.p-iv-day {
  margin-top: 4rem;
  margin-right: 1rem;
}

.p-iv-day__title {
  color: var(--accent);
  font-size: 2rem;
  font-weight: var(--fw-bold);
  line-height: 3rem;
}

.p-iv-day__list {
  position: relative;
  margin-top: 2rem;
  padding-left: 2.4rem;
}

.p-iv-day__list::before {
  content: "";
  position: absolute;
  top: 1.45rem;
  bottom: 1.45rem;
  left: 0.5rem;
  width: 1px;
  background-color: #d9d9d9;
  z-index: 0;
}

.p-iv-day__item {
  position: relative;
  display: flex;
  align-items: baseline;
  padding-bottom: 1.6rem;
}

.p-iv-day__item::before {
  content: "";
  position: absolute;
  top: 1.1rem;
  left: -2.25rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background-color: var(--accent);
  z-index: 2;
}

.p-iv-day__item:last-child::after {
  content: "";
  position: absolute;
  top: 1.45rem;
  bottom: 1.45rem;
  left: -2.25rem;
  width: 0.9rem;
  background-color: #fff;
  z-index: 1;
}

.p-iv-day__time {
  flex: 0 0 auto;
  width: 7rem;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: var(--fw-bold);
  line-height: 3rem;
}

.p-iv-day__text-container {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.p-iv-day__text {
  font-size: 14px;
  line-height: 30px;
}

.p-iv-day__text:has(+ .p-iv-day__tag) {
  margin-right: 0.8rem;
}

.p-iv-day__tag {
  padding-inline: 0.8rem;
  border-radius: 0.5rem;
  background: var(--accent-gradient);
  color: var(--color-text-inverse);
  font-size: 12px;
  font-weight: var(--fw-semibold);
  line-height: 22.5px;
  white-space: nowrap;
}

/* Two tilted snapshots closing the article, framed the same way as the hero
   pair so their corners stay transparent. */
.p-iv-photos {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  margin-top: 2.4rem;
  margin-right: 2rem;
  aspect-ratio: 330 / 214;
}

.p-iv-photos > span {
  width: 54%;
  max-width: 35.6rem;
  aspect-ratio: 278 / 208;
  border: 4px solid var(--color-white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.p-iv-photos__1 {
  rotate: -7.34deg;
  position: absolute;
  top: 0;
  left: 0;
}

.p-iv-photos__2 {
  rotate: 7.99deg;
  position: absolute;
  top: 44%;
  left: 44%;
}

.p-iv .p-interview {
  mask-image: linear-gradient(to top, #000 95.4%, transparent 100%);
}

/* --------------------------------------------------------------------------
   From tablet up
   -------------------------------------------------------------------------- */

@media (width >= 768px) {
  .p-iv-main {
    padding-top: calc(80px - 6.94vw);
  }
  /* The hero returns to its 1440x1026 collage. */
  .p-iv-hero {
    aspect-ratio: 1440 / 1026;
    padding: 0;
    max-width: 1440px;
    margin-inline: auto;
  }

  .p-iv-hero > * {
    position: absolute;
  }

  /* The backdrop tile is 1440x1026 in the design and repeats mirrored below,
     so it is placed by height rather than stretched over the whole hero. */
  .p-iv-hero__bg {
    inset: auto;
    top: 0;
    left: 0;
    width: 100%;
    max-width: none;
    height: 84.444%;
    object-fit: fill;
  }

  .p-iv-hero__bg--flip {
    display: block;
    top: 84.444%;
    scale: 1 -1;
  }

  .p-iv-hero__splat {
    width: 59.167vw;
    max-width: 852px;
  }

  .p-iv-hero__splash {
    top: 13%;
    left: 51%;
    width: 52%;
  }

  .p-iv-hero__graffiti {
    width: 53.402%;
    top: 44.444%;
    left: 48.667%;
  }

  .p-iv-hero__panel {
    top: 24.14%;
    left: 46.715%;
    width: 44.792%;
  }

  .p-iv-hero__header {
    top: 16.764%;
    left: 9.722%;
  }

  .p-iv-hero__label {
    font-size: clamp(26px, 3.472vw, 50px);
  }

  .p-iv-hero__no {
    font-size: clamp(53px, 6.944vw, 100px);
  }

  .p-iv-hero__headline {
    top: 36.452%;
    left: 9.722%;
    gap: clamp(9px, 1.18vw, 17px);
  }

  .p-iv-hero__headline span {
    font-size: clamp(26px, 3.472vw, 50px);
  }

  .p-iv-hero__profile {
    top: 63.255%;
    left: 9.722%;
    margin-top: 0;
  }

  .p-iv-hero__role {
    font-size: clamp(12px, 1.111vw, 16px);
  }

  .p-iv-hero__name {
    font-size: clamp(29px, 3.889vw, 36px);
    margin-top: 0;
  }

  .p-iv-hero__name small {
    font-size: 20px;
  }

  .p-iv-hero__tags {
    font-size: clamp(12px, 1.111vw, 16px);
    margin-top: 0.4rem;
  }

  .p-iv-hero__figure {
    inset: 0;
    margin-top: 0;
    aspect-ratio: auto;
  }

  /* Sized to the photo rectangle inside the design's mask, not the mask box. */
  .p-iv-hero__portrait {
    top: 23.749%;
    left: 47.417%;
    width: 39.195%;
  }

  .p-iv-hero__portrait.portrait-2 {
    top: 21.637%;
    aspect-ratio: 355 / 440;
  }
  .p-iv-hero__portrait.portrait-2 img {
    width: 92%;
  }

  .p-iv-hero__portrait.portrait-3 {
    top: 21.637%;
    left: 50%;
    aspect-ratio: 355 / 440;
  }

  .p-iv-hero__portrait.portrait-3 img {
    width: 84%;
  }

  .p-iv-hero__snap--1 {
    top: 22.5%;
    left: 45.347%;
    width: 18.889%;
  }

  .p-iv-hero__snap--2 {
    top: 56.7%;
    right: auto;
    bottom: auto;
    left: 83.474%;
    width: 14.792%;
  }

  .p-iv-hero__badge {
    top: 28%;
    right: auto;
    left: 75.403%;
    width: 12.653%;
  }

  .p-iv-hero__badge span {
    font-size: clamp(10px, 1.389vw, 20px);
  }

  /* Hand-lettered pointer down to the interview body. */
  .p-iv-hero__next {
    top: unset;
    bottom: 7.4%;
    left: 15.556%;
    padding-left: 0;
    margin-top: 0;
  }

  .p-iv-hero__next span {
    font-size: clamp(18px, 1.667vw, 24px);
    left: 120%;
  }

  .p-iv-hero__next img {
    width: 2.986vw;
    height: auto;
  }

  /* Body: white panel inset from the left, with the portrait overlapping it. */
  .p-iv-body {
    padding-bottom: 12rem;
    position: relative;
  }

  .p-iv-body__headline {
    font-size: 24px;
    padding-top: 8rem;
    position: absolute;
    top: 0;
    left: 350px;
  }

  .p-iv-body__video {
    padding-left: 4rem;
    position: sticky;
    top: var(--header-height);
    gap: 0;
  }

  .p-iv-body__video-title {
    font-size: 28px;
    line-height: 30px;
  }

  .p-iv-body__video-content {
    width: 280px;
  }

  .p-iv-body__panel {
    margin-top: 0;
    margin-left: 110px;
    padding: 6rem 4rem 0 4rem;
  }

  /* The left column is only reserved when there is actually a video to sit
     in it; without one the panel runs full width instead of leaving a gap. */
  .p-iv-body__video + .p-iv-body__panel {
    padding-left: 28rem;
    margin-top: -335px;
  }

  .p-iv-body__figure {
    position: absolute;
    top: -9.9rem;
    left: -8.55%;
    width: 34.466%;
    max-width: none;
    margin: 0;
  }

  .p-iv-qa + .p-iv-qa {
    margin-top: 5.5rem;
  }

  .p-iv-qa__title {
    font-size: var(--fs-xl);
  }

  .p-iv-day {
    margin-top: 8rem;
  }

  .p-iv-day__title {
    font-size: var(--fs-xl);
  }

  .p-iv-day__list {
    margin-top: 3rem;
    margin-left: 1rem;
  }

  .p-iv-day__item {
    padding-bottom: 2rem;
  }

  .p-iv-day__time {
    width: 8.6rem;
    font-size: var(--fs-xl);
  }

  .p-iv-day__text {
    font-size: var(--fs-sm);
  }

  .p-iv-day__tag {
    font-size: var(--fs-sm);
  }

  .p-iv-photos {
    margin-top: 4rem;
    margin-right: 0;
    aspect-ratio: 330 / 168;
  }
}

@media (width >= 1080px) {
  .p-iv-body__headline {
    left: 450px;
    padding-inline: 4.8rem;
  }

  .p-iv-body__video-content {
    width: 380px;
  }

  .p-iv-body__panel {
    margin-left: 140px;
    padding: 6rem 4rem 0 4rem;
  }

  .p-iv-body__video + .p-iv-body__panel {
    padding-left: 40rem;
    margin-top: -512px;
  }
}

@media (width >= 1280px) {
  .p-iv-main {
    padding-top: 0;
  }

  .p-iv-body {
    padding-bottom: 28.5rem;
    max-width: 1440px;
    margin-inline: auto;
  }

  .p-iv-body__headline {
    left: 490px;
    flex-direction: row;
    padding-top: 12rem;
  }

  .p-iv-body__video {
    padding-top: 7.2rem;
    padding-left: 8rem;
  }

  .p-iv-body__panel {
    padding: 6rem 8rem 0 8rem;
    margin-left: 180px;
  }

  .p-iv-body__video + .p-iv-body__panel {
    padding-left: 42rem;
    margin-top: -572px;
  }

  .p-iv-body__panel::after {
    content: "";
    display: block;
    width: calc((100vw - 1440px) / 2);
    background: #fff;
    height: 100%;
    position: absolute;
    top: 0;
    right: calc((100vw - 1440px) / -2);
}

  .p-iv-photos {
    aspect-ratio: 330 / 105;
  }
  .p-iv-photos > span {
    width: 44%;
  }
  .p-iv-photos__2 {
    top: 26%;
    left: 56%;
  }
}

@media (width >= 1440px) {
  .p-iv-hero__splat {
    left: calc((100vw - 1440px) / -2);
  }
}
