/* Where Pharma Meets AI — dark brand palette.
   Edit these values to re-skin the whole site. */
:root {
  --bg:      #0b0d0e;
  --panel:   #131618;
  --panel-2: #181c1f;
  --line:    #242a2d;
  --text:    #eef1f1;
  --muted:   #8c9699;
  --accent:  #35e0c0;
  --on-accent: #06211c;
  --blue:    #5b9cff;
  --mol:     #aab4b8;   /* molecule lattice — grey, not accent */

  --wrap: 1040px;
  --r: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.025em; margin: 0; }

/* ---------- full-page backdrop photo (home page) ---------- */

.backdrop {
  position: fixed;
  inset: -40px;                  /* hides the blur's soft edge */
  z-index: 0;
  background: url("img/venue-talk-setup.jpg") center / cover no-repeat;
  filter: blur(16px) saturate(.55) brightness(.5);
  opacity: .55;
  pointer-events: none;
}
.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 13, 14, .45) 0%, rgba(11, 13, 14, .80) 60%, rgba(11, 13, 14, .92) 100%);
}

/* Sub-page backdrops: a lighter blur so the scene is recognisable, faded harder so text stays first. */
.backdrop--dinners,
.backdrop--training {
  filter: blur(5px) saturate(.5) brightness(.42);
  opacity: .5;
  background-position: center 30%;
}
.backdrop--dinners  { background-image: url("img/venue-long-table.jpg"); }
.backdrop--training { background-image: url("img/venue-workshop.jpg"); }
.backdrop--dinners::after,
.backdrop--training::after {
  background: linear-gradient(180deg, rgba(11, 13, 14, .35) 0%, rgba(11, 13, 14, .78) 55%, rgba(11, 13, 14, .94) 100%);
}

/* ---------- full-page molecular background (home page) ---------- */

.molecules {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.lattice {
  color: var(--mol);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  opacity: .30;
  transform-origin: 50% 50%;
  animation: drift 60s ease-in-out infinite;
}

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(-16px, 12px, 0); }
}
@media (prefers-reduced-motion: reduce) { .lattice { animation: none; } }

/* Everything else sits above the background. */
.nav, main, .foot { position: relative; z-index: 1; }

/* ---------- layout ---------- */

.nav, main > section, .foot {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

main > section { padding-top: 96px; padding-bottom: 96px; }
main > section + section { border-top: 1px solid var(--line); }

.section-head { max-width: 72ch; margin-bottom: 40px; }
.section-head .lede-sm { margin-top: 16px; }

/* ---------- nav ---------- */

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.logo-mark { width: 32px; height: 32px; flex: none; }
.logo-text { color: var(--text); font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.logo-text em { font-style: normal; color: var(--accent); margin: 0 3px; font-weight: 600; }

.nav nav { display: flex; gap: 26px; }
.nav nav a { color: var(--muted); font-size: 15px; text-decoration: none; }
.nav nav a:hover,
.nav nav a[aria-current="page"] { color: var(--text); }
.nav nav a[aria-current="page"] { font-weight: 600; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: 12px 22px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .15s ease, transform .15s ease;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-ghost { background: rgba(11, 13, 14, .6); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted); opacity: 1; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- type helpers ---------- */

.kicker, .eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1 { font-size: clamp(44px, 8vw, 88px); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(28px, 3.8vw, 40px); font-weight: 700; max-width: 22ch; }

.lede { margin: 26px 0 0; max-width: 54ch; color: var(--muted); font-size: 19px; }
.lede-sm { margin: 18px 0 0; max-width: 64ch; color: var(--muted); }
.note { margin-top: 24px; color: var(--muted); font-size: 14px; }

/* ---------- hero ---------- */

.hero { max-width: none; padding: 72px 0 0; }
.home .hero { padding-top: 96px; }

.hero-inner, .strip {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
.hero-inner { padding-bottom: 88px; }

.subnav { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 34px; }
.subnav a { color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none; letter-spacing: .02em; }
.subnav a::before { content: "↓ "; color: var(--accent); }
.subnav a:hover { color: var(--text); }

.strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px;
  padding-left: 0;
  padding-right: 0;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.strip > div { padding: 22px 16px; background: var(--bg); }
.strip dt { color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.strip dd { margin: 5px 0 0; font-weight: 500; }

/* Sub-pages: same hero shell, lighter. */
.page-hero { border-bottom: 1px solid var(--line); }
.page-hero .hero-inner { padding-bottom: 72px; }

/* ---------- agenda timeline ---------- */

.timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline > li {
  position: relative;
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 24px;
  padding: 0 0 18px 0;
}

/* The rail */
.timeline > li::before {
  content: "";
  position: absolute;
  left: 95px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.timeline > li:last-child::before { bottom: auto; height: 18px; }

/* The dot */
.timeline > li::after {
  content: "";
  position: absolute;
  left: 90px;
  top: 16px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}
.tl-break::after { width: 7px; height: 7px; left: 92px; top: 13px; border-color: var(--muted); background: var(--muted); }

.tl-time {
  display: flex;
  flex-direction: column;
  padding-top: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.tl-time small { margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.tl-break .tl-time { color: var(--muted); font-weight: 500; font-size: 15px; padding-top: 7px; }

.tl-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px 28px 24px;
  transition: border-color .2s ease, background .2s ease;
}
.tl-panel .tl-card:hover { border-color: #3a4347; background: var(--panel-2); }
.tl-break .tl-card { background: transparent; border-color: transparent; padding: 8px 0; }
.tl-break h3 { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }

.tl-num {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.tl-card h3 { font-size: 22px; font-weight: 700; }
.tl-card p { margin: 12px 0 0; max-width: 66ch; color: var(--muted); font-size: 15.5px; }

.tl-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.tl-tags li {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- split / facts ---------- */

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; margin-top: 8px; align-items: start; }
.split p { color: var(--muted); margin: 0 0 16px; }
.split > div > p:last-child { margin-bottom: 0; }
#why h2 { max-width: 16ch; }
.why-copy p:last-child { color: var(--text); font-weight: 500; }

.facts { margin: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.facts > div { background: var(--panel); padding: 16px 20px; }
.facts dt { color: var(--muted); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.facts dd { margin: 4px 0 0; font-weight: 500; }

/* ---------- speakers ---------- */

.speakers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.speaker {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px 26px 26px;
}
.speaker img {
  display: block;
  width: 104px;
  height: 104px;
  margin-bottom: 20px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--line);
}
.speaker h4 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.speaker .role { margin: 5px 0 0; color: var(--accent); font-size: 14px; }
.speaker .bio { margin: 14px 0 0; color: var(--muted); font-size: 15px; }

.chip {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .04em;
  vertical-align: 1px;
}

/* ---------- venue ---------- */

#venue address { margin-top: 4px; font-style: normal; font-size: 17px; line-height: 1.7; }

.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}
.gallery li { margin: 0; grid-column: span 2; }
.gallery li:nth-child(1) { grid-column: span 4; }
.gallery img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 150px;
  max-height: 300px;
  object-fit: cover;
  border-radius: var(--r);
  border: 1px solid var(--line);
}

/* ---------- sponsors ---------- */

.sponsors-band { padding-top: 56px; padding-bottom: 56px; }
.sponsors-head {
  margin: 0 0 22px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.become { margin: 22px 0 0; font-size: 15px; font-weight: 600; }
.become a { color: var(--blue); text-decoration: none; }
.become a:hover { text-decoration: underline; }

.sponsors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sponsors a {
  display: grid;
  place-items: center;
  min-height: 124px;
  padding: 28px 32px;
  background: #fff;
  border-radius: var(--r);
  transition: transform .15s ease;
}
.sponsors a:hover { transform: translateY(-2px); }
.sponsors img { max-height: 42px; max-width: 100%; width: auto; object-fit: contain; }

/* ---------- dinner list ---------- */

.events { list-style: none; margin: 36px 0 0; padding: 0; border-top: 1px solid var(--line); }
.event {
  display: grid;
  grid-template-columns: 168px 118px 1fr auto;
  gap: 20px;
  align-items: baseline;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
}
.event .when { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.event .where { color: var(--accent); font-size: 14px; }
.event .what { color: var(--muted); }
.event .status {
  justify-self: end;
  padding: 2px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

/* ---------- training curriculum ---------- */

.days { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.day {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 30px 28px 26px;
}
.day header { margin-bottom: 18px; }
.day-num {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.day h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.015em; }

.modules { margin: 0; padding: 0 0 0 30px; color: var(--muted); font-size: 15px; }
.modules li { position: relative; margin: 0; padding: 14px 0 14px 4px; border-top: 1px solid var(--line); }
.modules li::marker { color: var(--accent); font-weight: 700; font-size: 14px; }
.modules strong { display: block; margin-bottom: 4px; color: var(--text); font-weight: 600; font-size: 16px; }
.modules .capstone { margin-top: 6px; padding: 16px 14px 16px 10px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; }
.modules .capstone::marker { color: var(--blue); }

@media (max-width: 860px) { .days { grid-template-columns: 1fr; } }

/* ---------- pricing ---------- */

.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  max-width: 720px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tier {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 30px 28px 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.tier-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.tier-name { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.tier-price { font-size: 48px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; }
.tier-when { color: var(--muted); font-size: 14px; }
.tier .btn { align-self: flex-start; margin-top: 18px; }
.tier p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }

.price-line { margin: 22px 0 0; color: var(--muted); font-size: 15px; }
.price-line strong { color: var(--text); font-weight: 700; }

/* ---------- forms + CTA blocks ---------- */

.register form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 640px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { color: var(--muted); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 15px;
}
.field textarea { resize: vertical; }
.field-full { grid-column: 1 / -1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.field input[aria-invalid="true"] { border-color: #e06a5a; }

.register .btn { grid-column: 1 / -1; justify-self: start; }
.register .btn:disabled { opacity: .6; cursor: progress; }

/* Honeypot: off-screen, not display:none, so bots still "see" it. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-msg { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 15px; min-height: 1.4em; }
.form-msg.form-error { color: #e06a5a; }

/* After a successful send the fields give way to one large confirmation card. */
.register form.is-sent .field,
.register form.is-sent .btn,
.register form.is-sent .hp { display: none; }

.form-msg.form-success {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 26px 28px;
  background: rgba(53, 224, 192, .08);
  border: 1px solid var(--accent);
  border-radius: var(--r);
  color: var(--text);
  font-size: 20px;
  line-height: 1.45;
  min-height: 0;
}
.form-msg.form-success::before {
  content: "✓";
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 22px;
  font-weight: 800;
}
.form-msg.form-success strong { color: var(--accent); font-weight: 700; }

.cta-block .cta-row { margin-top: 24px; }

/* ---------- venue map link ---------- */

.maplink { margin: 14px 0 0; font-weight: 600; }
.maplink a { color: var(--accent); text-decoration: none; }
.maplink a:hover { text-decoration: underline; }

/* ---------- password gate ----------
   Client-side only: a pre-launch curtain, not security. */

html.locked { overflow: hidden; }
html.locked body > *:not(.gate) { visibility: hidden; }

.gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 16px;
  background: var(--bg);
}
.gate-inner { width: min(380px, 100%); text-align: center; }
.gate .logo { justify-content: center; margin: 0 0 36px; }
.gate .logo-mark { width: 44px; height: 44px; }
.gate .logo-text { font-size: 24px; }
.gate form { display: grid; gap: 12px; }
.gate input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  text-align: center;
  letter-spacing: .08em;
}
.gate input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.gate input[aria-invalid="true"] { border-color: #e06a5a; }
.gate .btn { width: 100%; }
.gate-msg { margin: 0; min-height: 1.4em; color: #e06a5a; font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- footer ---------- */

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  padding-top: 32px;
  padding-bottom: 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .speakers { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .speakers { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery li, .gallery li:nth-child(1) { grid-column: span 1; }
  .gallery li:nth-child(1) { grid-column: span 2; }
}

@media (max-width: 760px) {
  main > section { padding-top: 64px; padding-bottom: 64px; }
  .home .hero { padding-top: 56px; }
  .hero-inner { padding-bottom: 64px; }
  .nav { flex-wrap: wrap; gap: 14px; }
  .nav nav { order: 3; width: 100%; gap: 18px; }
  .logo { font-size: 15px; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .register form { grid-template-columns: 1fr; }
  .event { grid-template-columns: 1fr auto; gap: 6px 16px; }
  .event .what { grid-column: 1 / -1; }

  .timeline > li { grid-template-columns: 1fr; gap: 8px; padding-left: 22px; }
  .timeline > li::before { left: 5px; }
  .timeline > li::after { left: 0; top: 14px; }
  .tl-break::after { left: 2px; }
  .tl-time { flex-direction: row; gap: 10px; align-items: baseline; padding-top: 4px; }
  .tl-card { padding: 22px 20px 20px; }
  .lattice { opacity: .22; }
}

/* ---------- inline section gate (dinner schedule) ---------- */

.gate-inline {
  max-width: 540px;
  margin-top: 36px;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.gate-title { margin: 0 0 14px; font-weight: 600; }
.gate-inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.gate-inline-form input {
  flex: 1 1 200px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  letter-spacing: .06em;
}
.gate-inline-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.gate-inline-form input[aria-invalid="true"] { border-color: #e06a5a; }
.gate-inline-form .gate-msg { width: 100%; margin: 0; min-height: 1.2em; color: #e06a5a; font-size: 14px; }
