/* Lower Floor: original Figma colors, columns, text sizes, and spacing. */
.qhlf-page {

  --lower-bg: #0F0E0C;

  --lower-surface: #181614;

  --lower-border: #2A251E;

  --lower-gold: #E6C587;

  --lower-title: #F3E5C8;

  --lower-body: #EFECE6;

  --lower-gutter: clamp(22px, 7.407407vw, 96px);

  position: relative;

  width: 100%;

  max-width: 100%;

  margin: 0;

  padding: 0;

  overflow-x: clip;

  background: var(--lower-bg);

  color: var(--lower-body);

  font-family: 'Inter', Arial, sans-serif;

}

.qhlf-page *, .qhlf-page *::before, .qhlf-page *::after {

  box-sizing: border-box;

}

.qhlf-page :is(h1, h2, h3, p, blockquote, figure, ol) {

  margin: 0;

}

.qhlf-page :is(h1, h2, h3, p, blockquote, strong) {

  text-decoration: none;

  text-shadow: none;

  filter: none;

}

.qhlf-page .qhlf-wrap {

  width: calc(100% - var(--lower-gutter) * 2);

  max-width: 1104px;

  margin-inline: auto;

}

/* Shared text styles: gold labels, cream headings, and readable paragraphs. */
.qhlf-page .qhlf-kicker {

  color: var(--lower-gold);

  font: 600 11px/16px 'Inter', Arial, sans-serif;

  letter-spacing: .16em;

}

.qhlf-page .qhlf-title {

  margin-top: 24px;

  color: var(--lower-title);

  font: 400 40px/48px 'Playfair Display', Georgia, serif;

  letter-spacing: .06em;

  overflow-wrap: break-word;

}

.qhlf-page .qhlf-title--small {

  font-size: 30px;

  line-height: 38px;

}

.qhlf-page .qhlf-subtitle {

  margin-top: 24px;

  color: var(--lower-gold);

  font: 600 12px/18px 'Inter', Arial, sans-serif;

  letter-spacing: .16em;

}

.qhlf-page .qhlf-gold-rule {

  display: block;

  width: 48px;

  height: 2px;

  margin-top: 24px;

  background: var(--lower-gold);

}

.qhlf-page .qhlf-lead,
.qhlf-page .qhlf-quote {

  color: var(--lower-title);

  font: 400 30px/38px 'Playfair Display', Georgia, serif;

  letter-spacing: .06em;

  overflow-wrap: break-word;

}

.qhlf-page .qhlf-body,
.qhlf-page .qhlf-timeline p {

  color: var(--lower-body);

  font: 400 20px/32px 'Inter', Arial, sans-serif;

  letter-spacing: 0;

  overflow-wrap: break-word;

}

.qhlf-page :is(.qhlf-lead, .qhlf-body, .qhlf-quote) + :is(.qhlf-lead, .qhlf-body, .qhlf-quote),
.qhlf-page .qhlf-gold-rule + :is(.qhlf-lead, .qhlf-body) {

  margin-top: 24px;

}

.qhlf-page .qhlf-quote {

  padding-left: 24px;

  border-left: 3px solid var(--lower-gold);

}

/* Keep these three quotes dim until the mouse brings out their warm glow. */
.qhlf-page .qhlf-layout--aurora .qhlf-quote,
.qhlf-page .qhlf-layout--learning .qhlf-quote,
.qhlf-page .qhlf-layout--refusal .qhlf-quote {

  color: rgba(245, 239, 230, 0.38);

  text-shadow: none;

  transition: color 350ms ease, text-shadow 350ms ease, border-left-color 350ms ease;

}

@media (hover: hover) and (pointer: fine) {

  .qhlf-page .qhlf-layout--aurora .qhlf-quote:hover,
  .qhlf-page .qhlf-layout--learning .qhlf-quote:hover,
  .qhlf-page .qhlf-layout--refusal .qhlf-quote:hover {

    color: #F5EFE6;

    text-shadow: 0 0 14px rgba(229, 194, 133, 0.55), 0 0 28px rgba(229, 194, 133, 0.25);

    border-left-color: #E5C285;

  }

}

/* CODE OF ETHICS: all sixteen principles stay in the normal page scroll. */
.qhlf-page .qhlf-ethics {

  display: grid;

  grid-template-columns: minmax(0, 464fr) minmax(0, 584fr);

  gap: 56px;

  padding-block: 160px;

  align-items: start;

}

/* Keep the title beside the sixteen principles while the page scrolls. */
.qhlf-page .qhlf-ethics-heading {

  position: sticky;

  top: 140px;

  align-self: start;

}

.qhlf-page .qhlf-ethics-heading .qhlf-title {

  margin-top: 20px;

}

.qhlf-page .qhlf-ethics-heading .qhlf-gold-rule {

  margin-top: 20px;

}

/* Extra room lets the first and last principles reach the screen center. */
.qhlf-page .qhlf-ethics-list {

  padding: 22vh 0 28vh;

  list-style: none;

  min-width: 0;

}

/* The script changes brightness by distance from the screen center. */
.qhlf-page.has-spotlight .qhlf-ethics-item {

  opacity: var(--ethics-opacity, 1);

  transform: scale(var(--ethics-scale, 1));

  transform-origin: center center;

  transition: opacity 380ms cubic-bezier(.22,1,.36,1), transform 380ms cubic-bezier(.22,1,.36,1);

}

.qhlf-page.has-spotlight .qhlf-ethics-item.is-spotlight {

  opacity: 1;

  transform: translateY(0) scale(1);

}

.qhlf-page.has-spotlight .qhlf-ethics-item.is-spotlight .qhlf-ethics-number {

  color: #E5C285;

  opacity: 1;

}

.qhlf-page.has-spotlight .qhlf-ethics-item.is-spotlight > p {

  color: #F5EFE6;

}

.qhlf-page .qhlf-ethics-number {

  transition: color 380ms ease, opacity 380ms ease;

}

.qhlf-page .qhlf-ethics-item > p {

  transition: color 380ms ease;

}

.qhlf-page .qhlf-ethics-item {

  display: grid;

  grid-template-columns: 136px minmax(0, 1fr);

  column-gap: 32px;

  align-items: start;

}

.qhlf-page .qhlf-ethics-item:not(:last-child) {

  margin-bottom: 32px;

  padding-bottom: 32px;

  border-bottom: 1px solid var(--lower-border);

}

.qhlf-page .qhlf-ethics-number {

  color: var(--lower-gold);

  opacity: .4;

  font: 400 96px/96px 'Playfair Display', Georgia, serif;

  letter-spacing: 0;

}

.qhlf-page .qhlf-ethics-item > p {

  color: var(--lower-title);

  font: 400 30px/38px 'Playfair Display', Georgia, serif;

  letter-spacing: .06em;

  overflow-wrap: break-word;

}

/* Keep the complete house card compact without hiding any text. */
.qhlf-page .qhlf-house-section {

  padding-bottom: 160px;

}

.qhlf-page .qhlf-house-card {

  display: grid;

  grid-template-columns: minmax(0, 488fr) minmax(0, 446fr);

  width: 100%;

  max-width: 980px;

  margin-inline: auto;

  gap: 32px;

  padding: 28px 36px;

  border: 1px solid var(--lower-gold);

  border-radius: 16px;

  background: var(--lower-surface);

  align-items: stretch;

}

.qhlf-page .qhlf-house-photo {

  position: relative;

  min-width: 0;

  min-height: 0;

  height: 430px;

  max-height: 430px;

  overflow: hidden;

  border-radius: 12px;

}

.qhlf-page .qhlf-house-photo img {

  position: absolute;

  inset: 0;

  width: 100%;

  height: 100%;

  object-fit: cover;

}

.qhlf-page .qhlf-house-copy {

  min-width: 0;

}

.qhlf-page .qhlf-copy-divider {

  height: 1px;

  margin-top: 24px;

  background: var(--lower-border);

}

.qhlf-page .qhlf-copy-divider + .qhlf-body {

  margin-top: 24px;

}

/* Smaller house headings and paragraphs leave room for the whole story. */
.qhlf-page .qhlf-house-copy .qhlf-title {

  margin-top: 12px;

  font-size: 1.75rem;

  line-height: 1.2;

  letter-spacing: .04em;

}

.qhlf-page .qhlf-house-copy .qhlf-lead {

  font-size: 1.1rem;

  line-height: 1.55;

  letter-spacing: .02em;

}

.qhlf-page .qhlf-house-copy .qhlf-body {

  font-size: .9rem;

  line-height: 1.55;

}

/* Shorten the spaces between the house card's text blocks. */
.qhlf-page .qhlf-house-copy :is(.qhlf-lead, .qhlf-body) {

  margin-top: 12px;

  margin-bottom: 12px;

}

.qhlf-page .qhlf-house-copy .qhlf-body:last-child {

  margin-bottom: 0;

}

.qhlf-page .qhlf-house-copy .qhlf-gold-rule {

  margin-top: 12px;

}

.qhlf-page .qhlf-house-copy .qhlf-copy-divider {

  margin-top: 12px;

}

/* EXHIBITS: preserve the individual column widths from Figma. */
.qhlf-page .qhlf-exhibits {

  padding-bottom: 160px;

}

.qhlf-page .qhlf-exhibit:not(:last-child) {

  padding-bottom: 80px;

  margin-bottom: 80px;

  border-bottom: 1px solid var(--lower-border);

}

.qhlf-page .qhlf-layout {

  display: grid;

  align-items: start;

  gap: 96px;

}

.qhlf-page .qhlf-layout > * {

  min-width: 0;

}

/* Keep the portrait and full Aurora story together in a smaller reading area. */
.qhlf-page .qhlf-layout--aurora {

  grid-template-columns: minmax(0, 380fr) minmax(0, 520fr);

  width: 100%;

  max-width: 1020px;

  min-height: 0;

  margin-inline: auto;

  padding: 36px 24px;

  gap: 36px;

}

/* Show the full portrait without cropping it. */
.qhlf-page .qhlf-aurora-photo {

  display: flex;

  justify-content: center;

  align-items: flex-start;

  overflow: hidden;

  border-radius: 12px;

}

.qhlf-page .qhlf-aurora-photo img {

  display: block;

  width: auto;

  max-width: 100%;

  height: auto;

  max-height: 440px;

  aspect-ratio: auto;

  object-fit: contain;

  background: transparent;

}

/* Smaller type and shorter gaps keep Aurora's full quotation visible. */
.qhlf-page .qhlf-layout--aurora .qhlf-title {

  margin-top: 12px;

  font-size: 1.75rem;

  line-height: 1.2;

  letter-spacing: .04em;

}

.qhlf-page .qhlf-layout--aurora .qhlf-subtitle {

  margin-top: 12px;

  font-size: .65rem;

  line-height: 1.5;

  letter-spacing: .12em;

}

.qhlf-page .qhlf-layout--aurora .qhlf-gold-rule {

  margin-top: 12px;

}

.qhlf-page .qhlf-layout--aurora .qhlf-lead {

  margin-top: 12px;

  font-size: 1.1rem;

  line-height: 1.55;

  letter-spacing: .02em;

}

.qhlf-page .qhlf-layout--aurora .qhlf-body {

  margin-top: 12px;

  font-size: .9rem;

  line-height: 1.55;

}

.qhlf-page .qhlf-layout--aurora .qhlf-quote {

  margin-top: 12px;

  padding-left: 16px;

  font-size: 1rem;

  line-height: 1.55;

  letter-spacing: .02em;

}

.qhlf-page .qhlf-layout--ladies,
.qhlf-page .qhlf-layout--recording {

  grid-template-columns: minmax(0, 440fr) minmax(0, 568fr);

}

.qhlf-page .qhlf-layout--ladies {

  min-height: 480px;

}

.qhlf-page .qhlf-layout--recording {

  min-height: 336px;

}

/* Keep the photo frame free of extra spacing around the photograph. */
.qhlf-page .qhlf-photo-slot {

  position: relative;

  width: 100%;

  min-width: 0;

  min-height: 480px;

  height: 480px;

  margin: 0;

  padding: 0;

  overflow: hidden;

  border: 1px solid var(--lower-border);

  border-radius: 12px;

  background: var(--lower-surface);

}

/* Fill the rounded frame completely, cropping the photo edges when needed. */
.qhlf-page .qhlf-photo-slot img {

  position: absolute;

  inset: 0;

  display: block;

  width: 100%;

  height: 100%;

  object-fit: cover;

  border-radius: inherit;

}

.qhlf-page .qhlf-layout--independence {

  display: block;

  min-height: 356px;

}

.qhlf-page .qhlf-layout--learning {

  grid-template-columns: minmax(0, 568fr) minmax(0, 440fr);

  min-height: 450px;

}

.qhlf-page .qhlf-layout--gift,
.qhlf-page .qhlf-layout--refusal {

  grid-template-columns: minmax(0, 520fr) minmax(0, 488fr);

}

.qhlf-page .qhlf-layout--gift {

  min-height: 900px;

}

.qhlf-page .qhlf-layout--refusal {

  min-height: 532px;

}

/* STAMP CARDS: a three-column catalog with gold years and dashed borders. */
.qhlf-page .qhlf-layout--stamps {

  display: block;

  min-height: 866px;

}

.qhlf-page .qhlf-stamp-grid {

  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 40px 32px;

  margin-top: 40px;

}

.qhlf-page .qhlf-stamp {

  min-width: 0;

  min-height: 310px;

  padding: 32px;

  border: 1px dashed var(--lower-gold);

  border-radius: 12px;

  background: var(--lower-surface);

}

.qhlf-page .qhlf-stamp:nth-child(-n+3) {

  min-height: 362px;

}

.qhlf-page .qhlf-stamp-year {

  color: var(--lower-gold);

  font: 400 56px/64px 'Playfair Display', Georgia, serif;

  letter-spacing: 0;

}

.qhlf-page .qhlf-stamp h3 {

  margin-top: 16px;

  color: var(--lower-title);

  font: 600 14px/22px 'Inter', Arial, sans-serif;

  letter-spacing: .08em;

  overflow-wrap: break-word;

}

.qhlf-page .qhlf-stamp-description {

  margin-top: 16px;

  color: var(--lower-body);

  font: 400 16px/26px 'Inter', Arial, sans-serif;

  overflow-wrap: break-word;

}

/* TIMELINE: gold dots and dates beside the Red Cross story. */
.qhlf-page .qhlf-timeline {

  padding: 0;

  list-style: none;

}

.qhlf-page .qhlf-timeline li {

  display: grid;

  grid-template-columns: 10px minmax(0, 1fr);

  gap: 24px;

}

.qhlf-page .qhlf-timeline li::before {

  content: '';

  width: 6px;

  height: 6px;

  margin-top: 7.5px;

  border-radius: 50%;

  background: var(--lower-gold);

}

.qhlf-page .qhlf-timeline li:not(:last-child) {

  margin-bottom: 32px;

  padding-bottom: 32px;

  border-bottom: 1px solid var(--lower-border);

}

.qhlf-page .qhlf-timeline strong {

  color: var(--lower-gold);

  font-weight: 600;

}

/* REPEATING ENTRANCE: fade and gently lift content as it enters the screen. */
.qhlf-page .qhlf-reveal {

  opacity: 1;

  transform: none;

  transition: opacity 700ms ease, transform 700ms cubic-bezier(.22,1,.36,1);

}

.qhlf-page.has-reveals .qhlf-reveal:not(.is-visible) {

  opacity: 0;

  transform: translateY(24px);

}

/* Keep the entrance fade, while hover responds immediately on the card only. */
.qhlf-page .qhlf-stamp {

  transition: transform 350ms cubic-bezier(.22,1,.36,1), border-color 350ms ease, background-color 350ms ease, box-shadow 350ms ease, opacity 700ms ease;

  transition-delay: 0s, 0s, 0s, 0s, var(--reveal-delay, 0ms);

}

/* Lift and illuminate the dashed card; its text keeps the same styling. */
@media (hover: hover) and (pointer: fine) {

  .qhlf-page:not(.has-reveals) .qhlf-stamp:hover,
  .qhlf-page.has-reveals .qhlf-stamp.is-visible:hover {

    transform: translateY(-6px);

    border-color: rgba(229, 194, 133, .78);

    background-color: #161411;

    box-shadow: 0 14px 32px rgba(0, 0, 0, .65), 0 0 22px rgba(229, 194, 133, .12);

  }

}

/* Footer links still lead back to the gallery and Upper Floor. */
.qhlf-page .qhlf-footer {

  display: flex;

  justify-content: space-between;

  flex-wrap: wrap;

  gap: 18px;

  padding: 30px var(--lower-gutter);

  background: #15120F;

  border-top: 1px solid #55462F;

}

.qhlf-page .qhlf-footer a {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  min-height: 44px;

  padding: 12px 22px;

  border: 1px solid #C9A871;

  border-radius: 28px;

  color: #F3DFB9;

  font: 500 13px/1.4 Arial, sans-serif;

  text-decoration: none;

}

.qhlf-page .qhlf-footer a:focus-visible {

  outline: 2px solid var(--lower-gold);

  outline-offset: 4px;

}

/* TABLETS: stack wide editorial columns so text stays readable. */
@media (max-width: 1000px) {

  .qhlf-page {

    --lower-gutter: 32px;

  }

  .qhlf-page .qhlf-ethics {

    grid-template-columns: minmax(0, 1fr);

    gap: 56px;

  }

  .qhlf-page .qhlf-ethics-heading {

    max-width: 464px;

    position: static;

  }

  .qhlf-page .qhlf-layout:not(.qhlf-layout--aurora) {

    grid-template-columns: minmax(0, 1fr);

    gap: 40px;

    min-height: 0;

  }

  .qhlf-page .qhlf-aurora-photo {

    width: min(100%, 443px);

  }

  .qhlf-page .qhlf-stamp-grid {

    grid-template-columns: repeat(2, minmax(0, 1fr));

  }

  .qhlf-page .qhlf-stamp, .qhlf-page .qhlf-stamp:nth-child(-n+3) {

    min-height: 310px;

  }

}

/* Stack only these two compact sections when two columns become too narrow. */
@media (max-width: 760px) {

  .qhlf-page .qhlf-house-card {

    grid-template-columns: minmax(0, 1fr);

    padding: 24px;

    gap: 24px;

  }

  .qhlf-page .qhlf-house-photo {

    height: 300px;

    max-height: 430px;

  }

  .qhlf-page .qhlf-layout--aurora {

    grid-template-columns: minmax(0, 1fr);

    padding: 24px 0;

    gap: 24px;

  }

  .qhlf-page .qhlf-aurora-photo {

    width: 100%;

  }

}

/* PHONES: smaller numbers, comfortable text sizes, and single-column cards. */
@media (max-width: 600px) {

  .qhlf-page {

    --lower-gutter: 22px;

  }

  .qhlf-page .qhlf-ethics {

    padding-block: 160px 80px;

    gap: 40px;

  }

  .qhlf-page .qhlf-ethics-item {

    grid-template-columns: 64px minmax(0, 1fr);

    gap: 20px;

  }

  .qhlf-page .qhlf-ethics-number {

    font-size: 56px;

    line-height: 64px;

  }

  .qhlf-page .qhlf-ethics-item > p {

    font-size: 22px;

    line-height: 32px;

    letter-spacing: .03em;

  }

  .qhlf-page .qhlf-title {

    font-size: 30px;

    line-height: 38px;

    letter-spacing: .04em;

  }

  .qhlf-page .qhlf-title--small {

    font-size: 26px;

    line-height: 34px;

  }

  .qhlf-page .qhlf-lead, .qhlf-page .qhlf-quote {

    font-size: 24px;

    line-height: 34px;

    letter-spacing: .03em;

  }

  .qhlf-page .qhlf-body, .qhlf-page .qhlf-timeline p {

    font-size: 18px;

    line-height: 30px;

  }

  .qhlf-page .qhlf-house-section, .qhlf-page .qhlf-exhibits {

    padding-bottom: 80px;

  }

  .qhlf-page .qhlf-house-card {

    padding: 24px;

    gap: 32px;

  }

  .qhlf-page .qhlf-house-photo {

    min-height: 0;

  }

  .qhlf-page .qhlf-exhibit:not(:last-child) {

    padding-bottom: 48px;

    margin-bottom: 48px;

  }

  .qhlf-page .qhlf-stamp-grid {

    grid-template-columns: minmax(0, 1fr);

    gap: 24px;

  }

  .qhlf-page .qhlf-stamp, .qhlf-page .qhlf-stamp:nth-child(-n+3) {

    min-height: 0;

    padding: 24px;

  }

  .qhlf-page .qhlf-footer {

    flex-direction: column;

    align-items: stretch;

  }

}

/* LESS ANIMATION: keep everything visible when the visitor requests it. */
@media (prefers-reduced-motion: reduce) {

  .qhlf-page .qhlf-reveal {

    transition: none;

  }

  .qhlf-page .qhlf-layout--aurora .qhlf-quote,
  .qhlf-page .qhlf-layout--learning .qhlf-quote,
  .qhlf-page .qhlf-layout--refusal .qhlf-quote {

    transition: none;

  }

  /* Keep the card's gold cue, but remove movement for reduced motion. */
  .qhlf-page .qhlf-stamp {

    transition: none;

  }

  .qhlf-page:not(.has-reveals) .qhlf-stamp:hover,
  .qhlf-page.has-reveals .qhlf-stamp.is-visible:hover {

    transform: none;

  }

  .qhlf-page.has-spotlight .qhlf-ethics-item {

    opacity: 1;

    transform: none;

    transition: none;

  }

  .qhlf-page .qhlf-ethics-number,
  .qhlf-page .qhlf-ethics-item > p {

    transition: none;

  }

  .qhlf-page.has-reveals .qhlf-reveal:not(.is-visible) {

    opacity: 1;

    transform: none;

  }

}

/* Widescreen lower floor fluid exhibition canvas, keep existing column proportions. */
@media (min-width: 1200px) {

  .qhlf-page {

    --lower-gutter: clamp(32px, 4vw, 88px);

  }

  .qhlf-page .qhlf-wrap {

    width: calc(100% - var(--lower-gutter) * 2);

    max-width: none;

    margin-inline: auto;

  }

  .qhlf-page .qhlf-house-card {

    width: 100%;

    max-width: none;

    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);

    gap: clamp(32px, 4vw, 72px);

  }

  .qhlf-page .qhlf-layout--aurora {

    width: 100%;

    max-width: none;

    grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);

    gap: clamp(32px, 4vw, 72px);

  }

  .qhlf-page .qhlf-layout {

    column-gap: clamp(36px, 5vw, 100px);

  }

}
