:root {
  --hof-ink: #171512;
  --hof-deep: #080808;
  --hof-paper: #fbfaf7;
  --hof-cream: #f1ece3;
  --hof-gold: #c9a86c;
  --hof-gold-deep: #9b7131;
  --hof-line: rgba(145, 105, 44, .28);
}

.hof-page {
  color: var(--hof-ink);
  background: var(--hof-paper);
}

/* The shared shell uses overflow: clip on image-led pages. Sticky navigation
   needs a visible scrolling ancestor, as on the V2 landing-page foundation. */
.page-shell {
  overflow: visible;
}

.hof-container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.hof-eyebrow {
  margin: 0 0 16px;
  color: var(--hof-gold-deep);
  font: 700 11px/1.2 var(--sans);
  letter-spacing: .19em;
  text-transform: uppercase;
}

.hof-hero {
  position: relative;
  min-height: 670px;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  background: #17110c url("/hall-of-fame/img/bg-loft-thai-hall-of-fame.jpg") center 38% / cover no-repeat;
}

.hof-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .67) 43%, rgba(0, 0, 0, .18) 73%, rgba(0, 0, 0, .24) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, .68), transparent 47%);
}

.hof-hero-inner {
  position: relative;
  z-index: 1;
  min-height: 548px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 72px;
  padding-block: 64px 76px;
}

.hof-hero-copy {
  max-width: 725px;
}

.hof-hero .hof-eyebrow {
  color: #d7b16a;
}

.hof-hero h1 {
  margin: 0 0 24px;
  color: #fff;
  font-size: clamp(62px, 6.5vw, 94px);
  font-weight: 400;
  line-height: .83;
  letter-spacing: -.035em;
}

.hof-hero h1 em {
  display: block;
  max-width: 650px;
  margin-top: 21px;
  color: var(--hof-gold);
  font-size: .52em;
  font-weight: 400;
  line-height: .98;
}

.hof-hero-lede {
  max-width: 650px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, .72);
  font-size: 15px;
  line-height: 1.72;
}

.hof-hero-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 13px;
  padding: 0 19px;
  color: #fff;
  border: 1px solid rgba(201, 168, 108, .7);
  font-size: 12px;
  font-weight: 700;
  transition: color .2s ease, background .2s ease;
}

.hof-hero-link:hover,
.hof-hero-link:focus-visible {
  color: #12100d;
  background: var(--hof-gold);
}

.hof-hero-facts {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  min-height: 104px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  margin: 0 auto;
  border: 1px solid rgba(201, 168, 108, .45);
  border-bottom: 0;
  background: rgba(7, 7, 7, .86);
  backdrop-filter: blur(10px);
}

.hof-hero-facts div {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 27px;
  border-right: 1px solid rgba(201, 168, 108, .3);
}

.hof-hero-facts div:last-child {
  border-right: 0;
}

.hof-hero-facts strong {
  color: var(--hof-gold);
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
}

.hof-hero-facts span {
  color: rgba(255, 255, 255, .68);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hof-intro {
  padding: 104px 0 96px;
  background:
    linear-gradient(rgba(255, 255, 255, .9), rgba(255, 255, 255, .9)),
    repeating-linear-gradient(90deg, transparent 0, transparent 195px, rgba(157, 117, 50, .08) 196px);
}

.hof-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
  gap: clamp(52px, 8vw, 130px);
  align-items: start;
}

.hof-intro h2,
.hof-gallery-head h2 {
  margin: 0;
  font-size: clamp(50px, 5vw, 74px);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.025em;
}

.hof-intro h2 em,
.hof-gallery-head h2 em {
  color: var(--hof-gold-deep);
  font-weight: 400;
}

.hof-intro-copy {
  padding-top: 29px;
  border-top: 1px solid var(--hof-line);
}

.hof-intro-copy p {
  margin: 0;
  color: #716b62;
  font-size: 15px;
  line-height: 1.78;
}

.hof-intro-copy .hof-intro-lead {
  margin-bottom: 20px;
  color: #332d26;
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.28;
}

.hof-gallery-section {
  scroll-margin-top: calc(var(--hof-header-height, 92px) + 20px);
  padding: 82px 0 96px;
  background: var(--hof-cream);
  border-top: 1px solid var(--hof-line);
}

.hof-gallery-head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, .6fr);
  gap: clamp(42px, 8vw, 124px);
  align-items: end;
  margin-bottom: 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--hof-line);
}

.hof-gallery-head > p {
  margin: 0 0 5px;
  color: #6e675d;
  font-size: 15px;
  line-height: 1.72;
}

.hof-toolbar {
  position: sticky;
  z-index: 24;
  top: var(--hof-header-height, 92px);
  margin-bottom: 30px;
  background: rgba(255, 255, 255, .97);
  border-top: 1px solid var(--hof-line);
  border-bottom: 1px solid var(--hof-line);
  box-shadow: 0 8px 22px rgba(39, 28, 18, .06);
  backdrop-filter: blur(12px);
}

.hof-toolbar-inner {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 13px;
}

.hof-filter-group {
  display: flex;
  min-width: 0;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.hof-filter-group::-webkit-scrollbar {
  display: none;
}

.hof-filter-group button {
  display: inline-flex;
  min-width: max-content;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 19px;
  color: #5f584e;
  border: 1px solid var(--hof-gold);
  background: #fff;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}

.hof-filter-group button span {
  margin-left: 7px;
  color: var(--hof-gold-deep);
  font-family: var(--serif);
  font-size: 15px;
}

.hof-filter-group button:hover,
.hof-filter-group button:focus-visible,
.hof-filter-group button.is-active {
  color: #17130e;
  background: var(--hof-gold);
  border-color: var(--hof-gold);
}

.hof-filter-group button.is-active span {
  color: #17130e;
}

.hof-result-count {
  margin: 0;
  color: #777067;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hof-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 16px;
}

.hof-card {
  min-width: 0;
  height: 590px;
  grid-column: span 3;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(145, 105, 44, .25);
  box-shadow: 0 12px 32px rgba(66, 48, 23, .06);
}

.hof-card.is-expanded {
  height: auto;
}

.hof-card--featured {
  grid-column: span 3;
}

.hof-card[hidden] {
  display: none !important;
}

.hof-card-media {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  display: block;
  padding: 0;
  overflow: hidden;
  color: #fff;
  border: 0;
  background: #191510;
  cursor: zoom-in;
  text-align: left;
}

.hof-card .hof-card-media,
.hof-card:not(.hof-card--featured) .hof-card-media,
.hof-card--featured .hof-card-media {
  aspect-ratio: 1 / 1;
  min-height: 0;
}

.hof-card-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, .67));
  pointer-events: none;
}

.hof-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.86) contrast(1.04);
  transition: transform .55s cubic-bezier(.2, .65, .25, 1), filter .3s ease;
}

.hof-card-media:hover img,
.hof-card-media:focus-visible img {
  transform: scale(1.035);
  filter: saturate(1) contrast(1.03);
}

.hof-card-number {
  position: absolute;
  z-index: 2;
  top: 15px;
  left: 15px;
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  color: var(--hof-ink);
  background: var(--hof-gold);
  font-family: var(--serif);
  font-size: 16px;
}

.hof-card-view {
  position: absolute;
  z-index: 2;
  right: 17px;
  bottom: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hof-card-body {
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 18px 18px 20px;
}

.hof-card--featured .hof-card-body {
  padding: 18px 18px 20px;
}

/* Keep the title baseline identical whether a card has a Featured badge or not. */
.hof-card--featured .hof-card-heading {
  position: relative;
}

.hof-card--featured .hof-card-heading span {
  position: absolute;
  top: 0;
  right: 0;
}

.hof-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.hof-card-heading p,
.hof-card-heading span {
  margin: 0;
  color: var(--hof-gold-deep);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hof-card-heading span {
  padding: 5px 7px;
  color: #fff;
  background: #b74a38;
  letter-spacing: .08em;
}

.hof-card h3 {
  min-height: 1.9em;
  margin: 0 0 10px;
  color: #211d18;
  font-size: clamp(22px, 1.7vw, 27px);
  font-weight: 500;
  line-height: .95;
}

.hof-card-quote {
  position: relative;
  max-height: 6.6em;
  overflow: hidden;
  transition: max-height .35s ease;
}

.hof-card-quote:not(.is-expanded)::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3.8em;
  content: "";
  background: linear-gradient(transparent, #fff 85%);
  pointer-events: none;
}

.hof-card-quote.is-expanded {
  max-height: 1200px;
}

.hof-card-quote.is-expanded::after {
  display: none;
}

.hof-card-quote p,
.hof-card-legacy-note {
  margin: 0;
  color: #716b62;
  font-size: 12px;
  line-height: 1.65;
}

.hof-card-context {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid rgba(145, 105, 44, .18);
}

.hof-card-context span {
  display: block;
  margin-bottom: 5px;
  color: var(--hof-gold-deep);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hof-card-context p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #776f64;
  font-size: 11px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.hof-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  padding: 0;
  color: var(--hof-gold-deep);
  border: 0;
  background: transparent;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  text-transform: uppercase;
}

.hof-read-more i {
  font-size: 8px;
}

.hof-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(145, 105, 44, .2);
}

.hof-card-links a {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 7px;
  padding: 0 8px;
  color: #655a4c;
  border: 1px solid rgba(145, 105, 44, .27);
  font-size: 9px;
  font-weight: 700;
  transition: color .18s ease, background .18s ease;
}

.hof-card-links a:hover,
.hof-card-links a:focus-visible {
  color: #fff;
  background: var(--hof-ink);
}

.hof-card-links a.hof-treatment-link {
  color: #241c11;
  border-color: var(--hof-gold);
  background: #ead8b4;
}

.hof-card-links a.hof-treatment-link:hover,
.hof-card-links a.hof-treatment-link:focus-visible {
  color: #fff;
  background: var(--hof-gold-deep);
}

.hof-empty {
  padding: 70px 24px;
  color: #6e675e;
  border: 1px solid var(--hof-line);
  text-align: center;
}

.hof-lightbox {
  width: min(1120px, calc(100vw - 42px));
  max-width: none;
  height: min(760px, calc(100dvh - 42px));
  max-height: none;
  padding: 0;
  overflow: hidden;
  color: var(--hof-ink);
  border: 1px solid rgba(201, 168, 108, .5);
  background: #fff;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .58);
}

.hof-lightbox::backdrop {
  background: rgba(0, 0, 0, .86);
  backdrop-filter: blur(8px);
}

.hof-dialog-layout {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(320px, .78fr);
}

.hof-dialog-media {
  min-width: 0;
  min-height: 0;
  background: #16120e;
}

.hof-dialog-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hof-dialog-copy {
  overflow-y: auto;
  padding: 70px 42px 42px;
}

.hof-dialog-copy h2 {
  margin: 0 0 23px;
  font-size: clamp(38px, 4vw, 54px);
  font-weight: 400;
  line-height: .94;
}

.hof-dialog-copy > p:last-child {
  color: #6b655c;
  font-size: 14px;
  line-height: 1.75;
  white-space: pre-line;
}

.hof-dialog-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--hof-line);
}

.hof-dialog-links a {
  display: inline-flex;
  min-height: 39px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: #5d554b;
  border: 1px solid var(--hof-gold);
  font-size: 10px;
  font-weight: 700;
}

.hof-dialog-links a:hover,
.hof-dialog-links a:focus-visible {
  color: #17130e;
  background: var(--hof-gold);
}

.hof-dialog-close {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(201, 168, 108, .6);
  background: rgba(8, 8, 8, .88);
  cursor: pointer;
}

@media (max-width: 980px) {
  .hof-hero-inner {
    min-height: 520px;
  }

  .hof-intro-grid,
  .hof-gallery-head {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hof-intro-copy {
    padding-top: 24px;
  }

  .hof-card {
    height: 600px;
    grid-column: span 4;
  }

  .hof-card--featured {
    grid-column: span 4;
  }

}

@media (max-width: 760px) {
  .menu-toggle:not([aria-expanded="true"]) i {
    opacity: 0;
  }

  .menu-toggle:not([aria-expanded="true"])::before {
    width: 21px;
    height: 2px;
    content: "";
    background: #d2ad67;
    box-shadow: 0 -7px 0 #d2ad67, 0 7px 0 #d2ad67;
  }

  .hof-container {
    width: min(100% - 30px, 1180px);
  }

  .hof-hero {
    min-height: 690px;
    background-image: url("/hall-of-fame/img/bg-loft-thai-hall-of-fame-mobail.jpg");
    background-position: center top;
  }

  .hof-hero-shade {
    background: linear-gradient(0deg, rgba(0, 0, 0, .94) 2%, rgba(0, 0, 0, .72) 57%, rgba(0, 0, 0, .27) 100%);
  }

  .hof-hero-inner {
    min-height: 590px;
    grid-template-columns: 1fr;
    align-items: end;
    gap: 20px;
    padding: 245px 0 38px;
  }

  .hof-hero h1 {
    font-size: clamp(58px, 18vw, 76px);
  }

  .hof-hero h1 em {
    margin-top: 16px;
    font-size: .48em;
  }

  .hof-hero-lede {
    margin-bottom: 22px;
    font-size: 13px;
  }

  .hof-hero-facts {
    width: calc(100% - 30px);
    min-height: 82px;
  }

  .hof-hero-facts div {
    gap: 7px;
    padding: 12px 10px;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .hof-hero-facts strong {
    font-size: 30px;
  }

  .hof-hero-facts span {
    font-size: 7px;
    line-height: 1.35;
  }

  .hof-intro,
  .hof-gallery-section {
    padding: 64px 0;
  }

  .hof-gallery-section {
    scroll-margin-top: calc(var(--hof-header-height, 68px) + 16px);
  }

  .hof-intro h2,
  .hof-gallery-head h2 {
    font-size: clamp(45px, 13vw, 60px);
  }

  .hof-intro-copy .hof-intro-lead {
    font-size: 23px;
  }

  .hof-toolbar {
    margin-bottom: 18px;
  }

  .hof-toolbar-inner {
    width: 100%;
    gap: 0;
    padding: 10px 15px;
  }

  .hof-filter-group button {
    min-height: 40px;
    padding-inline: 15px;
  }

  .hof-result-count {
    display: none;
  }

  .hof-grid {
    gap: 16px;
  }

  .hof-card,
  .hof-card--featured {
    height: 462px;
    grid-column: span 6;
    display: flex;
  }

  .hof-card--featured .hof-card-media,
  .hof-card:not(.hof-card--featured) .hof-card-media {
    min-height: 0;
    aspect-ratio: 1 / 1;
  }

  .hof-card-body,
  .hof-card--featured .hof-card-body {
    min-height: 0;
    padding: 14px 13px 15px;
  }

  .hof-card.is-expanded,
  .hof-card--featured.is-expanded {
    height: auto;
  }

  .hof-card-heading {
    margin-bottom: 8px;
  }

  .hof-card-heading p {
    font-size: 8px;
  }

  .hof-card-heading span {
    display: none;
  }

  .hof-card h3 {
    min-height: 1.8em;
    margin-bottom: 8px;
    font-size: clamp(18px, 5.6vw, 23px);
  }

  .hof-card-quote {
    max-height: 4.86em;
  }

  .hof-card-quote p,
  .hof-card-legacy-note {
    font-size: 10px;
    line-height: 1.62;
  }

  .hof-card-context {
    margin-top: 7px;
    padding-top: 7px;
  }

  .hof-card-context span {
    margin-bottom: 3px;
    font-size: 7px;
  }

  .hof-card-context p {
    font-size: 9px;
    line-height: 1.5;
    -webkit-line-clamp: 2;
  }

  .hof-read-more {
    font-size: 8px;
  }

  .hof-card-links {
    gap: 5px;
    padding-top: 9px;
  }

  .hof-card-links a {
    min-height: 27px;
    gap: 5px;
    padding-inline: 7px;
    font-size: 8px;
  }

  .hof-card-number {
    top: 10px;
    left: 10px;
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .hof-card-view {
    right: 10px;
    bottom: 10px;
    font-size: 8px;
  }

  .hof-dialog-layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 56%) minmax(0, 44%);
  }

  .hof-dialog-copy {
    padding: 32px 23px 34px;
  }

  .hof-dialog-copy h2 {
    margin-right: 42px;
    font-size: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hof-card-media img,
  .hof-card-quote {
    transition: none;
  }
}
