.portfolio-reels {
  width: 89%;
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(44px, 6vw, 90px) 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: 110px;
}
.reel-heading, .reel-footer {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
}
.reel-heading h2 {
  margin: 12px 0 14px;
  font-size: clamp(34px, 5.6vw, 76px);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -.045em;
}
.reel-heading h2 em { color: var(--accent); font-family: Georgia, serif; }
.reel-heading p:last-child { margin: 0; color: var(--muted); line-height: 1.5; }
.reel-tools, .reel-controls { display: flex; align-items: center; gap: 8px; }
.reel-tools { flex: none; gap: 12px; }
.reel-controls[hidden] { display: none; }
.reel-controls button, .reel-dialog-heading button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #f3b69f50;
  border-radius: 50%;
  background: #32202a;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.reel-controls button:disabled { opacity: .38; cursor: default; }
.reel-controls svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.reel-track {
  display: flex;
  gap: clamp(12px, 1.6vw, 24px);
  overflow-x: auto;
  margin: 24px 0 0;
  padding: 0 0 10px;
  list-style: none;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #a47073 #2e1b24;
}
.reel-card {
  flex: 0 0 23%;
  min-width: 0;
  scroll-snap-align: start;
}
.reel-film {
  position: relative;
  display: block;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid #f3b69f55;
  border-radius: clamp(16px, 2vw, 28px);
  background: #382332;
  color: #fff2ed;
}
.reel-film::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, #140b1030, transparent 29%, transparent 49%, #150b10cf 78%, #150b10fa);
  pointer-events: none;
}
.reel-film :is(img, .reel-preview) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reel-preview { opacity: 0; pointer-events: none; }
.reel-film.is-previewing .reel-preview { opacity: 1; }
.reel-play, .reel-copy { position: absolute; z-index: 2; }
.reel-play {
  display: grid;
  place-items: center;
  inset: 12px 12px auto auto;
  width: 44px;
  height: 44px;
  border: 1px solid #fff5ef70;
  border-radius: 50%;
  background: #201118a6;
  color: #fff5ef;
}
.reel-play svg { margin-inline-start: 2px; }
.reel-copy {
  display: grid;
  gap: 6px;
  inset: auto 0 0;
  padding: clamp(13px, 1.6vw, 23px);
}
.reel-brand { color: #ffc5af; font-size: .65rem; font-weight: 700; letter-spacing: .105em; text-transform: uppercase; }
.reel-copy strong { font-size: clamp(1.08rem, 1.75vw, 1.55rem); line-height: 1.12; letter-spacing: -.02em; }
.reel-action { font-size: .76rem; color: #f4e2dd; }
.reel-footer { margin-top: 12px; align-items: center; }
.reel-preview-toggle {
  min-height: 44px;
  padding: 0 3px;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: .82rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.reel-preview-toggle:focus-visible { outline: 2px solid var(--accent); }
.reel-footer .creative-cta { margin: 0; }
.reel-film:focus-visible, .reel-controls button:focus-visible, .reel-dialog-heading button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}
.reel-film.is-previewing .reel-play, .reel-film:focus-visible .reel-play {
  background: var(--accent);
  border-color: var(--accent);
  color: #2e1720;
}
.reel-dialog {
  width: min(94vw, 520px);
  max-height: 94dvh;
  padding: 12px;
  border: 1px solid #f3b69f60;
  border-radius: 18px;
  background: #25151e;
  color: var(--text);
}
.reel-dialog::backdrop { background: #12090deb; }
.reel-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 0 10px; }
.reel-dialog-heading h3 { margin: 0 0 0 5px; font-size: clamp(1rem, 3vw, 1.3rem); }
.reel-dialog-heading button { font-size: 1.5rem; }
.reel-dialog > video { display: block; width: 100%; max-height: calc(94dvh - 125px); background: #12090e; border-radius: 10px; }
.reel-loading {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 8px 13px;
  border-radius: 16px;
  background: #201118eb;
  color: var(--text);
  pointer-events: none;
}
.reel-original {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-inline-start: 5px;
  color: var(--accent);
  font-size: .82rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.reel-original[hidden] { display: none; }
.reel-error { margin: 10px 5px 0; color: #ffc5af; }
@media (hover: hover) and (pointer: fine) {
  .reel-film:hover .reel-play, .reel-controls button:hover:not(:disabled) { background: var(--accent); color: #2e1720; }
}
@media (max-width: 1000px) { .reel-card { flex-basis: 29%; } }
@media (max-width: 740px) { .reel-card { flex-basis: 43%; } }
@media (max-width: 520px) {
  .reel-heading { align-items: start; flex-wrap: wrap; }
  .reel-card { flex-basis: clamp(143px, 54%, 190px); }
  .reel-play { inset: 8px 8px auto auto; }
  .reel-copy { gap: 4px; padding: 10px; }
  .reel-brand { font-size: .57rem; }
  .reel-copy strong { font-size: .94rem; }
  .reel-action { font-size: .68rem; }
  .reel-track { margin-top: 14px; }
  .reel-footer { align-items: start; flex-direction: column; gap: 8px; }
}
