:root {
  --ink: #0b1020;
  --ink-soft: #25304a;
  --paper: #f6f3ea;
  --paper-2: #fffdf8;
  --accent: #6d5dfc;
  --accent-2: #23c7b7;
  --accent-3: #ff7a59;
  --line: rgba(11, 16, 32, 0.14);
  --white: #ffffff;
  --shadow: 0 18px 60px rgba(11, 16, 32, 0.12);
  --radius: 26px;
  --radius-sm: 16px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }

.skip-link {
  position: fixed;
  left: 12px;
  top: -100px;
  z-index: 9999;
  background: var(--white);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 10px;
}
.skip-link:focus { top: 12px; }

.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section { padding: 92px 0; }
.section-sm { padding: 56px 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 800;
  font-size: .78rem;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }

h1, h2, h3, h4 { line-height: 1.05; margin: 0 0 18px; letter-spacing: -.035em; }
h1 { font-size: clamp(3.1rem, 8vw, 7.5rem); }
h2 { font-size: clamp(2.2rem, 4.6vw, 4.7rem); }
h3 { font-size: clamp(1.4rem, 2.1vw, 2.15rem); }
p { margin: 0 0 18px; color: var(--ink-soft); }
.lead { font-size: clamp(1.05rem, 1.8vw, 1.35rem); max-width: 760px; }
.muted { color: #64708a; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(246, 243, 234, .88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(11,16,32,.08);
}
.navbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 900; }
.brand img { width: 48px; height: 48px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text small { margin-top: 6px; font-size: .67rem; letter-spacing: .14em; color: #6f7890; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { text-decoration: none; font-size: .86rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent); }
.menu-button { display: none; border: 0; background: transparent; font-weight: 900; cursor: pointer; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 850;
  border: 1px solid var(--ink);
  transition: .2s ease;
  cursor: pointer;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(11,16,32,.13); }
.button-primary { background: var(--ink); color: var(--white); }
.button-accent { background: var(--accent); color: var(--white); border-color: var(--accent); }
.button-light { background: var(--white); color: var(--ink); border-color: transparent; }
.button-ghost { background: transparent; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 56px;
  background:
    radial-gradient(circle at 80% 20%, rgba(35,199,183,.24), transparent 34%),
    radial-gradient(circle at 15% 5%, rgba(109,93,252,.22), transparent 30%),
    var(--paper);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.hero-kicker { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.pill { display: inline-flex; padding: 8px 13px; border-radius: 999px; background: rgba(255,255,255,.74); border: 1px solid var(--line); font-size: .83rem; font-weight: 800; }
.hero h1 span { color: var(--accent); }
.hero-copy { max-width: 700px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-art { position: relative; }
.hero-art img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-card {
  position: absolute;
  right: -10px;
  bottom: -18px;
  max-width: 280px;
  background: var(--ink);
  color: white;
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.hero-card p { color: rgba(255,255,255,.72); margin: 0; font-size: .92rem; }

.stat-strip {
  margin-top: 62px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(255,255,255,.55);
}
.stat { padding: 26px 30px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: 1.65rem; }
.stat span { color: #657088; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.card-body { padding: 24px; }
.card-tag { display: inline-block; font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: 12px; }
.card img { aspect-ratio: 4/3; width: 100%; object-fit: cover; }
.card-link { display: inline-flex; margin-top: 8px; font-weight: 850; color: var(--accent); text-decoration: none; }
.card-link:hover { text-decoration: underline; }

.dark-section { background: var(--ink); color: var(--white); }
.dark-section p { color: rgba(255,255,255,.7); }
.dark-section .eyebrow { color: var(--accent-2); }

.feature-image { border-radius: var(--radius); box-shadow: var(--shadow); }
.quote-card { padding: 34px; border-radius: var(--radius-sm); background: var(--accent); color: white; }
.quote-card p { color: rgba(255,255,255,.86); }

.page-hero { padding: 92px 0 66px; background: var(--ink); color: white; }
.page-hero p { color: rgba(255,255,255,.68); }
.page-hero h1 { max-width: 1000px; font-size: clamp(3rem, 7vw, 6.5rem); }
.breadcrumb { color: var(--accent-2); text-transform: uppercase; letter-spacing: .14em; font-weight: 900; font-size: .78rem; margin-bottom: 18px; }

.schedule { display: grid; gap: 28px; }
.day { border-radius: var(--radius); background: var(--paper-2); border: 1px solid var(--line); overflow: hidden; }
.day-header { padding: 26px 30px; display: flex; justify-content: space-between; gap: 20px; align-items: end; background: linear-gradient(120deg, rgba(109,93,252,.12), rgba(35,199,183,.12)); }
.day-header h2 { font-size: clamp(2rem, 4vw, 3.7rem); margin: 0; }
.session { display: grid; grid-template-columns: 140px 58px 1fr; gap: 20px; align-items: start; padding: 24px 30px; border-top: 1px solid var(--line); }
.session time { font-weight: 900; }
.session-icon { width: 46px; height: 46px; padding: 8px; border-radius: 14px; background: #edeafd; }
.session h3 { margin-bottom: 8px; }
.session p { margin-bottom: 0; }
.session a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.session a:hover {
  text-decoration: none;
}

.person-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.person-card img { aspect-ratio: 4/5; width: 100%; object-fit: cover; }
.person-card .card-body { min-height: 220px; }
.person-meta { font-weight: 750; color: var(--accent); margin-bottom: 12px; }
.dark-section .person-card,
.dark-section .person-card h3 { color: var(--ink); }
.dark-section .person-card p { color: var(--ink-soft); }
.dark-section .person-card .person-meta { color: var(--accent); }
.lecturer-feature {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) 1.28fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: var(--shadow);
  scroll-margin-top: 100px;
}
.lecturer-feature + .lecturer-feature {
  margin-top: 40px;
}
.lecturer-portrait { min-height: 100%; background: var(--ink); }
.lecturer-portrait img {
  width: 100%;
  height: 100%;
  min-height: 720px;
  object-fit: cover;
  object-position: center top;
}
.lecturer-content { padding: clamp(28px, 5vw, 58px); }
.lecturer-content h2 { font-size: clamp(2.5rem, 5vw, 4.8rem); }
.lecturer-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lecturer-content a:hover {
  text-decoration: none;
}
.talk-card {
  margin-top: 34px;
  padding: clamp(24px, 4vw, 38px);
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--white);
}
.talk-card .eyebrow { color: var(--accent-2); }
.talk-card h3 { max-width: 720px; }
.talk-card h4 {
  margin: 26px 0 8px;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.talk-card p { color: rgba(255,255,255,.74); }
.talk-card p:last-child { margin-bottom: 0; }
.talk-card a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-word;
}
.talk-card a:hover {
  color: var(--white);
}
.lecturer-roster-heading { margin: 76px 0 32px; }

.venue-gallery { display: grid; grid-template-columns: 1.4fr .8fr; grid-template-rows: 1fr 1fr; gap: 16px; }
.venue-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }
.venue-gallery img:first-child { grid-row: 1 / span 2; }
.info-list { display: grid; gap: 14px; margin-top: 26px; }
.info-item { padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.52); }
.info-item strong { display: block; margin-bottom: 4px; }

.form-card { max-width: 820px; margin: 0 auto; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 5vw, 54px); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
label { font-weight: 800; }
input, textarea, select {
  width: 100%;
  border: 1px solid #cfd4df;
  background: white;
  border-radius: 13px;
  padding: 14px 15px;
  color: var(--ink);
}
textarea { min-height: 150px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(109,93,252,.2); border-color: var(--accent); }
.form-note { margin-top: 16px; font-size: .9rem; color: #68738a; }
.form-status { display: none; margin-top: 18px; padding: 14px 16px; background: #e8faf6; border: 1px solid #a9e6dc; border-radius: 12px; color: #135c53; font-weight: 750; }
.form-status.show { display: block; }

.logo-row { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.logo-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: 16px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
}
.logo-row img { width: 190px; max-height: 72px; object-fit: contain; opacity: .88; }
.person-card-pending img { filter: grayscale(1); opacity: .64; }

.site-footer { background: #070a13; color: white; padding: 58px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 44px; }
.site-footer p, .site-footer a { color: rgba(255,255,255,.68); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: white; }
.footer-links { display: grid; gap: 9px; }
.footer-bottom { margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 20px; font-size: .88rem; color: rgba(255,255,255,.54); }

.notice { padding: 16px 18px; background: #fff3d8; border: 1px solid #ecd18f; border-radius: 12px; color: #6d5313; }

@media (max-width: 980px) {
  .hero-grid, .grid-2, .lecturer-feature { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .hero-art { max-width: 720px; }
  .lecturer-portrait img { min-height: 0; max-height: 680px; aspect-ratio: 4/5; }
  .nav-links {
    display: none;
    position: absolute;
    inset: 82px 20px auto;
    padding: 24px;
    background: var(--paper-2);
    border-radius: 18px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }
  .nav-links.open { display: flex; }
  .menu-button { display: inline-flex; }
  .venue-gallery { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1/-1; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .section { padding: 68px 0; }
  .hero { padding-top: 54px; }
  .hero-card { position: relative; right: auto; bottom: auto; margin: -18px 14px 0; }
  .stat-strip, .grid-3, .grid-4, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .session { grid-template-columns: 92px 42px 1fr; padding: 20px 18px; gap: 12px; }
  .session-icon { width: 38px; height: 38px; }
  .day-header { padding: 22px 18px; align-items: start; flex-direction: column; }
  .venue-gallery { grid-template-columns: 1fr; grid-template-rows: auto; }
  .venue-gallery img:first-child { grid-row: auto; }
  .footer-grid > :first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}

/* Interactive enhancements */
body { overflow-x: hidden; }
body.menu-open { overflow: hidden; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 2000;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

.site-header,
.navbar,
.brand img { transition: min-height .25s ease, background-color .25s ease, box-shadow .25s ease, width .25s ease, height .25s ease; }
.site-header.is-scrolled {
  background: rgba(246, 243, 234, .96);
  box-shadow: 0 10px 35px rgba(11, 16, 32, .08);
}
.site-header.is-scrolled .navbar { min-height: 68px; }
.site-header.is-scrolled .brand img { width: 42px; height: 42px; }

.nav-links > a:not(.button) { position: relative; }
.nav-links > a:not(.button)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s ease;
}
.nav-links > a:not(.button):hover::after,
.nav-links > a:not(.button)[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.button-ripple {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  background: rgba(255, 255, 255, .38);
  transform: scale(0);
  pointer-events: none;
  animation: button-ripple .55s ease-out forwards;
}
@keyframes button-ripple {
  to { transform: scale(1); opacity: 0; }
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
  opacity: .65;
}
.hero::before {
  width: 260px;
  height: 260px;
  right: -100px;
  top: 14%;
  border: 1px solid rgba(109, 93, 252, .28);
  animation: orbit-float 9s ease-in-out infinite;
}
.hero::after {
  width: 120px;
  height: 120px;
  left: 4%;
  bottom: 10%;
  background: rgba(35, 199, 183, .12);
  animation: orbit-float 7s ease-in-out infinite reverse;
}
@keyframes orbit-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0); }
  50% { transform: translate3d(0, -18px, 0) rotate(8deg); }
}

.hero-art {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --move-x: 0px;
  --move-y: 0px;
  transform: perspective(1100px) rotateX(var(--tilt-y)) rotateY(var(--tilt-x)) translate3d(var(--move-x), var(--move-y), 0);
  transform-style: preserve-3d;
  transition: transform .28s ease-out;
  will-change: transform;
}
.hero-art img { transition: filter .35s ease, transform .35s ease; }
.hero-art:hover img { filter: saturate(1.06) contrast(1.02); }
.hero-card { animation: card-float 5s ease-in-out infinite; }
@keyframes card-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.card,
.person-card,
.info-item,
.quote-card,
.feature-image,
.venue-gallery img,
.logo-row img {
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease, opacity .28s ease, filter .28s ease;
}
.card img,
.person-card img { transition: transform .45s cubic-bezier(.2, .7, .2, 1); }

@media (hover: hover) {
  .card:hover,
  .person-card:hover,
  .info-item:hover {
    transform: translateY(-7px);
    border-color: rgba(109, 93, 252, .35);
    box-shadow: 0 20px 46px rgba(11, 16, 32, .12);
  }
  .card:hover img,
  .person-card:hover img { transform: scale(1.045); }
  .quote-card:hover,
  .feature-image:hover,
  .venue-gallery img:hover { transform: translateY(-5px); box-shadow: 0 24px 58px rgba(11, 16, 32, .16); }
  .logo-row img:hover { opacity: 1; transform: scale(1.04); filter: grayscale(0); }
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity .68s ease var(--reveal-delay, 0ms), transform .68s cubic-bezier(.2, .7, .2, 1) var(--reveal-delay, 0ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.hero-art.reveal { transform: perspective(1100px) translate3d(0, 28px, 0); }
.hero-art.reveal.is-visible {
  transform: perspective(1100px) rotateX(var(--tilt-y)) rotateY(var(--tilt-x)) translate3d(var(--move-x), var(--move-y), 0);
}

.day-header { position: relative; }
.day-toggle {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  margin-left: auto;
  border: 1px solid rgba(11, 16, 32, .16);
  border-radius: 50%;
  background: rgba(255, 255, 255, .7);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform .25s ease, background-color .25s ease, box-shadow .25s ease;
}
.day-toggle:hover { background: white; box-shadow: 0 8px 22px rgba(11, 16, 32, .1); }
.day-toggle-icon { display: block; font-size: 1.45rem; line-height: 1; transform: rotate(180deg); transition: transform .28s ease; }
.day.is-collapsed .day-toggle-icon { transform: rotate(0); }
.day-content {
  overflow: hidden;
  max-height: none;
  transition: max-height .42s cubic-bezier(.2, .7, .2, 1);
}
.day.is-collapsed .day-content { pointer-events: none; }

.form-status.show { animation: status-in .32s ease both; }
@keyframes status-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1100;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  box-shadow: 0 14px 34px rgba(11, 16, 32, .24);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(.9);
  transition: opacity .22s ease, visibility .22s ease, transform .22s ease, background-color .22s ease;
}
.scroll-top:hover { background: var(--accent); }
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.scroll-top span { font-size: 1.25rem; font-weight: 900; }

@media (max-width: 980px) {
  .nav-links {
    display: flex;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px) scale(.985);
    transform-origin: top;
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
  }
  .nav-links.open {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }
  .nav-links > a:not(.button)::after { display: none; }
}

@media (max-width: 680px) {
  .day-header { flex-direction: row; align-items: center; }
  .day-header > div { min-width: 0; }
  .day-header > strong { display: none; }
  .day-toggle { width: 42px; height: 42px; }
  .scroll-top { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-art,
  .hero-art.reveal,
  .hero-art.reveal.is-visible { transform: none; }
}
