/* The Islita — landing page. Mobile-first. */
:root {
  --bg: #14110e;
  --ink: #f4ede1;
  --muted: #b9afa0;
  --line: rgba(244, 237, 225, 0.18);
  --gutter: max(1.25rem, env(safe-area-inset-left));
  --font: "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }

a { color: inherit; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 0.75rem 1rem; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh; /* tracks the visible screen as phone browser toolbars show/hide, so video always fills it */
  padding: env(safe-area-inset-top) var(--gutter) env(safe-area-inset-bottom);
  background: var(--bg) url("../img/poster-960.jpg") center / cover no-repeat;
  overflow: hidden;
}
@media (min-width: 961px) {
  .hero { background-image: url("../img/poster-1920.jpg"); }
}

.hero__video {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}
.hero.is-playing .hero__video { opacity: 1; }

.hero::after { /* legibility scrim */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0.32) 0%, rgba(0,0,0,0) 68%),
    linear-gradient(to bottom, rgba(0,0,0,0.18), rgba(0,0,0,0.12) 40%, rgba(0,0,0,0.42));
}

.hero__title { margin: 0; line-height: 0; }
.hero__logo {
  width: min(78vw, 720px);
  height: auto;
  filter: drop-shadow(0 2px 28px rgba(0, 0, 0, 0.35));
}

.hero__cue {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: calc(env(safe-area-inset-bottom) + 1rem);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 0.5rem;
  min-width: 44px; min-height: 44px; padding: 0.5rem 1rem;
  font-size: 0.75rem; letter-spacing: 0.28em; text-transform: uppercase; text-decoration: none;
  color: var(--ink);
}
.hero__cue::after {
  content: ""; width: 1px; height: 28px; background: currentColor; opacity: 0.7;
  animation: cue 2.4s ease-in-out infinite;
}
@keyframes cue { 0%, 100% { transform: scaleY(0.4); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } }

.hero__sound {
  position: absolute; z-index: 2;
  right: max(0.75rem, env(safe-area-inset-right));
  bottom: calc(env(safe-area-inset-bottom) + 0.75rem);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  height: 44px; min-width: 44px; padding: 0 1.1rem 0 0.9rem;
  font: inherit; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink); cursor: pointer;
  background: rgba(20, 17, 14, 0.45);
  border: 1px solid rgba(244, 237, 225, 0.45);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s ease, opacity 0.4s ease, visibility 0.4s;
}
.hero__sound:hover { background: rgba(20, 17, 14, 0.75); }
.hero__sound svg { width: 20px; height: 20px; flex: none; }
@media (max-width: 520px) {
  .hero__sound { padding: 0; width: 44px; }
  .hero__sound-text { display: none; }
}

/* ---------- Full-screen player (video with sound, no logo) ---------- */
html.cinema-lock, html.cinema-lock body { overflow: hidden; }
.hero::after, .hero__title, .hero__cue { transition: opacity 0.4s ease, visibility 0.4s; }
.hero.is-cinema {
  position: fixed; inset: 0; z-index: 100;
  min-height: 0; height: 100vh; height: 100dvh;
  padding: 0; background: #000;
}
.hero.is-cinema::after,
.hero.is-cinema .hero__title,
.hero.is-cinema .hero__cue,
.hero.is-cinema .hero__sound { opacity: 0; visibility: hidden; pointer-events: none; }

@media (orientation: portrait) {
  .hero.is-cinema .hero__video { object-fit: contain; } /* sound player: show the whole frame on tall phone screens */
}

.cinema { position: absolute; inset: 0; z-index: 3; pointer-events: none; transition: opacity 0.4s ease; }
.cinema[hidden] { display: none; }
.cinema.is-idle { opacity: 0; }
.cinema.is-idle * { pointer-events: none !important; }
.cinema__btn {
  pointer-events: auto;
  width: 44px; height: 44px; padding: 0; display: grid; place-items: center; flex: none;
  color: #fff; cursor: pointer;
  background: rgba(20, 17, 14, 0.5);
  border: 1px solid rgba(244, 237, 225, 0.45); border-radius: 50%;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  -webkit-tap-highlight-color: transparent;
}
.cinema__btn:hover { background: rgba(20, 17, 14, 0.8); }
.cinema__btn svg { width: 18px; height: 18px; }
.cinema__close {
  position: absolute;
  top: calc(env(safe-area-inset-top) + 0.75rem); right: max(0.75rem, env(safe-area-inset-right));
}
.cinema__bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 1rem;
  padding: 2.5rem max(1rem, env(safe-area-inset-right)) calc(env(safe-area-inset-bottom) + 0.9rem) max(1rem, env(safe-area-inset-left));
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
}
.cinema__progress { flex: 1; height: 3px; background: rgba(255, 255, 255, 0.25); border-radius: 2px; overflow: hidden; }
.cinema__progress span { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
#cin-play .i-play, #cin-mute .i-off { display: none; }
#cin-play[aria-pressed="true"] .i-pause, #cin-mute[aria-pressed="true"] .i-on { display: none; }
#cin-play[aria-pressed="true"] .i-play, #cin-mute[aria-pressed="true"] .i-off { display: block; }

/* ---------- Contact ---------- */
.contact {
  padding: clamp(3.5rem, 9vw, 7rem) var(--gutter) clamp(3rem, 7vw, 5rem);
  padding-right: max(1.25rem, env(safe-area-inset-right));
  border-top: 1px solid var(--line);
}
.wrap { max-width: 1040px; margin-inline: auto; }
.contact .wrap { text-align: center; }

.eyebrow {
  margin: 0 0 1.5rem;
  font-size: 28px;
  line-height: 1.2; letter-spacing: 0.24em; padding-left: 0.24em; /* balances trailing letter-spacing */
  text-transform: uppercase; color: var(--muted);
}
.rule { width: 60px; height: 1px; margin: 0 auto 1.5rem; background: rgba(244, 237, 225, 0.55); }
.contact__lead {
  margin: 0;
  font-size: clamp(1.5rem, 4.6vw, 2.25rem); line-height: 1.25; font-weight: 200;
  font-style: italic;
}
.contact__sub {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}

.follow {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.85rem;
  margin: clamp(2rem, 5vw, 3rem) 0 0; min-height: 56px; padding: 0.9rem 1.75rem;
  color: var(--ink); text-decoration: none;
  font-size: 1.125rem; letter-spacing: 0.04em; font-weight: 300;
  border: 1px solid rgba(244, 237, 225, 0.5); border-radius: 999px;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}
.follow svg { width: 26px; height: 26px; flex: none; }
.follow:hover, .follow:focus-visible { background: var(--ink); color: var(--bg); border-color: var(--ink); text-decoration: none; }
.follow__label {
  margin: clamp(2rem, 5vw, 3rem) 0 0;
  font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted);
}
.follow__label + .follow { margin-top: 1rem; }


.inquire { margin: clamp(2rem, 5vw, 2.75rem) 0 0; }
.inquire__label {
  display: block; margin: 0 0 0.25rem;
  font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted);
}
.inquire__link {
  display: inline-block; min-height: 44px; padding: 0.5rem 0;
  font-size: 1.1875rem; font-weight: 300; overflow-wrap: anywhere;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 1.75rem var(--gutter) calc(1.75rem + env(safe-area-inset-bottom));
  padding-right: max(1.25rem, env(safe-area-inset-right));
  border-top: 1px solid var(--line);
  font-size: 0.8125rem; color: var(--muted);
}
.site-footer .wrap { display: grid; gap: 0.75rem; text-align: center; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1.5rem; }
.site-footer nav a { display: inline-block; min-height: 44px; padding: 0.6rem 0; text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer p { margin: 0; }
.site-footer .fine { font-size: 0.75rem; line-height: 1.55; max-width: 62ch; }
@media (min-width: 720px) {
  .site-footer .wrap { grid-template-columns: 1fr auto; align-items: center; text-align: left; }
  .site-footer nav { justify-content: flex-start; }
  .site-footer .fine { grid-column: 1 / -1; }
}

/* ---------- Legal pages ---------- */
.legal-head {
  padding: calc(1.5rem + env(safe-area-inset-top)) var(--gutter) 1.5rem;
}
.legal-head a { display: inline-block; line-height: 0; }
.legal-head img { width: 150px; height: auto; }
.legal {
  padding: clamp(1.5rem, 5vw, 3.5rem) var(--gutter) clamp(3rem, 8vw, 6rem);
  padding-right: max(1.25rem, env(safe-area-inset-right));
}
.legal .wrap { max-width: 720px; }
.legal h1 { margin: 0 0 0.5rem; font-size: clamp(1.9rem, 6vw, 2.75rem); font-weight: 200; line-height: 1.15; }
.legal .updated { margin: 0 0 2.5rem; color: var(--muted); font-size: 0.875rem; }
.legal h2 { margin: 2.25rem 0 0.5rem; font-size: 1.125rem; font-weight: 400; letter-spacing: 0.02em; }
.legal p, .legal li { font-size: 1.0625rem; }
.legal p { margin: 0 0 1rem; }
.legal ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.legal li { margin-bottom: 0.4rem; }

/* ---------- 404 ---------- */
.nf { min-height: 70vh; min-height: 70svh; display: grid; place-content: center; text-align: center; padding: 2rem var(--gutter); gap: 1rem; }
.nf h1 { margin: 0; font-weight: 200; font-size: clamp(1.8rem, 6vw, 2.5rem); }
.nf a { min-height: 44px; display: inline-block; padding: 0.6rem 0; }

/* ---------- Motion / data preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__video { transition: none; }
  .hero__cue::after { animation: none; }
  .cinema, .hero__sound { transition: none; }
}

/* Short landscape phones: keep the logo comfortably inside the viewport */
@media (max-height: 480px) and (orientation: landscape) {
  .hero__logo { width: min(48vw, 420px); }
  .hero__cue { display: none; }
}
