/* =========================================================================
   PropertyMovies.com — global tokens + shared components
   Values are lifted verbatim from the signed-off design (the .dc.html export):
   neutral greyscale, NO warm tint. Page-unique layout lives in each page's
   scoped <style>; this file holds the tokens and the reused pieces.
   ========================================================================= */

:root {
  /* Palette — exact greyscale from the design */
  --paper: #ebebeb;      /* light "paper" background            */
  --near-black: #121212; /* dark surfaces / hero base           */
  --ink: #1a1a1a;        /* primary text on paper               */
  --on-dark: #eeeeee;    /* text on dark surfaces               */

  /* Muted greys used across the design */
  --grey-100: #d8d8d8;
  --grey-150: #d6d6d6;
  --grey-200: #cccccc;
  --grey-250: #c2c2c2;
  --grey-400: #a2a2a2;
  --grey-500: #8a8a8a;
  --grey-700: #4a4a4a;

  /* The dark used inside every scrim / chip (rgba of #111) */
  --scrim-rgb: 17, 17, 17;

  --font: 'Archivo', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Shared horizontal page padding */
  --pad-x: clamp(20px, 4vw, 56px);
}

/* ------------------------------------------------------------------ reset */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Dark-themed page (Contact) */
body[data-theme='dark'] { background: var(--near-black); color: var(--on-dark); }

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

a { color: inherit; text-decoration: none; }

::selection { background: var(--ink); color: var(--paper); }
body[data-theme='dark'] ::selection { background: var(--on-dark); color: var(--near-black); }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* -------------------------------------------------------------- containers */
.container { max-width: 1300px; margin-inline: auto; padding-inline: var(--pad-x); }
.container--wide { max-width: 1400px; }
.container--narrow { max-width: 1200px; }

/* ----------------------------------------------------------------- kicker */
/* Small uppercase label. Tune tracking per use with --k; colour with --kc. */
.kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--k, .2em);
  text-transform: uppercase;
  color: var(--kc, var(--grey-200));
}

/* ------------------------------------------------- header / nav / wordmark */
.site-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px var(--pad-x);
  border-bottom: 1px solid rgba(238, 238, 238, .18);
}

.wordmark { display: flex; align-items: center; gap: 11px; color: var(--on-dark); }
.wordmark__mark { width: 11px; height: 11px; background: currentColor; display: inline-block; }
.wordmark__name { font-weight: 700; letter-spacing: -.01em; font-size: 16px; }
.wordmark__tld { font-size: .66em; font-weight: 600; letter-spacing: 0; opacity: .8; }

.site-nav {
  display: flex;
  gap: clamp(16px, 2.4vw, 30px);
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.site-nav a { color: var(--grey-200); padding: 12px 0; margin: -12px 0; transition: color .2s; }
.site-nav a:hover,
.site-nav a[aria-current='page'] { color: var(--on-dark); }

/* Hamburger toggle — hidden on desktop, shown on mobile (see media query). */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: -8px -8px -8px 0; /* full 44px hit target without inflating the row */
  background: transparent;
  border: 0;
  color: var(--on-dark);
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform .22s ease, background-color .22s ease;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before { position: absolute; left: 0; top: -6px; }
.nav-toggle__bars::after  { position: absolute; left: 0; top: 6px; }

/* Narrow screens: a fixed-width wordmark + 3 links overflow a single row, so
   collapse the nav behind a hamburger that drops a panel below the header. */
@media (max-width: 560px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: var(--pad-x);
    right: var(--pad-x);
    margin-top: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 6px 16px;
    background: rgba(var(--scrim-rgb), .96);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(238, 238, 238, .14);
    display: none; /* hidden until opened */
  }
  .site-header.is-open .site-nav { display: flex; }
  .site-nav a { padding: 14px 2px; margin: 0; }

  /* bars morph into an X when open */
  .site-header.is-open .nav-toggle__bars { background: transparent; }
  .site-header.is-open .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
  .site-header.is-open .nav-toggle__bars::after  { transform: translateY(-6px) rotate(-45deg); }
}

/* -------------------------------------------------------------------- hero */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--near-black);
  color: var(--on-dark);
}
.hero--tall { min-height: 100svh; }
.hero--films { min-height: 84svh; }

.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

.hero__scrim { position: absolute; inset: 0; pointer-events: none; }
.hero__scrim--home {
  background: linear-gradient(180deg, rgba(var(--scrim-rgb), .72) 0%, rgba(var(--scrim-rgb), .18) 30%, rgba(var(--scrim-rgb), .30) 60%, rgba(var(--scrim-rgb), .94) 100%);
}
.hero__scrim--films {
  background: linear-gradient(180deg, rgba(var(--scrim-rgb), .72) 0%, rgba(var(--scrim-rgb), .30) 32%, rgba(var(--scrim-rgb), .45) 62%, rgba(var(--scrim-rgb), .95) 100%);
}
.hero__scrim--contact {
  background: linear-gradient(180deg, rgba(var(--scrim-rgb), .66) 0%, rgba(var(--scrim-rgb), .15) 28%, rgba(var(--scrim-rgb), .35) 60%, rgba(var(--scrim-rgb), .95) 100%);
}

.hero__content { position: relative; z-index: 2; margin-top: auto; width: 100%; }

/* ----------------------------------------------------------------- buttons */
/* Play glyph — a right-pointing triangle. Size via --tv (vertical) / --th. */
.tri {
  width: 0; height: 0;
  border-top: var(--tv, 6px) solid transparent;
  border-bottom: var(--tv, 6px) solid transparent;
  border-left: var(--th, 9px) solid currentColor;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 14px 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--on-dark);
  color: var(--near-black);
  transition: background .2s, color .2s;
  border: 0;
  cursor: pointer;
}
.btn:hover { background: var(--ink); color: var(--on-dark); }

.btn--dark {
  background: var(--near-black);
  color: var(--on-dark);
  padding: 16px 30px;
  letter-spacing: .14em;
}
.btn--dark:hover { background: var(--ink); }

/* Underlined text link (browse / see-the-movies / envolve) */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(238, 238, 238, .4);
  padding-bottom: 5px;
  transition: color .2s, border-color .2s;
}
.tlink:hover { color: var(--grey-100); border-color: var(--grey-100); }
/* On light surfaces */
.tlink--ink { color: var(--grey-500); border-bottom-color: rgba(26, 26, 26, .25); }
.tlink--ink:hover { color: var(--ink); border-color: var(--ink); }

/* ------------------------------------------------------------- film wall */
/* Dark ground so an odd last row's empty cell blends with the tiles (not paper). */
.pm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; background: var(--near-black); }
@media (max-width: 900px) { .pm-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pm-grid { grid-template-columns: 1fr; } }

.pm-tile {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--near-black);
  display: block;
  scroll-margin-top: 28px;
}
.pm-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Always-visible view-count chip (Films) */
.pm-chip {
  position: absolute;
  left: 12px; bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(var(--scrim-rgb), .72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--on-dark);
  pointer-events: none;
  z-index: 2;
  transition: opacity .28s ease;
}
/* Any device with a hovering pointer (mouse/trackpad), incl. touchscreen
   laptops: the chip yields to the overlay on hover / focus. */
@media (any-hover: hover) {
  .pm-tile:hover .pm-chip,
  .pm-tile:focus-within .pm-chip { opacity: 0; }
}
/* Touch: JS toggles .is-revealed — tap reveals, tap again plays. */
.pm-tile.is-revealed .pm-chip { opacity: 0; }

/* Hover / focus overlay */
.pm-ov {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .28s ease;
}
.pm-ov::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* Films gradient */
  background: linear-gradient(180deg, rgba(var(--scrim-rgb), .4) 0%, transparent 36%, transparent 48%, rgba(var(--scrim-rgb), .9) 100%);
}
.pm-ov--home::before {
  /* Home gradient */
  background: linear-gradient(180deg, rgba(var(--scrim-rgb), .4) 0%, transparent 40%, transparent 56%, rgba(var(--scrim-rgb), .82) 100%);
}
@media (any-hover: hover) {
  .pm-tile:hover .pm-ov,
  .pm-tile:focus-within .pm-ov { opacity: 1; }
}
.pm-tile.is-revealed .pm-ov { opacity: 1; }

/* Home teasers are links (a tap navigates — no tap-to-reveal), so on pure-touch
   devices (no mouse) show their overlay (№ + "View movie") persistently as a
   visible affordance. A mouse-capable device reveals it on hover instead. */
@media (any-hover: none) {
  .pm-ov--home { opacity: 1; }
}

/* Centre play control */
.pm-play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(238, 238, 238, .94);
  display: grid;
  place-items: center;
  color: var(--near-black);
  border: 0;
  padding: 0;
  cursor: pointer;
}
.pm-play .tri { margin-left: 3px; }

/* Overlay text bits */
.pm-num { position: absolute; top: 12px; left: 14px; font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--on-dark); }
.pm-cta { position: absolute; left: 14px; bottom: 12px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark); }

.pm-meta { position: absolute; left: 14px; right: 14px; bottom: 12px; }
.pm-meta__line { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--grey-100); margin-bottom: 6px; }
.pm-meta__title { font-weight: 700; font-size: clamp(14px, 1.2vw, 17px); letter-spacing: -.01em; color: var(--on-dark); line-height: 1.1; }
.pm-meta__caption { font-size: 12px; line-height: 1.45; color: var(--grey-200); margin-top: 4px; }

/* Keyboard/focus ring for interactive tiles */
.pm-tile a:focus-visible,
.pm-tile button:focus-visible { outline: 3px solid var(--on-dark); outline-offset: -3px; }

/* ----------------------------------------------------------------- footer */
.site-footer {
  background: var(--near-black);
  color: var(--on-dark);
  padding: clamp(64px, 9vw, 130px) var(--pad-x) 40px;
}
.site-footer__inner {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: clamp(30px, 5vw, 70px);
  align-items: end;
}
.site-footer__label { color: var(--grey-400); margin-bottom: 18px; }
.site-footer__contact {
  font-weight: 600;
  font-size: clamp(1.7rem, 4.6vw, 3.4rem);
  color: var(--on-dark);
  letter-spacing: -.02em;
  line-height: 1.04;
  transition: color .2s;
}
.site-footer__contact:hover { color: var(--grey-100); }
.site-footer__note { font-size: 14.5px; line-height: 1.7; color: var(--grey-400); margin: 0; max-width: 40ch; text-wrap: pretty; }
.site-footer__bar {
  max-width: 1300px;
  margin: clamp(52px, 7vw, 90px) auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(238, 238, 238, .16);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grey-500);
}
.site-footer__bar a { color: var(--grey-100); }

/* Minimal footer (Contact) */
.mini-footer {
  padding: 26px var(--pad-x);
  border-top: 1px solid rgba(238, 238, 238, .14);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grey-500);
  background: var(--near-black);
}
.mini-footer a { color: var(--grey-100); }

/* Screen-reader-only helper */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================================
   Page sections (were scoped <style> in the Astro pages; class prefixes are
   unique, so they live safely in the one shared sheet).
   ========================================================================= */

/* ---- Home ------------------------------------------------------------- */
.home-hero .hero__content { padding: 0 var(--pad-x) clamp(44px, 6vw, 88px); max-width: 1200px; }
.home-hero__kicker { margin-bottom: 24px; }
.home-hero__title {
  font-weight: 600;
  font-size: clamp(2.6rem, 7.4vw, 6.6rem);
  line-height: .98;
  letter-spacing: -.03em;
  margin: 0;
  max-width: 15ch;
}
.home-hero__cta-row { display: flex; gap: 18px; align-items: center; margin-top: 34px; flex-wrap: wrap; }
.home-hero__hint {
  font-size: 11.5px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--grey-200);
}

.intro {
  padding: clamp(70px, 10vw, 150px) var(--pad-x);
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(36px, 6vw, 90px);
  align-items: start;
}
.intro__kicker { margin-bottom: 26px; }
.intro__title {
  font-weight: 600;
  font-size: clamp(1.9rem, 4.6vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -.025em;
  margin: 0;
  text-wrap: balance;
}
.intro__body { padding-top: 8px; }
.intro__body p {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.72;
  color: var(--grey-700);
  margin: 0 0 20px;
  text-wrap: pretty;
}
.intro__body p:last-child { margin-bottom: 0; }

.work { padding-bottom: clamp(56px, 7vw, 96px); }
.work__head { max-width: 1400px; margin: 0 auto; padding: 0 var(--pad-x); }
.work__head-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(26, 26, 26, .22);
  padding: 24px 0 clamp(28px, 4vw, 44px);
}
.work__title { font-weight: 700; font-size: clamp(1.4rem, 3vw, 2.3rem); margin: 0; letter-spacing: -.02em; }
.work__more { display: flex; justify-content: center; margin-top: clamp(40px, 5vw, 64px); }

.band { position: relative; background: var(--near-black); color: var(--on-dark); overflow: hidden; }
.band__media { position: relative; aspect-ratio: 21 / 9; min-height: 340px; }
.band__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(var(--scrim-rgb), .82) 0%, rgba(var(--scrim-rgb), .28) 52%, rgba(var(--scrim-rgb), .5) 100%);
}
.band__content { position: absolute; left: var(--pad-x); right: var(--pad-x); bottom: clamp(24px, 4vw, 48px); max-width: 26ch; }
.band__kicker { margin-bottom: 12px; }
.band__title { font-weight: 600; font-size: clamp(1.8rem, 4.4vw, 3.4rem); margin: 0 0 20px; letter-spacing: -.025em; line-height: 1; }

/* ---- Films ------------------------------------------------------------ */
.films-hero .hero__content { padding: 0 var(--pad-x) clamp(44px, 6vw, 90px); max-width: 1300px; }
.films-hero__kicker { margin-bottom: 22px; }
.films-hero__stat {
  font-weight: 700;
  font-size: clamp(3.4rem, 12vw, 9rem);
  line-height: .9;
  letter-spacing: -.04em;
  margin: 0;
}
.films-hero__word {
  font-size: .36em;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grey-250);
  vertical-align: .12em;
  margin-left: .18em;
}
.films-hero__lede {
  max-width: 52ch;
  font-size: clamp(15px, 1.5vw, 19px);
  line-height: 1.6;
  color: var(--grey-150);
  margin: 26px 0 0;
  text-wrap: pretty;
}
.films-hero__meta {
  display: flex;
  gap: clamp(22px, 4vw, 44px);
  flex-wrap: wrap;
  margin-top: 30px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grey-400);
}

.films-listhead { background: var(--paper); }
.films-listhead__inner { max-width: 1400px; margin: 0 auto; padding: clamp(48px, 6vw, 84px) var(--pad-x) clamp(28px, 4vw, 44px); }
.films-listhead__row {
  border-top: 1px solid rgba(26, 26, 26, .22);
  padding-top: 22px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.films-listhead__row h2 { font-weight: 700; font-size: clamp(1.4rem, 3vw, 2.3rem); margin: 0; letter-spacing: -.02em; }
.films-listhead__row span { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--grey-500); }

.pm-hit { position: absolute; inset: 0; width: 100%; height: 100%; background: transparent; border: 0; cursor: pointer; z-index: 3; }

.pm-player {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  background: rgba(10, 10, 10, .94);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.pm-player[hidden] { display: none; }
.pm-player__bar { display: flex; justify-content: flex-end; padding: 16px clamp(16px, 3vw, 32px); }
.pm-player__close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--on-dark);
  border: 1px solid rgba(238, 238, 238, .4);
  padding: 10px 16px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.pm-player__close:hover { background: var(--on-dark); color: var(--near-black); }
.pm-player__stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(12px, 3vw, 40px) clamp(20px, 4vw, 48px);
  min-height: 0;
}
.pm-player__frame {
  aspect-ratio: 16 / 9;
  width: min(96vw, 1600px, calc((100dvh - 150px) * 16 / 9));
  background: #000;
}
.pm-player__frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---- Contact ---------------------------------------------------------- */
.contact-hero .hero__content { padding: 0 var(--pad-x) clamp(48px, 7vw, 100px); max-width: 1200px; }
.contact-hero__kicker { margin-bottom: 22px; }
.contact-hero__title {
  font-weight: 700;
  font-size: clamp(2.8rem, 9.5vw, 7.2rem);
  line-height: .92;
  letter-spacing: -.04em;
  margin: 0;
}
.contact-grid {
  margin-top: clamp(30px, 4vw, 50px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(26px, 4vw, 60px);
  align-items: end;
  max-width: 960px;
}
.contact-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--grey-400);
  margin-bottom: 12px;
}
.contact-email {
  display: inline-block;
  font-weight: 700;
  font-size: clamp(1.1rem, 2.4vw, 1.9rem);
  letter-spacing: -.02em;
  line-height: 1.06;
  color: var(--on-dark);
  white-space: nowrap; /* keep the address on one line */
  transition: color .2s;
}
.contact-email:hover { color: var(--grey-100); }
.contact-note { max-width: 40ch; }
.contact-note p {
  font-size: clamp(14.5px, 1.4vw, 17px);
  line-height: 1.7;
  color: var(--grey-200);
  margin: 0;
  text-wrap: pretty;
}
.contact-note a { border-bottom: 1px solid rgba(238, 238, 238, .4); padding-bottom: 1px; }
