/* Royal Institute of Black Curators — index-2 layout
   rioblackcurators.com */

:root {
  --white: #ffffff;
  --off-white: #f5f0ea;
  --light-gray: #e8e6e6;
  --mid-gray: #595959;
  --black: #000000;
  --orange-primary: #b85423;
  --orange-dark: #8c411b;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-fahkwang: 'Fahkwang', sans-serif;
  --font-poppins: 'Poppins', sans-serif;
  --font-syne: 'Syne', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-serif);
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
  max-width: 100vw;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* NAV */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: var(--white);
  border-bottom: 1px solid var(--light-gray);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo img {
  height: 48px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--black);
  font-size: 14px;
  letter-spacing: 0.08em;
  font-weight: 500;
  text-transform: uppercase;
  font-family: var(--font-poppins);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--orange-primary); }

/* HERO */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 24px 56px;
  background: var(--white);
}

.hero-logo {
  width: 180px;
  max-width: 60vw;
  height: auto;
  margin-bottom: 28px;
  display: block;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.125rem, 4vw, 22px);
  font-weight: 300;
  color: var(--mid-gray);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.hero-mission {
  max-width: 720px;
  font-family: var(--font-fahkwang);
  font-size: clamp(1rem, 2.5vw, 18px);
  line-height: 1.75;
  color: var(--black);
  font-weight: 400;
  text-align: center;
}

/* GALLERY STRIP — fixed aspect ratio cells, images fit inside */
.gallery-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  padding: 24px 48px;
  max-width: 100%;
}

.gallery-strip .cell {
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  min-height: 0;
}

.gallery-strip .cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-strip .cell:hover img { transform: scale(1.04); }

/* FEATURED EXHIBITION */
.featured-section {
  margin-top: 13px;
  background: var(--white);
}

.featured-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
}

.featured-heading {
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: 34px;
  line-height: 1.2;
  color: var(--black);
  text-align: center;
}

/* THE CALL BANNER */
.call-banner {
  width: 100%;
  overflow: hidden;
  max-width: 100%;
}

.call-banner img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* SECTIONS */
.section {
  padding: 72px clamp(16px, 5vw, 80px);
}

.section-alt {
  background: var(--off-white);
}

.section-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-primary);
  margin-bottom: 12px;
  font-weight: 500;
  font-family: var(--font-poppins);
}

.section-rule {
  width: 48px;
  height: 2px;
  background: var(--orange-primary);
  margin-bottom: 32px;
}

/* EXHIBITION DETAIL */
.exhibit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-top: 16px;
}

.exhibit-grid-with-video {
  align-items: center;
}

.exhibit-grid-with-video .exhibit-video {
  max-width: 100%;
}

.exhibit-grid-with-video .video-placeholder {
  max-width: 100%;
}

.exhibit-card {
  border-left: 3px solid var(--orange-primary);
  padding-left: 24px;
}

.exhibit-card-name {
  font-family: var(--font-poppins);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-bottom: 6px;
}

.exhibit-card-curator {
  font-family: var(--font-poppins);
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 10px;
}

.exhibit-card-title {
  font-family: var(--font-syne);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--black);
  text-transform: uppercase;
}

.schedule-block {
  margin-top: 24px;
  font-size: 15px;
  line-height: 2;
}

.schedule-label {
  font-family: var(--font-poppins);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-primary);
  display: block;
  margin-top: 12px;
  margin-bottom: 2px;
}

/* VIDEO PLACEHOLDER */
.video-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 2px;
  margin-bottom: 14px;
}

.play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--orange-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.video-label {
  font-family: var(--font-poppins);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.video-caption {
  font-family: var(--font-fahkwang);
  font-size: 15px;
  line-height: 1.6;
  color: var(--mid-gray);
  text-align: left;
}

.video-caption-centered {
  text-align: center;
}

/* GALLERY CARDS — fixed aspect ratio, images fit inside */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 16px;
}

.card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1/1;
  max-width: 320px;
  justify-self: center;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.card:hover .card-img { transform: scale(1.05); }

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 100%);
  color: white;
}

.card-title {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 4px;
}

.card-curator {
  font-family: var(--font-poppins);
  font-size: 11px;
  opacity: 0.8;
  letter-spacing: 0.05em;
}

/* TCPX */
.tcpx-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.tcpx-heading {
  font-size: 38px;
  font-weight: 300;
  line-height: 1.25;
  margin-bottom: 20px;
}

.tcpx-body {
  font-family: var(--font-fahkwang);
  font-size: 16px;
  line-height: 1.75;
  color: var(--mid-gray);
  margin-bottom: 32px;
}

.btn-primary {
  display: inline-block;
  padding: 13px 32px;
  background: var(--orange-primary);
  color: white;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--font-poppins);
  font-weight: 600;
  transition: background 0.2s;
}

.btn-primary:hover { background: var(--orange-dark); }

.tcpx-img {
  width: 100%;
  max-width: 480px;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* FEATURES */
.features-intro {
  font-family: var(--font-fahkwang);
  font-size: 17px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 28px;
  max-width: 560px;
  line-height: 1.7;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.features-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 60px;
  max-width: 560px;
  margin: 0 auto;
}

.features-list li {
  font-family: var(--font-fahkwang);
  font-size: 16px;
  line-height: 1.5;
  color: var(--mid-gray);
  padding-left: 20px;
  position: relative;
  text-align: left;
}

.features-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--orange-primary);
  font-size: 14px;
}

/* FOOTER */
footer {
  background: var(--black);
  color: var(--white);
  padding: 52px clamp(16px, 5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.05em;
}

.footer-domain {
  font-size: 13px;
  color: var(--mid-gray);
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer-links a {
  color: var(--light-gray);
  text-decoration: none;
  font-family: var(--font-poppins);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--orange-primary); }

.footer-copy {
  font-size: 12px;
  color: var(--mid-gray);
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  width: 100%;
  text-align: center;
  letter-spacing: 0.06em;
  font-family: var(--font-poppins);
}

/* RESPONSIVE — fit all platforms including mobile */
@media (max-width: 900px) {
  .section { padding: 52px 24px; }
  .exhibit-grid { grid-template-columns: 1fr; gap: 40px; }
  .tcpx-grid { grid-template-columns: 1fr; gap: 40px; }
  .tcpx-heading { font-size: clamp(1.5rem, 5vw, 2rem); }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .gallery-strip { padding: 24px 24px; }
  .card { max-width: none; }
  nav { padding: 14px 20px; }
}

@media (max-width: 600px) {
  .section { padding: 32px 16px; }
  .cards-grid { grid-template-columns: 1fr; }
  .features-list { grid-template-columns: 1fr; gap: 12px 0; }
  footer { padding: 32px 16px; flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-brand { font-size: 1.25rem; }
  .gallery-strip { grid-template-columns: 1fr; padding: 16px; gap: 16px; }
  .nav-links { display: none; }
  .hero { padding: 32px 16px 40px; }
  .hero-logo { width: 140px; margin-bottom: 20px; }
  .featured-heading { font-size: 1.5rem; }
  .call-banner img { width: 100%; }
}

@media (max-width: 380px) {
  nav { padding: 12px 16px; }
  .nav-logo { font-size: 0.9rem; }
  .section { padding: 24px 12px; }
  .hero { padding: 24px 12px 32px; }
  .hero-logo { width: 120px; }
}
