.m04 {
  --m04-progress: 0%;
  isolation: isolate;
  scroll-margin-top: 70px;
  padding-block: clamp(72px, 9vw, 150px) clamp(69px, 8vw, 125px);
  padding-inline: clamp(26px, 6vw, 112px);
  background:
    radial-gradient(ellipse at 49% 8%, #59442e38, transparent 47%),
    radial-gradient(ellipse at 96% 63%, #33415539, transparent 55%),
    radial-gradient(ellipse at 1% 55%, #6241242e, transparent 48%),
    linear-gradient(180deg, #090a0c, #0d0f15 34%, #0d0f15 72%, #090a0c);
}
.m04::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 12% 0 0;
  pointer-events: none;
  opacity: .45;
  background: repeating-linear-gradient(0deg, #cbd9ee12 0 1px, transparent 1px 86px),
    repeating-linear-gradient(90deg, #cbd9ee12 0 1px, transparent 1px 86px);
  mask-image: radial-gradient(ellipse at 50% 44%, #000, transparent 76%);
}
.m04-inner { max-width: 1320px; margin-inline: auto; }
.m04-heading {
  --m04-opening: 1.8s;
  --m04-line-offset: .24s;
  --m04-phase: calc(var(--m04-opening) + var(--m04-line-offset));
  display: grid;
  justify-items: center;
  text-align: center;
  margin: 0 auto clamp(38px, 6.6vw, 100px);
}
.m04-slit {
  display: grid;
  place-items: center;
  width: min(248px, 64%);
  height: 1px;
  margin-bottom: clamp(22px, 3vw, 39px);
  background: linear-gradient(90deg, transparent, #cba56d8a 30%, #ffe7c0 50%, #b6c3d279 72%, transparent);
}
.m04-slit i {
  width: 29%;
  height: 2px;
  background: #ffdfad;
  box-shadow: 0 0 17px 2px #eab8759c;
}
.m04-heading h2 {
  font-size: clamp(33px, 6.55vw, 104px);
  line-height: .98;
  letter-spacing: -.062em;
}
.m04-title-line {
  display: block;
  --m04-iris-start: polygon(-16% -12%, -2% -12%, -14% 114%, -16% 114%);
  --m04-iris-end: polygon(-12% -12%, 128% -12%, 112% 114%, -12% 114%);
  --m04-entry-x: -.11em;
}
.m04-title-line:last-child {
  --m04-iris-start: polygon(112% -12%, 116% -12%, 116% 114%, 102% 114%);
  --m04-iris-end: polygon(-25% -12%, 116% -12%, 116% 114%, -10% 114%);
  --m04-entry-x: .11em;
}
.m04-title-line > span {
  display: block;
  padding: 0 .08em .09em;
}
.m04-heading p {
  color: #e0dbd4;
  margin-top: clamp(15px, 2vw, 24px);
  font-size: clamp(18px, 1.7vw, 25px);
  text-wrap: balance;
}
.m04[data-m04-entry] .m04-title-line {
  animation: m04-title-iris var(--m04-opening) cubic-bezier(.48,0,.16,1) backwards;
}
.m04[data-m04-entry] .m04-title-line:last-child { animation-delay: var(--m04-line-offset); }
.m04[data-m04-entry] .m04-heading p { animation: m04-lead-in .65s 1.02s var(--ease) both; }
.m04[data-m04-entry] .m04-slit i { animation: m04-ignite .92s var(--ease) both; }
.m04[data-m04-entry="waiting"] :is(.m04-title-line, .m04-heading p, .m04-slit i) { animation-play-state: paused; }
@keyframes m04-title-iris {
  from { clip-path: var(--m04-iris-start); transform: translateX(var(--m04-entry-x)) scale(.97); filter: blur(.055em); opacity: .4; }
  to { clip-path: var(--m04-iris-end); transform: none; filter: none; opacity: 1; }
}
@keyframes m04-lead-in {
  from { opacity: .15; transform: translateY(11px); }
  to { opacity: 1; transform: none; }
}
@keyframes m04-ignite {
  0% { opacity: .4; transform: scaleX(.12); }
  65% { opacity: 1; transform: scaleX(2.2); }
  100% { transform: none; }
}
.m04-rail {
  position: absolute;
  pointer-events: none;
  top: clamp(42px, 5.5vw, 85px);
  bottom: clamp(44px, 5vw, 86px);
  width: 1px;
  z-index: -1;
  color: var(--rail-color);
  background: linear-gradient(180deg, transparent, currentColor 16%, #b5b1b153 52%, currentColor 87%, transparent);
}
.m04-rail-gold { --rail-color: #dba860; left: max(12px, calc((100% - 1410px) / 2)); }
.m04-rail-silver { --rail-color: #a5b5ce; right: max(12px, calc((100% - 1410px) / 2)); }
.m04-rail::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: 0 0 13px 1px currentColor;
  opacity: .29;
  mask-image: linear-gradient(transparent, #000 16% 84%, transparent);
}
.m04-rail i {
  position: absolute;
  top: var(--m04-progress);
  left: 50%;
  width: 6px;
  height: 6px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff8ea;
  box-shadow: 0 0 5px 2px currentColor, 0 0 19px 4px currentColor;
}
.m04-rail i::after {
  content: "";
  position: absolute;
  inset: -11px 1px;
  background: linear-gradient(transparent, currentColor, transparent);
}
.m04-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(17px, 2.4vw, 35px);
}
.m04-panel {
  --m04-rise: -3px;
  --m04-phase: 0s;
  --m04-period: 8s;
  min-width: 0;
  position: relative;
  perspective: 1000px;
}
.m04-panel:nth-child(2) { --m04-rise: -5px; --m04-phase: -2.2s; --m04-period: 9s; }
.m04-panel:nth-child(3) { --m04-rise: -4px; --m04-phase: -4.6s; --m04-period: 10s; }
.m04-panel:nth-child(4) { --m04-rise: -6px; --m04-phase: -6.5s; --m04-period: 9.5s; }
.m04-panel:nth-child(5) { --m04-rise: -4px; --m04-phase: -9s; --m04-period: 11s; }
.m04-panel:nth-child(6) { --m04-rise: -5px; --m04-phase: -11s; --m04-period: 10.5s; }
.m04-panel:is([data-m04-hover], [data-m04-selected], :has(:focus-visible)) { z-index: 2; }
.m04-float, .m04-surface { height: 100%; }
.m04-float {
  animation: m04-drift var(--m04-period) var(--m04-phase) ease-in-out infinite paused;
  transform-style: preserve-3d;
}
.m04-panel[data-m04-visible] .m04-float { animation-play-state: running; }
.m04-panel:is([data-m04-hover], [data-m04-selected], :has(:focus-visible)) .m04-float { animation-play-state: paused; }
@keyframes m04-drift {
  0%, 100% { transform: translate3d(0, 1px, 0); }
  47% { transform: translate3d(0, var(--m04-rise), 7px); }
}
.m04-surface {
  display: flex;
  flex-direction: column;
  padding: clamp(12px, 1.35vw, 20px);
  position: relative;
  border: 1px solid #a7aab354;
  border-radius: 11px;
  background:
    linear-gradient(147deg, #d1e4ff12, transparent 32%),
    linear-gradient(328deg, #d8ac761b, transparent 40%),
    linear-gradient(153deg, #1e222b, #11141b 65%, #17191f);
  box-shadow: inset 0 1px 0 #e0e4f042, inset 0 0 0 3px #ffffff07, 0 14px 27px #0008;
  transform: translate3d(0, var(--m04-lift, 0px), var(--m04-depth, 0px))
    rotateX(var(--m04-rx, 0deg)) rotateY(var(--m04-ry, 0deg));
  transition: transform .45s var(--ease), border-color .34s ease, box-shadow .34s ease;
}
.m04-surface::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 9px;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at var(--m04-x, 50%) var(--m04-y, 40%), #f7cc8c32, #b0c4df0f 26%, transparent 66%);
  transition: opacity .36s ease;
}
.m04-panel:is([data-m04-hover], [data-m04-selected], :has(:focus-visible)) {
  --m04-lift: -4px;
  --m04-depth: 19px;
}
.m04-panel:is([data-m04-hover], [data-m04-selected], :has(:focus-visible)) .m04-surface {
  border-color: #d5b68eaf;
  box-shadow: inset 0 1px 0 #f8dfb880, inset 0 0 0 3px #ffffff0b, 0 20px 40px #000a, 0 0 24px #c996592b;
}
.m04-panel:is([data-m04-hover], [data-m04-selected], :has(:focus-visible)) .m04-surface::before { opacity: 1; }
.m04-copy { position: relative; flex: 1; padding: 3px clamp(2px, .6vw, 10px) clamp(19px, 2vw, 30px); }
.m04-channel {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}
.m04-channel i { width: 4px; height: 4px; background: #ffdcab; box-shadow: 0 0 8px #edbd86ac; }
.m04-channel b { flex: 1; height: 1px; background: linear-gradient(90deg, #e9ca9b75, #bfc9d921 67%, transparent); }
.m04 h3 {
  color: #f2efeb;
  font-size: clamp(21px, 2.13vw, 34px);
  line-height: 1.14;
  letter-spacing: -.043em;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}
.m04-copy p {
  color: #d3d2d1;
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.56;
  margin-top: 12px;
}
.m04-metal { color: var(--m04-metal-ink, #edc795); }
.m04-metal-silver {
  --m04-metal-ink: #dbe2eb;
  --m04-metal-sheen: #cbd4df 39%, #e5eef9 46%, #f3f8ff 49%, #fff 51%, #a7b8cb 54%, #cbd4df 61%;
}
@supports (background-clip: text) {
  .m04-metal {
    background: linear-gradient(106deg, var(--m04-metal-sheen, #dfb684 39%, #f7cf97 46%, #fff1cf 49%, #fff9e8 51%, #e8a95f 54%, #dfb684 61%));
    background-size: 300% 100%;
    background-position: 100% 50%;
    background-clip: text;
    color: transparent;
    animation: m04-gild 12.5s var(--m04-phase) linear infinite paused;
  }
  .m04 :is(.m04-heading, .m04-panel)[data-m04-visible] .m04-metal { animation-play-state: running; }
  @keyframes m04-gild {
    0%, 12% { background-position: 100% 50%; }
    49%, 100% { background-position: 0 50%; }
  }
}
.m04-shot {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  padding: 0;
  border: 1px solid #cbd3e260;
  border-radius: 5px;
  background: #0a0c10;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
}
.m04-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate3d(var(--m04-img-x, 0px), var(--m04-img-y, 0px), 0) scale(var(--m04-zoom, 1.035));
  transition: transform .52s var(--ease), filter .4s ease;
  pointer-events: none;
}
.m04-panel[data-m04-hover] .m04-shot { --m04-zoom: 1.09; }
.m04-panel[data-m04-selected] .m04-shot { --m04-zoom: 1.14; }
.m04-shot[aria-pressed="true"] img { filter: brightness(1.13); }
.m04-shot::after {
  position: absolute;
  content: "";
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(125deg, #fbd39f17, transparent 35%, transparent 67%, #b7cdec1b),
    linear-gradient(0deg, #0303066b, transparent 32%);
}
.m04-viewfinder {
  position: absolute;
  z-index: 2;
  inset: 9px;
  color: #f9dfb4;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(currentColor 0 0) left top / 14px 1px,
    linear-gradient(currentColor 0 0) left top / 1px 14px,
    linear-gradient(currentColor 0 0) right bottom / 14px 1px,
    linear-gradient(currentColor 0 0) right bottom / 1px 14px;
  background-repeat: no-repeat;
  transition: opacity .28s ease;
}
.m04-shot:is(:focus-visible,[aria-pressed="true"]) .m04-viewfinder { opacity: .86; }
.m04-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 999px) {
  .m04-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m04 h3 { font-size: clamp(23px, 3vw, 31px); }
}
@media (max-width: 659px) {
  .m04-grid { grid-template-columns: minmax(0, 1fr); gap: 23px; }
  .m04-heading h2 { font-size: clamp(33px, 7.8vw, 51px); }
  .m04-heading p { max-width: 29ch; }
  .m04-copy { padding: 4px 6px 21px; }
  .m04-panel { --m04-rise: -2px; }
  .m04-panel:is([data-m04-selected], :has(:focus-visible)) { --m04-lift: 0px; --m04-depth: 0px; }
}
.motion-off .m04 :is(.m04-float, .m04-metal, .m04-slit i, .m04-title-line, .m04-heading p),
.m04[data-m04-static] :is(.m04-float, .m04-metal, .m04-slit i, .m04-title-line, .m04-heading p) { animation: none; }
.motion-off .m04 :is(.m04-surface, .m04-shot img),
.m04[data-m04-static] :is(.m04-surface, .m04-shot img) { transform: none; transition: none; }
@media (prefers-reduced-motion: reduce) {
  .m04 :is(.m04-float, .m04-metal, .m04-slit i, .m04-title-line, .m04-heading p) { animation: none !important; }
  .m04 :is(.m04-surface, .m04-shot img) { transform: none; transition: none; }
}
@media (forced-colors: active) {
  .m04-metal { color: CanvasText; background: none; }
  .m04-rail, .m04-slit { display: none; }
  .m04-shot[aria-pressed="true"] { border: 2px solid Highlight; }
}
