/* shared/cinematic.css
   Reusable cinematic patterns extracted from the RT / Rules of the Air upgrades.
   Imported by every "polished" page on the site. All animations honor
   prefers-reduced-motion; parallax disabled at <= 760px. */

:root {
  --ease-cine: cubic-bezier(0.16, 1, 0.3, 1);
  /* Self-sufficient fallback so the shared foundation never depends on the host
     page defining --gold. Host pages that set their own --gold still win (same
     specificity, later source order on the page-level :root, or identical value). */
  --gold: #c9a961;
}

/* ==========================================================================
   SCROLL-PROGRESS BAR
   ========================================================================== */
.cine-progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: var(--gold);
  z-index: 100;
  pointer-events: none;
  box-shadow: 0 0 8px rgba(201,169,97,0.5);
  transition: width 80ms linear;
}

/* ==========================================================================
   PARALLAX HERO
   ========================================================================== */
.cine-hero {
  position: relative; overflow: hidden;
  height: clamp(560px, 88vh, 920px);
  border-bottom: 1px solid var(--hair);
}
.cine-hero__bg {
  position: absolute; inset: -10% 0 -10% 0;
  background-size: cover; background-position: center;
  filter: saturate(0.95) contrast(1.05);
  will-change: transform;
}
.cine-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.10) 40%, rgba(0,0,0,0.55) 78%, rgba(0,0,0,0.95) 100%);
}
.cine-hero__inner {
  position: absolute; inset: 0;
  max-width: var(--max, 1760px); margin: 0 auto;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 32px 72px 32px;
}
.cine-hero__badge { opacity: 1; transform: none; animation: cine-fade-up 1000ms var(--ease-cine) 400ms backwards; }
.cine-hero__title { opacity: 1; transform: none; animation: cine-fade-up 1000ms var(--ease-cine)   0ms backwards; }
.cine-hero__sub   { opacity: 1; transform: none; animation: cine-fade-up 1000ms var(--ease-cine) 200ms backwards; }
@keyframes cine-fade-up { from { opacity: 0; transform: translateY(28px); } }
.cine-hero__badge {
  align-self: flex-start;
  padding: 6px 10px;
  border: 1px solid var(--gold); color: var(--gold);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  margin-bottom: 22px;
}
.cine-hero__title {
  margin: 0;
  font-family: "Inter Tight", sans-serif; font-weight: 600;
  font-size: clamp(44px, 7.5vw, 140px);
  letter-spacing: -0.045em; line-height: 0.9;
  text-transform: uppercase; max-width: 22ch;
}
.cine-hero__sub {
  margin-top: 24px; max-width: 720px;
  color: rgba(255,255,255,0.82);
  font-size: clamp(16px, 1.45vw, 22px);
  line-height: 1.45; font-weight: 300; letter-spacing: -0.005em;
}
@media (max-width: 760px) {
  .cine-hero { height: 70vh; min-height: 520px; }
  .cine-hero__inner { padding: 0 22px 48px 22px; }
}

/* ==========================================================================
   STAT STRIP
   ========================================================================== */
.cine-stats {
  border-bottom: 1px solid var(--hair);
  padding: 56px 0;
  background: linear-gradient(180deg, rgba(201,169,97,0.025), transparent 70%);
}
.cine-stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: var(--max, 1760px); margin: 0 auto;
  padding: 0 32px;
}
.cine-stat { text-align: center; padding: 8px 16px; position: relative; }
.cine-stat + .cine-stat::before {
  content: ""; position: absolute;
  left: 0; top: 25%; bottom: 25%;
  width: 1px; background: var(--hair);
}
.cine-stat__value {
  font-family: "Inter Tight", sans-serif; font-weight: 500;
  font-size: clamp(36px, 5vw, 72px);
  letter-spacing: -0.045em; line-height: 1; color: var(--gold);
}
.cine-stat__label {
  margin-top: 14px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); line-height: 1.5;
}
.cine-stat__sub {
  margin-top: 4px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted-2);
}
@media (max-width: 760px) {
  .cine-stats { padding: 40px 0; }
  .cine-stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 32px; padding: 0 16px; }
  .cine-stat + .cine-stat::before { display: none; }
  .cine-stat:nth-child(odd) { border-right: 1px solid var(--hair); }
}

/* ==========================================================================
   SECTION DIVIDER (full-bleed parallax)
   ========================================================================== */
.cine-divider {
  position: relative; height: 40vh;
  min-height: 320px; max-height: 520px;
  overflow: hidden; background: #0a0908;
}
.cine-divider__bg {
  position: absolute; inset: -15% 0 -15% 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  filter: saturate(0.9) contrast(1.04) brightness(1.10);
  will-change: transform;
}
.cine-divider__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.65) 100%);
}
.cine-divider__caption {
  position: absolute; bottom: 28px; left: 0; right: 0;
  text-align: center;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold); opacity: 0.7;
}
@media (max-width: 760px) {
  .cine-divider { height: 32vh; min-height: 240px; }
  .cine-divider__bg { inset: 0; transform: none !important; }
}

/* ==========================================================================
   ICON-CARD GRID (replaces bulleted lists)
   ========================================================================== */
.cine-cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin: 0 auto 28px auto; max-width: 1200px; padding: 0 32px;
}
.cine-cards--3 { grid-template-columns: repeat(3, 1fr); }
.cine-cards--2 { grid-template-columns: repeat(2, 1fr); }
.cine-card {
  position: relative;
  padding: 22px 18px 20px 18px;
  border: 1px solid var(--hair);
  background: rgba(255,255,255,0.015);
  transition: border-color 320ms var(--ease-cine), transform 480ms var(--ease-cine), background 320ms var(--ease-cine);
  opacity: 0; transform: translateY(20px);
  min-height: 170px;
  display: flex; flex-direction: column; gap: 14px;
}
.cine-card.is-in { opacity: 1; transform: none; }
.cine-card:hover {
  border-color: var(--gold); background: rgba(201,169,97,0.04);
  transform: translateY(-2px) scale(1.015);
}
a.cine-card { color: inherit; text-decoration: none; }
.cine-card__icon {
  width: 38px; height: 38px;
  stroke: var(--gold); stroke-width: 1.4; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
  flex: 0 0 auto;
}
.cine-card__title {
  font-family: "Inter Tight", sans-serif; font-weight: 500;
  font-size: 17px; letter-spacing: -0.01em; color: #fff;
  line-height: 1.2;
}
.cine-card__body {
  font-size: 14px; line-height: 1.5;
  font-weight: 300; color: rgba(255,255,255,0.78);
}
.cine-card__body strong { color: #fff; font-weight: 500; }
@media (max-width: 960px) { .cine-cards { grid-template-columns: repeat(2, 1fr); padding: 0 20px; } }
@media (max-width: 480px) { .cine-cards { grid-template-columns: 1fr; } .cine-card { min-height: 0; } }

/* ==========================================================================
   PULL-QUOTE CALLOUT
   ========================================================================== */
.cine-quote {
  display: block;
  max-width: 920px; margin: 56px auto;
  padding: 28px 36px;
  border-left: 8px solid var(--gold);
  background: rgba(201,169,97,0.04);
  font-family: "Instrument Serif", serif;
  font-style: italic; font-weight: 400;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.4; color: #fff;
  letter-spacing: -0.01em;
}
.cine-quote strong {
  font-family: "Inter Tight", sans-serif;
  font-style: normal; font-weight: 600;
  color: var(--gold);
}

/* ==========================================================================
   DROP-CAP — opt-in via .cine-prose class on the article element
   ========================================================================== */
.cine-prose h2 {
  margin-top: 4em;
  font-size: clamp(32px, 3.4vw, 46px);
  font-weight: 600; letter-spacing: -0.035em;
}
.cine-prose h2:first-child { margin-top: 0; }
.cine-prose h2 + p::first-letter {
  font-family: "Instrument Serif", serif;
  color: var(--gold); float: left;
  font-size: 4.2em; line-height: 0.88;
  padding: 0.08em 0.14em 0 0;
  margin-bottom: -0.1em;
}

/* ==========================================================================
   CTA BUTTON
   ========================================================================== */
.cine-cta {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 32px;
  border: 1px solid var(--gold); color: var(--gold);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  transition: background 280ms var(--ease-cine), color 280ms var(--ease-cine), box-shadow 280ms var(--ease-cine);
  cursor: pointer;
}
.cine-cta:hover { background: var(--gold); color: #000; box-shadow: 0 0 0 1px var(--gold), 0 0 24px rgba(201,169,97,0.35); }
.cine-cta:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ==========================================================================
   MASONRY GALLERY
   ========================================================================== */
.cine-gallery {
  border-top: 1px solid var(--hair);
  padding: 96px 0;
}
.cine-gallery__inner { max-width: 1400px; margin: 0 auto; padding: 0 32px; }
.cine-gallery__kicker {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 32px;
}
.cine-gallery__grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 140px; gap: 12px;
}
.cine-gallery__cell {
  position: relative; overflow: hidden;
  border: 1px solid var(--hair); background: #0a0908;
}
.cine-gallery__cell:nth-child(1) { grid-column: span 3; grid-row: span 3; }
.cine-gallery__cell:nth-child(2) { grid-column: span 3; grid-row: span 2; }
.cine-gallery__cell:nth-child(3) { grid-column: span 2; grid-row: span 2; }
.cine-gallery__cell:nth-child(4) { grid-column: span 2; grid-row: span 3; }
.cine-gallery__cell:nth-child(5) { grid-column: span 2; grid-row: span 2; }
.cine-gallery__cell:nth-child(6) { grid-column: span 4; grid-row: span 2; }
.cine-gallery__cell:nth-child(7) { grid-column: span 3; grid-row: span 2; }
.cine-gallery__cell:nth-child(8) { grid-column: span 3; grid-row: span 2; }

.cine-gallery__img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: saturate(0.92) contrast(1.04);
  transition: transform 900ms var(--ease-cine);
}
.cine-gallery__tint {
  position: absolute; inset: 0;
  background: var(--gold); mix-blend-mode: multiply;
  opacity: 0; transition: opacity 500ms var(--ease-cine);
  pointer-events: none;
}
.cine-gallery__cap {
  position: absolute; left: 18px; right: 18px; bottom: 16px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold);
  opacity: 0; transform: translateY(10px);
  transition: opacity 400ms var(--ease-cine), transform 400ms var(--ease-cine);
  z-index: 2;
}
.cine-gallery__cell:hover .cine-gallery__img { transform: scale(1.05); }
.cine-gallery__cell:hover .cine-gallery__tint { opacity: 0.20; }
.cine-gallery__cell:hover .cine-gallery__cap { opacity: 1; transform: none; }
@media (max-width: 900px) {
  .cine-gallery__grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 110px; }
  .cine-gallery__cell:nth-child(1) { grid-column: span 4; grid-row: span 3; }
  .cine-gallery__cell:nth-child(2) { grid-column: span 4; grid-row: span 2; }
  .cine-gallery__cell:nth-child(3),
  .cine-gallery__cell:nth-child(4),
  .cine-gallery__cell:nth-child(5),
  .cine-gallery__cell:nth-child(6),
  .cine-gallery__cell:nth-child(7),
  .cine-gallery__cell:nth-child(8) { grid-column: span 2; grid-row: span 2; }
}
@media (max-width: 540px) {
  .cine-gallery__grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .cine-gallery__cell { grid-column: span 1 !important; grid-row: span 1 !important; }
  .cine-gallery__cap { opacity: 1; transform: none; }
}

/* ==========================================================================
   BODY SECTION SPACING
   ========================================================================== */
.cine-section { padding: 80px 0; border-bottom: 1px solid var(--hair); }
.cine-section--tight { padding: 48px 0; }
.cine-section:last-of-type { border-bottom: 0; }

/* ==========================================================================
   SITE FOOTER (shared/site-footer.js)
   ========================================================================== */
.sky-foot { border-top: 1px solid var(--hair, rgba(255,255,255,0.12)); background: #000; color: #fff; }
.sky-foot__grid { max-width: var(--max, 1760px); margin: 0 auto; padding: 64px 32px 40px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.sky-foot__h { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.sky-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sky-foot a, .sky-foot__btn { color: rgba(255,255,255,0.78); font-size: 14px; font-weight: 300; text-decoration: none; transition: color 200ms ease; font-family: "Inter Tight", system-ui, sans-serif; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.sky-foot a:hover, .sky-foot__btn:hover { color: var(--gold); }
.sky-foot__base { max-width: var(--max, 1760px); margin: 0 auto; padding: 24px 32px 32px; border-top: 1px solid var(--hair, rgba(255,255,255,0.12)); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted, #8a8780); }
.sky-foot__base img { height: 43px; width: auto; display: block; }
@media (max-width: 900px) { .sky-foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .sky-foot__grid { grid-template-columns: 1fr; padding: 48px 20px 32px; } .sky-foot__base { padding: 20px; } }

/* ==========================================================================
   COOKIE CONSENT BANNER (shared/consent.js)
   ========================================================================== */
.sky-consent { position: fixed; left: 20px; bottom: 20px; z-index: 1000; max-width: 380px; padding: 20px 22px; background: #000; color: #fff; border: 1px solid var(--gold); box-shadow: 0 12px 40px rgba(0,0,0,0.6); font-family: "Inter Tight", system-ui, sans-serif; }
.sky-consent[hidden] { display: none; }
.sky-consent__text { margin: 0 0 16px; font-size: 14px; line-height: 1.5; font-weight: 300; }
.sky-consent__text a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.sky-consent__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.sky-consent__btns button { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; padding: 10px 14px; cursor: pointer; border: 1px solid var(--gold); transition: background 200ms ease, color 200ms ease; }
.sky-consent__ok { background: var(--gold); color: #000; }
.sky-consent__ok:hover { background: #fff; border-color: #fff; }
.sky-consent__no { background: transparent; color: #fff; border-color: rgba(255,255,255,0.3) !important; }
.sky-consent__no:hover { border-color: #fff !important; }
@media (max-width: 480px) { .sky-consent { left: 12px; right: 12px; bottom: 12px; max-width: none; } }

/* ==========================================================================
   REDUCED MOTION FALLBACK
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .cine-hero__bg, .cine-divider__bg { transform: none !important; }
  .cine-hero__badge, .cine-hero__title, .cine-hero__sub,
  .cine-card {
    opacity: 1 !important; transform: none !important;
    animation: none !important; transition: none !important;
  }
  .cine-progress { transition: none !important; }
}
