/* ==========================================================================
   Human Genome Conference 2027 — Template B · Architectural
   ========================================================================== */

:root {
  --bg: #f4f5f4;
  --bg2: #eceeec;
  --ink: #13171b;
  --muted: #565d63;
  --faint: #8b9096;
  --line: #dcdedc;
  --panel: #ffffff;
  --indigo: oklch(0.5 0.09 262);
  --indigo-d: oklch(0.4 0.09 262);
  --lime: oklch(0.82 0.13 118);
  --dark-text: #e8eae9;
  --dark-muted: #9ba3a1;
  --display: 'Sora', system-ui, sans-serif;
  --sans: 'Space Grotesk', system-ui, sans-serif;
  --max: 1280px;
  --gutter: 32px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--indigo); text-decoration: none; }
a:hover { color: var(--indigo-d); }
h1, h2, h3 { font-family: var(--display); }

.container { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
section[id] { scroll-margin-top: 78px; }

.label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--indigo);
}
.section-title {
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.06;
  margin: 0;
  letter-spacing: -0.3px;
}
.split-head { display: grid; grid-template-columns: 0.5fr 1.5fr; gap: 52px; }
.section { padding-top: 96px; padding-bottom: 96px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  font-weight: 600;
  font-size: 14.5px;
  transition: opacity .2s ease, background .2s ease;
}
.btn:hover { opacity: .88; }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { color: var(--bg); }
.btn-indigo { background: var(--indigo); color: #fff; }
.btn-indigo:hover { color: #fff; }
.btn-outline { border: 1px solid var(--ink); color: var(--ink); }
.btn-outline:hover { color: var(--ink); background: var(--bg2); opacity: 1; }
.btn-lg { padding: 15px 30px; font-size: 15px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 24px rgba(0,0,0,0.05);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 15px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--display); font-size: 16px; font-weight: 700; letter-spacing: -0.2px; white-space: nowrap; }
.brand-sub { font-size: 10.5px; font-weight: 500; letter-spacing: 1.6px; text-transform: uppercase; color: var(--faint); }

.nav-desktop { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 500; }
.nav-desktop a { color: var(--ink); white-space: nowrap; }
.nav-desktop a:hover { color: var(--indigo); }
.nav-desktop .nav-cta { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; background: var(--indigo); color: #fff; font-weight: 600; }
.nav-desktop .nav-cta:hover { color: #fff; background: var(--indigo-d); }

/* CSS-only mobile menu (checkbox toggle) */
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-btn {
  display: none;
  border: 1px solid var(--line);
  padding: 7px 11px;
  cursor: pointer;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.4;
}
.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 6px 30px 18px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.nav-mobile a { padding: 12px 4px; color: var(--ink); border-bottom: 1px solid var(--line); }
.nav-mobile .nav-cta { margin-top: 10px; padding: 13px; text-align: center; background: var(--indigo); color: #fff; font-weight: 600; border-bottom: 0; }
.nav-toggle:checked ~ .nav-mobile { display: flex; }

/* ---------- Hero ---------- */
.hero { padding-top: 64px; }
.hero-grid { display: grid; grid-template-columns: 1.06fr 0.94fr; gap: 52px; align-items: end; }
.hero-copy { animation: fadeUp .8s ease both; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; }
.hero-kicker::before { content: ""; width: 8px; height: 8px; background: var(--indigo); border-radius: 50%; }
.hero h1 {
  font-weight: 800;
  font-size: clamp(42px, 6.4vw, 82px);
  line-height: 0.98;
  margin: 22px 0 0;
  letter-spacing: -0.4px;
}
.hero-lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); max-width: 48ch; margin: 24px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 0; }
.hero-visual { aspect-ratio: 1 / 1; overflow: hidden; background: #fff; border: 1px solid var(--line); animation: fadeUp .8s .15s ease both; }
.hero-visual img { width: 100%; height: 100%; object-fit: contain; }

.hero-facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 52px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.hero-facts > div { padding: 22px 24px; border-right: 1px solid var(--line); }
.hero-facts > div:first-child { padding-left: 0; }
.hero-facts > div:last-child { border-right: 0; padding-right: 0; }
.meta-label { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--faint); }
.meta-value { font-family: var(--display); font-size: 21px; font-weight: 700; margin-top: 4px; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; white-space: nowrap; background: var(--ink); color: var(--bg); padding: 11px 0; }
.marquee-track { display: inline-flex; gap: 36px; font-size: 12.5px; letter-spacing: 2px; animation: marquee 30s linear infinite; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about h2 { max-width: 20ch; }
.welcome-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 36px; }
.welcome-cols p { margin: 0; font-size: 16px; color: var(--muted); }
.signatures { display: flex; gap: 40px; margin-top: 40px; flex-wrap: wrap; }
.person { display: flex; gap: 13px; align-items: center; }
.person img { width: 50px; height: 50px; flex: 0 0 50px; border-radius: 50%; object-fit: cover; }
.person strong { font-family: var(--display); font-size: 15px; font-weight: 700; }
.person-role { font-size: 12.5px; color: var(--muted); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 64px; }
.fact { padding: 26px; background: var(--panel); border: 1px solid var(--line); }
.fact-number { font-family: var(--display); font-size: 38px; font-weight: 800; line-height: 1; letter-spacing: -0.3px; }
.fact-label { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ---------- Topics (dark) ---------- */
.topics { background: var(--ink); color: var(--dark-text); }
.topics .label { color: var(--lime); }
.topics .section-title { color: #fff; }
.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 44px;
  border-top: 1px solid rgba(255,255,255,0.16);
  border-left: 1px solid rgba(255,255,255,0.16);
}
.topic {
  padding: 26px 22px 30px;
  border-right: 1px solid rgba(255,255,255,0.16);
  border-bottom: 1px solid rgba(255,255,255,0.16);
  min-height: 190px;
  display: flex;
  flex-direction: column;
  transition: background .25s ease;
}
.topic:hover { background: rgba(255,255,255,0.04); }
.topic-no { font-size: 12px; color: var(--lime); }
.topic h3 { font-weight: 700; font-size: 18px; margin: 16px 0 8px; line-height: 1.15; color: #fff; }
.topic p { font-size: 13px; color: var(--dark-muted); margin: 0; }

/* ---------- Speakers ---------- */
.split-head.align-end { align-items: end; }
.head-with-link { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.link-arrow { font-weight: 600; font-size: 14px; white-space: nowrap; }
.speaker-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 46px; background: var(--line); border: 1px solid var(--line); }
.speaker { background: var(--panel); }
.speaker-photo { aspect-ratio: 1 / 1; overflow: hidden; background: var(--bg2); }
.speaker-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.speaker:hover .speaker-photo img { transform: scale(1.03); }
.speaker-info { padding: 20px; }
.speaker h3 { font-weight: 700; font-size: 19px; margin: 0; }
.speaker-role { font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--indigo); margin-top: 7px; }
.speaker-org { font-size: 13.5px; color: var(--muted); margin-top: 4px; }

/* ---------- Programme ---------- */
.program { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.agenda { margin-top: 44px; }
.agenda-row { display: grid; grid-template-columns: 60px 200px 1fr; gap: 24px; padding: 24px 0; border-top: 1px solid var(--line); align-items: baseline; }
.agenda-no { font-family: var(--display); font-size: 26px; font-weight: 800; color: var(--indigo); letter-spacing: -0.3px; }
.agenda-date { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--faint); }
.agenda-title { font-family: var(--display); font-size: 21px; font-weight: 700; margin-top: 3px; }
.agenda-items { display: flex; flex-wrap: wrap; gap: 9px; }
.agenda-items span { padding: 7px 14px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; }
.program-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 36px; align-items: center; }
.cme-badge { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border: 1px solid var(--line); background: var(--panel); font-size: 13.5px; color: var(--muted); }
.cme-badge strong { font-family: var(--display); font-weight: 800; color: var(--indigo); }

/* ---------- Abstracts ---------- */
.abstracts-intro { margin: 18px 0 0; font-size: 16px; color: var(--muted); max-width: 60ch; text-wrap: pretty; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 44px; }
.date-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); align-self: start; }
.date-cell { background: var(--panel); padding: 24px; }
.date-cell .meta-label { letter-spacing: 1.2px; }
.date-value { font-family: var(--display); font-size: 24px; font-weight: 800; color: var(--indigo); margin-top: 8px; letter-spacing: -0.3px; }
.numbered { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); align-items: baseline; }
.numbered > span { font-size: 12px; color: var(--indigo); }
.numbered strong { font-family: var(--display); font-size: 15.5px; font-weight: 700; }
.numbered p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* ---------- Attend ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.why-cell { background: var(--panel); padding: 24px; }
.why-no { font-size: 12px; color: var(--indigo); }
.why-cell strong { font-family: var(--display); font-size: 16px; font-weight: 700; display: block; margin-top: 12px; }
.why-cell p { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); }
.subhead { font-family: var(--display); font-weight: 700; font-size: 20px; margin: 0 0 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chips span { padding: 10px 16px; border: 1px solid var(--ink); font-size: 14px; }
.callout { margin-top: 26px; padding: 26px; background: var(--indigo); color: #eef0fb; }
.callout p { margin: 0; font-family: var(--display); font-size: 20px; font-weight: 600; line-height: 1.3; }

/* ---------- Venue ---------- */
.venue-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; }
.venue-body { background: var(--ink); color: var(--dark-text); padding: 88px clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.venue-body .label { color: var(--lime); }
.venue-body .section-title { color: #fff; margin-top: 16px; font-size: clamp(28px, 3.6vw, 42px); }
.venue-body > p { font-size: 16px; color: #b7bdbb; margin: 20px 0 0; max-width: 44ch; }
.venue-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 34px; }
.venue-facts .vf-title { font-family: var(--display); font-size: 15px; font-weight: 700; color: #fff; }
.venue-facts p { font-size: 13px; color: var(--dark-muted); margin: 6px 0 0; }
.venue-body .link-arrow { margin-top: 30px; color: var(--lime); }
.venue-media { position: relative; min-height: 580px; min-width: 0; }
.venue-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Sponsors ---------- */
.sponsor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 44px; background: var(--line); border: 1px solid var(--line); }
.sponsor { aspect-ratio: 2 / 1; background: var(--panel); display: flex; align-items: center; justify-content: center; padding: 20px; }
.sponsor span { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: #aeb2b0; }
.sponsor img { max-height: 60%; max-width: 70%; object-fit: contain; }
.sponsors-cta { margin-top: 32px; }

/* ---------- Register ---------- */
.register { background: var(--ink); color: #eef0fb; }
.register-grid { padding-top: 100px; padding-bottom: 100px; display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 52px; align-items: center; }
.register h2 { font-weight: 800; font-size: clamp(34px, 5vw, 64px); line-height: 0.98; margin: 0; letter-spacing: -0.4px; color: #fff; }
.register p { font-size: 17px; color: #b7bdbb; max-width: 50ch; margin: 22px 0 0; }
.register-actions { display: flex; flex-direction: column; gap: 12px; }
.register-actions a {
  padding: 18px 26px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  transition: background .2s ease;
}
.register-actions a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.register-actions .primary { background: var(--lime); color: #1c2600; font-weight: 700; border-color: var(--lime); }
.register-actions .primary:hover { background: var(--lime); color: #1c2600; opacity: .9; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact .section-title { margin-top: 14px; font-size: clamp(28px, 3.4vw, 42px); }
.contact-intro { color: var(--muted); margin: 14px 0 24px; font-size: 16px; }
.subscribe { display: flex; gap: 10px; flex-wrap: wrap; max-width: 440px; }
.subscribe input { flex: 1; min-width: 200px; padding: 14px 16px; border: 1px solid var(--ink); font-size: 15px; font-family: inherit; background: var(--panel); color: var(--ink); border-radius: 0; }
.subscribe input:focus { outline: 2px solid var(--indigo); outline-offset: 1px; }
.subscribe button { padding: 14px 24px; border: none; background: var(--indigo); color: #fff; font-weight: 600; font-size: 15px; font-family: inherit; cursor: pointer; }
.subscribe button:hover { background: var(--indigo-d); }
.fine-print { font-size: 12.5px; color: var(--faint); margin: 12px 0 0; }
.contact-card { background: var(--panel); border: 1px solid var(--line); padding: 32px; }
.contact-card h3 { font-weight: 700; font-size: 20px; margin: 0 0 20px; }
.contact-list { display: flex; flex-direction: column; gap: 18px; font-size: 14.5px; }
.contact-label { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--faint); }
.contact-list div > div:last-child { margin-top: 3px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #9ba0a4; border-top: 1px solid rgba(255,255,255,0.1); }
.site-footer .container { padding-top: 64px; padding-bottom: 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 36px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.footer-brand .brand-mark { background: #fff; color: var(--ink); }
.footer-brand strong { font-family: var(--display); font-size: 16px; }
.footer-about { font-size: 13.5px; margin: 16px 0 0; max-width: 32ch; }
.footer-heading { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: #61666a; margin-bottom: 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; }
.footer-links a { color: #9ba0a4; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 46px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: #61666a; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1199px) {
  .nav-desktop { display: none; }
  .nav-toggle-btn { display: block; }

  .hero-grid,
  .split-head,
  .welcome-cols,
  .two-col,
  .why-grid,
  .contact,
  .venue-grid,
  .register-grid { grid-template-columns: 1fr; }
  .split-head { gap: 16px; }

  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts > div { padding: 16px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-facts > div:last-child { border-bottom: 0; }

  .facts-grid,
  .topic-grid,
  .speaker-grid,
  .sponsor-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .agenda-row { grid-template-columns: 40px 1fr; }
  .agenda-row .agenda-items { grid-column: 2; }
  .venue-media { min-height: 380px; }
}

@media (max-width: 619px) {
  .header-inner { gap: 12px; }
  .brand { min-width: 0; }
  .brand-name { white-space: normal; font-size: 14px; }
  .nav-toggle-btn { flex: 0 0 auto; }
  :root { --gutter: 20px; }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .topic-grid,
  .speaker-grid,
  .date-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .facts-grid { gap: 12px; }
  .fact { padding: 20px; }
  .fact-number { font-size: 30px; }
  .venue-facts { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy, .hero-visual, .marquee-track { animation: none; }
  .speaker-photo img { transition: none; }
}
.topics-link{
  color: var(--bg);
}