/* =========================================================================
   DIREK · AI for Building Operations – event landing page
   Pure CSS, no framework. Tokens mirror the Figma variables (Event Kit file).
   ========================================================================= */

:root {
  /* Surfaces */
  --bg: #011d26;              /* base/dark/background */
  --surface: #0d262f;         /* base/dark/surface */
  --surface-raised: #12313b;  /* base/dark/brand-subtle */
  --fact-bg: rgba(13, 38, 47, 0.88);

  /* Borders */
  --border: #1c3943;          /* border/dark/default */
  --border-subtle: #294751;   /* border/dark/subtle */
  --border-muted: #3d5d67;    /* border/dark/muted */

  /* Text */
  --text: #f5fcfd;            /* text/dark/primary */
  --text-2: #bdd0d6;          /* text/dark/secondary */
  --text-3: #8ba3ac;          /* text/dark/tertiary */

  /* Accents */
  --cyan: #53eafd;            /* accent/cyne */
  --cyan-bright: #00f0ff;     /* gradient/end */
  --primary: #00a9c2;         /* component/dark/primary */
  --primary-hover: #00bcd8;
  --link: #30c5d7;
  --orange: #ffc673;          /* accent/orange */
  --red: #eb6163;             /* accent/red */
  --required: #f87171;

  /* Type */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-alt: "Outfit", var(--font-sans);
  --font-hand: "Caveat", cursive;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --container: 1280px;
  --gutter: clamp(16px, 5.5vw, 80px);
  --header-h: 90px;
  --radius: 8px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg) url("assets/background.svg") center top / max(1440px, 100%) auto no-repeat;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.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; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.icon .fill { fill: currentColor; stroke: none; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--primary); color: var(--text); padding: 10px 16px; border-radius: var(--radius);
  text-decoration: none; font-weight: 500; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: var(--radius); cursor: pointer; text-decoration: none;
  font-weight: 500; font-size: 16px; line-height: 24px; white-space: nowrap;
  transition: background-color .2s, transform .15s, box-shadow .2s;
}
.btn-primary { background: var(--primary); color: var(--text); }
.btn-primary:hover { background: var(--primary-hover); box-shadow: 0 6px 24px -8px rgba(0, 198, 214, .6); }
.btn-primary:active { transform: translateY(1px); }
.btn-sm { padding: 10px 16px; border-radius: 6px; }
.btn-md { height: 48px; padding: 0 40px; }
.btn-lg { height: 56px; min-width: 210px; padding: 0 24px; }
.btn-block { width: 100%; height: 44px; padding: 0 24px; font-weight: 600; letter-spacing: .15px; }
.btn-ghost { border: 1px solid var(--border-muted); color: var(--text); padding: 10px 20px; background: transparent; }
.btn-ghost:hover { border-color: var(--cyan); }

/* ---------- Shared type ---------- */
.eyebrow {
  color: var(--cyan); font-weight: 500; font-size: 16px; line-height: 24px; text-transform: uppercase;
}
.eyebrow--strong { font-weight: 600; }
.display {
  font-weight: 800; font-size: clamp(36px, 4.4vw, 57px); line-height: 1.12; letter-spacing: -0.25px;
}
.lead { font-size: 20px; line-height: 28px; }
.lead--muted { color: var(--text-2); font-size: 18px; }
.section { position: relative; padding-block: clamp(56px, 6.5vw, 96px); }
.section-head { display: grid; gap: 12px; margin-bottom: 24px; max-width: 1054px; position: relative; }

/* Handwritten notes */
.scribble { font-family: var(--font-hand); color: var(--cyan-bright); font-size: 32px; line-height: 1; pointer-events: none; }
.scribble-arrow { width: 56px; height: 56px; fill: none; stroke: var(--cyan-bright); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* =========================================================================
   Header
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(1, 29, 38, .86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  padding-inline: 16px;
}
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand-logo { width: 138px; height: 40px; }
.brand-fallback { display: none; font-weight: 800; font-size: 24px; letter-spacing: 1px; line-height: 26px; }
.brand.logo-missing .brand-logo { display: none; }
.brand.logo-missing .brand-fallback { display: block; }

.main-nav { margin-right: auto; }
.main-nav ul { display: flex; }
.main-nav a {
  display: block; width: 120px; padding: 12px 0; text-align: center;
  text-decoration: none; font-weight: 500; color: #f7fafc; border-radius: 24px;
  transition: color .2s;
}
.main-nav a:hover, .main-nav a.is-active { color: var(--cyan); }
.header-actions { display: flex; align-items: center; gap: 12px; }
/* Header CTA: hidden at the top of the page, slides in once the user scrolls */
.header-cta { opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s, transform .25s, visibility 0s .25s, background-color .2s; }
.site-header.is-scrolled .header-cta { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s, visibility 0s, background-color .2s; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border-muted); border-radius: var(--radius); width: 44px; height: 44px; padding: 0; cursor: pointer; align-items: center; justify-content: center; }

/* =========================================================================
   Hero + form
   ========================================================================= */
.hero { position: relative; padding-block: 18px 38px; }
.hero::before { /* soft glow behind the headline */
  content: ""; position: absolute; inset: -120px auto auto -10%; width: 60%; height: 120%;
  background: radial-gradient(closest-side, rgba(0, 198, 214, .08), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 629fr) minmax(0, 608fr);
  column-gap: 43px; align-items: start;
}
.hero-copy { padding-top: 34px; }
.hero-title {
  margin-top: 12px;
  font-size: clamp(42px, 5vw, 72px); line-height: 1; font-weight: 800; letter-spacing: -0.5px;
}
.hero-title .accent { display: block; color: var(--cyan); }
.hero-lead { margin-top: 20px; font-size: 20px; line-height: 28px; max-width: 629px; }

/* Facts */
.facts { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.fact {
  display: flex; gap: 14px; align-items: flex-start;
  min-height: 95px; padding: 16px 24px 16px 15px;
  background: var(--fact-bg); border: 1px solid var(--border-subtle); border-radius: 18px;
  font-family: var(--font-alt);
}
.fact--wide { flex: 1 1 340px; }
.fact-icon { color: var(--cyan); margin-top: 0; }
.fact > div { display: grid; }
.fact-label { color: var(--text-3); font-size: 13px; line-height: 16.4px; text-transform: uppercase; margin-top: 1px; }
.fact-value { font-weight: 500; font-size: 18px; line-height: 22.7px; margin-top: 2px; }
.fact-value--warm { color: var(--orange); }
.fact-sub { color: var(--text-2); font-size: 14px; line-height: 17.6px; margin-top: 2px; }
.funder { display: flex; align-items: center; gap: 12px; padding-left: 4px; }
.funder-label { font-weight: 500; font-size: 20px; line-height: 28px; }
.funder img { width: 90px; height: auto; margin-left: 8px; }

/* Form card */
.form-card {
  position: relative;
  background: var(--surface-raised);
  border-radius: 16px;
  padding: 32px 20px;
  box-shadow: 0 0 8px rgba(0, 0, 0, .1);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.form-head { display: grid; gap: 8px; margin-bottom: 24px; }
.form-title-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.form-title { font-weight: 500; font-size: 24px; line-height: 32px; }
.pill-time {
  background: var(--bg); color: var(--cyan); border-radius: 24px;
  padding: 6px 16px; font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: .1px;
}
.form-intro { font-size: 18px; line-height: 28px; }

.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
.field { display: grid; gap: 12px; align-content: start; }
.field label { font-size: 16px; line-height: 24px; }
.req { color: var(--required); }
.field input {
  width: 100%; height: 48px; padding: 0 16px;
  background: var(--surface); border: 1px solid var(--border-muted); border-radius: var(--radius);
  font-size: 16px; font-weight: 300; line-height: 24px; color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: var(--text-3); opacity: 1; }
.field input:hover { border-color: #557883; }
.field input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(83, 234, 253, .18); }
.field.has-error input { border-color: var(--required); }
.field.has-error input:focus { box-shadow: 0 0 0 3px rgba(248, 113, 113, .2); }
.field-error { color: var(--required); font-size: 14px; line-height: 18px; margin-top: -4px; }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-foot { display: grid; gap: 12px; margin-top: 21px; }
.btn-icon { width: 24px; height: 24px; }
.spinner {
  display: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(245, 252, 253, .35); border-top-color: var(--text);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.reg-form.is-loading .btn-block { pointer-events: none; opacity: .85; }
.reg-form.is-loading .btn-icon { display: none; }
.reg-form.is-loading .spinner { display: inline-block; }

.form-note { color: var(--text-2); line-height: 24px; }
.form-note a { color: var(--link); text-underline-offset: 2px; }
.form-status {
  font-size: 15px; line-height: 22px; padding: 10px 14px; border-radius: var(--radius);
  background: rgba(248, 113, 113, .1); border: 1px solid rgba(248, 113, 113, .4); color: #fecaca;
}

.success-badge {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(83, 234, 253, .12); color: var(--cyan); border: 1px solid rgba(83, 234, 253, .4);
}
.success-badge .icon { width: 28px; height: 28px; stroke-width: 2.2; }

/* Confirmation modal */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 10, 14, .72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal-card {
  position: relative; width: min(480px, 100%); padding: 40px 32px 32px; text-align: center;
  display: grid; justify-items: center; gap: 16px;
  background: var(--surface-raised); border: 1px solid var(--border-subtle); border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .45); outline: none;
  animation: pop .25s cubic-bezier(.2, .9, .3, 1.2);
}
.modal-close {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; display: grid; place-items: center;
  background: none; border: 0; border-radius: 8px; color: var(--text-2); cursor: pointer;
}
.modal-close:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.modal-close .icon { width: 20px; height: 20px; }
.modal-title { font-weight: 600; font-size: 24px; line-height: 32px; }
.modal-text { font-size: 18px; line-height: 28px; color: var(--text); }
.modal-ok { height: 44px; min-width: 140px; padding: 0 24px; margin-top: 8px; }
body.modal-open { overflow: hidden; }
@keyframes pop { from { transform: translateY(10px); } }

/* =========================================================================
   Made for
   ========================================================================= */
.audience { padding-block: 32px; }
.audience-inner { position: relative; display: flex; justify-content: center; }
.audience-list {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 24px;
  max-width: 800px; row-gap: 24px;
}
.audience-list li {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 20px; line-height: 25px; letter-spacing: -0.45px; white-space: nowrap;
}
.audience-list .icon { color: var(--cyan); }
.scribble--made-for { position: absolute; left: 131px; top: -4px; }
.scribble--made-for span { display: block; transform: rotate(-13.7deg); }
.scribble--made-for .scribble-arrow { margin: 4px 0 0 64px; }

/* =========================================================================
   Why attend
   ========================================================================= */
.why { padding-top: 83px; padding-bottom: 70px; }
.why-head { max-width: none; margin-bottom: 32px; }
.scribble--why { position: absolute; right: 30px; top: -13px; text-align: center; }
.scribble--why span { display: block; transform: rotate(4.65deg); }
.scribble--why .scribble-arrow { width: 68px; height: 68px; margin: 4px 0 0 4px; }

.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 21px; }
.why-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start;
  min-height: 308px; padding: 32px 27px 31px;
  border: 1px solid var(--border); border-radius: 18px;
  transition: border-color .25s, transform .25s;
}
.why-card::after { /* soft glow on the right edge, as in the design */
  content: ""; position: absolute; right: -60px; top: 140px; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(83, 234, 253, .14), transparent);
  filter: blur(6px); pointer-events: none;
}
.why-card:hover { border-color: var(--border-muted); transform: translateY(-2px); }
.why-icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: rgba(83, 234, 253, .08); color: var(--cyan);
}
.why-icon .icon { width: 22px; height: 22px; stroke-width: 1.5; }
.why-card h3 { margin-top: 18px; font-weight: 600; font-size: 24px; line-height: 32px; }
.why-card h3 + p { margin-top: 12px; margin-bottom: 20px; font-size: 18px; line-height: 28px; }
.tag {
  margin-top: auto; padding: 7px 14px; border-radius: 16px; background: var(--surface-raised);
  font-size: 14px; line-height: 17.6px;
}

/* =========================================================================
   Speakers
   ========================================================================= */
.speakers { overflow: hidden; }
.speakers-illustration {
  position: absolute; right: -40px; top: 10px; width: 380px; height: auto;
  pointer-events: none;
}
/* 4 per row. Each card shares the grid's rows (subgrid), so photos, names, roles and
   talk titles line up across a row whatever the text length. */
.speaker-grid {
  --cols: 4; --gap: 24px;
  display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: 72px var(--gap); margin-top: 56px;
}
.speaker-grid > li { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; min-width: 0; }
.speaker {
  grid-row: span 4; display: grid; grid-template-rows: subgrid; row-gap: 0;
  justify-items: center; align-content: start; text-align: center;
  color: var(--text); text-decoration: none; border-radius: 16px; padding: 8px 8px 16px;
  outline-offset: 4px;
}
.speaker > * { align-self: start; }
/* Circular photo on a brand gradient, head breaking slightly out of the top */
.speaker-avatar {
  position: relative; width: min(248px, 100%); aspect-ratio: 1; flex: none;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #12313b 0%, #0d262f 55%, #011d26 100%);
  box-shadow: inset 0 0 0 2px rgba(83, 234, 253, .35), 0 0 0 6px rgba(83, 234, 253, .06);
  transition: box-shadow .3s, transform .3s;
}
.speaker-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%;
  object-fit: cover; object-position: 50% 15%;
  transition: transform .35s;
}
.speaker-linkedin {
  position: absolute; right: 12px; bottom: 12px; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; color: var(--bg); background: var(--cyan);
  box-shadow: 0 0 0 4px var(--bg); transition: transform .25s, background-color .25s;
}
.speaker-linkedin .icon { width: 20px; height: 20px; }
.speaker:hover .speaker-avatar { transform: translateY(-4px); box-shadow: inset 0 0 0 2px var(--cyan), 0 0 0 8px rgba(83, 234, 253, .12), 0 16px 40px -12px rgba(0, 198, 214, .45); }
.speaker:hover .speaker-linkedin { transform: scale(1.08); background: var(--cyan-bright); }
.speaker:hover .speaker-name { color: var(--cyan); }
.speaker-name { margin-top: 32px; font-weight: 700; font-size: 26px; line-height: 32px; color: var(--text); transition: color .2s; }
.speaker-role { margin-top: 10px; max-width: 300px; font-weight: 300; font-size: 19px; line-height: 28px; color: var(--text-2); }
.speaker-role strong { display: inline-block; margin-top: 2px; font-weight: 600; color: var(--cyan); }
/* Speaker without a LinkedIn profile: muted badge + tooltip, no hover lift */
.speaker--no-link { cursor: default; }
.speaker--no-link .speaker-linkedin { background: var(--border-muted); color: var(--text-3); }
.speaker--no-link:hover .speaker-avatar { transform: none; box-shadow: inset 0 0 0 2px rgba(83, 234, 253, .35), 0 0 0 6px rgba(83, 234, 253, .06); }
.speaker--no-link:hover .speaker-linkedin { transform: none; background: var(--border-muted); }
.speaker--no-link:hover .speaker-name { color: var(--text); }
.speaker-tooltip {
  position: absolute; right: -4px; bottom: 64px; transform: translateY(4px); z-index: 2;
  padding: 8px 12px; border-radius: 8px; white-space: nowrap; pointer-events: none;
  background: var(--text); color: var(--bg); font-size: 14px; font-weight: 500; line-height: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility 0s .2s;
}
.speaker-tooltip::after {
  content: ""; position: absolute; right: 31px; top: 100%;
  border: 6px solid transparent; border-top-color: var(--text);
}
.speaker--no-link:hover .speaker-tooltip,
.speaker--no-link:focus-visible .speaker-tooltip { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s, visibility 0s; }
.speaker-topic {
  margin-top: 16px; width: 100%; max-width: 300px; padding-top: 16px; border-top: 1px solid var(--border-subtle);
  font-weight: 500; font-size: 18px; line-height: 26px; color: var(--text);
}

/* =========================================================================
   Agenda
   ========================================================================= */
.agenda { padding-top: 103px; padding-bottom: 40px; }
.agenda-grid { display: grid; grid-template-columns: minmax(0, 521fr) minmax(0, 630fr); column-gap: 129px; align-items: start; }
.agenda-intro { position: relative; padding-top: 136px; display: grid; gap: 12px; }
.agenda-intro .display { line-height: 60px; font-size: clamp(36px, 4.4vw, 57px); }
.agenda-illustration { position: absolute; left: -116px; top: -160px; width: 456px; height: auto; pointer-events: none; }
.agenda-intro > :not(.agenda-illustration) { position: relative; }
.doors { display: flex; align-items: center; gap: 9px; margin-top: 4px; font-weight: 600; line-height: 17.6px; }
.doors .icon { width: 20px; height: 20px; color: var(--cyan); }
.mono-note { font-family: var(--font-mono); font-size: 14px; line-height: 17.6px; color: var(--text-2); max-width: 411px; }

.timeline { position: relative; display: grid; gap: 8px; }
.timeline::before { /* the vertical line */
  content: ""; position: absolute; left: 81px; top: 19px; bottom: 19px; width: 1px; background: var(--border-subtle);
}
.slot { position: relative; display: grid; grid-template-columns: 88px 1fr; column-gap: 20px; align-items: center; }
.slot time { position: relative; display: flex; align-items: center; justify-content: space-between; font-weight: 500; color: var(--cyan); font-size: 17px; line-height: 21.4px; }
.slot time::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px var(--bg); }
.slot-body { background: var(--surface); border-radius: 20px; min-height: 80px; padding: 14px 20px; display: grid; align-content: center; gap: 4px; }
.slot-title { font-weight: 500; font-size: 20px; line-height: 25.2px; }
.slot-sub { color: var(--text-2); line-height: 20.2px; }
.slot--minor time { color: var(--orange); font-size: 14px; padding-right: 2px; }
.slot--minor time::after { width: 9px; height: 9px; background: var(--bg); border: 1.5px solid var(--orange); box-shadow: 0 0 0 4px var(--bg); }
.slot--minor .slot-body { background: none; min-height: 34px; padding-block: 6px; }
.slot--minor .slot-title { font-weight: 400; font-size: 16px; line-height: 20.2px; color: #b6cfd5; }
.slot--minor .slot-sub { font-size: 14px; line-height: 18px; color: var(--text-3); }
.slot--minor + .slot--minor, .slot--minor { margin-block: -4px; }

/* =========================================================================
   Plan your visit
   ========================================================================= */
.visit { padding-top: 46px; padding-bottom: 110px; }
.visit-grid { display: grid; grid-template-columns: minmax(0, 629fr) minmax(0, 627fr); column-gap: 23px; align-items: start; }
.visit .display { margin-top: 8px; line-height: 60px; }
.visit .lead--muted { margin-top: 16px; }
.visit-list { margin-top: 24px; display: grid; gap: 16px; font-family: var(--font-alt); }
.visit-list li { display: flex; gap: 12px; align-items: flex-start; }
.visit-list .icon { width: 22px; height: 22px; color: var(--cyan); }
.visit-list h3 { font-weight: 500; font-size: 15px; line-height: 18.9px; }
.visit-list p { margin-top: 2px; color: var(--text-2); font-size: 16px; line-height: 20.2px; }

.map-card {
  position: relative; overflow: hidden;
  min-height: 616px; display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
}
.map-canvas {
  position: relative; flex: 1; min-height: 360px; overflow: hidden;
  /* Fallback map styling when assets/venue-map.png is not present */
  background:
    linear-gradient(115deg, transparent 62%, rgba(83, 234, 253, .12) 62% 78%, transparent 78%),
    repeating-linear-gradient(0deg, rgba(139, 163, 172, .08) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(139, 163, 172, .08) 0 1px, transparent 1px 48px),
    #0f2a33;
}
.map-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; }
.map-img.is-missing { display: none; }
.map-foot {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 19px 24px 20px; background: var(--bg); border-top: 1px solid var(--border); font-family: var(--font-alt);
}
.map-when { font-weight: 500; font-size: 18px; line-height: 22.7px; }
.map-doors { color: var(--text-3); font-size: 14px; line-height: 17.6px; margin-top: 2px; }
.map-foot .btn { font-family: var(--font-sans); width: 188px; padding: 0 16px; }

/* =========================================================================
   FAQ
   ========================================================================= */
.faq-inner { max-width: 864px; }
.faq-head { text-align: center; display: grid; gap: 16px; margin-bottom: 64px; }
.faq-head .display { line-height: 48px; }
.faq-sub { font-weight: 500; font-size: 20px; line-height: 28px; text-transform: uppercase; }
.accordion { display: grid; gap: 16px; }
.acc-item {
  background: var(--surface-raised); border: 1px solid var(--border-subtle); border-radius: 12px;
  transition: background-color .25s, border-color .25s;
}
.acc-item.is-open { background: var(--bg); border-color: var(--border-muted); }
.acc-item h3 { font-size: inherit; }
.acc-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 24px 32px; background: none; border: 0; cursor: pointer; text-align: left;
  font-weight: 600; font-size: 18px; line-height: 28px; color: var(--text); border-radius: 12px;
}
.acc-trigger .icon { width: 20px; height: 20px; color: var(--cyan); stroke-width: 2; transition: transform .25s; }
.acc-trigger[aria-expanded="true"] .icon { transform: rotate(180deg); }
.acc-panel { padding: 0 32px 32px; line-height: 24px; }
.acc-panel a { color: var(--link); }

/* =========================================================================
   Final CTA
   ========================================================================= */
.cta { position: relative; overflow: hidden; padding-top: 96px; padding-bottom: 210px; min-height: 536px; }
.cta-inner { position: relative; z-index: 1; text-align: center; display: grid; justify-items: center; }
.cta-eyebrow { color: var(--cyan-bright); font-weight: 600; line-height: 24px; }
.cta-title { margin-top: 16px; max-width: 900px; line-height: 48px; }
.cta-lead { margin-top: 32px; max-width: 506px; font-weight: 500; font-size: 20px; line-height: 28px; }
.cta .btn-lg { margin-top: 24px; }
.skyline {
  position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%);
  width: min(790px, 92%); height: auto; pointer-events: none;
}

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { background: var(--bg); border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 32px; }
.footer-brand { font-weight: 600; font-size: 24px; line-height: 32px; }
.footer-text { margin-top: 4px; font-weight: 500; line-height: 28px; }
.footer-text a { color: var(--link); }
.footer-links { display: flex; align-items: center; gap: 32px; font-size: 14px; line-height: 20px; }
.footer-links a { text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--cyan); }
.footer-funded { font-weight: 300; color: var(--text-2); }

/* Missing-image handling: hide broken decorative images cleanly */
img.is-missing { visibility: hidden; }
.speaker-photo.is-missing { display: none; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1280px) {
  .main-nav a { width: auto; padding-inline: 16px; }
  .agenda-grid { column-gap: 64px; }
  .scribble--made-for { left: 0; }
}

@media (max-width: 1100px) {
  :root { --header-h: 72px; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; padding: 8px var(--gutter) 16px; }
  .main-nav a { width: 100%; text-align: left; padding: 14px 0; border-radius: 0; border-bottom: 1px solid var(--border); }

  .hero-grid { grid-template-columns: 1fr; row-gap: 40px; }
  .hero-copy { padding-top: 16px; }
  .form-card { max-width: 640px; }

  .why-grid { grid-template-columns: 1fr 1fr; }
  .speaker-grid { --cols: 2; max-width: 720px; margin-inline: auto; }
  .speakers-illustration { width: 260px; opacity: .5; }

  .agenda-grid, .visit-grid { grid-template-columns: 1fr; row-gap: 48px; }
  .agenda-intro { padding-top: 0; }
  .agenda-illustration { position: relative; left: auto; top: auto; width: 240px; margin: -24px 0 0 -40px; }
  .map-card { min-height: 520px; }

  .scribble--made-for, .scribble--why { display: none; }
}

@media (max-width: 720px) {
  .header-actions .btn-sm { padding: 8px 12px; font-size: 15px; }
  .hero-title { line-height: 1.05; }
  .hero-lead, .lead { font-size: 18px; line-height: 26px; }
  .fact, .fact--wide { flex: 1 1 100%; }
  .funder { width: 100%; }

  .form-card { padding: 24px 16px; }
  .field-grid { grid-template-columns: 1fr; gap: 20px; }
  .form-intro { font-size: 16px; line-height: 24px; }

  .audience-list { gap: 14px 20px; justify-content: flex-start; }
  .audience-list li { font-size: 17px; }

  .why-grid { grid-template-columns: 1fr; }
  .why-card { min-height: 0; gap: 0; }
  .why-card .tag { margin-top: 20px; }

  .speaker-grid { --cols: 2; --gap: 12px; row-gap: 40px; margin-top: 32px; }
  .speaker-avatar { width: 150px; height: 150px; }
  .speaker-linkedin { width: 30px; height: 30px; right: 2px; bottom: 2px; }
  .speaker-linkedin .icon { width: 15px; height: 15px; }
  .speaker-tooltip { right: -16px; bottom: 44px; font-size: 13px; }
  .speaker-name { margin-top: 18px; font-size: 17px; line-height: 22px; }
  .speaker-role { font-size: 14px; line-height: 20px; }
  .speaker-topic { font-size: 14px; line-height: 20px; margin-top: 10px; padding-top: 10px; }
  .speakers-illustration { display: none; }

  .agenda-intro .display, .visit .display { line-height: 1.1; }
  .timeline::before { left: 59px; }
  .slot { grid-template-columns: 66px 1fr; column-gap: 12px; }
  .slot time { font-size: 15px; }
  .slot-body { padding: 12px 16px; min-height: 0; }
  .slot-title { font-size: 17px; line-height: 22px; }
  .slot-sub { font-size: 14px; }

  .map-card { min-height: 0; }
  .map-canvas { min-height: 300px; }
  .map-foot { flex-direction: column; align-items: stretch; }
  .map-foot .btn { width: 100%; }

  .faq-head { margin-bottom: 36px; }
  .acc-trigger { padding: 18px 20px; font-size: 16px; line-height: 24px; gap: 16px; }
  .acc-panel { padding: 0 20px 22px; }

  .cta { padding-top: 64px; padding-bottom: 150px; min-height: 0; }
  .cta-title { line-height: 1.1; }
  .cta-lead { margin-top: 20px; font-size: 18px; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; gap: 16px 24px; }
}

@media (max-width: 420px) {
  .speaker-grid { --cols: 1; }
  .speaker-avatar { width: 200px; height: 200px; }
}
