.project-detail-body {
  background: #f2efe8;
  color: #17211d;
}

.project-story__hero {
  position: relative;
  min-height: 700px;
  overflow: hidden;
  background: #1f2925;
  color: #fff;
}

.project-story__transition {
  position: absolute;
  z-index: 2;
  inset-block-end: -1px;
  inset-inline: 0;
  width: 100%;
  height: clamp(64px, 7vw, 92px);
  pointer-events: none;
}

.project-story__transition path {
  fill: #f2efe8;
}

.project-story__art,
.project-story__art::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.project-story__art::before {
  content: "";
  background:
    radial-gradient(circle at 78% 16%, rgb(238 166 76 / 24%), transparent 24%),
    linear-gradient(125deg, transparent 46%, rgb(255 255 255 / 7%) 46.2%, transparent 46.5%);
}

.project-story__art span {
  position: absolute;
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: 50%;
}

.project-story__art span:first-child {
  width: 38vw;
  height: 38vw;
  inset: 12% -12% auto auto;
}

.project-story__art span:nth-child(2) {
  width: 20vw;
  height: 20vw;
  inset: auto auto -7% 9%;
}

.project-story__art i {
  position: absolute;
  width: 1px;
  height: 68%;
  inset: 22% 18% auto auto;
  background: linear-gradient(transparent, #efa64c, transparent);
  transform: rotate(38deg);
}

.project-story__head {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 700px;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 190px;
  padding-bottom: clamp(76px, 10vw, 132px);
}

.project-story__back {
  position: absolute;
  top: 156px;
  color: #e4ded2;
  font-size: .84rem;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.project-story__back:hover,
.project-story__back:focus-visible {
  color: #efa64c;
}

.project-story__meta {
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 0 0 24px;
  color: #efa64c;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.project-story__meta span + time::before {
  content: "·";
  margin-inline-end: 18px;
}

.project-story__head h1 {
  max-width: 1080px;
  min-width: 0;
  margin: 0;
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(4.5rem, 10.5vw, 10rem);
  font-weight: 400;
  line-height: .82;
  letter-spacing: -.055em;
}

[dir="rtl"] .project-story__head h1 {
  direction: ltr;
  text-align: right;
}

.project-story__summary {
  max-width: 760px;
  margin: 38px 0 0;
  color: #d9d7cf;
  font-size: clamp(1.12rem, 2vw, 1.55rem);
  line-height: 1.55;
}

.project-story__media {
  position: relative;
  z-index: 2;
  height: min(68vw, 860px);
  margin-top: clamp(-44px, -4vw, -24px);
  padding: 0;
  overflow: hidden;
  background: #d8d4cb;
  box-shadow: 0 28px 70px rgb(20 30 25 / 15%);
}

.project-story__media img,
.project-story__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-story__media--contain {
  padding: clamp(42px, 8vw, 110px);
  background: #fff;
}

.project-story__media--contain img {
  object-fit: contain;
}

/* Video already has a cinematic 16:9 frame. It should not inherit the large
   white mat used to keep unusually shaped cover artwork fully visible. */
.project-story__media--video {
  height: auto;
  aspect-ratio: 16 / 9;
  padding: 0;
  background: #111a17;
}

.project-story__media--video video {
  object-fit: cover;
}

.project-story__gallery {
  margin: clamp(40px, 6vw, 70px) 0;
}

.project-story__gallery img {
  display: block;
  width: 100%;
  max-height: 640px;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 22px 54px rgb(20 30 25 / 14%);
}

.project-story__gallery figcaption {
  margin-top: 14px;
  color: #72766f;
  font-size: .84rem;
  font-style: italic;
  line-height: 1.5;
}

.project-story__video-embed {
  margin: clamp(40px, 6vw, 70px) 0;
}

.project-story__video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  background: #14201c;
  box-shadow: 0 22px 54px rgb(20 30 25 / 14%);
}

.project-story__video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.project-story__video-embed figcaption {
  margin-top: 14px;
  color: #72766f;
  font-size: .84rem;
  font-style: italic;
  line-height: 1.5;
}

.project-story--intel-xr-dome .project-story__video-embed {
  --project-video-width: min(calc(100vw - 32px), 1040px);
  width: var(--project-video-width);
  max-width: none;
  margin-right: calc((100% - var(--project-video-width)) / 2);
  margin-left: calc((100% - var(--project-video-width)) / 2);
}

.project-story--intel-xr-dome .project-story__video-frame {
  border-radius: 12px;
  background:
    linear-gradient(rgb(13 20 17 / 18%), rgb(13 20 17 / 18%)),
    #0d1411 url("../images/projects/intel-xr-dome-glow.5f85506b8b22.jpg") center / cover no-repeat;
}

.project-story--intel-xr-dome .project-story__video-frame iframe {
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.project-story--intel-xr-dome .project-story__video-frame.is-loaded iframe {
  opacity: 1;
}

.project-story__video-play {
  position: absolute;
  z-index: 2;
  inset: 50% auto auto 50%;
  display: grid;
  width: clamp(68px, 8vw, 92px);
  aspect-ratio: 1;
  padding: 0;
  transform: translate(-50%, -50%);
  place-items: center;
  border: 1px solid rgb(255 255 255 / 65%);
  border-radius: 50%;
  background: #d39332;
  color: #17211d;
  cursor: pointer;
  box-shadow: 0 12px 32px rgb(0 0 0 / 28%);
  transition: transform 180ms ease, background-color 180ms ease;
}

.project-story__video-play:hover,
.project-story__video-play:focus-visible {
  transform: translate(-50%, -50%) scale(1.06);
  background: #e8a745;
}

.project-story__video-play svg {
  width: 32%;
  fill: currentColor;
}

.project-story__video-play[data-state="play"] svg {
  margin-inline-start: 5%;
}

.project-story__video-frame.is-loaded .project-story__video-play {
  inset: auto auto 18px 18px;
  width: clamp(50px, 5vw, 62px);
  transform: none;
  background: rgb(211 147 50 / 92%);
}

.project-story__video-frame.is-loaded .project-story__video-play:hover,
.project-story__video-frame.is-loaded .project-story__video-play:focus-visible {
  transform: scale(1.06);
}

.project-story__layout {
  max-width: 760px;
  margin-inline: auto;
  padding-top: clamp(48px, 6vw, 82px);
  padding-bottom: clamp(90px, 12vw, 170px);
}

.project-story__body {
  font-size: clamp(1.15rem, 1.7vw, 1.42rem);
  line-height: 1.78;
}

.project-story__body p {
  margin: 0 0 1.55em;
}

/* Production content may briefly retain the retired Intel lede while data
   migrations roll between instances. Never show it in the story layout. */
.project-story--intel-xr-dome .project-story__body > p:first-child {
  display: none;
}

.project-story__body > p:first-child:has(> em:only-child) {
  margin-bottom: clamp(56px, 8vw, 92px);
  padding-inline-start: clamp(20px, 3vw, 30px);
  border-inline-start: 3px solid #d39332;
  color: #4f5752;
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.48;
}

.project-story__body > p:first-child:has(> em:only-child) em {
  font-style: normal;
}

.project-story__body h2 {
  max-width: 720px;
  margin: clamp(46px, 6vw, 72px) 0 0.65em;
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(2.15rem, 5vw, 3.65rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.project-story__body > h2:first-child {
  margin-top: 0;
}

.project-story__body h2::before {
  content: none;
}

.project-story__body hr {
  display: none;
}

.project-story__body a {
  color: #8b5517;
  text-decoration-color: rgb(139 85 23 / 42%);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.project-story__body a:hover,
.project-story__body a:focus-visible {
  color: #5f390f;
  text-decoration-color: currentColor;
}

.project-story__next {
  padding: clamp(85px, 12vw, 160px) 0;
  background: #1f2925;
  color: #fff;
}

.project-story__next .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.project-story__next p {
  max-width: 750px;
  margin: 0;
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(2.8rem, 6vw, 6.5rem);
  line-height: .95;
  letter-spacing: -.045em;
}

.project-story__next .button {
  flex-shrink: 0;
  min-block-size: clamp(4.5rem, 8vw, 7.5rem);
  padding-inline: clamp(2.2rem, 5vw, 4rem);
  gap: 0.9rem;
  border-color: #d39332;
  background: #d39332;
  color: #151b1e;
  font-size: clamp(1.05rem, 1.8vw, 1.5rem);
  letter-spacing: 0.05em;
}

.project-story__next .button:hover {
  border-color: #e8a745;
  background: #e8a745;
  color: #151b1e;
}

@media (max-width: 820px) {
  .project-story__hero,
  .project-story__head {
    min-height: 620px;
  }

  .project-story__back {
    top: 130px;
  }

  .project-story__head h1 {
    font-size: clamp(3.25rem, 16vw, 6.5rem);
    line-height: .88;
  }

  .project-story__media {
    width: calc(100% - 32px);
    height: 72vw;
  }

  .project-story__media--video {
    height: auto;
  }

  .project-story__layout {
    padding-top: clamp(42px, 11vw, 64px);
  }

  .project-story__next .shell {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-story__art i { display: none; }
}
