:root {
  --ink: #081846;
  --muted: #52607b;
  --paper: #f6fbff;
  --panel: #ffffff;
  --teal: #00a9aa;
  --teal-dark: #007c92;
  --blue: #0646a8;
  --navy: #081f6a;
  --purple: #5b33b8;
  --green: #2f9a43;
  --coral: #f08320;
  --gold: #f0b340;
  --line: rgba(8, 24, 70, 0.13);
  --shadow: 0 20px 60px rgba(8, 31, 106, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.nav-open {
  overflow: hidden;
}

body.subpage {
  background: #eef8ff;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 52px);
  color: #ffffff;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.nav-active {
  background: rgba(251, 250, 246, 0.94);
  color: var(--ink);
  box-shadow: 0 14px 40px rgba(16, 32, 39, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #ffffff;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.04rem;
  letter-spacing: 0;
}

.brand small {
  color: currentColor;
  font-size: 0.74rem;
  opacity: 0.74;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  outline: none;
}

.site-header.is-scrolled .site-nav a:hover,
.site-header.is-scrolled .site-nav a:focus-visible,
.site-header.nav-active .site-nav a:hover,
.site-header.nav-active .site-nav a:focus-visible {
  background: rgba(15, 119, 116, 0.1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  place-items: center;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 2px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #18464b;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(8, 28, 35, 0.84) 0%, rgba(8, 28, 35, 0.68) 36%, rgba(8, 28, 35, 0.16) 78%),
    linear-gradient(0deg, rgba(8, 28, 35, 0.52) 0%, rgba(8, 28, 35, 0) 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 88px);
  padding-top: 64px;
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(4rem, 13vw, 9.4rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.1rem, 2vw, 1.42rem);
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 800;
  text-align: center;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button.primary {
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(6, 70, 168, 0.25);
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.56);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.button.secondary {
  border-color: rgba(16, 32, 39, 0.18);
  background: #ffffff;
  color: var(--ink);
}

.subpage-header {
  color: var(--ink);
}

.detail-hero {
  display: grid;
  min-height: 62vh;
  align-items: end;
  padding: 150px clamp(18px, 5vw, 72px) 70px;
  background:
    linear-gradient(110deg, rgba(8, 24, 70, 0.92), rgba(0, 169, 170, 0.72)),
    url("assets/abstract-maths-ai-hero.png") center / cover;
  color: #ffffff;
}

.detail-hero > div {
  max-width: 920px;
}

.detail-hero h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 7.6rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.detail-hero p:not(.eyebrow) {
  max-width: 700px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.38rem);
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.metric {
  min-height: 118px;
  padding: 28px clamp(18px, 4vw, 52px);
  background: #ffffff;
}

.metric span,
.metric strong {
  display: block;
}

.metric span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.metric strong {
  margin-top: 8px;
  font-size: clamp(1.05rem, 2vw, 1.42rem);
}

.section {
  padding: clamp(70px, 9vw, 120px) clamp(18px, 5vw, 72px);
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(280px, 1fr);
  gap: clamp(34px, 8vw, 110px);
  align-items: start;
}

h2 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(2rem, 4.6vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 16px;
  font-size: 1.22rem;
}

.prose p,
.section-heading p,
.person-card p,
.register-copy p,
.thanks-panel p {
  color: var(--muted);
  font-size: 1.04rem;
}

.prose p:first-child {
  margin-top: 0;
}

.workshop-section {
  background: #e9f7fb;
}

.workshop-detail-section {
  background: #e9f7fb;
}

.section-heading {
  display: grid;
  gap: 12px;
  max-width: 900px;
  margin-bottom: 36px;
}

.section-heading p {
  margin: 0;
  max-width: 760px;
}

.workshop-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(260px, 380px);
  gap: 22px;
  align-items: stretch;
}

.workshop-panel,
.details-panel,
.person-card,
.register-form,
.thanks-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.workshop-panel,
.details-panel {
  padding: clamp(24px, 4vw, 42px);
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: #24383e;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #ffffff;
  content: "";
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.36);
}

.agenda-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.agenda-item {
  min-width: 190px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.agenda-item span {
  display: inline-flex;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(0, 169, 170, 0.12);
  color: var(--teal-dark);
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 800;
}

.agenda-item p {
  margin: 0;
  color: var(--muted);
}

.takeaways-section {
  background: #f4f0ff;
}

.flyer-section {
  background:
    radial-gradient(circle at left bottom, rgba(0, 169, 170, 0.16), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #eef8ff 100%);
}

.flyer-frame {
  max-width: 1100px;
  margin: 0 auto;
  border: 1px solid rgba(8, 24, 70, 0.14);
  border-radius: 8px;
  padding: clamp(10px, 2vw, 18px);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.flyer-frame img {
  width: 100%;
  border-radius: 6px;
}

.details-panel dl {
  display: grid;
  gap: 20px;
  margin: 0;
}

.details-panel div {
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.details-panel div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.details-panel dt {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.details-panel dd {
  margin: 7px 0 0;
  font-weight: 700;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.person-card {
  min-height: 248px;
  padding: 26px;
}

.avatar {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 50%;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #ffffff;
  font-weight: 800;
}

.register-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(300px, 1fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
  background: #f4f0ff;
}

.register-copy {
  position: sticky;
  top: 110px;
}

.register-form {
  display: grid;
  gap: 20px;
  padding: clamp(22px, 4vw, 38px);
}

.register-card h3 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
}

.register-card p {
  margin: 0;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
}

label span {
  color: #294148;
  font-size: 0.92rem;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(16, 32, 39, 0.18);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  padding: 13px 14px;
}

input:focus,
textarea:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(0, 169, 170, 0.18);
}

textarea {
  resize: vertical;
}

.consent {
  grid-template-columns: 20px 1fr;
  align-items: start;
}

.consent input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.submit-button {
  width: fit-content;
  border: 0;
  cursor: pointer;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.hidden {
  position: absolute;
  left: -9999px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 5vw, 72px);
  background: var(--ink);
  color: #ffffff;
}

.site-footer p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.site-footer a {
  color: #ffffff;
  font-weight: 800;
}

.thanks-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #e9f7fb 0%, #f4f0ff 100%);
}

.thanks-shell {
  display: grid;
  min-height: 100vh;
  align-content: center;
  gap: 32px;
  width: min(880px, calc(100% - 36px));
  margin: 0 auto;
  padding: 60px 0;
}

.thanks-panel {
  padding: clamp(28px, 6vw, 64px);
}

.thanks-panel h1 {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 5.8rem);
  line-height: 0.98;
}

@media (max-width: 880px) {
  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: fixed;
    top: 78px;
    right: 18px;
    left: 18px;
    display: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: #ffffff;
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    border-radius: 8px;
    padding: 14px;
  }

  .hero {
    min-height: 820px;
  }

  .hero-image {
    object-position: 62% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(8, 28, 35, 0.84) 0%, rgba(8, 28, 35, 0.58) 70%, rgba(8, 28, 35, 0.2) 100%),
      linear-gradient(0deg, rgba(8, 28, 35, 0.66) 0%, rgba(8, 28, 35, 0.12) 50%);
  }

  .hero-content {
    align-self: end;
    margin: 0 auto;
    padding-bottom: 60px;
  }

  .intro-band,
  .split,
  .workshop-layout,
  .agenda-grid,
  .people-grid,
  .register-section {
    grid-template-columns: 1fr;
  }

  .agenda-grid {
    overflow-x: visible;
  }

  .register-copy {
    position: static;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 760px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 17vw, 5.6rem);
  }

  .hero-actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .submit-button {
    width: 100%;
  }
}
