/* ---- Hero ---- */

@keyframes heroBreathe {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollSweep {
  0%   { transform: translateY(-100%); opacity: 0; }
  12%  { opacity: 0.4; }
  88%  { opacity: 0.4; }
  100% { transform: translateY(110%); opacity: 0; }
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 600px;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--color-bg);
  padding-bottom: 88px;
}

.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 66%;
  overflow: hidden;
  background: var(--color-bg);
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  filter: grayscale(0.58) contrast(1.26) brightness(0.74);
  transition: filter 2.8s var(--ease-out);
}
.hero-bg.is-revealed img {
  filter: grayscale(0.1) contrast(1.04) brightness(0.9);
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg img {
    transition: none;
    filter: grayscale(0.1) contrast(1.04) brightness(0.9);
  }
}
.hero-bg-fade-x {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to right,
    var(--color-bg) 0%,
    rgba(22, 22, 24, 0.88) 20%,
    rgba(22, 22, 24, 0.2) 58%,
    rgba(22, 22, 24, 0) 100%
  );
}
.hero-bg-fade-y {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  pointer-events: none;
  background: linear-gradient(to top, var(--color-bg) 0%, rgba(22, 22, 24, 0.55) 50%, rgba(22, 22, 24, 0) 100%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  /* Unlike other sections, the hero text should align with the header's
     logo on wide screens rather than sit inside the centered 1440px
     .container column — on wide viewports that centering left a large gap
     between the header logo and the hero headline below it. Explicit
     left-alignment: no auto margins, no centering, gutter-based padding
     only, so the text column's left edge always lands on the same line as
     the header logo regardless of viewport width. */
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.hero-copy {
  /* Capped narrower than before (was 600px) so the column's right edge
     clears the hero image's left boundary instead of straddling it — the
     text needs to sit fully in the dark portion of the composition, not
     halfway across the light/dark seam. */
  width: min(100%, 560px);
  max-width: 560px;
  margin: 0;
}

.hero-copy .eyebrow {
  display: block;
  margin-bottom: 28px;
  opacity: 0;
  animation: heroFadeUp 800ms var(--ease-out) 150ms both;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  opacity: 0;
  animation: heroFadeUp 800ms var(--ease-out) 280ms both;
}

.hero-lede {
  max-width: 520px;
  text-wrap: pretty;
  color: var(--color-text-secondary);
  margin-top: 28px;
  font-size: 1.02rem;
  opacity: 0;
  animation: heroFadeUp 800ms var(--ease-out) 440ms both;
}

.hero-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
  padding: 14px 18px;
  border: 1px solid var(--color-border-strong);
  width: fit-content;
  max-width: 100%;
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  opacity: 0;
  animation: heroFadeUp 800ms var(--ease-out) 520ms both;
}
.hero-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-gold);
  flex-shrink: 0;
}
.hero-status-title {
  color: var(--color-text);
  font-weight: 500;
}
.hero-status-hours {
  color: var(--color-text-secondary);
}
.hero-status-note {
  padding-left: 10px;
  margin-left: 2px;
  border-left: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.85em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
  opacity: 0;
  animation: heroFadeUp 800ms var(--ease-out) 640ms both;
}

.hero-breathe {
  animation: heroBreathe 9000ms ease-in-out infinite alternate;
  transform-origin: center center;
}

.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-scroll-cue span {
  display: block;
  width: 1px;
  height: 56px;
  background: var(--color-text);
  animation: scrollSweep 2600ms cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy .eyebrow,
  .hero-title,
  .hero-lede,
  .hero-status,
  .hero-actions {
    opacity: 1;
    animation: none;
  }
  .hero-breathe,
  .hero-scroll-cue span {
    animation: none;
  }
}

/* ---- Visit quick info ---- */

.quick-info .eyebrow {
  display: block;
  margin-bottom: 32px;
}

.quick-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
}

.quick-info-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 24px 32px;
  min-height: 44px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  border-left: 2px solid transparent;
  transition: background-color 0.25s var(--ease), border-left-color 0.25s var(--ease);
}
/* All four cards share the same gold accent (this page's one dominant
   accent color) — hover/focus is differentiated by background tint plus a
   gold left-edge indicator instead of by swapping in a different hue. */
.quick-info-item:hover,
.quick-info-item:focus-visible {
  background-color: var(--color-surface);
  border-left-color: var(--color-gold);
}

.quick-info-num {
  /* 1.3rem/700 clears the WCAG "large text" bold threshold (~18.66px), which
     drops the required contrast ratio to 3:1 for --color-gold against the
     dark background at this weight. */
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--color-gold);
}

.quick-info-label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
}

.quick-info-value {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .quick-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .quick-info-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Featured exhibit ---- */

.featured-exhibit {
  border-top: none;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 32px;
}

.featured-figure {
  aspect-ratio: 4/3;
}

.featured-dates {
  color: var(--color-text-secondary);
  font-size: 0.85rem;
}

.featured-title {
  margin: 16px 0 20px;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
}

.featured-copy p {
  color: var(--color-text-secondary);
  max-width: 52ch;
}

.featured-meta {
  display: flex;
  gap: 40px;
  margin: 28px 0;
  font-size: 0.85rem;
}
.featured-meta dt {
  color: var(--color-text-secondary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  margin-bottom: 4px;
}

/* ---- Next-up exhibition row, nested at the bottom of Featured Exhibit ---- */

.featured-next {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}
.featured-next-label {
  display: block;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.upcoming-exhibit-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  grid-template-areas: "date title arrow" "date desc arrow";
  column-gap: 24px;
  row-gap: 8px;
  align-items: center;
  padding: 28px 24px;
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-gold);
  transition: background-color 0.25s var(--ease);
}
.upcoming-exhibit-row:hover,
.upcoming-exhibit-row:focus-visible {
  background-color: var(--color-surface);
}
.upcoming-exhibit-date {
  grid-area: date;
  color: var(--color-text-secondary);
  font-size: 0.82rem;
}
.upcoming-exhibit-title {
  grid-area: title;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
}
.upcoming-exhibit-desc {
  grid-area: desc;
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  max-width: 56ch;
}
.upcoming-exhibit-row .text-link {
  grid-area: arrow;
  border: none;
  padding: 0;
  font-size: 1.2rem;
}

@media (max-width: 720px) {
  .upcoming-exhibit-row {
    grid-template-columns: 1fr;
    grid-template-areas: "date" "title" "desc" "arrow";
    row-gap: 10px;
  }
}

/* ---- Virtual tour: drag-to-scroll carousel ---- */

.tour-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-anchor: none;
  padding: 4px var(--gutter) 12px;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  scroll-snap-type: x mandatory;
}
.tour-track::-webkit-scrollbar {
  display: none;
}
.tour-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}
.tour-track:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: -2px;
}

.tour-card {
  flex: 0 0 auto;
  width: min(440px, 80vw);
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-snap-align: start;
}
.tour-card-end {
  width: 1px;
  flex: 0 0 1px;
  scroll-snap-align: none;
}

.tour-figure {
  aspect-ratio: 3/4;
}

.tour-card-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
}
.tour-card-tag {
  color: var(--color-text-muted);
  font-size: 0.75rem;
}

.tour-controls {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 8px;
}

.tour-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border-strong);
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), opacity 0.2s var(--ease);
}
.tour-nav-btn:hover:not(:disabled),
.tour-nav-btn:focus-visible {
  border-color: var(--color-gold);
  color: var(--color-gold);
}
.tour-nav-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.tour-progress {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  min-width: 3.5em;
}

@media (max-width: 600px) {
  .tour-card {
    width: 84vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tour-track {
    scroll-behavior: auto;
  }
}

/* ---- Lecture table ---- */

.lecture-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 40px;
}
.lecture-table thead th {
  text-align: left;
  padding: 0 12px 16px;
  border-bottom: 1px solid var(--color-border-strong);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  font-weight: 400;
}
.lecture-table thead th:last-child {
  text-align: right;
}
/* Rows are plain data, not links — no pointer cursor or hover affordance */
.lecture-table tbody tr {
  border-bottom: 1px solid var(--color-border);
}
.lecture-table td {
  padding: 20px 12px;
  vertical-align: top;
}
.lecture-table td:first-child {
  color: var(--color-text-secondary);
  font-size: 0.8rem;
  white-space: nowrap;
  width: 120px;
}
.lecture-speaker {
  color: var(--color-text-secondary);
  font-size: 0.85rem;
}
.lecture-tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 4px 10px;
  border: 1px solid var(--color-border-strong);
  color: var(--color-text-secondary);
  white-space: nowrap;
}
.lecture-tag-full {
  color: var(--color-text-muted);
  border-color: var(--color-border);
}
.lecture-table td:last-child {
  text-align: right;
}

@media (max-width: 720px) {
  .lecture-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .lecture-table,
  .lecture-table tbody,
  .lecture-table tr,
  .lecture-table td {
    display: block;
    width: auto;
  }
  .lecture-table tr {
    padding: 18px 0;
  }
  .lecture-table td {
    padding: 4px 0;
    white-space: normal;
  }
  .lecture-table td:last-child {
    text-align: left;
    margin-top: 6px;
  }
  .lecture-table td::before {
    content: attr(data-label);
    display: inline-block;
    min-width: 80px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    vertical-align: top;
  }
}

@media (max-width: 900px) {
  .featured-grid {
    grid-template-columns: 1fr;
  }
  .hero-bg {
    width: 100%;
  }
  .hero-bg-fade-x {
    background: linear-gradient(
      to right,
      var(--color-bg) 0%,
      rgba(22, 22, 24, 0.94) 8%,
      rgba(22, 22, 24, 0.55) 42%,
      rgba(22, 22, 24, 0.25) 100%
    );
  }
  .hero-bg-fade-y {
    height: 62%;
  }
  .hero-copy {
    max-width: 100%;
  }
  .lecture-table td:first-child {
    width: auto;
  }
}

@media (max-width: 560px) {
  .featured-meta {
    flex-direction: column;
    gap: 16px;
  }
}

/* ---- Philosophy section ---- */

.philosophy-section {
  padding-bottom: 160px;
}

/* Condensed to a single brand paragraph (full four-pillar breakdown lives
   on the About page instead) so this section reads as a quiet closing
   statement rather than competing with Featured Exhibit for attention. */
.philosophy-head {
  max-width: 60ch;
}
.philosophy-head .eyebrow {
  display: block;
  margin-bottom: 16px;
}
.philosophy-head .section-title {
  margin-bottom: 24px;
}
.philosophy-head p {
  color: var(--color-text-secondary);
  margin-bottom: 20px;
}
