/* ==========================================================================
   Loaded only on the homepage
   ========================================================================== */

/* Homepage body background for hero effect */
body {
  background: black;
}

/* ==========================================================================
   NAVIGATION OVERRIDES FOR HOMEPAGE
   ========================================================================== */

/* Logo visibility for transparent nav */
.nav.nav-transparent .nav-logo-image-color {
  opacity: 0;
}

.nav.nav-transparent .nav-logo-image-bw {
  opacity: 1;
}

.nav.nav-transparent.scrolled .nav-logo-image-color {
  opacity: 1;
  transition: opacity var(--transition-medium);
}

.nav.nav-transparent.scrolled .nav-logo-image-bw {
  opacity: 0;
  transition: opacity var(--transition-medium);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  min-height: 100dvh;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 3rem 4rem;
  background: var(--charcoal);
  margin-top: -3rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('/assets/images/kris-tian-dEEXOjHfP2M-unsplash-edinburg.jpg') center 35% / cover;
  background-attachment: fixed;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
      rgba(0, 0, 0, 0.8) 0%,
      rgba(0, 0, 0, 0.5) 70%,
      rgba(0, 0, 0, 0.25) 90%,
      rgba(0, 0, 0, 0.35) 100%);
}

.hero-card {
  position: relative;
  z-index: 1;
  padding: 2.5rem;
  max-width: 820px;
  border-radius: 8px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  color: var(--light-blue);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  width: fit-content;
  border-bottom: 2px solid var(--light-blue);
}

.hero-title {
  font-size: clamp(3rem, 6vw, 4.2rem);
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.hero-tagline {
  font-family: var(--font-ui);
  font-size: 1.6rem;
  color: white;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.hero-meta-item .label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  color: var(--light-blue);
  font-size: 1rem;
  letter-spacing: 0.05em;
  min-width: 120px;
}

.hero-meta-item .value {
  font-family: var(--font-ui);
  font-size: 1.2rem;
  color: white;
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.hero-actions .btn-primary {
  background-color: var(--light-plum);
}

.hero-actions .btn-primary:hover {
  background-color: var(--plum);
}

.hero-photo-caption {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  z-index: 1;
  color: var(--light-gray);
  padding: 0.6rem 1rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  border-radius: 4px;
}

.hero-photo-caption a {
  color: var(--light-blue);
  text-decoration: none;
}

.hero-photo-caption a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   SECTION: Vision
   ========================================================================== */
.vision {
  padding: 8rem 0;
  background: var(--warm-white);
}

.vision-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

.vision-title {
  font-size: 2.5rem;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
}

.vision-content {
  font-size: 1.15rem;
  color: var(--warmer-gray);
  line-height: 1.8;
}

.vision-content p {
  margin-bottom: 1.5rem;
}

.vision-themes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.vision-themes p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   SECTION: News (latest blog posts)
   ========================================================================== */
.news {
  padding: 8rem 0;
  background: var(--cream);
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

.news-title {
  font-size: 2.5rem;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
}

@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .news {
    padding: 5rem 0;
  }
}

/* ==========================================================================
   SECTION: Venue (Homepage version)
   ========================================================================== */
.venue {
  padding: 8rem 0;
  background: var(--cream);
}

.venue-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.venue-image-wrapper {
  position: relative;
}

.venue-image {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 8px;
}

.venue-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.venue-content .subtitle {
  font-size: 1.2rem;
  color: var(--plum);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.venue-content p {
  font-size: 1.05rem;
  color: var(--warmer-gray);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.venue-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ==========================================================================
   SECTION: Accessibility Banner
   ========================================================================== */
.accessibility-banner {
  background: var(--plum);
  color: white;
  padding: 5rem 0;
}

.accessibility-banner-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.accessibility-banner h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.accessibility-banner p {
  font-size: 1rem;
  max-width: 800px;
  margin-bottom: 2rem;
}

/* ==========================================================================
   SECTION: Archive (RSECon25)
   ========================================================================== */
.archive {
  padding: var(--section-padding) 0;
  background: var(--warm-white);
}

.archive-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

.archive-intro h2 {
  font-size: 2rem;
  color: var(--charcoal);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.archive-intro p {
  font-size: 1rem;
  color: var(--warmer-gray);
  line-height: 1.6;
}

.archive-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.archive-link-item {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--light-gray);
}

.archive-link-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.archive-link-item .title {
  font-family: var(--font-ui);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.archive-link-item p {
  font-size: 0.95rem;
  color: var(--warmer-gray);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

/* ==========================================================================
   SECTION: Sponsors
   ========================================================================== */
.sponsors {
  padding: var(--section-padding) 0;
  background: var(--cream);
  text-align: center;
}

.sponsors h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.sponsors-subtitle {
  color: var(--warmer-gray);
  margin-bottom: 2rem;
}

.sponsor-tiers {
  display: flex;
  flex-direction: column;
}

.sponsor-tier {
  border-top: 1px solid var(--light-gray);
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.tier-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dark-plum);
  margin-bottom: 1.5rem;
}

.sponsor-cta {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--light-gray);
  font-family: var(--font-ui);
}

.sponsor-cta p {
  color: var(--warmer-gray);
  margin-bottom: 1rem;
}

.sponsors--empty .sponsors-subtitle {
  margin-bottom: 0;
}

.sponsors--empty .sponsor-cta {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

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

@media (max-width: 600px) {
  .sponsors {
    --sponsor-card-w: 254px;
    --sponsor-card-h: 110px;
    --sponsor-card-pad: 16px;
  }

  .sponsor-logos {
    gap: 1rem;
  }
}


/* ==========================================================================
   SECTION: Social Feed
   ========================================================================== */
.social {
  padding: var(--section-padding) 0;
  background: var(--warm-white);
}

.social-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
}

.social h2 {
  font-size: 2rem;
}

.social-feed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.social-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--light-gray);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.social-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

a.social-card-header {
  text-decoration: none;
  color: inherit;
}

a.social-card-header:hover .social-display-name {
  color: var(--plum);
  text-decoration: underline;
}

.social-card-header>div {
  overflow: hidden;
}

.social-avatar {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  background: var(--light-gray);
  background-size: cover;
  background-position: center;
  border-radius: 8px;
}

.social-display-name {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.social-handle {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--warm-gray);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.social-card-content {
  flex: 1;
}

.social-card-content p {
  font-size: 0.9rem;
  color: var(--charcoal);
  line-height: 1.5;
  text-wrap: pretty;
  margin-bottom: 0.5rem;
  word-break: break-word;
}

.social-card-content p:last-child {
  margin-bottom: 0;
}

.social-card-content a {
  color: var(--plum);
  text-decoration: none;
}

.social-card-content a:hover {
  text-decoration: underline;
}

.social-card-content a.mention,
.social-card-content a.hashtag {
  font-family: var(--font-ui);
  font-weight: 500;
  color: var(--plum);
  background: var(--warm-white);
  padding: 0.1rem 0.25rem;
  border-radius: 3px;
  margin: 0.1rem;
  display: inline-block;
}

.social-card-content a.mention:hover,
.social-card-content a.hashtag:hover {
  background: var(--light-gray);
  text-decoration: none;
}

/* Media attachments */
.social-media {
  position: relative;
  margin-top: 1rem;
}

.social-media img {
  width: 100%;
  border-radius: 8px;
  max-height: 180px;
  object-fit: cover;
  display: block;
}

.social-media-more {
  position: absolute;
  bottom: 0.25rem;
  right: 0.25rem;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
  font-size: 0.75rem;
  text-decoration: none;
}

/* Footer */
.social-card-footer {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--light-gray);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--warm-gray);
}

.social-footer-sep {
  color: var(--warm-gray);
}

.social-link {
  color: var(--warm-gray);
  text-decoration: none;
  font-weight: 400;
}

.social-link:hover {
  color: var(--plum);
  text-decoration: underline;
}

.social-cta {
  margin-top: 2rem;
  text-align: center;
}

/* ==========================================================================
   SECTION: Call for Submissions
   ========================================================================== */

.submissions {
  padding: var(--section-padding) 0;
}

.submissions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.submission-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.submission-card:hover {
  background: rgba(255, 255, 255, 0.12);
}

.submission-card .title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--light-blue);
}

.submission-card p {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.5;
  flex: 1;
  margin-bottom: 1rem;
  color: white;
}

.submission-card .link-arrow {
  color: var(--light-blue);
}

.submissions-cta {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  align-items: center;
}

a.btn-submit {
  color: var(--charcoal) !important;
}


/* ==========================================================================
   SECTION: Keynotes
   ========================================================================== */

/* Multiple Keynote Speakers, no Bios */
.keynotes-home {
  padding: 4rem 0;
  background: var(--cream);
  text-align: center;
  --keynote-photo: 160px;
}

.keynotes-home h2 {
  font-size: 1.8rem;
  color: var(--charcoal);
  margin-bottom: 2.5rem;
}

.keynotes-home-speakers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem 5rem;
  margin-bottom: 2.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
}

.keynotes-home-speaker img,
.keynotes-home-placeholder {
  width: var(--keynote-photo);
  height: var(--keynote-photo);
  border-radius: var(--radius-xl);
  margin: 0 auto 1rem;
  display: block;
}

.keynotes-home-speaker img {
  object-fit: cover;
}

.keynotes-home-placeholder {
  background: linear-gradient(135deg, var(--light-gray) 0%, #d0cdc8 100%);
}

.keynotes-home-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.35;
}

.keynotes-home-name a {
  color: inherit;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 3px;
  border-bottom-color: var(--light-plum);
  transition: color var(--transition-medium);
}

.keynotes-home-name a:hover {
  color: var(--light-plum);
}

.keynotes-home-name a:focus-visible {
  outline-offset: 3px;
  border-radius: 2px;
}

/* Keynote speakers with bios: Responsive */
/* .keynotes-home {
  padding: 4rem 0;
  background: var(--cream);
}

.keynotes-home .section-label {
  margin-bottom: 2rem;
}

.keynotes-home-feature {
  display: flex;
  align-items: flex-start;
  flex-direction: row-reverse;
  gap: 3rem;
  margin: 0 auto;
}

.keynotes-home-feature + .keynotes-home-feature {
  margin-top: 3rem;
}

.keynotes-home-photo,
.keynotes-home-placeholder {
  width: 190px;
  height: 190px;
  flex-shrink: 0;
  border-radius: var(--radius-xl);
  object-fit: cover;
}

.keynotes-home-placeholder {
  background: linear-gradient(135deg, var(--light-gray) 0%, #d0cdc8 100%);
}

.keynotes-home-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--plum);
  display: inline-block;
}

.keynotes-home-excerpt {
  line-height: 1.65;
  color: var(--charcoal);
  margin-bottom: 1rem;
  font-size: 1rem;
}
*/

/* Keynote speakers with bios: Responsive */
/* @media (max-width: 768px) {
  .keynotes-home-feature {
    gap: 2rem;
  }

  .keynotes-home .section-label {
    text-align: center;
  }

  .keynotes-home-photo,
  .keynotes-home-placeholder {
    width: 140px;
    height: 140px;
  }
  .keynotes-home-feature {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .keynotes-home-name {
    display: block;
    border-bottom: none;
  }

  .keynotes-home-name::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    background: var(--plum);
    margin: 0.75rem auto 0;
  }
}
*/

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
  .keynotes-home-v2 {
    padding: 2rem 0;
  }

  .keynotes-home-v2-inner,
  .keynotes-home-v2-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .keynotes-home-v2-card {
    padding: 1.25rem 1.5rem;
  }

  .keynotes-home-v2-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .keynotes-home-v2-photo,
  .keynotes-home-v2-placeholder {
    width: 48px;
    height: 48px;
    margin-left: -12px;
  }
}


/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-card>* {
  --base-delay: 0.1s;
  animation: fadeInUp 0.6s ease-out both;
}

.hero-badge {
  animation-delay: calc(var(--base-delay) * 1);
}

.hero-title span {
  display: inline-block;
  animation: fadeInUp 0.6s ease-out both;
  animation-delay: calc(var(--base-delay) * 2 + (var(--order) * 0.1s));
}

.hero-tagline {
  animation-delay: calc(var(--base-delay) * 5);
}

.hero-meta {
  animation-delay: calc(var(--base-delay) * 6);
}

.hero-actions {
  animation-delay: calc(var(--base-delay) * 7);
}


.hero-registration-announcement {
  animation-delay: calc(var(--base-delay) * 8);
}

.hero-photo-caption {
  animation: fadeInUp 0.6s ease-out both;
  animation-delay: var(--base-delay);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .nav-inner {
    padding: 0.5rem 1.5rem;
  }

  .hero {
    padding: 2rem;
  }

  .hero-card {
    max-width: 600px;
  }

  .hero-photo-caption {
    right: 2rem;
    bottom: 2rem;
  }

  .vision-grid,
  .venue-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .archive-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .social-feed {
    grid-template-columns: repeat(2, 1fr);
  }

  .submissions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
    padding: 1.5rem;
    padding-top: calc(1.5rem + 66px);
    align-items: flex-end;
    flex-direction: column;
    justify-content: flex-end;
  }

  .hero-bg {
    background-position: center 65%;
  }

  .hero-bg::after {
    background: linear-gradient(to bottom,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.7) 70%,
        rgba(0, 0, 0, 0.45) 90%,
        rgba(0, 0, 0, 0.55) 100%);
  }

  .hero-card {
    max-width: 100%;
    padding: 2rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-photo-caption {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 1rem;
    padding-top: calc(1rem + 66px);
  }

  .hero-card {
    padding: 1.5rem;
  }

  .vision-themes {
    grid-template-columns: 1fr;
  }

  .social-feed {
    grid-template-columns: 1fr;
  }

  .submissions-grid {
    grid-template-columns: 1fr;
  }

  .submissions-cta {
    flex-direction: column;
  }
}
