:root {
  --bg: #ffffff;
  --paper: #ffffff;
  --ink: #102f5f;
  --muted: #4f5f75;
  --line: rgba(16, 47, 95, 0.18);
  --accent: #c8242f;
  --accent-dark: #102f5f;
  --dark: #0b1f3f;
  --shadow: 0 24px 80px rgba(16, 47, 95, 0.12);
  --radius: 26px;
}

* { 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;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}
body.admin-bar .site-header { top: 32px; }

.top-ribbon {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  height: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  box-shadow: 0 3px 12px rgba(0,0,0,.18);
}
.top-ribbon span { display: block; }
.top-ribbon .ribbon-blue { background: #102f5f; }
.top-ribbon .ribbon-white { background: #ffffff; }
.top-ribbon .ribbon-red { background: #c8242f; }
body.admin-bar .top-ribbon { top: 32px; }
body.admin-bar.sawcon-has-ribbon .site-header { top: 44px; }
body:not(.sawcon-has-ribbon) .site-header { top: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.site-header {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px clamp(20px, 4vw, 64px);
  color: #fff;
  transition: background 220ms ease, box-shadow 220ms ease, padding 220ms ease, color 220ms ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.93);
  color: var(--ink);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(16,47,95,.11);
  padding-top: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; flex-direction: column; line-height: 1; }
.custom-logo { max-height: 58px; width: auto; }
.brand-mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  letter-spacing: -0.05em;
}
.brand-subtitle {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .22em;
  opacity: .78;
  margin-top: 5px;
}
.sawcon-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  padding: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}
.sawcon-menu a { opacity: .88; }
.sawcon-menu a:hover { opacity: 1; color: var(--accent); }

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 130px clamp(20px, 6vw, 96px) 80px;
  position: relative;
  color: #fff;
  overflow: hidden;
  background: var(--dark);
}
.hero-background {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
}
.hero-bg-panel {
  background-size: cover;
  background-position: center;
  min-height: 100%;
  filter: saturate(.95) contrast(1.05);
}
.hero-bg-one { background-image: linear-gradient(135deg, #0b1f3f, #214b86); }
.hero-bg-two { background-image: linear-gradient(135deg, #c8242f, #7b1020); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11,31,63,.82), rgba(11,31,63,.38) 48%, rgba(11,31,63,.72)),
    linear-gradient(0deg, rgba(11,31,63,.26), rgba(11,31,63,.08));
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 22vh;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.hero-card {
  width: min(620px, 100%);
  max-width: 620px;
  padding: clamp(28px, 4vw, 48px);
  background: rgba(255,255,255, 0.91);
  color: var(--ink);
  border: 1px solid rgba(255,255,255,.62);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
/* Hero images are used as the background panels behind the text.
   The previous side-by-side photo cards were removed in v1.2. */
.eyebrow, .section-label {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero h1, h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: .95;
  margin: 0;
}
.hero h1 { font-size: clamp(46px, 7vw, 86px); }
h2 { font-size: clamp(36px, 5vw, 64px); }
h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.2; }
p { margin: 0; }
.hero-card p:not(.eyebrow) { margin-top: 22px; font-size: 19px; color: var(--muted); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--accent-dark); color: #fff; box-shadow: 0 12px 28px rgba(16,47,95,.22); }
.button.primary:hover { background: var(--accent); }
.button.secondary { background: rgba(16,47,95,.08); color: var(--ink); }
.scroll-cue {
  position: absolute;
  z-index: 3;
  right: clamp(20px, 4vw, 64px);
  bottom: 34px;
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .22em;
  writing-mode: vertical-rl;
  opacity: .8;
}

.section { padding: clamp(76px, 10vw, 140px) clamp(20px, 6vw, 96px); }
.two-column, .section-heading {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 86px);
  align-items: start;
}
.lead { font-size: clamp(19px, 2vw, 24px); color: var(--ink); }
.intro-section p + p { margin-top: 20px; color: var(--muted); }
.section-heading { align-items: end; margin-bottom: 42px; }
.section-heading > p, .section-heading.centered p { color: var(--muted); font-size: 18px; }
.section-heading.centered {
  display: block;
  max-width: 760px;
  text-align: center;
}
.section-heading.centered .section-label { margin-left: auto; margin-right: auto; }
.section-heading.centered p { margin-top: 18px; }

.program-section { background: rgba(16,47,95,.035); }
.schedule {
  max-width: 980px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 20px 70px rgba(16,47,95,.08);
}
.schedule article {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 26px clamp(22px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
}
.schedule article:last-child { border-bottom: 0; }
.schedule time { font-weight: 900; color: var(--accent); }
.schedule p { color: var(--muted); }
.schedule .highlight { background: linear-gradient(90deg, rgba(200,36,47,.12), transparent); }

.speaker-grid {
  max-width: 1180px;
  margin: 44px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.speaker-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 16px 50px rgba(16,47,95,.07);
}
.avatar,
.speaker-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  margin-bottom: 20px;
}
.avatar {
  display: grid;
  place-items: center;
  background: var(--accent-dark);
  color: #fff;
  font-weight: 900;
  font-size: 34px;
}
.speaker-photo { object-fit: cover; }
.speaker-card .role { color: var(--accent); font-weight: 900; margin-bottom: 12px; }
.speaker-card p:last-child { color: var(--muted); }

.testimonial-section {
  background: var(--accent-dark);
  color: #fff;
  text-align: center;
}
blockquote { max-width: 860px; margin: 0 auto; }
blockquote p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4.5vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}
blockquote footer { margin-top: 24px; color: rgba(255,255,255,.75); font-weight: 900; }

.tickets-section { background: linear-gradient(135deg, rgba(16,47,95,.05), rgba(200,36,47,.05)); }
.ticket-card, .reveal-card {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(34px, 6vw, 72px);
  box-shadow: var(--shadow);
}
.ticket-card p:not(.eyebrow), .reveal-card p:not(.eyebrow) { margin-top: 20px; color: var(--muted); font-size: 19px; }
.ticket-card .button { margin-top: 28px; }
.reveal-section {
  background: radial-gradient(circle at 30% 20%, rgba(200,36,47,.25), transparent 34%), var(--dark);
  color: #fff;
}
.reveal-card { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); }
.reveal-card h2 { color: #fff; }
.reveal-card p:not(.eyebrow) { color: rgba(255,255,255,.82); font-size: clamp(22px, 3vw, 34px); }

.site-footer {
  padding: 36px 20px;
  text-align: center;
  background: #07152c;
  color: rgba(255,255,255,.72);
}
.site-footer p + p { margin-top: 4px; }

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 750ms ease, transform 750ms ease;
  will-change: opacity, transform;
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-on-scroll { opacity: 1; transform: none; transition: none; }
  .button { transition: none; }
}

@media (max-width: 900px) {
  body.admin-bar .top-ribbon { top: 46px; }
  body.admin-bar.sawcon-has-ribbon .site-header { top: 58px; }
  body.admin-bar:not(.sawcon-has-ribbon) .site-header { top: 46px; }
  .site-header { align-items: flex-start; padding: 18px 20px; }
  .main-nav { display: none; }
  .hero { padding-left: 20px; padding-right: 20px; }
  .hero-card { max-width: 100%; }
  .two-column, .section-heading { grid-template-columns: 1fr; }
  .speaker-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .speaker-grid { grid-template-columns: 1fr; }
  .schedule article { grid-template-columns: 1fr; gap: 8px; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .scroll-cue { display: none; }
}
