:root{
  --accent:#e11d48;
  --ink:#0f0f10;
  --muted:rgba(15,15,16,.70);
  --line:rgba(15,15,16,.10);
  --wash:rgba(15,15,16,.04);

  /* Hard edges everywhere */
  --radius:0px;
  --shadow:0 14px 30px rgba(0,0,0,.08);

  --public-maxw: 1360px;
  --public-pad: 18px;

  /* Carousel */
  --loop-nav-col: 34px;
  --loop-gap: 14px;

  /* Align headings with carousel tiles */
  --section-inset: calc(var(--loop-nav-col) + 10px);

  /* Mobile inset so chevrons don't touch screen edge */
  --loop-mobile-inset: 10px;
}

.home{
  max-width:var(--public-maxw);
  margin:0 auto;
  padding:0 var(--public-pad) 44px;
}

/* SECTION DIVIDERS */
.home-section{
  padding:22px 0 18px;
  border-top:1px solid var(--line);
}

/* HERO */
.home-hero{
  border-bottom:1px solid var(--line);
  padding:44px 0 26px;
}

.home-hero-inner{
  text-align:center;
  max-width: 900px;
  margin:0 auto;
  padding: 0 14px; /* stops edge-hits on mobile */
}

.home-hero h1{
  margin:0 0 10px;
  font-size:clamp(28px, 3.2vw, 46px); /* slightly more flexible */
  line-height:1.06;
  letter-spacing:-0.02em;
  font-weight:950;
  color:var(--ink);

  /* desktop: keep one line when there's room */
  white-space: nowrap;
}

.home-hero-tagline{
  margin: 8px auto 0;
  max-width: 720px;
  color:var(--muted);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.55;
}

.home-hero-actions{
  display:flex;
  gap:12px;
  justify-content:center;
  margin-top:18px;
  flex-wrap:wrap;
}

@media (max-width: 700px){
  .home-hero h1{
    font-size: clamp(34px, 7vw, 40px);
    white-space: normal;
    line-height: 1.1;
  }
}


/* MOBILE */
@media (max-width: 700px){
  .home-hero{
    padding: 30px 0 22px;
  }

  .home-hero h1{
    white-space: normal;
    line-height: 1.1;
  }

  .home-hero-actions{
    gap:10px;
    margin-top:16px;
  }

  /* make buttons full width on small screens */
  .home-hero-actions .btn{
    width: 100%;
    max-width: 340px;
  }
}

@media (max-width: 420px){
  .home-hero-inner{
    padding: 0 10px;
  }
}


/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:44px;
  padding:0 18px;
  border-radius:var(--radius);
  font-weight:950;
  text-decoration:none;
  border:1px solid transparent;
  transition:transform .08s ease, background-color .15s ease, border-color .15s ease;
}
.btn:active{ transform:translateY(1px); }
.btn-primary{ background:var(--accent); border-color:var(--accent); color:#fff; }
.btn-primary:hover{ background:#d4143f; border-color:#d4143f; }
.btn-secondary{ background:#fff; border-color:var(--line); color:var(--ink); }
.btn-secondary:hover{ background:rgba(0,0,0,.02); }

/* SECTION HEAD ROWS */
.home-sectionhead{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:14px;
  margin-bottom:12px;
  padding:0 var(--section-inset);
}
.home-sectionhead h2{
  margin:0;
  font-size:22px;
  font-weight:950;
  color:var(--ink);
  letter-spacing:-0.01em;
  text-align:left;
}
.home-sectionlink{
  font-weight:950;
  text-decoration:none;
  color:var(--accent);
  font-size:14px;
  white-space:nowrap;
}
.home-sectionlink:hover{ text-decoration:underline; }

.home-empty{
  background:var(--wash);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:14px;
  color:var(--muted);
}
.home-empty a{
  color:var(--accent);
  font-weight:950;
  text-decoration:none;
}
.home-empty a:hover{ text-decoration:underline; }

/* ===========================================================
   CAROUSEL: nav is separate, not overlay
   =========================================================== */
.loop-carousel{
  display:grid;
  grid-template-columns: var(--loop-nav-col) 1fr var(--loop-nav-col);
  align-items:center;
  gap:10px; /* matches section inset */
}

/* Plain chevrons, no button styling */
.loop-nav{
  appearance:none;
  border:0;
  background:transparent;
  padding:0;
  margin:0;
  cursor:pointer;

  font-size:34px;
  line-height:1;
  color:var(--ink);
  display:flex;
  align-items:center;
  justify-content:center;

  height:64px;
  user-select:none;
}
.loop-nav:hover{ color:rgba(15,15,16,.55); }

.loop-viewport{
  overflow:hidden;
  padding:8px 0 10px; /* IMPORTANT: no side padding -> no “missing edge” */
  outline:none;
}

.loop-track{
  display:flex;
  gap:var(--loop-gap);
  align-items:stretch;
  transform:translateX(0px);
  will-change:transform;
}

.loop-item{
  flex:0 0 auto;
  border:0;
  background:transparent;
  padding:0;
  cursor:pointer;
  text-decoration:none;
  color:inherit;
}

/* ===========================================================
   FILM CARDS (no border, tiny magnify on hover, keep “View →”)
   =========================================================== */

.film-card{ width:210px; }

.film-poster{
  width:210px;
  height:294px;
  border-radius:var(--radius);
  overflow:hidden;
  background:var(--wash);
  border:0;                 /* ✅ remove edge border */
  position:relative;
  transform:translateZ(0);
  transition:transform .12s ease;
}

.film-poster img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Tiny hover cue so it’s obvious it’s a link to film detail */
.film-card .film-poster::after{
  content:"View →";
  position:absolute;
  left:10px;
  bottom:10px;
  padding:6px 10px;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(15,15,16,.18);
  color:var(--ink);
  font-weight:950;
  font-size:12px;
  letter-spacing:-0.01em;
  opacity:0;
  transform:translateY(6px);
  transition:opacity .15s ease, transform .15s ease, background-color .15s ease, border-color .15s ease;
  pointer-events:none;
}

.film-card:hover .film-poster{
  transform: scale(1.015); /* ✅ tiny magnify */
}

.film-card:hover .film-poster::after{
  opacity:1;
  transform:translateY(0);
}

/* Keyboard focus for links */
.film-card:focus-visible{
  outline:2px solid var(--ink);
  outline-offset:4px;
}

/* ===========================================================
   VENUE CARDS (fix height alignment + add “Visit →” hover cue)
   =========================================================== */

.venue-card{ width:380px; }

.venue-image{
  width:380px;
  height:210px;
  border-radius:var(--radius);
  overflow:hidden;
  background:var(--wash);
  border:1px solid var(--line);
  position:relative;
  transform:translateZ(0);
  transition:transform .12s ease;
}

.venue-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
}

/* Hover cue: Visit → */
.venue-card .venue-image::after{
  content:"Visit →";
  position:absolute;
  left:10px;
  bottom:10px;
  padding:6px 10px;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(15,15,16,.18);
  color:var(--ink);
  font-weight:950;
  font-size:12px;
  letter-spacing:-0.01em;
  opacity:0;
  transform:translateY(6px);
  transition:opacity .15s ease, transform .15s ease, background-color .15s ease, border-color .15s ease;
  pointer-events:none;
}

.venue-card:hover .venue-image{
  transform: scale(1.012); /* tiny magnify like films */
}

.venue-card:hover .venue-image::after{
  opacity:1;
  transform:translateY(0);
}

/* Label + truncation to keep every card height consistent */
.venue-label{
  padding-top:10px;
  text-align:left;
}

.venue-name{
  font-weight:950;
  color:var(--ink);
  line-height:1.15;
}

/* ✅ force single line; no wrap; prevent “height jump” */
.venue-loc{
  color:var(--muted);
  font-size:13px;
  margin-top:3px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:100%;
}

/* Placeholder */
.media-placeholder{
  width:100%;
  height:100%;
  background:linear-gradient(135deg, rgba(0,0,0,.06), rgba(0,0,0,.02));
}

/* ===========================================================
   STORIES + COMMUNITY MESSAGING DUO
   - matched heights
   - text clamps so one card doesn't grow taller than the other
   =========================================================== */
.home-duo{
  padding-top:22px;
}

.home-duo-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:22px;
  padding:0 var(--section-inset);
}

.home-duo-col{
  min-width:0;
  display:flex;
  flex-direction:column;
}

.home-subhead{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.home-subhead h2{
  margin:0;
  font-size:22px;
  font-weight:950;
  color:var(--ink);
  letter-spacing:-0.01em;
}

/* Feature cards */
.feature-card{
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  background:#fff;
  text-decoration:none;
  color:inherit;
  display:flex;
  flex-direction:column;
  height:100%;
  transition:transform .10s ease, box-shadow .15s ease;
}
.feature-card:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow);
}

.feature-media{
  width:100%;
  height:240px;
  background:var(--wash);
  border-bottom:1px solid var(--line);
}
.feature-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.feature-content{
  padding:14px;
  display:flex;
  flex-direction:column;
  flex:1;
  min-height:0;
}

.feature-kicker{
  font-weight:950;
  color:rgba(15,15,16,.70);
  text-transform:uppercase;
  font-size:12px;
  letter-spacing:.06em;
  margin-bottom:8px;
}

.feature-title{
  font-weight:950;
  color:var(--ink);
  line-height:1.2;
  margin-bottom:8px;
  font-size:18px;
}

/* Keep this one line on desktop */
@media (min-width: 901px){
  .feature-title--nowrap{
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
}

.feature-desc{
  color:var(--muted);
  line-height:1.55;
  margin-bottom:12px;

  /* clamp so cards stay equal height */
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  overflow:hidden;
}

.feature-cta{
  margin-top:auto;
  color:var(--accent);
  font-weight:950;
}

/* ===========================================================
   PARTNERS
   =========================================================== */
.partners-strip{
  display:flex;
  flex-wrap:wrap;
  gap:18px;
  align-items:center;
  padding:0 var(--section-inset);
}

.partner-logo{
  height:42px;
  width:auto;
  display:block;
  opacity:.9;
  filter:grayscale(100%);
  transition:filter .15s ease, opacity .15s ease;
}
.partner-logo:hover{ opacity:1; filter:grayscale(0%); }
.partner-name{ font-weight:950; color:var(--muted); }

/* Tighten space below partners into footer */
.home-section--partners{
  padding-bottom:10px;
  border-bottom:1px solid var(--line);
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 900px){
  .home-duo-grid{
    grid-template-columns: 1fr;
    padding:0;
  }

  .home-sectionhead{
    padding:0;
  }

  .partners-strip{
    padding:0;
  }

  .home-subhead h2,
  .home-sectionhead h2{
    font-size:20px;
  }
}

@media (max-width: 700px){
  :root{
    --loop-nav-col: 28px;
    --section-inset: 0px;
  }

  /* inset carousel so chevrons don't touch screen edge */
  .loop-carousel{
    padding:0 var(--loop-mobile-inset);
    gap:8px;
  }

  .loop-nav{
    font-size:30px;
    height:56px;
  }
}

@media (max-width: 560px){
  .home{ padding:0 14px 44px; }

  .film-card{ width:175px; }
  .film-poster{ width:175px; height:245px; }

  .venue-card{ width:320px; }
  .venue-image{ width:320px; height:178px; }

  .feature-media{ height:220px; }
}
