:root {
  --cornell-red: #B31B1B;
  --paper: #F7F5F1;
  --paper-2: #FCFBF8;
  --ink: #111111;
  --muted: #5F6470;
  --line: rgba(17, 17, 17, 0.10);
  --shadow: 0 14px 40px rgba(0,0,0,0.05);
  --shadow-soft: 0 10px 30px rgba(0,0,0,0.035);
  --radius-lg: 24px;
  --glass: rgba(255, 255, 255, 0.7);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(to bottom, var(--paper-2) 0%, var(--paper) 100%);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4, .serif {
  font-family: 'Playfair Display', serif;
}

.fade-in {
  animation: fadeIn 0.95s ease-out forwards;
  opacity: 0;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--cornell-red);
}

.hero-grid {
  background-image:
    radial-gradient(circle at top, rgba(179, 27, 27, 0.08), transparent 28%),
    linear-gradient(rgba(17,17,17,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,17,17,0.04) 1px, transparent 1px);
  background-size: auto, 36px 36px, 36px 36px;
  background-position: center;
}

.nav-link {
  position: relative;
  transition: color 0.22s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: rgba(179, 27, 27, 0.45);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.nav-link:hover {
  color: var(--cornell-red);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.cta-button {
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(179, 27, 27, 0.18);
}

.ghost-button:hover {
  border-color: rgba(179, 27, 27, 0.36);
  color: var(--cornell-red);
}

.floating-panel {
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(17,17,17,0.08);
  box-shadow: var(--shadow);
  position: relative;
}

.floating-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.34), rgba(255,255,255,0));
  pointer-events: none;
}

.floating-panel:hover {
  box-shadow: 0 18px 44px rgba(0,0,0,0.07);
}

.elite-strip-item {
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(17,17,17,0.08);
  background: rgba(255,255,255,0.72);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.03);
}

.elite-strip-label {
  margin: 0 0 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cornell-red);
}

.elite-strip-value {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
}

.academic-card {
  border: 1px solid rgba(17,17,17,0.08);
  background: rgba(255,255,255,0.9);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background-color 0.28s ease;
  box-shadow: 0 8px 28px rgba(0,0,0,0.03);
  position: relative;
  overflow: hidden;
}

.academic-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(to right, rgba(179,27,27,0.9), rgba(179,27,27,0));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.academic-card:hover {
  border-color: rgba(179, 27, 27, 0.32);
  background-color: #ffffff;
  box-shadow: 0 16px 40px rgba(0,0,0,0.07);
  
}

.academic-card:hover::before {
  opacity: 1;
}

.demo-row {
  border-top: 1px solid rgba(255,255,255,0.14);
  transition: border-color 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
  border-radius: 18px;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}

.demo-row:hover {
  border-color: rgba(179,27,27,0.95);
  transform: translateX(2px);
  background-color: rgba(255,255,255,0.015);
}

.speaker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.speaker-card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(17, 17, 17, 0.05);
  border-radius: 20px;
  padding: 1.5rem;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
}

.speaker-card:hover {
  background: #ffffff;
  border-color: rgba(17, 17, 17, 0.05);
}

.speaker-img-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: #eee;
}

.speaker-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: filter 0.3s ease;
}

.speaker-card:hover img {
  filter: grayscale(0%);
}

.speaker-card-kicker,
.panelist-card-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cornell-red);
}

.status-pulse {
  width: 8px;
  height: 8px;
  background: var(--cornell-red);
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  box-shadow: 0 0 0 rgba(179, 27, 27, 0.4);
  animation: pulse 2s infinite;
  vertical-align: middle;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(179, 27, 27, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(179, 27, 27, 0); }
  100% { box-shadow: 0 0 0 0 rgba(179, 27, 27, 0); }
}

.divider-text {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin: 4rem 0;
}

.divider-text::before,
.divider-text::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--line);
}

.divider-text:not(:empty)::before {
  margin-right: 2rem;
}

.divider-text:not(:empty)::after {
  margin-left: 2rem;
}

.panelist-mini-card {
  padding: 1.5rem;
  border: 1px solid rgba(17, 17, 17, 0.05);
  background: rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.panelist-mini-card:hover {
  border-color: rgba(179, 27, 27, 0.18);
  background: rgba(255, 255, 255, 0.75);
}

.team-panel {
  border: 1px solid rgba(17,17,17,0.08);
  background: rgba(255,255,255,0.84);
  box-shadow: var(--shadow-soft);
}

.team-list span {
  border-bottom: 1px solid rgba(17,17,17,0.08);
  padding-bottom: 0.5rem;
}

.register-shell {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1.2fr 1fr;
  align-items: start;
}

.venue-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(17,17,17,0.08);
  background: rgba(255,255,255,0.94);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.venue-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 240px;
}

.venue-photo {
  background: linear-gradient(rgba(17,17,17,0.08), rgba(17,17,17,0.18)), url('phillips.png') center/cover no-repeat;
  min-height: 240px;
}

.venue-map iframe {
  width: 100%;
  height: 100%;
  min-height: 240px;
  border: 0;
  display: block;
}

.venue-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.venue-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(17,17,17,0.12);
  background: white;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #374151;
  transition: border-color 0.22s ease, color 0.22s ease, background-color 0.22s ease;
}

.venue-chip:hover {
  border-color: rgba(179,27,27,0.45);
  color: var(--cornell-red);
}

.register-column {
  display: grid;
  gap: 1.5rem;
}

.register-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(17,17,17,0.08);
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  padding: 1.75rem;
  text-align: left;
}

.register-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(to right, rgba(179,27,27,0.9), rgba(179,27,27,0));
  opacity: 0.85;
}

.register-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b7280;
}

.register-note {
  font-size: 0.94rem;
  line-height: 1.7;
  color: #4b5563;
}

.footer-link {
  text-underline-offset: 4px;
}

.site-footer {
  background: rgba(0, 18, 32, 0.92);
  color: rgba(255,255,255,0.85);
  padding: 60px 24px 28px;
  margin-top: 120px;
}

.footer-inner {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 48px;
}

.footer-title {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: #ffffff;
}

.footer-text {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.65);
}

.footer-donate-btn {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 18px;
  border: 1px solid #B31B1B;
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: all 0.25s ease;
}

.footer-donate-btn:hover {
  background: #B31B1B;
  border-color: #B31B1B;
}

.footer-bottom {
  width: 100%;
  margin-top: 60px;
  padding-top: 24px;

  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  border-top: 1px solid rgba(255,255,255,0.06);
}

@media (max-width: 1200px) {
  .register-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    background-size: auto, 28px 28px, 28px 28px;
  }
}

@media (max-width: 900px) {
  .floating-panel {
    margin-top: 1.5rem;
  }
}

@media (max-width: 768px) {
  .hero-grid {
    background-size: auto, 24px 24px, 24px 24px;
  }

  .venue-preview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .section-label,
  .elite-strip-label,
  .register-kicker,
  .speaker-card-kicker,
  .panelist-card-kicker {
    letter-spacing: 0.14em;
  }

  .hero-grid {
    background-image: radial-gradient(circle at top, rgba(179, 27, 27, 0.08), transparent 34%);
  }

  .elite-strip-item,
  .register-card,
  .venue-card,
  .team-panel,
  .speaker-card,
  .panelist-mini-card {
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .fade-in,
  .academic-card,
  .demo-row,
  .cta-button,
  .floating-panel,
  .speaker-card {
    animation: none !important;
    transition: none !important;
  }
}
