/* ---------------------------------------------------------------------------
   Extras for the three read-more pages (/innovation/, /immersive/,
   /participatory/).

   The pages load the site's own /style.css first and use its components — the
   fullscreen hero, the wave edge, the lime .intro, .meet-us, the hamburger.
   Only what style.css doesn't carry lives here: the .cases list and .footer
   (both lifted verbatim from thirdeye/style.css, which is where they were
   written), the way back, and the page transition.
--------------------------------------------------------------------------- */

/* ---------- Two-column intro rows (from thirdeye/style.css) ---------- */
.title {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

/* style.css sizes the intro copy for the homepage, where it is one headline:
   32px, and 44px past 1000px wide. These pages carry running copy, so it steps
   down to something you can read a paragraph of. The ladder from here is
   intro 28 -> case title 44 -> case text 18. */
.intro .content .title {
  font-size: 22px;
  line-height: 1.45;
  font-weight: 500;
}

@media screen and (min-width: 801px) {
  .intro .content .title {
    font-size: 25px;
  }
}

@media screen and (min-width: 1001px) {
  .intro .content .text-wrapper .title {
    font-size: 28px;
    line-height: 1.45;
  }
}

.col1,
.col2 {
  width: 50%;
  box-sizing: border-box;
  padding: 23px;
}

@media screen and (max-width: 800px) {
  .col1,
  .col2 {
    width: 100%;
  }
}

.gifvide {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

/* style.css turns every link inside .intro into the homepage's big black CTA
   block. Inside running copy that reads as broken, so links in the intro prose
   stay inline. */
.intro .content .title a {
  background-color: transparent;
  color: #000;
  padding: 0;
  border-radius: 0;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.intro .content .title a:hover {
  background-color: transparent;
  color: #fff;
  text-decoration-color: #fff;
}

@media screen and (max-width: 600px) {
  /* style.css makes intro links full-width blocks on small screens; inside a
     sentence they have to stay part of the sentence. */
  .intro .content .title a {
    display: inline;
    width: auto;
    text-align: left;
  }
}

/* "E-mail" was breaking across lines at its own hyphen. */
.nowrap {
  white-space: nowrap;
}

/* A dash-led list inside the lime intro — "a few reasons people call us".
   Nothing on the site had this shape yet. */
.intro .content .title .reasons {
  list-style: none;
  margin: 18px 0 26px;
  padding: 0;
}

.intro .content .title .reasons li {
  position: relative;
  padding: 13px 0 13px 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
}

.intro .content .title .reasons li:last-child {
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.intro .content .title .reasons li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 13px;
}

/* ---------- Cases (from thirdeye/style.css) ---------- */
.cases {
  background-color: #000;
  padding: 80px 0;
}

.cases-headline {
  font-family: "Alegreya";
  font-weight: 700;
  font-size: 32px;
  color: #cafe03;
  margin-bottom: 20px;
}

.case {
  display: grid;
  gap: 30px;
  padding: 50px 0;
  border-top: 1px solid #1f1f1f;
}

.case:first-of-type {
  border-top: none;
  padding-top: 0;
}

@media screen and (min-width: 801px) {
  .case {
    grid-template-columns: 1.4fr 1fr;
    gap: 50px;
    align-items: center;
    padding: 70px 0;
  }
  .case:nth-of-type(even) .case__media {
    order: 2;
  }
}

.case__media {
  position: relative;
  background-color: #0a0a0a;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.case__media video,
.case__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* One case is a 90-second film rather than a loop, so it sits behind the same
   lime play button the Third Eye page uses. Scrim under it until it plays. */
.case__media--play video {
  cursor: pointer;
}

.case__media--play::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.case__media--play.is-playing::after {
  opacity: 0;
}

.case__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 104px;
  height: 104px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  opacity: 0.9;
  transition: opacity 0.3s ease;
  animation: playPulse 1.8s ease-in-out infinite;
}

.case__play svg {
  width: 100%;
  height: 100%;
  display: block;
}

.case__play:hover {
  opacity: 1;
  animation: none;
  transform: translate(-50%, -50%) scale(1.12);
}

.case__media--play.is-playing .case__play {
  opacity: 0;
  pointer-events: none;
  animation: none;
}

@keyframes playPulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.08);
  }
}

@media screen and (max-width: 600px) {
  .case__play {
    width: 78px;
    height: 78px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .case__play {
    animation: none;
  }
}

.case__media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border: 1px dashed #cafe0355;
}

.case__media--placeholder span {
  font-family: "Alegreya";
  font-weight: 700;
  font-size: 140px;
  color: #cafe0355;
  line-height: 1;
}

.case__body {
  color: #f4ffd8;
}

.case__meta {
  display: flex;
  gap: 14px;
  align-items: center;
  font-family: "Alegreya";
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cafe03;
  margin-bottom: 14px;
}

.case__meta .case__year::before {
  content: "·";
  margin-right: 14px;
  color: #cafe0388;
}

.case__title {
  font-family: "Alegreya";
  font-weight: 700;
  font-size: 36px;
  color: #fff;
  line-height: 1.1;
  margin: 0 0 18px;
}

@media screen and (min-width: 801px) {
  .case__title {
    font-size: 44px;
  }
}

.case__text {
  font-family: "Alegreya";
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  color: #e8ffba;
  margin: 0 0 22px;
}

.case__text a {
  color: #cafe03;
}

.case__tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.case__tags li {
  font-family: "Alegreya";
  font-weight: 500;
  font-size: 14px;
  color: #cafe03;
  border: 1px solid #cafe0355;
  padding: 4px 12px;
}

/* ---------- Footer (from thirdeye/style.css) ---------- */
.footer {
  background-color: #000;
  padding: 50px 0;
  position: relative;
}

.footer p {
  text-align: center;
  color: #f4ffd8;
  font-size: 22px;
}

.footer p a {
  color: #f4ffd8;
}

/* The way back, under the sign-off. The only link down here on purpose —
   everything else lives in the hamburger. */
.footer-things {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid #1f1f1f;
  text-align: center;
}

.footer-things__back {
  display: inline-block;
  border: 1px solid #cafe0355;
  border-radius: 100px;
  padding: 9px 20px;
  font-family: "Alegreya";
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  color: #f4ffd8;
  text-decoration: none;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.footer-things__back:hover {
  border-color: #cafe03;
  color: #cafe03;
}

/* ---------- The way back ----------
   Fixed top-left, mirroring the hamburger on the right, and it names where it
   goes. The hash re-opens this offering in the homepage diagram. */
.backbar {
  position: fixed;
  top: 18px;
  left: 20px;
  z-index: 1001;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 10px;
  border: 1px solid #cafe0355;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-decoration: none;
  color: #f4ffd8;
  font-family: "Alegreya";
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.backbar:hover {
  border-color: #cafe03;
  background: rgba(0, 0, 0, 0.9);
  transform: translateX(-3px);
}

.backbar__mark {
  width: 26px;
  height: 26px;
  display: block;
  transition: transform 0.4s ease;
}

.backbar:hover .backbar__mark {
  transform: rotate(-25deg);
}

.backbar__arrow {
  color: #cafe03;
  font-size: 18px;
  line-height: 1;
  transform: translateY(-1px);
}

/* Line the hamburger up with the pill. */
.hamburger-menu {
  top: 26px !important;
}

@media screen and (max-width: 600px) {
  .backbar {
    padding: 7px 14px 7px 8px;
    font-size: 15px;
  }
  .backbar__label {
    display: none;
  }
}

/* The hero on these pages has no video progress bar to leave room for, so the
   title sits closer to the wave than it does on the homepage. */
@media screen and (min-width: 601px) {
  .fullscreen-bg .content {
    bottom: 140px;
  }
}

/* Soft blob behind the hero copy, same as thirdeye — these heroes run bright
   videos and the white type needs something to sit on. */
.fullscreen-bg .content::before {
  content: "";
  position: absolute;
  top: -40px;
  left: -40px;
  width: calc(100% + 80px);
  height: calc(100% + 80px);
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
  z-index: -1;
  filter: blur(25px);
  transform: scale(0.95);
}

/* ---------- Page transition ----------
   The lime title in the homepage modal and the <h2> here share a
   view-transition-name, so on browsers with cross-document view transitions
   the word travels between the two documents. */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: vtFadeOut 0.28s ease both;
}

::view-transition-new(root) {
  animation: vtFadeIn 0.42s ease both;
}

@keyframes vtFadeOut {
  to {
    opacity: 0;
  }
}

@keyframes vtFadeIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* Fallback for browsers without cross-document view transitions. */
html.no-vt body {
  animation: pageIn 0.45s ease both;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

html.no-vt body.is-leaving {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

@media (prefers-reduced-motion: reduce) {
  html.no-vt body {
    animation: none;
  }
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation-duration: 0.001ms !important;
  }
}
