/* EMinars — visual identity.
 *
 * The palette is auroral on purpose. Natural-source EM is driven by
 * ionospheric and magnetospheric currents, so the greens, cyans and violets
 * of the aurora are the actual source field for magnetotellurics, not a
 * decorative choice.
 */

:root {
  --void:     #060a12;
  --deep:     #0b1220;
  --deep-2:   #121c30;
  --paper:    #ffffff;
  --wash:     #f5f8fb;
  --line:     #e0e8f0;
  --text:     #16202e;
  --muted:    #63768c;

  --green:    #34e0a1;
  --cyan:     #4cc9f0;
  --violet:   #a06cf5;
  --pink:     #f072b6;
  --amber:    #ffc861;

  --ink-link: #0b7f93;
  --radius:   14px;
  --shadow:   0 2px 4px rgba(9,17,30,.05), 0 12px 32px rgba(9,17,30,.08);
  --font:     -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
              "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--text);
  background: var(--paper); line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: var(--ink-link); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ================================================================ topbar */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(6,10,18,.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.topbar .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand {
  display: flex; align-items: center; gap: 10px; color: #fff;
  font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em;
}
.brand:hover { text-decoration: none; }
.brand .mark { width: 23px; height: 23px; flex: none; }
.brand em {
  font-style: normal;
  background: linear-gradient(96deg, var(--green), var(--cyan) 45%, var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.topnav { margin-left: auto; display: flex; gap: 22px; flex-wrap: wrap; }
.topnav a { color: rgba(255,255,255,.72); font-size: .9rem; font-weight: 500; }
.topnav a:hover, .topnav a.on { color: #fff; text-decoration: none; }

/* ================================================================== hero */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--void); color: #fff; padding: 84px 0 68px;
}
.hero.compact { padding: 46px 0 40px; }

/* aurora curtains */
.hero::before, .hero::after {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 130%;
  z-index: -2; filter: blur(58px); opacity: .55;
  background:
    radial-gradient(48% 60% at 18% 30%, rgba(52,224,161,.75), transparent 70%),
    radial-gradient(42% 55% at 52% 18%, rgba(76,201,240,.65), transparent 70%),
    radial-gradient(46% 62% at 82% 34%, rgba(160,108,245,.60), transparent 70%);
  animation: drift 22s ease-in-out infinite alternate;
}
.hero::after {
  opacity: .3; filter: blur(90px);
  animation-duration: 31s; animation-direction: alternate-reverse;
}
@keyframes drift {
  from { transform: translate3d(-4%, 0, 0) scale(1); }
  to   { transform: translate3d(6%, -5%, 0) scale(1.14); }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after { animation: none; }
}

/* diffusing field lines */
.hero canvas.fieldlines {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: -1; opacity: .5;
}
.hero .wrap { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .76rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.22); border-radius: 999px;
  padding: 6px 15px 6px 11px; margin-bottom: 22px;
  background: rgba(255,255,255,.06);
}
.dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(52,224,161,.65); animation: ping 2.4s infinite;
}
@keyframes ping {
  70%  { box-shadow: 0 0 0 9px rgba(52,224,161,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,224,161,0); }
}

.hero h1 {
  margin: 0 0 16px; font-weight: 800; line-height: .98;
  font-size: clamp(2.9rem, 9vw, 5.6rem); letter-spacing: -.045em;
}
.hero h1 span {
  background: linear-gradient(100deg, var(--green) 0%, var(--cyan) 38%,
                              var(--violet) 72%, var(--pink) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede {
  font-size: clamp(1.05rem, 2.2vw, 1.28rem); max-width: 60ch;
  color: rgba(255,255,255,.82); margin: 0 0 30px;
}
.hero .lede b { color: #fff; font-weight: 600; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 24px; border-radius: 999px; font-weight: 650; font-size: .96rem;
  border: 0; cursor: pointer; color: #06121a;
  background: linear-gradient(96deg, var(--green), var(--cyan));
}
.btn:hover { text-decoration: none; filter: brightness(1.08); color: #06121a; }
.btn.ghost {
  background: rgba(255,255,255,.07); color: #fff;
  border: 1px solid rgba(255,255,255,.26);
}
.btn.ghost:hover { background: rgba(255,255,255,.15); color: #fff; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

.stats { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 40px; }
.stat b {
  display: block; font-size: 2.3rem; line-height: 1; letter-spacing: -.035em;
  font-weight: 750;
  background: linear-gradient(100deg, var(--green), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .14em;
  color: rgba(255,255,255,.6); font-weight: 600;
}

/* world clock strip — the series runs at every hour on purpose */
.clocks {
  display: flex; gap: 0; flex-wrap: wrap; margin-top: 40px;
  border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius);
  overflow: hidden; background: rgba(255,255,255,.04);
}
.clock {
  flex: 1 1 118px; padding: 12px 16px;
  border-right: 1px solid rgba(255,255,255,.1);
}
.clock:last-child { border-right: 0; }
.clock .city {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .13em;
  color: rgba(255,255,255,.55); font-weight: 600;
}
.clock .time {
  font-size: 1.12rem; font-weight: 650; font-variant-numeric: tabular-nums;
  color: #fff; margin-top: 2px;
}
.clock.you .city { color: var(--green); }

/* =============================================================== section */
section { padding: 62px 0; }
section.tint { background: var(--wash); border-block: 1px solid var(--line); }
section.dark {
  position: relative; overflow: hidden; isolation: isolate;
  color: rgba(255,255,255,.84);
  border-block: 1px solid rgba(255,255,255,.07);
  /* aurora wash, same palette as the hero but gentler */
  background:
    radial-gradient(70% 130% at 16% 8%,  rgba(52,224,161,.26), transparent 62%),
    radial-gradient(65% 120% at 52% -8%, rgba(76,201,240,.24), transparent 62%),
    radial-gradient(75% 135% at 88% 14%, rgba(160,108,245,.26), transparent 62%),
    linear-gradient(180deg, #14203a 0%, #101a2d 45%, var(--deep) 100%);
}
section.dark .wrap { position: relative; z-index: 1; }
section.dark h2 { color: #fff; }
section.dark .sub { color: rgba(255,255,255,.62); }
section.dark a { color: var(--cyan); }

.head { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.head > div { flex: 1 1 320px; }
h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.15rem); letter-spacing: -.03em;
  margin: 0 0 7px; font-weight: 750;
}
h3 { font-size: 1.1rem; margin: 0 0 6px; font-weight: 650; }
.sub { color: var(--muted); margin: 0; max-width: 66ch; }
.rule {
  height: 3px; width: 62px; border-radius: 3px; margin-bottom: 16px;
  background: linear-gradient(90deg, var(--green), var(--cyan), var(--violet));
}

/* ============================================================ video grid */
.vgrid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
}
.vcard {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; color: inherit;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.vcard:hover {
  text-decoration: none; transform: translateY(-3px);
  box-shadow: var(--shadow); border-color: #b9cbdc;
}
.thumb {
  position: relative; aspect-ratio: 16/9; display: block;
  background: linear-gradient(135deg, var(--deep-2), var(--deep));
  overflow: hidden;
}
.thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.vcard:hover .thumb img { transform: scale(1.045); }
.thumb .play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(to top, rgba(6,10,18,.55), rgba(6,10,18,0) 55%);
}
.thumb .play svg {
  width: 46px; height: 46px; filter: drop-shadow(0 3px 10px rgba(0,0,0,.45));
  opacity: .93; transition: transform .16s ease;
}
.vcard:hover .thumb .play svg { transform: scale(1.12); }
.thumb .novid {
  position: absolute; inset: 0; display: grid; place-items: center;
  text-align: center; padding: 18px;
  color: rgba(255,255,255,.5); font-size: .82rem;
}
.thumb .season-chip {
  position: absolute; top: 9px; left: 9px;
  background: rgba(6,10,18,.72); backdrop-filter: blur(6px);
  color: #fff; font-size: .67rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 6px;
}
.thumb .when-chip {
  position: absolute; bottom: 9px; right: 9px;
  background: rgba(6,10,18,.72); backdrop-filter: blur(6px);
  color: #fff; font-size: .72rem; font-weight: 600;
  padding: 3px 9px; border-radius: 6px; font-variant-numeric: tabular-nums;
}
.vbody { padding: 15px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.vbody h4 {
  margin: 0 0 7px; font-size: 1rem; font-weight: 650; line-height: 1.35;
  letter-spacing: -.012em;
}
.vwho { font-size: .87rem; color: var(--muted); margin-bottom: 4px; }
.vwho b { color: var(--text); font-weight: 600; }
.vwho .sp-email { color: var(--ink-link); font-size: .82rem; }
.vwho .sp-email:hover { text-decoration: underline; }
.vnote { font-size: .81rem; color: var(--muted); font-style: italic; white-space: pre-line; }
.vnote.clamp {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4;
  line-clamp: 4; overflow: hidden;
}
.vnote b { color: var(--text); font-weight: 600; font-style: normal; }
.vnote a { color: var(--ink-link); text-decoration: underline; word-break: break-word; }
.see-more {
  display: block; align-self: flex-start; background: none; border: 0; padding: 2px 0; margin-top: 2px;
  font: inherit; font-size: .78rem; font-weight: 650; color: var(--ink-link);
  cursor: pointer;
}
.see-more:hover { text-decoration: underline; }
.vlinks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 12px; }
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .77rem; font-weight: 650; padding: 4px 10px; border-radius: 999px;
  background: #eef4f9; color: #3d5468; border: 1px solid var(--line);
}
.pill:hover { background: #e2ecf4; text-decoration: none; }
.pill.yt { background: #fdeceb; color: #c5342a; border-color: #f7d3d1; }
.tag {
  display: inline-block; font-size: .66rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  padding: 2px 6px; border-radius: 4px; margin-right: 6px;
  background: #eef2f7; color: var(--muted); border: 1px solid var(--line);
  vertical-align: 2px;
}

/* upcoming — bigger, warmer */
.upcoming { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.ucard {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; position: relative; overflow: hidden;
}
.ucard::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 4px;
  background: linear-gradient(180deg, var(--green), var(--cyan), var(--violet));
}
.ucard .u-when {
  font-size: .74rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ink-link); margin-bottom: 9px;
}
.ucard h4 { margin: 0 0 9px; font-size: 1.14rem; font-weight: 680; line-height: 1.35; }

/* speaker portraits — the card is a media object: faces left, words right */
.ucard { display: flex; gap: 18px; align-items: flex-start; }
.ucard .u-text { flex: 1 1 auto; min-width: 0; }
.u-faces { display: flex; flex-direction: column; gap: 8px; flex: none; padding-left: 6px; }
.avatar {
  display: block; width: 78px; height: 78px; border-radius: 50%;
  overflow: hidden; background: var(--wash); border: 1px solid var(--line);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.mono {
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 700; letter-spacing: .02em;
  background: var(--av-bg, var(--wash)); color: var(--av-fg, var(--muted));
  border-color: transparent;
}
@media (max-width: 460px) {
  .ucard { flex-direction: column; gap: 12px; }
  .u-faces { flex-direction: row; padding-left: 0; }
  .avatar { width: 58px; height: 58px; }
  .avatar.mono { font-size: 1.1rem; }
}

/* calendar */
.u-cal { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.cal-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .84rem; font-weight: 600; padding: 7px 14px; border-radius: 999px;
  background: #eef4f9; color: #35566b; border: 1px solid var(--line);
}
.cal-btn:hover { background: #e2ecf4; text-decoration: none; }
.cal-btn.ghost { background: var(--paper); color: var(--muted); }
.cal-btn.ghost:hover { background: var(--wash); }
/* joining is the thing most people want from this card, so it leads */
.cal-btn.zoom { background: #0b7f93; color: #fff; border-color: #0b7f93; }
.cal-btn.zoom:hover { background: #09697a; }
.zoom-detail {
  flex-basis: 100%; font-size: .8rem; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.cal-btn svg {
  width: 15px; height: 15px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round;
}

/* =============================================================== toolbar */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 26px; }
.search { flex: 1 1 300px; position: relative; }
.search input {
  width: 100%; font: inherit; font-size: 1rem; padding: 13px 16px 13px 44px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
}
.search::before {
  content: ""; position: absolute; left: 16px; top: 50%; width: 18px; height: 18px;
  transform: translateY(-50%); pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2363768c' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.6-3.6'/%3E%3C/svg%3E") no-repeat center / contain;
}
.search input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(76,201,240,.18); }
select.filter {
  font: inherit; font-size: .94rem; padding: 12px 16px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--text);
}
.count { color: var(--muted); font-size: .9rem; margin-left: auto; }
.empty { color: var(--muted); padding: 46px 0; text-align: center; grid-column: 1/-1; }

.theme-head {
  grid-column: 1/-1; margin: 14px 0 0; font-size: .76rem; font-weight: 750;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-link);
  display: flex; align-items: center; gap: 12px;
}
.theme-head::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

/* =============================================================== seasons */
.season-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(214px, 1fr)); }
.season-card {
  position: relative; overflow: hidden; display: block; padding: 24px;
  border-radius: var(--radius); color: #fff;
  background: linear-gradient(150deg, var(--deep-2), var(--deep));
  border: 1px solid rgba(255,255,255,.1);
  transition: transform .16s ease, box-shadow .16s ease;
}
.season-card::before {
  content: ""; position: absolute; inset: -60% -20% auto -20%; height: 150%;
  background: radial-gradient(45% 55% at 30% 40%, var(--c1), transparent 70%),
              radial-gradient(45% 55% at 72% 30%, var(--c2), transparent 70%);
  opacity: .5; filter: blur(30px); transition: opacity .2s;
}
.season-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow); }
.season-card:hover::before { opacity: .85; }
.season-card > * { position: relative; }
.season-card .n { font-size: .72rem; font-weight: 750; letter-spacing: .15em;
                  text-transform: uppercase; color: rgba(255,255,255,.72); }
.season-card .y { font-size: 1.5rem; font-weight: 750; letter-spacing: -.03em; margin: 4px 0 8px; }
.season-card .c { color: rgba(255,255,255,.72); font-size: .89rem; }

/* ================================================================== misc */
.cols { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
section.dark .card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.11); }
.people { display: flex; flex-wrap: wrap; gap: 8px; }
.person { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .89rem; }
section.dark .person { border-color: rgba(255,255,255,.18); color: var(--cyan); }

footer { background: var(--void); color: rgba(255,255,255,.62); padding: 46px 0 52px; font-size: .9rem; }
footer a { color: var(--cyan); }
footer .wrap { display: flex; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
footer .sponsor { margin-left: auto; text-align: right; }

.back { display: inline-flex; gap: 7px; color: rgba(255,255,255,.75); font-size: .9rem; margin-bottom: 16px; }
.back:hover { color: #fff; text-decoration: none; }

@media (max-width: 640px) {
  .stats { gap: 22px; }
  .stat b { font-size: 1.75rem; }
  .clock { flex: 1 1 50%; border-bottom: 1px solid rgba(255,255,255,.1); }
  footer .sponsor { margin-left: 0; text-align: left; }
  .topnav { gap: 14px; }
  .topnav a { font-size: .84rem; }
}

@media print {
  .topbar, .toolbar, footer, .hero canvas, .clocks { display: none; }
  .hero { background: #fff; color: #000; padding: 10px 0; }
  .hero::before, .hero::after { display: none; }
  .hero h1 span, .stat b { -webkit-text-fill-color: #000; color: #000; }
  .vgrid { display: block; }
  .vcard { break-inside: avoid; border-color: #ccc; margin-bottom: 8px; }
  .thumb { display: none; }
}
