@property --featured-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.featured-project {
  position: relative;
  isolation: isolate;
  padding: 2px;
  margin-top: 48px;
  margin-bottom: 52px;
  border-radius: 34px;
  background: #315b68;
  box-shadow: 0 22px 60px #123e471c;
}

.featured-project::before,
.featured-project::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: conic-gradient(from var(--featured-angle), #315b68, #64e5e9 12%, #dbf7ed 22%, #315b68 37%, #315b68 54%, #67b7c3 68%, #bceae4 77%, #315b68 92%);
  animation: featured-border 9s linear infinite;
}

.featured-project::before {
  filter: blur(20px);
  opacity: .36;
  z-index: -1;
}

.featured-project::after { z-index: 0; }

.featured-surface {
  position: relative;
  z-index: 1;
  padding: 34px;
  border-radius: 32px;
  background: radial-gradient(ellipse at 95% 0%, #1c4c552b, transparent 62%), #0d202a;
  color: #e6f3ef;
}

.featured-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 30px;
}

.featured-heading { max-width: 650px; min-width: 0; }
.featured-category { color: #8db8bf; font-size: 14px; letter-spacing: .1em; }
.featured-heading h3 { margin-top: 10px; font-family: var(--serif); font-size: clamp(48px, 5.2vw, 72px); font-weight: 300; line-height: 1; letter-spacing: -.035em; }
.featured-subtitle { margin-top: 8px; font-size: 19px; color: #d9ebe8; }
.featured-summary { max-width: 570px; margin-top: 12px; font-size: 16px; line-height: 1.8; color: #9cb9c0; }

.featured-watch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 12px 20px;
  border: 1px solid #9acacc80;
  border-radius: 100px;
  background: #d3faf408;
  color: #e6f3ef;
  font-size: 14px;
  white-space: nowrap;
  transition: background .25s, border-color .25s, box-shadow .25s;
}

.featured-watch:hover { border-color: #a7e6df; background: #8ee5df14; box-shadow: 0 0 24px #64e5e919; }
.featured-watch .icon { width: 12px; height: 12px; fill: currentColor; stroke-width: 0; }
.featured-duration { color: #8fbbc2; font-size: 13px; padding-left: 12px; border-left: 1px solid #8fbbc240; }

.featured-media {
  display: grid;
  grid-template-columns: .75fr 1.75fr;
  gap: 16px;
  width: 100%;
  padding: 0;
  border-radius: 20px;
  background: transparent;
  text-align: left;
}

.featured-stills { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; min-width: 0; }
.featured-process { display: flex; flex-direction: column; min-width: 0; width: 100%; padding: 0; overflow: hidden; border: 1px solid #83b2b830; border-radius: 14px; background: #142b35; text-align: left; transition: border-color .25s, box-shadow .25s; }
.featured-process:hover { border-color: #9edcdb; box-shadow: 0 0 22px #64e5e91a; }
.featured-process img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: contain; background: #202020; }
.featured-process-caption { display: block; padding: 9px 12px; color: #c4dedf; font-size: 14px; line-height: 1.5; }
.featured-preview { display: block; position: relative; overflow: hidden; min-width: 0; width: 100%; padding: 0; border-radius: 20px; background: #fbf3ee; }
.featured-preview > img { width: 100%; height: 100%; aspect-ratio: 16/9; object-fit: contain; transition: filter .4s; }
.featured-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 68px; height: 68px; display: grid; place-items: center; border: 1px solid #e0fffaad; border-radius: 50%; background: #0c293bd9; color: #dff8f2; box-shadow: 0 6px 28px #08253340; backdrop-filter: blur(10px); transition: background .3s, box-shadow .3s; }
.featured-play .icon { width: 22px; height: 22px; margin-left: 3px; fill: currentColor; stroke-width: 0; }
.featured-preview:hover .featured-play { background: #153f4ae8; box-shadow: 0 0 35px #64e5e94d; }
.featured-preview:hover > img { filter: brightness(.94); }
.featured-tools { list-style: none; display: flex; flex-wrap: wrap; gap: 9px; padding: 0; margin: 24px 0 0; }
.featured-tools li { border: 1px solid #83b2b83d; border-radius: 100px; padding: 6px 13px; color: #b9d2d5; font-size: 14px; line-height: 1.5; }
.dialog-copy .project-credit { color: #a9d6d7; font-size: 14px; }
.dialog-copy .project-tools-heading { margin-top: 22px; font-size: 16px; font-weight: 600; color: #d1e6e3; }
.project-tools-list { margin: 10px 0 0; padding-left: 20px; color: #9ebbc1; font-size: 16px; line-height: 1.85; }

.image-dialog {
  width: min(1560px, calc(100% - 32px));
  max-height: calc(100svh - 32px);
  padding: 0;
  overflow: auto;
  border: 1px solid #477b8980;
  border-radius: 14px;
  background: #10232d;
  color: #e6f3ef;
  box-shadow: 0 30px 120px #0008;
}

.image-dialog::backdrop { background: #030e18e6; backdrop-filter: blur(12px); }
.image-dialog-bar { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 16px; border-bottom: 1px solid #88c2c326; background: #10232d; }
.image-dialog-bar h2 { min-width: 0; font-size: 16px; font-weight: 500; line-height: 1.5; }
.image-dialog-close { display: inline-flex; align-items: center; justify-content: center; gap: 10px; flex-shrink: 0; min-width: 44px; min-height: 44px; padding: 10px 14px; border: 1px solid #8bbdc380; border-radius: 8px; background: #23444f; color: #f0fcf9; font-size: 14px; }
.image-dialog-close:hover { background: #32606d; border-color: #bceae4; }
.image-dialog-close .icon { width: 18px; height: 18px; }
.image-dialog > img { display: block; width: 100%; height: auto; max-height: calc(100svh - 120px); object-fit: contain; background: #0a151c; }

@keyframes featured-border { to { --featured-angle: 360deg; } }

@media (max-width: 800px) {
  .featured-project { margin-top: 36px; margin-bottom: 36px; border-radius: 26px; }
  .featured-surface { padding: 24px; border-radius: 24px; }
  .featured-header { gap: 24px; flex-direction: column; margin-bottom: 24px; }
  .featured-heading h3 { font-size: 56px; }
  .featured-watch { min-height: 46px; }
  .featured-media { display: flex; flex-direction: column; }
  .featured-stills { grid-template-columns: 1fr 1fr; grid-template-rows: none; gap: 12px; }
  .featured-preview { order: -1; border-radius: 14px; }
  .featured-tools { margin-top: 20px; }
}

@media (max-width: 480px) {
  .featured-surface { padding: 20px 16px; }
  .featured-category { font-size: 13px; letter-spacing: .05em; }
  .featured-subtitle { font-size: 17px; }
  .featured-stills { grid-template-columns: 1fr; }
  .featured-tools { gap: 8px; }
  .featured-tools li { padding: 6px 10px; }
  .featured-play { width: 48px; height: 48px; }
  .featured-play .icon { width: 16px; height: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .featured-project::before,
  .featured-project::after { animation: none; }
}
