/* ═══════════════════════════════════════════════
   STANFORD AI IN PERFORMING ARTS — SHARED STYLES
   ═══════════════════════════════════════════════ */

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

:root {
  --cardinal:      #8C1515;
  --cardinal-dark: #620000;
  --cardinal-mid:  #A01F1F;
  --stone:         #F4F0EB;
  --stone-dark:    #E6DDD2;
  --ink:           #1A1A1A;
  --ink-mid:       #444;
  --ink-light:     #777;
  --rule:          #D4C9BC;
  --gold:          #B8860B;
  --green:         #006B54; /* Palo Alto green */
  --white:         #fff;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--stone);
  color: var(--ink);
  font-size: 16.5px;
  line-height: 1.7;
}

a { color: var(--cardinal); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--cardinal-dark); }

/* ── UTILITY BAR ── */
.utility-bar {
  background: #2e2d29;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.38rem 2rem;
  font-size: 0.72rem;
}
.utility-bar-left { color: rgba(255,255,255,0.5); letter-spacing: 0.04em; font-weight: 600; }
.utility-bar-right { display: flex; gap: 1.4rem; }
.utility-bar a {
  color: rgba(255,255,255,0.5);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
  transition: color 0.2s;
}
.utility-bar a:hover { color: white; text-decoration: none; }

/* ── HEADER ── */
header {
  background: var(--cardinal);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 16px rgba(98,0,0,0.45);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Seal + identity */
.site-identity {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  flex-shrink: 0;
}
.site-identity:hover { text-decoration: none; }

.seal-wrap {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  background: white;
  border-radius: 50%;
  padding: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.seal-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}
.seal-wrap img { width: 100%; height: 100%; object-fit: contain; }

.identity-text {
  border-left: 1px solid rgba(255,255,255,0.3);
  padding-left: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.identity-stanford {
  font-family: 'Source Serif 4', serif;
  font-weight: 600;
  font-size: 0.82rem;
  color: white;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: uppercase;
}
.identity-lab {
  font-family: 'Source Serif 4', serif;
  font-weight: 300;
  font-size: 1rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.2;
  font-style: italic;
}

/* ── NAV ── */
nav {
  display: flex;
  align-items: stretch;
  height: 88px;
  flex-shrink: 0;
}
nav a {
  color: rgba(255,255,255,0.80);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0 0.9rem;
  display: flex;
  align-items: center;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  white-space: nowrap;
}
nav a:hover,
nav a.active {
  color: white;
  border-bottom-color: rgba(255,255,255,0.6);
  background: rgba(0,0,0,0.1);
  text-decoration: none;
}
nav a.nav-contact {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 2px;
  margin: auto 0 auto 0.5rem;
  padding: 0.4rem 1rem;
  height: auto;
}
nav a.nav-contact:hover { background: rgba(255,255,255,0.22); border-bottom-color: transparent; }

/* ── LAYOUT ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
section { padding: 4.5rem 0; }

.eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--cardinal);
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: 'Source Serif 4', serif;
  font-weight: 400;
  font-size: 1.85rem;
  color: var(--ink);
  line-height: 1.25;
}
.section-rule {
  width: 44px;
  height: 3px;
  background: var(--cardinal);
  margin: 1.1rem 0 2.2rem;
}

/* ── HERO ── */
.hero {
  background: var(--cardinal-dark);
  color: white;
  padding: 5rem 2rem 4.5rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(184,134,11,0.2) 60%, transparent 100%);
}
.hero-inner { max-width: 860px; margin: 0 auto; position: relative; }
.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.3rem;
}
.hero h1 {
  font-family: 'Source Serif 4', serif;
  font-weight: 300;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.2;
  margin-bottom: 1.6rem;
}
.hero h1 em { font-style: italic; color: rgba(255,255,255,0.7); }
.hero-lead {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  font-weight: 300;
  max-width: 720px;
  line-height: 1.75;
}

/* ── PILLAR IMAGE BANNERS (CSS art) ── */
.pillar-banner {
  width: 100%;
  height: 260px;
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  margin-bottom: 2.5rem;
}
.pillar-banner-label {
  position: absolute;
  bottom: 1.5rem;
  left: 1.8rem;
  color: white;
  font-family: 'Source Serif 4', serif;
  font-size: 1.4rem;
  font-weight: 300;
  font-style: italic;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  z-index: 2;
}

/* ConvAI banner — deep blue/violet sound waves */
.banner-convai {
  background: linear-gradient(135deg, #0a0a2e 0%, #1a0a3e 40%, #2d0b55 70%, #1a0040 100%);
}
.banner-convai::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 40% at 20% 60%, rgba(120,60,220,0.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 30% at 70% 40%, rgba(60,180,255,0.25) 0%, transparent 55%),
    radial-gradient(ellipse 40% 60% at 85% 80%, rgba(180,60,255,0.2) 0%, transparent 50%);
}
.banner-convai::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(90deg,
      transparent 0px,
      transparent 18px,
      rgba(120,80,255,0.08) 18px,
      rgba(120,80,255,0.08) 19px
    );
}
.wave-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0.5;
}

/* Docent banner — warm gold/amber theatrical */
.banner-docent {
  background: linear-gradient(135deg, #1a0800 0%, #3d1200 40%, #5c2000 65%, #2a0d00 100%);
}
.banner-docent::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 110%, rgba(255,160,20,0.45) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 20% 30%, rgba(200,80,0,0.3) 0%, transparent 50%),
    radial-gradient(ellipse 30% 50% at 80% 20%, rgba(255,120,0,0.2) 0%, transparent 50%);
}
.banner-docent::after {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent 0px,
      transparent 30px,
      rgba(255,140,0,0.04) 30px,
      rgba(255,140,0,0.04) 31px
    );
}
/* Curtain lines */
.curtain-left, .curtain-right {
  position: absolute; top: 0; bottom: 0;
  width: 80px;
  background: linear-gradient(90deg, rgba(100,20,0,0.7), transparent);
  z-index: 1;
}
.curtain-right {
  right: 0; left: auto;
  background: linear-gradient(270deg, rgba(100,20,0,0.7), transparent);
}

/* STAGE banner — teal/data visualization */
.banner-stage {
  background: linear-gradient(135deg, #001a1a 0%, #002a2a 40%, #003d35 70%, #001520 100%);
}
.banner-stage::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 30% 50%, rgba(0,180,140,0.25) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 75% 30%, rgba(0,120,200,0.2) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 60% 80%, rgba(0,200,160,0.15) 0%, transparent 50%);
}

/* Daniel banner — warm scholarly */
.banner-daniel {
  background: linear-gradient(135deg, #620000 0%, #8C1515 50%, #4a0a0a 100%);
}
.banner-daniel::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 50%, rgba(184,134,11,0.2) 0%, transparent 55%),
    radial-gradient(ellipse 50% 80% at 10% 60%, rgba(180,40,40,0.3) 0%, transparent 50%);
}

/* ── BIO CARD ── */
.bio-card {
  background: var(--stone);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--cardinal);
  padding: 1.8rem;
  border-radius: 2px;
}
.bio-name {
  font-family: 'Source Serif 4', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.2rem;
}
.bio-credentials {
  font-size: 0.82rem;
  color: var(--cardinal);
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 1.1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--rule);
}
.bio-links { display: flex; flex-direction: column; gap: 0.55rem; }
.bio-links a {
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--cardinal);
}
.bio-links a::before { content: '→'; font-size: 0.75rem; }

/* ── PILLAR CARDS (index page) ── */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.pillar-card {
  background: white;
  border: 1px solid var(--rule);
  border-top: 4px solid var(--cardinal);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, transform 0.25s;
}
.pillar-card:hover {
  box-shadow: 0 10px 36px rgba(0,0,0,0.10);
  transform: translateY(-4px);
  text-decoration: none;
}
.pillar-card-image {
  width: 100%;
  height: 160px;
  position: relative;
  overflow: hidden;
}
.pillar-card-body {
  padding: 1.6rem 1.6rem 1.8rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.pillar-num {
  font-family: 'Source Serif 4', serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cardinal);
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}
.pillar-title {
  font-family: 'Source Serif 4', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.8rem;
  line-height: 1.3;
}
.pillar-desc {
  font-size: 0.9rem;
  color: var(--ink-mid);
  line-height: 1.65;
  flex: 1;
}
.pillar-cta {
  margin-top: 1.3rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cardinal);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.pillar-cta::after { content: '→'; }

/* ── AGENDA ITEMS ── */
.agenda-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.agenda-item {
  background: var(--stone);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--cardinal);
  padding: 1.4rem 1.5rem;
}
.agenda-label {
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--cardinal);
  margin-bottom: 0.35rem;
}
.agenda-item h4 {
  font-family: 'Source Serif 4', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.agenda-item p { font-size: 0.87rem; color: var(--ink-mid); line-height: 1.6; }

/* ── CONTENT STRIP ── */
.content-strip {
  margin-top: 2.8rem;
  background: var(--cardinal-dark);
  border-radius: 3px;
  padding: 2rem 2.2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.content-type { color: white; text-align: center; padding: 1rem; }
.content-type-icon { font-size: 1.8rem; margin-bottom: 0.5rem; }
.content-type-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.3rem;
}
.content-type-desc { font-size: 0.78rem; color: rgba(255,255,255,0.5); line-height: 1.5; }

/* ── FEATURE LIST ── */
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.2rem; }
.feature-list li {
  display: flex;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--ink-mid);
  align-items: flex-start;
}
.feature-list li::before {
  content: '◆';
  color: var(--cardinal);
  font-size: 0.5rem;
  margin-top: 0.5em;
  flex-shrink: 0;
}

/* ── DATA FIELDS ── */
.data-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 1rem;
}
.data-field {
  background: var(--stone);
  border: 1px solid var(--rule);
  padding: 0.55rem 0.8rem;
  border-radius: 2px;
  font-size: 0.8rem;
  color: var(--ink-mid);
  font-weight: 600;
}

/* ── TWO-COL TEXT ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
}
.two-col p { color: var(--ink-mid); font-size: 0.97rem; margin-bottom: 1rem; }
.two-col h3 {
  font-family: 'Source Serif 4', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin: 1.8rem 0 0.6rem;
}
.two-col h3:first-child { margin-top: 0; }

/* ── CONTACT SECTION ── */
.contact-section {
  background: var(--cardinal-dark);
  color: white;
  padding: 4rem 0;
}
.contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.contact-text .eyebrow { color: rgba(255,255,255,0.4); }
.contact-text h2 {
  font-family: 'Source Serif 4', serif;
  font-weight: 300;
  font-size: 1.9rem;
  margin-bottom: 0.4rem;
}
.contact-text p { color: rgba(255,255,255,0.6); font-size: 0.95rem; }
.contact-btn {
  display: inline-block;
  background: white;
  color: var(--cardinal-dark);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  padding: 0.9rem 2.2rem;
  border-radius: 2px;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
  font-family: 'Source Sans 3', sans-serif;
}
.contact-btn:hover { background: var(--stone); transform: translateY(-2px); }

/* ── FOOTER ── */
footer {
  background: #2e2d29;
  color: rgba(255,255,255,0.5);
  padding: 2.5rem 0 0;
  font-size: 0.8rem;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-brand-name {
  font-family: 'Source Serif 4', serif;
  font-size: 1rem;
  color: white;
  font-weight: 400;
  margin-bottom: 0.3rem;
}
.footer-brand-sub {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.38);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.footer-affil { font-size: 0.75rem; color: rgba(255,255,255,0.32); line-height: 1.8; }
.footer-affil a { color: rgba(255,255,255,0.38); }
.footer-affil a:hover { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer-col h4 {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255,255,255,0.42);
  margin-bottom: 0.9rem;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: white; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.73rem;
}
.footer-bottom a { color: rgba(255,255,255,0.38); margin-left: 1.2rem; }
.footer-bottom a:hover { color: rgba(255,255,255,0.7); text-decoration: none; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow { animation: fadeUp 0.6s 0.05s ease both; }
.hero h1      { animation: fadeUp 0.6s 0.15s ease both; }
.hero-lead    { animation: fadeUp 0.6s 0.25s ease both; }

/* ── RESPONSIVE ── */
@media (max-width: 980px) {
  .pillars-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .agenda-grid { grid-template-columns: 1fr; }
  .content-strip { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  nav a { padding: 0 0.6rem; font-size: 0.72rem; }
}
@media (max-width: 680px) {
  .header-inner { height: 60px; }
  .hero { padding: 3rem 1.5rem; }
  .content-strip { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  nav { display: none; }
}
