/* Added project surrounds only. The original artwork remains in place. */
.project-opening {
  position: relative;
  z-index: 1;
  width: min(100%, 1920px);
  margin: 0 auto;
  padding: clamp(42px, 4vw, 64px) clamp(20px, 5vw, 72px) clamp(48px, 5vw, 72px);
  background: transparent;
  color: #0a0a0a;
  font-family: Inter, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  text-align: center;
  -webkit-font-smoothing: antialiased;
}
.project-opening__kicker {
  margin: 0;
  color: #b7b7b7;
  font-size: clamp(10px, .78vw, 12px);
  font-weight: 400;
  letter-spacing: .14em;
  line-height: 1.5;
  animation: project-opening-text .55s cubic-bezier(.16,1,.3,1) .05s both;
}
.project-opening__title {
  margin: clamp(32px, 3.2vw, 48px) 0 0;
  font-size: clamp(58px, 9vw, 160px);
  font-weight: 400;
  letter-spacing: .015em;
  line-height: 1.1;
  word-break: keep-all;
}
.project-opening__title-line {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-block: .04em;
  margin-block: -.04em;
}
.project-opening__char {
  display: inline-block;
  animation: project-opening-character .95s cubic-bezier(.075,.82,.165,1) calc(.16s + var(--char-index, 0) * .05s) both;
}
.project-opening__index {
  margin: 14px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4.8vw, 72px);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: 1.1;
  animation: project-opening-text .7s cubic-bezier(.16,1,.3,1) .34s both;
}
.project-opening__meta {
  display: flex;
  justify-content: space-between;
  width: min(100%, 1120px);
  max-width: none;
  gap: clamp(48px, 8vw, 120px);
  margin: clamp(64px, 6vw, 88px) auto 0;
  text-align: left;
  animation: project-opening-text .7s cubic-bezier(.16,1,.3,1) .58s both;
}
.project-opening__meta p { margin: 0; }
.project-opening__meta-label {
  display: block;
  color: #222;
  font-size: clamp(11px, .9vw, 14px);
  font-weight: 400;
  letter-spacing: .06em;
  line-height: 1.35;
}
.project-opening__meta-value {
  display: block;
  margin-top: 4px;
  color: #0a0a0a;
  font-size: clamp(13px, 1.12vw, 16px);
  font-weight: 400;
  line-height: 1.35;
}
.project-opening__meta p:last-child { text-align: right; }

/* Reveal the complete first composition where it already lives. This overlay
   does not move, scale, split or duplicate any part of the long artwork. */
.project-opening + .page-wrap { position: relative; --opening-hero-height: 3442; }
[aria-labelledby="project-opening-title-01"] + .page-wrap { --opening-hero-height: 3480; }
[aria-labelledby="project-opening-title-02"] + .page-wrap { --opening-hero-height: 3441.898438; }
[aria-labelledby="project-opening-title-03"] + .page-wrap { --opening-hero-height: 3164.328125; }
[aria-labelledby="project-opening-title-04"] + .page-wrap { --opening-hero-height: 3077.10942; }
[aria-labelledby="project-opening-title-05"] + .page-wrap { --opening-hero-height: 3108.158551; }
.project-opening + .page-wrap::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 1920 / var(--opening-hero-height);
  background: #fff;
  pointer-events: none;
  transform-origin: center bottom;
  animation: project-hero-reveal 1.05s cubic-bezier(.65,0,.2,1) .78s both;
}
.project-opening + .project-hero-waiting::after { animation-play-state: paused; }
.project-opening + .project-hero-shown::after { content: none; }
@keyframes project-opening-text {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes project-opening-character {
  from { opacity: 0; transform: translateY(112%); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes project-hero-reveal {
  from { transform: scaleY(1); }
  to { transform: scaleY(0); }
}

.next-project {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: min(100svh, 900px);
  padding: clamp(42px, 8vw, 112px) clamp(18px, 5vw, 72px) 32px;
  overflow: hidden;
  background: #fafafa;
  color: #0a0a0a;
  font-family: Inter, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.next-project__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: min(82svh, 760px);
  color: inherit;
  text-decoration: none;
}
.next-project__eyebrow {
  margin: 0;
  color: #8f8f8f;
  font-size: clamp(10px, .78vw, 12px);
  font-weight: 400;
  letter-spacing: .14em;
  line-height: 1.5;
  text-align: center;
}
.next-project__title {
  margin: clamp(54px, 8vw, 108px) 0 0;
  font-size: clamp(34px, 7.2vw, 96px);
  font-weight: 400;
  letter-spacing: .015em;
  line-height: 1.1;
  text-align: center;
  word-break: keep-all;
}
.next-project__index {
  margin-top: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4.6vw, 62px);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: 1.1;
}
.next-project__media {
  display: block;
  width: min(50vw, 720px);
  aspect-ratio: 5 / 3;
  margin-top: clamp(72px, 7.8vw, 112px);
  overflow: hidden;
  background: #f2f2f2;
}
.next-project__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: 0;
}
.next-project__link[href*="/outdoor-handheld-fan/"] .next-project__media img { object-position: 50% 40%; }
.next-project__link[href*="/personal-care-device/"] .next-project__media img { object-position: 50% 44%; }
.next-project__link[href*="/outdoor-portable-fan/"] .next-project__media img { object-position: 50% 95%; }
.next-project__link[href*="/smart-detector/"] .next-project__media img { object-position: 50% 95%; }
.next-project__link[href*="/large-blade-fan/"] .next-project__media img { object-position: 50% 23%; }
.next-project__link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 8px;
}
.next-project__link:hover .next-project__title {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .16em;
}
@media (max-width: 600px) {
  .project-opening { padding: 52px 16px 76px; }
  .project-opening__title { margin-top: 40px; font-size: clamp(46px, 13vw, 84px); }
  .project-opening__index { margin-top: 12px; font-size: clamp(32px, 9vw, 58px); }
  .project-opening__meta { width: 100%; gap: 48px; margin-top: 68px; }
  .next-project { min-height: 78svh; padding-inline: 16px; }
  .next-project__link { min-height: 70svh; }
  .next-project__title { margin-top: 48px; }
  .next-project__media { width: min(78vw, 420px); margin-top: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .project-opening__kicker,
  .project-opening__char,
  .project-opening__index,
  .project-opening__meta { animation: none; opacity: 1; transform: none; }
  .project-opening + .page-wrap::after { content: none; animation: none; }
  .next-project__media { clip-path: none !important; }
}

/* Project pages use the same two-part cursor as the homepage. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html.project-cursor-ready,
  html.project-cursor-ready * {
    cursor: none !important;
  }

  .project-cursor-dot,
  .project-cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    display: block;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    mix-blend-mode: difference;
    transform-origin: 50% 50%;
    will-change: transform, opacity;
    transition: opacity .14s ease;
  }

  .project-cursor-dot {
    width: 10px;
    height: 10px;
    background: #fff;
    z-index: 2147483647;
  }

  .project-cursor-ring {
    --project-ring-scale: 1;
    width: 22px;
    height: 22px;
    z-index: 2147483646;
  }

  .project-cursor-ring__outline {
    position: absolute;
    inset: 0;
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 50%;
    transform: scale(var(--project-ring-scale));
    transform-origin: 50% 50%;
    will-change: transform;
    transition: transform .6s cubic-bezier(.75, -1.27, .3, 2.33);
  }

  .project-cursor-dot.is-visible { opacity: 1; }
  .project-cursor-ring.is-visible { opacity: 1; }
  .project-cursor-ring.is-interactive { --project-ring-scale: 2; }
}
