@import "../udf/tokens/grid.css";

:root {
  --bg: var(--color-light-grey);
  --paper: var(--color-coloring-grey);
  --ink: var(--color-black);
  --muted: var(--color-dark-grey);
  --line: var(--color-animated-text);
  --pill: var(--color-elements-72);
  --radius: 18px;
  --pill-shadow: 0 -5px 15px rgba(0, 0, 0, 0.04), 0 12px 38px rgba(0, 0, 0, 0.04),
    0 5px 46px rgba(0, 0, 0, 0.04), 0 5px 15px rgba(0, 0, 0, 0.04);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

img[src*="/udf/quarks/icons/"],
img[src^="./udf/quarks/icons/"],
img[src^="../udf/quarks/icons/"] {
  width: auto;
  height: auto;
  max-width: none;
}

.interview-portrait img {
  width: 200px !important;
  max-width: 200px !important;
  height: 267px !important;
  max-height: 267px !important;
  object-fit: cover;
}

.section {
  width: var(--grid-content-width);
  margin: 0 auto;
}

.section--fixed {
  width: var(--grid-content-width-locked);
}

.section--wide {
  width: var(--grid-content-width-wide);
}

.hero-sphere {
  width: 100%;
  height: 100vh;
  min-height: 760px;
  background: var(--bg);
}

.sphere-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: var(--bg);
  pointer-events: none;

  opacity: 0;
  transition: opacity 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.sphere-frame.is-loaded {
  opacity: 1;
}

.hero-intro {
  position: relative;
  width: 100%;

  padding: 110px 0 250px;
  display: flex;
  justify-content: center;
  align-items: center;
  isolation: isolate;
  --hero-text-progress: 0;
}

.hero-copy {
  width: min(884px, calc(100% - 112px));
  margin: 0 auto;
  padding: 0;
  text-align: center;
}

.hero-intro h1,
.hero-intro p {
  font-weight: 400;

  line-height: 1.2;
  margin: 0;
}

.hero-layout {
  position: relative;
}

.hero-under {
  color: #e7e7e7;
}

.hero-over {
  position: absolute;
  inset: 0;
  pointer-events: none;

  color: transparent;
}

.hero-over .hero-word {
  color: rgb(
    calc(231 - 198 * var(--p, 0)),
    calc(231 - 198 * var(--p, 0)),
    calc(231 - 198 * var(--p, 0))
  );
}

.hero-break-mobile {
  display: none;
}

.hero-studios-mobile {
  display: none;
}

@media (min-width: 769px) {
  .hero-tie {
    white-space: normal;
  }
}

@media (max-width: 768px) {
  .hero-intro .hero-break {
    display: none;
  }

  .hero-intro .hero-break-mobile {
    display: block;
  }

  .hero-studios-desktop {
    display: none;
  }

  .hero-studios-mobile {
    display: inline;
  }

  .hero-intro h1,
  .hero-intro p {
    text-wrap: pretty;
  }

  .hero-tie {
    white-space: nowrap;
  }
}

.section h2 {
  font-weight: 400;
  line-height: var(--type-h2-lh);
}

.hero-intro h1,
.hero-intro p {

  font-size: 28px;
}

.hero-intro h1,
.section h2 {
  margin: 0;
}

.hero-intro p {
  margin: 20px 0 0;
}

.section h2 {
  font-size: var(--type-h2);
}

.hero-pill-slot,
.hero-pill {
  display: inline-block;
  width: 80px;
  height: 1px;
  margin: 0 12px;
  vertical-align: middle;
  position: relative;
  pointer-events: none;
}

.hero-pill-inner {
  position: absolute;
  left: 0;
  top: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(244, 244, 244, 0.4);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  box-shadow: var(--pill-shadow);
  overflow: hidden;
  isolation: isolate;

  transform: translate3d(var(--pill-x, 0px), -50%, 0)
    scale(calc(1 + 0.15 * var(--p, 0)));
  transform-origin: center center;
  will-change: transform, backdrop-filter;
}

.hero-pill-inner img {
  max-width: 96%;
  max-height: 96%;
  object-fit: contain;
}

.hero-pill-b .hero-pill-inner {
  --pill-x: 0px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.interviews {
  padding-bottom: 120px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  row-gap: 80px;
  column-gap: var(--grid-gutter);
}

.meta,
.issue-copy p,
.highlights p,
.gallery p,
.newsletter p,
.footer h4,
.footer a,
.footer span {
  font-size: var(--type-body-s);
  line-height: var(--type-body-s-lh);
}

.meta {
  color: var(--muted);
}

.issue {
  width: 100%;
  margin: 0;
  background: var(--paper);
  padding: 120px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.issue-gallery {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.issue-gallery img {
  width: 100%;
  aspect-ratio: 480 / 253.87;
  object-fit: cover;
}

.issue-copy {
  width: min(600px, calc(100% - 112px));
  margin: 0 auto;
  text-align: center;
}

.issue-copy .lead {
  color: var(--ink);
  font-size: var(--type-body-xl);
  line-height: var(--type-body-xl-lh);
  margin: 20px 0 8px;
}

.issue-copy p {
  color: var(--muted);
  margin: 0;
}

.issue-copy .a-button {
  margin-top: 40px;
}

.highlights {
  padding: 120px 0;
  text-align: center;
}

.highlights p,
.gallery p {
  margin: 14px 0 30px;
}

.highlights-stage {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--grid-gutter);
  align-items: end;
}

.highlights-stage .highlight-row {
  grid-column: 1 / -1;
  grid-row: 1;
}

.highlights-stage > .slider-arrow {
  grid-row: 2;
  margin: 0;
}

.highlights-stage > .slider-arrow.a-arrow-button--left {
  grid-column: 1 / span 1;
  justify-self: start;
}

.highlights-stage > .slider-arrow.a-arrow-button--right {
  grid-column: 12 / span 1;
  justify-self: end;
}

.slider-arrow {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: var(--color-outside-elements);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  margin: 0 auto;
}

.slider-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.slider-dot {
  width: 14px;
  height: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.slider-dot::before {
  content: "";
  width: 2px;
  height: 2px;
  background: url("../udf/quarks/slider-indicator/q-slider-indicator-default.svg") center / contain
    no-repeat;
}

.slider-dot:hover::before {
  background-image: url("../udf/quarks/slider-indicator/q-slider-indicator-hover.svg");
}

.slider-dot.is-active {
  width: 84px;
}

.slider-dot.is-active::before {
  width: 80px;
  height: 2px;
  background-image: url("../udf/quarks/slider-indicator/q-slider-indicator-active.svg");
}

.highlight-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--grid-gutter);
  align-items: flex-end;
}

.highlight-row .highlight:nth-child(1) {
  grid-column: 1 / span 4;
}

.highlight-row .highlight:nth-child(2) {
  grid-column: 5 / span 4;
}

.highlight-row .highlight:nth-child(3) {
  grid-column: 9 / span 4;
}

.highlight {
  min-height: 330px;
  background-size: cover;
  background-position: center;
  border-radius: 0;
  color: var(--color-white);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.highlight-row .highlight:nth-child(2) {
  min-height: 520px;
}

.highlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.04));
}

.highlight span,
.highlight strong {
  position: relative;
  z-index: 1;
  font-weight: 400;
}

.gallery {
  padding: 0 0 120px;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: var(--grid-gutter);
}

.gallery-strip img {
  aspect-ratio: 218 / 230;
  object-fit: cover;
  border-radius: 0;
}

.newsletter {
  background: var(--paper);
  border-radius: 0;
  margin-bottom: 32px;
  padding: 90px 24px;
  box-sizing: border-box;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.newsletter .m-mail-form {
  width: min(664px, 100%);
  max-width: 100%;
}

.newsletter h2 {
  width: min(664px, 100%);
  margin: 0;
  font-size: var(--type-h2);
  line-height: var(--type-h2-lh);
}

.newsletter > p {
  width: min(664px, 100%);
  margin: 0;
}

.newsletter .newsletter-subscribe {
  width: min(664px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.newsletter .newsletter-subscribe p {
  margin: 0;
  text-align: center;
  font-size: var(--type-body-s);
  line-height: var(--type-body-s-lh);
}

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

@media (max-width: 1599px) and (min-width: 1201px) {
  .issue-copy {
    width: min(440px, calc(100% - 112px));
  }
}

@media (max-width: 1200px) {
  .hero-intro {
    padding: 100px 0 210px;
  }

  .hero-copy {
    width: min(912px, calc(100% - 56px));
  }

  .hero-intro h1,
  .hero-intro p {
    font-size: 28px;
    line-height: 1.2;
  }

  .issue-copy {
    width: min(482px, calc(100% - 56px));
  }

  .cards-grid,
  .highlight-row,
  .gallery-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .highlights-stage {
    grid-template-columns: 1fr;
  }

  .slider-arrow {
    display: none;
  }

  .highlight-row .highlight:nth-child(1),
  .highlight-row .highlight:nth-child(2),
  .highlight-row .highlight:nth-child(3) {
    grid-column: auto;
  }

  .highlight-row .highlight:nth-child(2) {
    min-height: 360px;
  }
}

@media (max-width: 768px) {
  .hero-sphere {
    height: 670px;
    min-height: 670px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 0;
    overflow: hidden;
  }

  .sphere-frame {
    width: 100%;
    height: 100%;
    max-width: none;
    transform: translateY(37px);
  }

  .hero-intro {
    padding: 100px 25px 150px;
  }

  .hero-copy {
    width: min(712px, calc(100% - 56px));
  }

  .hero-intro h1,
  .hero-intro p {
    font-size: 28px;
    line-height: 1.2;
  }

  .hero-pill-slot,
  .hero-pill {
    width: 56px;
    margin: 0 8px;
  }

  .hero-pill-inner {
    width: 56px;
    height: 56px;
  }

  .issue-copy {
    width: min(474px, calc(100% - 56px));
  }
}

@media (max-width: 767px) {
  .section {
    width: var(--grid-content-width);
  }

  .cards-grid,
  .highlight-row,
  .gallery-strip,
  .issue-gallery {
    grid-template-columns: 1fr;
  }

  .cards-grid {
    row-gap: 32px;
  }

  .section.issue {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding: 120px 0;
    box-sizing: border-box;
  }

  .issue-gallery img:nth-child(n + 2) {
    display: none;
  }

  .issue-copy {
    width: min(474px, calc(100% - 48px));
    margin-inline: auto;
    padding-inline: 0;
    box-sizing: border-box;
  }

  .newsletter {
    width: var(--grid-content-width);
    min-height: 544px;
    margin: 0 auto 32px;
    padding: 100px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 40px;
    text-align: center;
  }

  .newsletter h2 {
    width: 100%;
    max-width: 100%;
    margin: 0;
    font-size: 32px;
    line-height: 1.2;
  }

  .newsletter > p {
    width: 100%;
    max-width: 100%;
    margin: 0;
    font-size: 14px;
    line-height: 1.3;
  }

}

@media (max-width: 420px) {
  .hero-intro {
    padding: 90px 0 140px;
  }

  .hero-copy {
    width: min(355px, calc(100% - 20px));
  }

  .hero-intro h1,
  .hero-intro p {
    font-size: 28px;
    line-height: 1.2;
  }

  .hero-pill-slot,
  .hero-pill {
    width: 48px;
    margin: 0 6px;
  }

  .hero-pill-inner {
    width: 48px;
    height: 48px;
  }

  .newsletter {
    padding-inline: 16px;
  }

  .newsletter h2 {
    width: 100%;
    font-size: 28px;
  }

  .newsletter > p {
    width: 100%;
  }

}
