@font-face {
  font-family: PortfolioDisplay;
  src: url('/assets/display.woff') format('woff');
  font-display: swap;
}

/* The terrace film holds in place as the studio mark docks in the header. */
.hero {
  height: 145svh;
  min-height: 0;
}
.hero-stage {
  position: sticky;
  top: 0;
  height: 100svh;
}
#opening-film { object-position: 50% 47%; }
.hero-foot {
  justify-content: flex-end;
  pointer-events: none;
}
.hero-foot .scroll-link { pointer-events: auto; }
#scene-motion-toggle {
  position: absolute;
  z-index: 4;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: default;
}
#scene-motion-toggle:focus-visible {
  outline: 2px solid white;
  outline-offset: -8px;
}
#scene-motion-toggle:focus-visible::after {
  content: attr(aria-label);
  position: absolute;
  bottom: 2.5rem;
  left: var(--pad);
  padding: .6rem .9rem;
  background: #252720;
  color: white;
}

.films {
  background: var(--ink);
  padding: clamp(22px, 4.5vw, 84px) var(--pad);
}
.project-cinema {
  height: auto;
  min-height: 300px;
  aspect-ratio: 2.05;
  overflow: hidden;
}
.project-cinema > video { position: absolute; inset: 0; }
.cinema-bottom h3,
.feature-card .project-title {
  font-family: PortfolioDisplay, var(--sans);
  text-transform: uppercase;
  line-height: .95;
  letter-spacing: -.025em;
}
.cinema-bottom h3 { font-size: clamp(36px, 4.6vw, 76px); }
#films { scroll-margin-top: 0; }

/* The section's document height is the pinned stage plus the horizontal travel. */
.featured-showcase { overflow: clip; }
.feature-stage {
  padding: 30px 0;
  min-height: 0;
}
.scroll-driven .feature-stage {
  position: sticky;
  top: var(--header);
  height: calc(100svh - var(--header));
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: clamp(16px, 3vh, 38px) 0;
  overflow: clip;
}
.feature-stage .section-head { padding: 0 var(--pad); margin-bottom: clamp(16px, 2.7vh, 32px); }
.feature-stage h2 { font-size: clamp(42px, 5.1vw, 84px); }
.feature-track {
  position: relative;
  display: flex;
  flex-flow: row nowrap;
  align-items: stretch;
  flex-shrink: 0;
  width: max-content;
  max-width: none;
  gap: 4vw;
  padding: 0 var(--pad);
}
.scroll-driven .feature-track,
.scroll-driven .project-open { touch-action: pan-y pinch-zoom; }
.feature-card,
.feature-card:first-child {
  flex: none;
  width: 67vw;
  margin: 0;
}
.feature-card:first-child { width: 51vw; }
.feature-card .project-open { height: 100%; position: relative; }
.feature-card .project-image,
.feature-card:first-child .project-image {
  height: clamp(160px, calc(100svh - var(--header) - 196px), 800px);
  width: 100%;
  min-height: 0;
  aspect-ratio: auto;
}
.feature-card .project-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 46%, #10101133 65%, #101011c9);
  pointer-events: none;
}
.feature-card .project-label {
  position: absolute;
  bottom: clamp(18px, 3vh, 38px);
  left: clamp(18px, 2.6vw, 48px);
  right: 24px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: .6rem;
  margin: 0;
  color: white;
}
.feature-card .project-title { font-size: clamp(40px, 5.4vw, 88px); }
.feature-card .project-category {
  color: #eeeee9;
  text-transform: uppercase;
  letter-spacing: .09em;
  text-align: left;
  font-size: .8rem;
  max-width: none;
  margin: 0;
}
.feature-rule {
  display: block;
  margin: clamp(14px, 2.2vh, 28px) var(--pad) 0;
}
.feature-stage > .section-head .text-link { margin-bottom: 2px; }
.feature-card[data-id="lime-tree-a20"] .project-image img { object-position: 50% 55%; }

/* Reuse the portfolio's offset two-column composition and project-specific crops. */
.archive { background: var(--paper); }
.archive .project-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 3vw;
  row-gap: clamp(36px, 5vw, 80px);
  align-items: start;
}
.archive .project-card { grid-column: 1 / 7; }
.archive .project-card:nth-child(even of :not([hidden])) { grid-column: 8 / 13; margin-top: 12vw; }
.archive .project-card:nth-child(4n + 3 of :not([hidden])) { grid-column: 1 / 6; }
.archive .project-card:nth-child(4n + 4 of :not([hidden])) { grid-column: 7 / 13; }
.archive .project-image { aspect-ratio: 1.18; }
.archive .project-category { margin-top: 6px; }
.archive .project-title { font-family: var(--sans); font-size: clamp(16px, 1.45vw, 24px); }
.project-card[data-id="lime-tree-a17"] .project-image img { object-position: 43% 50%; transform: none; }
.project-card[data-id="lime-tree-a13"] .project-image img { object-position: right center; transform: none; }
.project-card[data-id="oberoi-resort"] .project-image img { object-position: center bottom; transform: none; }

@media (max-width: 900px) {
  .feature-track { gap: 5vw; }
  .feature-card, .feature-card:first-child { width: 78vw; }
  .feature-card .project-image, .feature-card:first-child .project-image { height: min(64svh, 80vw); }
  .project-cinema { aspect-ratio: 1.65; }
}
@media (max-width: 600px) {
  .hero { height: 115svh; }
  #opening-film { object-position: 39% 50%; }
  .films { padding: 32px var(--pad); }
  .project-cinema { min-height: 300px; aspect-ratio: 1.08; }
  .cinema-bottom h3 { font-size: clamp(30px, 8.3vw, 46px); }
  .feature-stage .section-head { margin-bottom: 18px; }
  .feature-track { gap: 16px; }
  .feature-card, .feature-card:first-child { width: calc(100vw - 2 * var(--pad) - 16px); }
  .feature-card .project-image, .feature-card:first-child .project-image { height: min(62svh, 113vw); }
  .feature-card .project-title { font-size: clamp(34px, 9.3vw, 55px); }
  .feature-card .project-category { font-size: .73rem; }
  .archive .project-grid { grid-template-columns: minmax(0, 1fr); row-gap: 34px; }
  .archive .project-grid > .project-card:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
}
@media (max-height: 500px) {
  .scroll-driven .feature-stage { padding: 8px 0; }
  .feature-stage .section-head { margin-bottom: 8px; }
  .feature-stage h2 { font-size: 31px; }
  .feature-card .project-image, .feature-card:first-child .project-image { height: max(110px, calc(100svh - var(--header) - 95px)); }
  .feature-card .project-title { font-size: clamp(26px, 4vw, 44px); }
  .feature-rule { margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero { height: 100svh; }
  .hero-stage { position: relative; }
  .feature-track {
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--pad);
  }
  .feature-card { scroll-snap-align: start; }
  .feature-rule { display: none; }
}
