/* Hallmark · macrostructure: Long Document (content pages) · genre: editorial
 * theme: custom · vibe: "mehfil, lamplight, printed program note"
 * paper: #000 (client identity, preserved) · accent: #8ba3cc (poster wordmark #374768, lifted)
 * axes: dark paper / grotesk-sans display / cool accent
 * type: Raleway display + Raleway body + PT Mono utility (data, years, labels)
 * contrast: body 13.4:1 · dim 6.1:1 · accent 7.2:1 (all AA+ on #000)
 */

:root {
  /* colour */
  --paper:      #000000;
  --paper-lift: #0b0b0d;
  --ivory:      #ece7df;
  --ivory-dim:  #97928a;
  --indigo:     #8ba3cc;
  --rule:       #23242a;
  --rule-soft:  #16171b;

  /* type scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.25rem;
  --text-xl:   1.5rem;
  --text-2xl:  2rem;
  --text-3xl:  3rem;

  /* families */
  --font-display: Raleway, sans-serif;
  --font-body:    Raleway, sans-serif;
  --font-util:    "PT Mono", ui-monospace, monospace;

  /* space (4pt) */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 7rem;

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 180ms;
  --dur-micro: 120ms;
  --dur-short: 220ms;
  --dur-long: 420ms;

  /* state */
  --danger: #e2725b;
  --success: #7fb289;
  --rule-2: rgba(236, 231, 223, 0.16);
}

/* ── keyboard focus: visible on every interactive element ───────────── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ── shared prose container ─────────────────────────────────────────── */
.hh-prose {
  max-width: 44rem;
  font-family: var(--font-body);
}
.hh-prose p,
.hh-prose li {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.75;
  color: var(--ivory);
}
.hh-prose h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  margin: var(--space-xl) 0 var(--space-sm);
}
.hh-prose h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  font-style: normal;
  color: #fff;
  margin: var(--space-lg) 0 var(--space-xs);
}
/* album/film titles inside headings stay roman; italic is body-copy only */
.hh-prose h2 em, .hh-prose h3 em { font-style: normal; }
.hh-prose ul { padding-left: 1.1rem; margin: 0 0 var(--space-sm); }
.hh-prose li { margin-bottom: 0.4rem; }
.hh-prose a { color: var(--indigo); text-decoration: none; border-bottom: 1px solid rgba(139, 163, 204, 0.35); transition: border-color var(--dur) var(--ease-out); }
.hh-prose a:hover { border-bottom-color: var(--indigo); }

.hh-lead {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 300;
  line-height: 1.55;
  color: #fff;
  margin: 0 0 var(--space-md);
}

/* mono utility: years, labels, data. The one deliberate use of PT Mono. */
.hh-year {
  font-family: var(--font-util);
  font-size: var(--text-sm);
  color: var(--indigo);
  letter-spacing: 0.06em;
}

/* ── the register: program-note rows (About, and any typed sequence) ── */
.hh-register { border-top: 1px solid var(--rule); margin: var(--space-lg) 0; }
.hh-register_row {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--rule-soft);
}
.hh-register_row:last-child { border-bottom: 1px solid var(--rule); }
.hh-register_year {
  font-family: var(--font-util);
  font-size: var(--text-sm);
  color: var(--indigo);
  letter-spacing: 0.06em;
  padding-top: 0.2rem;
}
.hh-register_text {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--ivory);
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
.hh-register_text em { font-style: italic; color: #fff; }

/* ── labels / kickers ───────────────────────────────────────────────── */
.hh-kicker {
  font-family: var(--font-util);
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  margin: 0 0 var(--space-md);
}

/* ── link row ───────────────────────────────────────────────────────── */
.hh-links { display: flex; flex-wrap: wrap; gap: var(--space-lg); margin-top: var(--space-lg); }
.hh-link {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.4rem;
  transition: border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
  white-space: nowrap;
}
.hh-link:hover { color: var(--indigo); border-bottom-color: var(--indigo); }

/* ── sections sit above the sticky hero ─────────────────────────────── */
.hh-section { position: relative; z-index: 3; background-color: var(--paper); }

/* covers the sticky home hero AND gives about-header_image-wrap (absolute)
   its positioning context. Used on the homepage About + FAQ, which are built
   from the site's own about-header / career-cards components. */
.hh-cover { position: relative; z-index: 3; background-color: var(--paper); }

/* About: link row under the intro paragraph, over the portrait */
.hh-cta-row { display: flex; flex-wrap: wrap; gap: var(--space-lg); margin-top: var(--space-lg); }

/* About: .about-header_image-wrap is a fixed 120vh and .about-header_component
   clips it (overflow:hidden). On a short section that slices the portrait mid-face
   with a hard edge and hides the fade. Match the wrap to the section instead. */
/* Desktop only. At <=991px the site already stacks this properly
   (image-wrap: height 50vh + position relative, text below) — don't touch it. */
@media screen and (min-width: 992px) {
  .hh-about .about-header_component { min-height: 100vh; padding-top: 20vh; position: relative; }
  /* inset:0, not height:100% — the parent has no definite height, so a percentage
     height cannot resolve; the wrap collapses and the portrait gets clipped. */
  .hh-about .about-header_image-wrap { height: auto; inset: 0; }
}

/* ── Questions background ───────────────────────────────────────────────
   The portrait must NOT move when a row opens. background-size:cover on the
   section rescales the image every time the section height changes, so the
   image is on a ::before whose height derives from WIDTH (aspect-ratio) or the
   VIEWPORT (vh) — never from content. */
.hh-faq-bg {
  position: relative;
  overflow: hidden;
  background-image: none !important;
  background-color: var(--paper) !important;
  padding-bottom: var(--space-2xl) !important;
}
.hh-faq-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 42%, var(--paper) 97%),
    linear-gradient(90deg, rgba(0, 0, 0, .26) 0%, rgba(0, 0, 0, .70) 46%, rgba(0, 0, 0, .88) 100%),
    url("../images/New-Project-9-p-1600.webp");
  background-size: cover, cover, cover;
  background-position: center, center, left center;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
}
.hh-faq-bg > * { position: relative; z-index: 1; }
@media screen and (min-width: 992px) {
  .hh-faq-bg { min-height: 56.25vw; }
  .hh-faq-bg .faq-accordion,
  .hh-faq-bg .faq-title-wrap { margin-left: auto; width: 54%; }
}
@media screen and (max-width: 991px) {
  .hh-faq-bg::before {
    aspect-ratio: auto;
    height: 58vh;
    background-image:
      linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, .80) 58%, var(--paper) 98%),
      url("../images/New-Project-9-p-1600.webp");
    background-size: cover, 165% auto;
    background-position: center, 24% top;
  }
}

/* ── Mobile gallery ─────────────────────────────────────────────────────
   The gallery is height:4000px with a 450vw horizontal-scroll track driven by
   webflow.js. On a 375px screen that is 4000px of vertical scroll (57% of the
   page) showing sliding, cropped photos. Below 768px, drop the animation and
   lay the 4 unique photos out as a grid. Selectors are doubled-up because the
   page's inline <style> ships `.gallery-container{position:sticky!important}`
   AFTER this file, so equal specificity would lose. */
@media screen and (max-width: 767px) {
  .gallery {
    height: auto !important;
    margin-top: 0 !important;
    background-image: none !important;
    background-color: var(--paper) !important;
    padding: var(--space-md) 1rem var(--space-lg);
  }
  .gallery .gallery-scroll-track { position: static !important; inset: auto !important; }
  .gallery .gallery-container {
    position: static !important;
    height: auto !important;
    overflow: visible !important;
  }
  .gallery .gallery-track {
    width: 100% !important;
    height: auto !important;
    transform: none !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.6rem;
    padding: 0 !important;
  }
  .gallery .gallery-track > .gallery-image {
    min-width: 0 !important;
    width: auto !important;
    height: auto !important;
    aspect-ratio: 3 / 4;
    margin: 0 !important;
    flex: none !important;
    border-radius: 10px;
    background-position: center !important;
    background-size: cover !important;
  }
  /* the track repeats the same 4 photos twice for the desktop scroll loop */
  .gallery .gallery-track > .gallery-image:nth-child(n + 5) { display: none !important; }
}

/* the site's own form fields inherit body{font-family:PT Mono}; the booking
   form sets a family, /connect did not. One rule covers both. */
.contact-form_field, .contact-form_field.w-input, textarea.contact-form_field {
  font-family: var(--font-body);
  color: var(--ivory);
}

/* ── FAQ accordion · component ──────────────────────────────────────────
   Hallmark · component: accordion · genre: atmospheric · theme: hh-system tokens
   states: default · hover · focus · active · disabled · loading · error · success
   contrast: summary 13.4:1 · marker 7.2:1 · answer 13.4:1 on --paper
   Semantics: <details name="faq"> keeps native keyboard + AT support and gives
   exclusive-open natively; the JS adds the height animation and closes siblings
   for browsers where name= is unsupported. */
.faq-title-wrap { margin-bottom: var(--space-lg); }
.faq-accordion { max-width: 60rem; }
/* JS reserves min-height for the tallest single open row so the section height
   never changes when a row opens (exactly one row can be open at a time).
   Transitions are suppressed while that measurement runs. */
.faq-accordion.is-measuring .faq-answer,
.faq-accordion.is-measuring .faq-answer-inner { transition: none !important; }
.faq-h { margin: 0; }

.faq-item {
  border-bottom: 1px solid var(--rule-2);
  transition: border-color var(--dur-short) var(--ease-out);
}

/* 1 · default */
.faq-summary {
  /* button reset: this is a <button> for real accordion semantics
     (aria-expanded + aria-controls). <details> would not let the height
     transition run. */
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  width: 100%;
  text-align: left;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;                      /* touch target */
  padding: var(--space-md) 3rem var(--space-md) 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ivory);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color var(--dur-short) var(--ease-out);
}
.faq-summary::-webkit-details-marker { display: none; }

/* marker: plus that becomes a minus. transform/opacity only. */
.faq-marker {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  width: 0.95rem;
  height: 0.95rem;
  transform: translateY(-50%);
  pointer-events: none;
}
.faq-marker::before,
.faq-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--indigo);
  transition: transform var(--dur-short) var(--ease-out),
              opacity var(--dur-short) var(--ease-out),
              background-color var(--dur-short) var(--ease-out);
}
.faq-marker::before { width: 0.95rem; height: 1.5px; transform: translate(-50%, -50%); }
.faq-marker::after  { width: 1.5px; height: 0.95rem; transform: translate(-50%, -50%); }
.faq-item.is-open .faq-marker::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

/* 2 · hover (pointer devices only) */
@media (hover: hover) {
  .faq-summary:hover,
  .faq-summary.is-hover { color: #fff; }
  .faq-summary:hover .faq-marker::before,
  .faq-summary:hover .faq-marker::after,
  .faq-summary.is-hover .faq-marker::before,
  .faq-summary.is-hover .faq-marker::after { background: var(--ivory); }
}

/* 3 · focus — keyboard only, never animated */
.faq-summary:focus { outline: none; }
.faq-summary:focus-visible,
.faq-summary.is-focus {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 2px;
}

/* 4 · active / pressed */
.faq-summary:active,
.faq-summary.is-active { transform: translateY(1px); }

/* 5 · disabled */
.faq-item[data-state="disabled"] .faq-summary,
.faq-summary[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* 6 · loading — answer fetched async; label stays readable */
.faq-item[data-state="loading"] .faq-marker::after { opacity: 0; }
.faq-item[data-state="loading"] .faq-marker::before {
  width: 0.95rem;
  height: 0.95rem;
  background: none;
  border: 1.5px solid var(--rule-2);
  border-top-color: var(--indigo);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: faq-spin 700ms linear infinite;
}
@keyframes faq-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* 7 · error */
.faq-item[data-state="error"] { border-bottom-color: var(--danger); }
.faq-item[data-state="error"] .faq-marker::before,
.faq-item[data-state="error"] .faq-marker::after { background: var(--danger); }
.faq-msg { display: none; font-family: var(--font-body); font-size: var(--text-sm); margin: 0 0 var(--space-md); }
.faq-item[data-state="error"] .faq-msg { display: block; color: var(--danger); }

/* 8 · success */
.faq-item[data-state="success"] { border-bottom-color: var(--success); }
.faq-item[data-state="success"] .faq-marker::before,
.faq-item[data-state="success"] .faq-marker::after { background: var(--success); }
.faq-item[data-state="success"] .faq-msg { display: block; color: var(--success); }

/* answer: animated with grid-template-rows 0fr -> 1fr. A `height` transition
   would not run on this element at all (it stayed pending, so the used value
   never left 0). This technique needs no JS measurement and no fixed height. */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-long) var(--ease-out),
              visibility 0s linear var(--dur-long);
  visibility: hidden;
}
.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows var(--dur-long) var(--ease-out), visibility 0s;
}
.faq-answer-inner {
  overflow: hidden;
  min-height: 0;
  max-width: 46rem;
  padding: 0 3rem 0 0;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity var(--dur-short) var(--ease-out),
              transform var(--dur-short) var(--ease-out);
}
.faq-item.is-open .faq-answer-inner { opacity: 1; transform: none; padding-bottom: var(--space-md); }
.faq-answer .paragraph-with-line-height { color: var(--ivory); margin: 0; }
.faq-answer a { color: var(--indigo); text-decoration: none; border-bottom: 1px solid rgba(139, 163, 204, 0.35); }
.faq-answer a:hover { border-bottom-color: var(--indigo); }

@media screen and (max-width: 767px) {
  .faq-summary { font-size: 1rem; padding-right: 2.4rem; }
  .faq-answer-inner { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .faq-answer, .faq-answer-inner { transition: none; }
  .faq-item[data-state="loading"] .faq-marker::before { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── Event page (Soul India) ────────────────────────────────────────────
   Poster beside the hard facts. The facts are a <dl>: a date/time/venue list
   is definition data, not prose, and screen readers get the pairing free. */
.ev-hero {
  display: grid;
  grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: start;
  margin: var(--space-lg) 0 var(--space-2xl);
}
.ev-poster { width: 100%; height: auto; display: block; }
.ev-facts { min-width: 0; }
.ev-dl { margin: 0 0 var(--space-lg); }
.ev-row {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--rule-2);
}
.ev-row:first-child { border-top: 1px solid var(--rule-2); }
.ev-row dt {
  font-family: var(--font-util);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  padding-top: 0.2rem;
}
.ev-row dd {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ivory);
  overflow-wrap: anywhere;
}
.ev-cta {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
  background-color: var(--ivory);
  padding: var(--space-sm) var(--space-lg);
  text-decoration: none;
  transition: background-color var(--dur-short) var(--ease-out);
}
.ev-cta:hover { background-color: var(--indigo); }
.ev-note { font-family: var(--font-body); font-size: var(--text-sm); color: var(--ivory-dim); margin: var(--space-md) 0 0; }
@media screen and (max-width: 767px) {
  .ev-hero { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
  .ev-poster { max-width: 20rem; }
  .ev-row { grid-template-columns: 1fr; gap: 0.2rem; }
  /* "Book Tickets on BookMyShow" wraps to two lines at 375px; a two-line
     button is a hit-target and legibility problem. Tighten, don't truncate. */
  .ev-cta { display: block; text-align: center; font-size: 0.8rem; letter-spacing: 0.08em; padding: var(--space-sm) 0.75rem; }
}
