/* ============================================================
   THE HUMAN ELEMENT — EXPERIENCES CATALOGUE
   Catalogue grid + filters, experience detail, FAQ accordion.
   Loads after tokens.css / geomotif.css / shared.css, which carry
   the palette, the nav, the CTA band and the footer.
   ============================================================ */

/* ---- Catalogue ------------------------------------------------------- */

.catalogue {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-8) clamp(20px, 5vw, 40px) var(--space-9);
}

/* ---- Filters --------------------------------------------------------- */

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--space-4);
  align-items: end;
  padding: var(--space-5);
  border: 1.5px solid var(--he-ink);
  border-radius: var(--radius-lg);
  background: var(--he-grey-light);
}
.filters__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
}
/* Search is the primary control, so it takes the full first row on wide
   viewports rather than sitting as one select among five. */
.filters__group--search { grid-column: 1 / -1; }

.filters__label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--he-ink-soft);
}
.filters__input,
.filters__select {
  font-family: var(--font-grotesque);
  font-size: 15px;
  color: var(--he-ink);
  background: var(--he-white);
  border: 1.5px solid var(--he-ink);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  width: 100%;
  min-width: 0;
  appearance: none;
}
.filters__select {
  /* Inline chevron rather than a background image file — one less request,
     and it inherits the ink colour. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23111' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  padding-right: 32px;
}
.filters__input:focus-visible,
.filters__select:focus-visible {
  outline: 2px solid var(--he-orange);
  outline-offset: 2px;
}
.filters__clear { justify-self: start; }

.catalogue__count {
  margin: var(--space-5) 0 var(--space-4);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--he-ink-soft);
}
.catalogue__empty {
  margin: var(--space-8) 0;
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--he-ink-soft);
}

/* ---- Experience cards ------------------------------------------------ */

.exp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-5);
}
.exp-card {
  border: 1.5px solid var(--he-ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--he-white);
  /* A soft ambient shadow at rest, on top of the signature hard offset
     shadow on hover — flat until interaction reads as inert on a grid this
     size; a little lift at rest sells the cards as objects. */
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.05), 0 4px 12px rgba(17, 17, 17, 0.06);
  transition: transform var(--dur-base) var(--ease-standard),
              box-shadow var(--dur-base) var(--ease-standard);
}
.exp-card[hidden] { display: none; }
.exp-card:hover,
.exp-card:focus-within {
  transform: translateY(-3px);
  box-shadow: 6px 6px 0 var(--he-ink);
}
.exp-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.exp-card__media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  background: var(--he-grey-2);
  border-bottom: 1.5px solid var(--he-ink);
  overflow: hidden;
}
.exp-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.exp-card__badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--he-ink);
  background: var(--he-white);
}
.exp-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-4) var(--space-5);
  flex: 1;
}
.exp-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.exp-card__lead {
  font-size: 14px;
  line-height: 1.5;
  color: var(--he-ink-soft);
}
.exp-card__meta {
  margin-top: auto;
  padding-top: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--he-ink-soft);
}
/* Accent rotates by index, the same device the main site uses for its
   perspective cards and project rows. */
.exp-card--blue .exp-card__media { background: var(--he-blue-tint); }
.exp-card--teal .exp-card__media { background: var(--he-teal-tint); }
.exp-card--lilac .exp-card__media { background: var(--he-lilac-tint); }
.exp-card--orange .exp-card__media { background: var(--he-orange-tint); }

/* ---- Experience detail ----------------------------------------------- */

.experience {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-6) clamp(20px, 5vw, 40px) var(--space-9);
}
.experience__back {
  margin: 0 0 var(--space-5);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.experience__back a { color: var(--he-ink-soft); text-decoration: none; }
.experience__back a:hover { color: var(--he-orange); }

.experience__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: center;
  margin-bottom: var(--space-7);
}
.experience__intro { display: flex; flex-direction: column; gap: var(--space-4); }
.experience__eyebrow {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--he-ink-soft);
}
/* Inside the eyebrow the badge is inline, not pinned to a corner. */
.experience__eyebrow .exp-card__badge { position: static; }
.experience__flag {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--he-orange);
  color: var(--he-white);
  font-weight: 600;
}
.experience__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
/* Same _word_ emphasis convention as every other page title on the site —
   opt-in per record by adding underscores in Airtable's Name field. */
.experience__title em {
  font-family: var(--font-serif);
  font-style: italic;
  text-transform: lowercase;
  font-weight: 400;
  color: var(--he-orange);
}
.experience__lead {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.35;
  color: var(--he-ink-soft);
}
.experience__media {
  border: 1.5px solid var(--he-ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--he-grey-2);
}
.experience__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.experience__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
  gap: var(--space-8);
  padding-top: var(--space-7);
  align-items: start;
}
.experience__main { min-width: 0; display: flex; flex-direction: column; gap: var(--space-7); }
.experience__aside {
  position: sticky;
  top: 96px; /* clears the sticky nav */
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.prose p { margin: 0 0 var(--space-4); font-size: 16px; line-height: 1.65; }
.prose p:last-child { margin-bottom: 0; }
.prose a { color: var(--he-ink); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--he-orange); }

/* shared.css's generic `.section` (built for the main site's own layout)
   carries a border-bottom we don't reset — it was sitting flush against the
   last line of content with no padding-bottom to separate them. */
.section { display: flex; flex-direction: column; gap: var(--space-4); padding-bottom: var(--space-5); }
/* Sentence case and no rule — these read as in-page headings, not the small
   uppercase labels used for the aside (.facts__title / .chips__label). */
.section__title {
  margin: 0;
  font-family: var(--font-grotesque);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: normal;
  text-transform: none;
}

/* "Why it matters" callouts, parsed out of the Airtable description blob. */
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.why-list__item {
  padding: var(--space-4);
  border-radius: var(--radius-md, 10px);
  background: var(--he-orange-tint);
}
.why-list__item:nth-child(4n + 2) { background: var(--he-blue-tint); }
.why-list__item:nth-child(4n + 3) { background: var(--he-teal-tint); }
.why-list__item:nth-child(4n + 4) { background: var(--he-lilac-tint); }
.why-list__label {
  margin: 0 0 var(--space-1);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--he-orange-deep);
}
.why-list__item:nth-child(4n + 2) .why-list__label { color: var(--he-blue-deep); }
.why-list__item:nth-child(4n + 3) .why-list__label { color: var(--he-teal-deep); }
.why-list__item:nth-child(4n + 4) .why-list__label { color: var(--he-lilac-deep); }
.why-list__item p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--he-ink-soft); }

.included-list {
  margin: 0;
  padding-left: var(--space-4);
  display: grid;
  gap: var(--space-3);
  list-style: '— ';
}
.included-list li { font-size: 15px; line-height: 1.6; padding-left: var(--space-1); }
/* The toolkit-example sentence reads as a footnote below the list, not
   another bullet — separated by a rule rather than another dash. */
.included-note {
  margin: 0;
  padding-top: var(--space-3);
  border-top: 1px solid var(--he-grey-3);
  font-size: 14px;
  line-height: 1.6;
  color: var(--he-ink-soft);
}

.experience__gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
.experience__gallery img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  border: 1.5px solid var(--he-ink);
  border-radius: var(--radius-sm);
  background: var(--he-grey-2);
}

/* ---- Facts panel + chips --------------------------------------------- */

/* No card chrome here on purpose — the aside sits directly on the page,
   distinguished from the main column by the small uppercase labels rather
   than a bordered/shadowed panel. */
.facts {
  padding: 0;
}
.facts__title {
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.facts__list { margin: 0; display: grid; gap: var(--space-3); }
.facts__row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--he-grey-3);
}
.facts__row:last-child { border-bottom: 0; padding-bottom: 0; }
.facts__row dt {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--he-ink-soft);
}
/* Values come straight from free-text Airtable fields — a comma-run of opening
   times or a long venue name has no break opportunity and would otherwise push
   the page into horizontal scroll. */
.facts__row dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  min-width: 0;
  overflow-wrap: anywhere;
}

.chips { display: flex; flex-direction: column; gap: var(--space-3); }
.chips__label {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--he-ink-soft);
}
.chips__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip {
  font-size: 12px;
  padding: 5px 11px;
  border: 1.5px solid var(--he-ink);
  border-radius: var(--radius-pill);
  background: var(--he-white);
}

/* ---- FAQ ------------------------------------------------------------- */

.faq {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-8) clamp(20px, 5vw, 40px) var(--space-9);
}
.faq__group { margin-bottom: var(--space-7); }
.faq__group-title {
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--he-ink-soft);
}
/* <details>/<summary> so the accordion works with no JS and is keyboard
   accessible without any ARIA of our own. */
.faq-item {
  border-bottom: 1.5px solid var(--he-ink);
}
.faq-item__q {
  list-style: none;
  cursor: pointer;
  padding: var(--space-4) var(--space-6) var(--space-4) 0;
  position: relative;
  font-family: var(--font-grotesque);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.35;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--he-orange);
}
.faq-item[open] .faq-item__q::after { content: '–'; }
.faq-item__q:focus-visible { outline: 2px solid var(--he-orange); outline-offset: -2px; }
.faq-item__a {
  padding: 0 var(--space-6) var(--space-5) 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--he-ink-soft);
}
.faq-item__a > :first-child { margin-top: 0; }
.faq-item__a > :last-child { margin-bottom: 0; }
.faq-item__a a { color: var(--he-ink); text-decoration: underline; text-underline-offset: 3px; }

/* Skeleton rows stand in at roughly the height of a collapsed question. */
.faq-item--skeleton { padding: var(--space-4) 0; }
.faq__message {
  margin: var(--space-6) 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  color: var(--he-ink-soft);
}

/* Short FAQ preview embedded near the bottom of an experience page — reuses
   .faq-item as-is; it already sits inside .experience__main's column so it
   needs none of .faq's own max-width/padding. */
.faq__list--preview .faq-item:first-child { border-top: 1.5px solid var(--he-ink); }
.section__more {
  margin: var(--space-4) 0 0;
  font-family: var(--font-grotesque);
  font-weight: 600;
  font-size: 15px;
}
.section__more a { color: var(--he-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---- Responsive ------------------------------------------------------ */

@media (max-width: 900px) {
  .experience__header { grid-template-columns: 1fr; gap: var(--space-5); }
  .experience__grid { grid-template-columns: 1fr; gap: var(--space-7); }
  /* Sticking the facts panel only makes sense beside the copy, not above it. */
  .experience__aside { position: static; }
}

@media (max-width: 640px) {
  /* The motif panel is decoration, and at 320px tall it pushed the first
     experience card a full screen below the fold on a phone. */
  .page-header__panel { display: none; }
  .catalogue { padding: var(--space-6) 20px var(--space-8); }
  .experience { padding: var(--space-5) 20px var(--space-8); }
  .faq { padding: var(--space-6) 20px var(--space-8); }
  .filters { padding: var(--space-4); }
  .exp-grid { grid-template-columns: 1fr; }
}
