/* Automation Notes — cinematic home hero.
 *
 * Kept in its own file so the editorial stylesheet stays untouched. The hero is
 * a dark architectural plate: photograph, signal canvas, then copy. Everything
 * degrades to a legible static layout without JavaScript.
 */

.cine {
  position: relative;
  isolation: isolate;
  min-height: min(94svh, 900px);
  display: grid;
  align-items: end;
  padding: clamp(96px, 14vh, 180px) 0 clamp(48px, 7vh, 88px);
  background: var(--midnight);
  color: var(--paper);
  overflow: hidden;
}

/* Layer 1 — the photograph, pushed back so type stays the subject. */
.cine__plate {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}
.cine__plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
  filter: saturate(0.62) contrast(1.08) brightness(0.54);
  transform: scale(1.06);
  animation: cine-drift 38s ease-in-out infinite alternate;
}

@keyframes cine-drift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.12) translate3d(-1.4%, -1.2%, 0); }
}

/* Layer 2 — graded wash: cool at the top, ink at the base for text contrast. */
.cine::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(52, 81, 255, 0.20), transparent 58%),
    radial-gradient(90% 70% at 8% 96%, rgba(185, 246, 90, 0.10), transparent 62%),
    linear-gradient(100deg, rgba(20, 27, 38, 0.94) 0%, rgba(20, 27, 38, 0.80) 46%, rgba(20, 27, 38, 0.62) 78%, rgba(20, 27, 38, 0.88) 100%);
}

/* Layer 3 — the moving signal diagram. */
.cine__canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.cine__inner {
  width: var(--wide);
  margin: 0 auto;
  display: grid;
  gap: clamp(28px, 4vh, 46px);
}

.cine__kicker {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin: 0;
  color: rgba(233, 238, 233, 0.72);
  font: 700 .70rem/1.4 var(--mono);
  letter-spacing: .22em;
  text-transform: uppercase;
}
.cine__kicker i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(185, 246, 90, 0.16);
  animation: cine-beat 3.4s ease-in-out infinite;
}
@keyframes cine-beat {
  0%, 100% { opacity: 1; }
  50%      { opacity: .35; }
}

.cine h1 {
  margin: 0;
  max-width: 17ch;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(3rem, 7.4vw, 6.6rem);
  line-height: 0.99;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.cine h1 em {
  font-style: normal;
  color: var(--lime);
}

.cine__lede {
  margin: 0;
  max-width: 54ch;
  color: rgba(233, 238, 233, 0.80);
  font-size: clamp(1.02rem, 1.25vw, 1.22rem);
  line-height: 1.62;
}

.cine__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
}
.cine__actions a {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 52px;
  padding: 0 1.5rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font: 700 .82rem/1 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}
.cine__actions a:first-child {
  background: var(--lime);
  color: var(--midnight);
}
.cine__actions a:first-child:hover { transform: translateY(-2px); }
.cine__actions a + a {
  border-color: rgba(233, 238, 233, 0.34);
  color: var(--paper);
}
.cine__actions a + a:hover { border-color: var(--paper); transform: translateY(-2px); }
.cine__actions a:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

/* Route strip: the four hubs, presented as the plate's legend. */
.cine__routes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: clamp(20px, 4vh, 40px);
  border-top: 1px solid rgba(233, 238, 233, 0.16);
  background: rgba(233, 238, 233, 0.16);
}
.cine__routes a {
  display: grid;
  gap: .45rem;
  padding: 1.4rem 1.3rem 1.5rem;
  background: rgba(20, 27, 38, 0.55);
  color: var(--paper);
  text-decoration: none;
  transition: background-color .2s ease;
}
.cine__routes a:hover,
.cine__routes a:focus-visible { background: rgba(20, 27, 38, 0.15); }
.cine__routes span {
  color: rgba(233, 238, 233, 0.55);
  font: 700 .64rem/1.3 var(--mono);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.cine__routes strong {
  font-family: var(--display);
  font-size: 1.22rem;
  font-weight: 500;
}
.cine__routes small {
  color: rgba(233, 238, 233, 0.62);
  font-size: .82rem;
  line-height: 1.5;
}

.cine__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.6rem, 4vw, 3.4rem);
  margin: 0;
}
.cine__stats div { display: grid; gap: .2rem; }
.cine__stats dt {
  font-family: var(--display);
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 1;
}
.cine__stats dd {
  margin: 0;
  color: rgba(233, 238, 233, 0.62);
  font: 700 .68rem/1.4 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .cine { min-height: auto; padding-top: clamp(72px, 12vh, 120px); }
  .cine__routes { grid-template-columns: repeat(2, 1fr); }
  .cine__plate img { object-position: 50% 55%; }
}
@media (max-width: 560px) {
  .cine__routes { grid-template-columns: 1fr; }
  .cine__routes small { display: none; }
}

/* Motion is decoration here, never information. */
@media (prefers-reduced-motion: reduce) {
  .cine__plate img { animation: none; transform: scale(1.04); }
  .cine__kicker i { animation: none; }
  .cine__actions a { transition: none; }
}

/* Without JavaScript the canvas simply never paints; the plate below still
   carries the photograph, the copy and every link. */
