/* A curved project gallery and a short, progressive opening sequence. */
.project-reel {
  --fan-card: clamp(250px, 26vw, 350px);
  position: relative;
  margin: 24px -5% 0;
  padding: 40px 0 62px;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(ellipse at 50% 5%, #d6ad7516, transparent 54%), radial-gradient(ellipse at 50% 48%, #36434015, transparent 72%), #0b0d0c;
  border-block: 1px solid #ffffff0e;
  box-shadow: inset 0 1px #ffffff03;
  animation: none;
}
.project-reel::before {
  content: "";
  position: absolute;
  inset: -20% 12% 12%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 44% 34% at 50% 36%, #e9c7a115, #ff783d07 48%, transparent 78%);
}
.project-reel::after {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  z-index: 120;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 58%, #0b0d0c05 74%, #0b0d0c55 92%, #0b0d0c 100%), linear-gradient(90deg, #0b0d0cf0, transparent 14%, transparent 86%, #0b0d0cf0);
}
.project-reel .reel-track {
  display: flex;
  gap: 22px;
  width: 100%;
  padding: 0 5% 20px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #82654e #11130f;
  scroll-snap-type: x mandatory;
  animation: none;
  transform: none;
  will-change: auto;
}
.project-reel .reel-card {
  display: block;
  flex: 0 0 var(--fan-card);
  width: var(--fan-card);
  overflow: visible;
  color: var(--ink);
  scroll-snap-align: center;
  -webkit-user-drag: none;
  -webkit-tap-highlight-color: transparent;
  outline-offset: 6px;
  border-radius: 18px;
}
.reel-card-frame {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgb(215 196 172 / calc(.14 + var(--card-focus, .5) * .22));
  background: #181a18;
  box-shadow: 0 24px 60px #0009, 0 0 28px rgb(248 117 56 / calc(.015 + var(--card-focus, .5) * .025)), inset 0 1px #ffffff12;
  transition: border-color .35s, box-shadow .35s;
}
.reel-art {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1.35;
  overflow: hidden;
  background: var(--art-mat, #e5e1da);
}
.reel-art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, #fff5df06, transparent 34%, #05080608 67%, #05080640 100%);
}
.project-reel .reel-card img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  background: transparent;
  border: 0;
  box-shadow: none;
  filter: none;
  user-select: none;
  -webkit-user-drag: none;
}
.project-reel .reel-card:has(img[src*="brand-identity-0"]) img { background: transparent; }
.reel-card .reel-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 73px;
  padding: 16px 18px;
  background: linear-gradient(125deg, #ffffff04, transparent), #151715;
  border-top: 1px solid #ffffff12;
}
.reel-caption small {
  display: block;
  color: #c6b9a9;
  font-size: 9px;
  line-height: 1.35;
  letter-spacing: 1.3px;
  margin-bottom: 7px;
}
.reel-caption strong {
  display: block;
  color: #eeeae2;
  font-size: 14px;
  line-height: 1.25;
  letter-spacing: -.15px;
  font-weight: 500;
}
.reel-caption b {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1px solid #ffffff22;
  border-radius: 50%;
  color: #c8bbae;
  font-size: 15px;
  font-weight: 400;
  transition: color .25s, border-color .25s, background .25s;
}
.reel-card:hover .reel-card-frame, .reel-card:focus-visible .reel-card-frame { border-color: #ff9b6d99; box-shadow: 0 28px 65px #000a, 0 0 28px #ff783d12; }
.reel-card:hover .reel-caption b, .reel-card:focus-visible .reel-caption b { color: #ffae83; border-color: #ff9b6d70; background: #ff783d0a; }
.project-reel .stage-caption {
  position: relative;
  inset: auto;
  z-index: 125;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 5% 0;
  color: #b7b2a6;
  font-size: 10px;
  letter-spacing: 1.7px;
}
.reel-position { color: #df9a73; font-variant-numeric: tabular-nums; letter-spacing: 2px; }
.project-reel.is-enhanced { padding: 26px 0 52px; overflow: hidden; }
.project-reel.is-enhanced .reel-track {
  position: relative;
  display: block;
  width: 100%;
  height: calc(var(--fan-card) + 82px);
  padding: 0;
  overflow: visible;
  perspective: 1200px;
  touch-action: pan-y;
  scroll-snap-type: none;
}
.project-reel.is-enhanced .reel-card {
  position: absolute;
  top: 24px;
  left: 50%;
  transform-origin: 50% 65%;
  will-change: transform, opacity;
  filter: brightness(var(--card-brightness, 1));
}
.project-reel.is-enhanced .stage-caption { padding-top: 6px; }
.project-reel.is-enhanced:focus-within { overflow: hidden; }
.project-reel.is-enhanced:focus-within .reel-track { animation: none; transform: none; }
.reel-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* The title masks leave room for italic overhangs and descenders. */
.hero h1 { animation: none; overflow: visible; }
.hero-line { display: block; overflow: hidden; padding: .09em .05em .24em; margin: -.09em -.05em -.24em; }
.hero-line-text { display: block; transform-origin: 0 100%; }
.hero > .eyebrow, .hero-bottom, .case h1 { animation: none; }

@media (prefers-reduced-motion: no-preference) {
  header > .logo, header > .nav-name { animation: opening-soft .8s .06s cubic-bezier(.16,1,.3,1) backwards; }
  header nav { animation: opening-soft .85s .16s cubic-bezier(.16,1,.3,1) backwards; }
  header::after { animation: light-line 1.1s .12s cubic-bezier(.16,1,.3,1) backwards; }
  .hero::before { animation: light-rise 2.2s .1s ease-out backwards; }
  .hero > .eyebrow { animation: opening-soft .9s .23s cubic-bezier(.16,1,.3,1) backwards; }
  .hero-line-text { animation: opening-line 1.15s .30s cubic-bezier(.16,1,.3,1) backwards; }
  .hero-line:nth-child(2) .hero-line-text { animation-delay: .47s; }
  .hero-bottom { animation: opening-soft 1.05s .70s cubic-bezier(.16,1,.3,1) backwards; }
  .reel-card-frame { animation: opening-card 1.1s var(--arrival-delay, 1s) cubic-bezier(.16,1,.3,1) backwards; }
  .project-reel .stage-caption { animation: opening-soft .9s 1.3s cubic-bezier(.16,1,.3,1) backwards; }
  .case-intro > .text-link, .case-meta { animation: opening-soft .8s .16s cubic-bezier(.16,1,.3,1) backwards; }
  .case h1 { animation: opening-soft 1s .28s cubic-bezier(.16,1,.3,1) backwards; }
  .case-lead { animation: opening-soft 1s .46s cubic-bezier(.16,1,.3,1) backwards; }
  .project-facts { animation: opening-soft 1s .62s cubic-bezier(.16,1,.3,1) backwards; }
  .reveal-pending { opacity: 0; transform: translateY(24px); }
  .reveal-enter { animation: section-arrive .95s var(--reveal-delay, 0s) cubic-bezier(.16,1,.3,1) backwards; }
  .reveal-pending:focus-within { opacity: 1; transform: none; }
}
@keyframes opening-line { from { opacity: 0; transform: translateY(110%) rotate(1deg); filter: blur(5px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes opening-soft { from { opacity: 0; transform: translateY(16px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes opening-card { from { opacity: 0; transform: translateY(44px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes section-arrive { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .project-reel { --fan-card: clamp(218px, 64vw, 300px); margin-top: 20px; padding: 24px 0 32px; scroll-snap-type: none; }
  .project-reel::after { display: block; background: linear-gradient(180deg, transparent 58%, #0b0d0c05 74%, #0b0d0c55 92%, #0b0d0c 100%), linear-gradient(90deg, #0b0d0c80, transparent 8%, transparent 92%, #0b0d0c80); }
  .project-reel.is-enhanced { padding: 16px 0 28px; }
  .project-reel.is-enhanced .reel-track { height: calc(var(--fan-card) + 65px); perspective: 900px; }
  .project-reel.is-enhanced .reel-card { top: 18px; }
  .project-reel .stage-caption { font-size: 9px; letter-spacing: 1.2px; gap: 12px; }
  .reel-caption strong { font-size: 12px; }
  .reel-caption small { font-size: 8px; letter-spacing: 1px; }
  .reel-card .reel-caption { padding: 13px 14px; min-height: 67px; }
  .reel-card-frame, .project-reel .reel-card { border-radius: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .project-reel { overflow: hidden; }
  .project-reel::after { display: none; }
  .hero-line { overflow: visible; }
  .hero-line-text, .reel-card-frame, .reveal-pending, .reveal-enter { animation: none !important; opacity: 1 !important; transform: none !important; filter: none !important; }
  .project-reel .reel-track { scroll-snap-type: x proximity; }
}
