:root {
  --ivory: #fbf8f2;
  --cream: #f4eee5;
  --sage: #dfe8df;
  --sage-deep: #718777;
  --eucalyptus: #a9bbb0;
  --lavender: #e6e1ed;
  --powder: #dfeaf1;
  --clay: #ead8cf;
  --charcoal: #252724;
  --taupe: #716c65;
  --white: #ffffff;
  --border: rgba(37, 39, 36, 0.10);
  --shadow: 0 22px 60px rgba(37, 39, 36, 0.10);
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1180px;
  --header-height: 84px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--charcoal);
  background: var(--ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section-pad {
  padding: 100px 0;
}

.eyebrow,
.mini-label,
.supporters-label {
  margin: 0 0 14px;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-deep);
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.38rem;
  line-height: 1.2;
}

p {
  color: var(--taupe);
}

.large {
  font-size: 1.16rem;
  line-height: 1.75;
}

.center {
  text-align: center;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-heading.center {
  margin-inline: auto;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  background: rgba(251, 248, 242, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.site-header.scrolled {
  border-color: var(--border);
  background: rgba(251, 248, 242, 0.96);
  box-shadow: 0 10px 30px rgba(37, 39, 36, 0.06);
}

.nav-wrap {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  flex: 0 0 auto;
}

.brand img {
  width: 142px;
  height: 52px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 600;
  color: #454742;
  transition: color 0.2s ease;
}

.main-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 2px;
  background: var(--sage-deep);
  transition: right 0.25s ease;
}

.main-nav a:not(.nav-cta):hover {
  color: var(--sage-deep);
}

.main-nav a:not(.nav-cta):hover::after {
  right: 0;
}

.nav-cta {
  padding: 11px 18px;
  border-radius: 999px;
  color: var(--white) !important;
  background: var(--charcoal);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(37, 39, 36, 0.08);
}

.menu-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  background: var(--charcoal);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* HERO */

.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 108px;
  background:
    radial-gradient(circle at 12% 10%, rgba(223, 232, 223, 0.85), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(230, 225, 237, 0.9), transparent 26%),
    linear-gradient(135deg, #fbf8f2 0%, #f7f2ea 48%, #edf2ee 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 340px;
  height: 340px;
  right: -120px;
  top: -100px;
  border: 1px solid rgba(113, 135, 119, 0.14);
}

.hero::after {
  width: 220px;
  height: 220px;
  left: -80px;
  bottom: -80px;
  border: 1px solid rgba(113, 135, 119, 0.11);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  align-items: center;
  gap: 70px;
}

.event-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 8px 13px;
  border: 1px solid rgba(113, 135, 119, 0.18);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.72);
  color: var(--sage-deep);
}

.event-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage-deep);
}

.hero-tagline {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 600;
  color: #4f554f;
}

.lead {
  max-width: 760px;
  margin-bottom: 26px;
  font-size: 1.06rem;
  line-height: 1.8;
}

.network-summary {
  max-width: 780px;
  margin: 26px 0 30px;
  padding: 24px 26px;
  border: 1px solid rgba(113, 135, 119, 0.15);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.64);
}

.network-summary h2 {
  margin-bottom: 8px;
  font-size: 1.55rem;
}

.network-summary-tagline {
  margin-bottom: 10px;
  color: var(--charcoal);
}

.network-summary p:last-child {
  margin-bottom: 0;
}

.event-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 30px 0;
}

.event-meta div {
  min-height: 92px;
  padding: 16px;
  border: 1px solid rgba(37, 39, 36, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.event-meta span {
  display: block;
  margin-bottom: 5px;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-deep);
}

.event-meta strong {
  display: block;
  font-size: 0.94rem;
  line-height: 1.35;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: var(--white);
  background: var(--charcoal);
  box-shadow: 0 10px 24px rgba(37, 39, 36, 0.14);
}

.btn.primary:hover {
  background: var(--sage-deep);
}

.btn.secondary {
  border-color: rgba(37, 39, 36, 0.12);
  background: rgba(255, 255, 255, 0.74);
}

.hero-card {
  position: relative;
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.74));
  box-shadow: var(--shadow);
}

.hero-card::before {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  right: 28px;
  top: 24px;
  border-radius: 50%;
  background: rgba(223, 232, 223, 0.65);
  filter: blur(2px);
  z-index: 0;
}

.hero-card > * {
  position: relative;
  z-index: 1;
}

.hero-card h2 {
  max-width: 420px;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}

.hero-card > p {
  max-width: 500px;
  margin-bottom: 0;
  font-size: 1.02rem;
}

/* SUPPORTER LOGOS */

.network-supporters {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.supporters-label {
  margin-bottom: 15px;
}

.supporters-marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 6px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.supporters-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 14px;
  animation: supportersScroll 22s linear infinite;
  will-change: transform;
}

.supporters-marquee:hover .supporters-track {
  animation-play-state: paused;
}

.supporter-logo {
  width: 250px;
  height: 178px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border: 1px solid rgba(37, 39, 36, 0.08);
  border-radius: 14px;
  background: var(--white);
}

.supporter-logo img {
  width: 100%;
  height: 100%;
  max-width: 218px;
  max-height: 148px;
  object-fit: contain;
  opacity: 0.92;
  filter: grayscale(8%);
  transition: transform 0.2s ease, filter 0.2s ease, opacity 0.2s ease;
}

.supporter-logo:hover img {
  transform: scale(1.035);
  filter: grayscale(0);
  opacity: 1;
}

@keyframes supportersScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 7px));
  }
}

/* INTRO / SPLIT */

.intro {
  background: var(--white);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 70px;
  align-items: start;
}

.split p:last-child {
  margin-bottom: 0;
}

/* WHY */

.why {
  background: var(--cream);
}

.card-grid,
.who-grid,
.programme-grid {
  display: grid;
  gap: 20px;
}

.card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card-grid article,
.who-grid article,
.programme-grid article {
  border: 1px solid rgba(37, 39, 36, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 36px rgba(37, 39, 36, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-grid article:hover,
.who-grid article:hover,
.programme-grid article:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(37, 39, 36, 0.08);
}

.card-grid article {
  padding: 28px 24px;
}

.card-grid i {
  display: inline-grid;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 14px;
  background: var(--sage);
  color: var(--sage-deep);
  font-size: 1.1rem;
}

/* LAUNCH */

.launch {
  background:
    linear-gradient(135deg, rgba(230, 225, 237, 0.58), rgba(223, 234, 241, 0.52)),
    var(--ivory);
}

.detail-card {
  overflow: hidden;
  border: 1px solid rgba(37, 39, 36, 0.08);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}

.detail-card div {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 24px;
  padding: 23px 26px;
  border-bottom: 1px solid var(--border);
}

.detail-card div:last-child {
  border-bottom: 0;
}

.detail-card span {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-deep);
}

/* PROGRAMME */

.programme {
  background: var(--white);
}

.programme-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.programme-grid article {
  position: relative;
  min-height: 250px;
  padding: 30px 28px;
  background: var(--ivory);
}

.programme-grid article:nth-child(2),
.programme-grid article:nth-child(5) {
  background: #f1f5f2;
}

.programme-grid article:nth-child(3),
.programme-grid article:nth-child(6) {
  background: #f3eff6;
}

.programme-grid article > span {
  display: inline-flex;
  margin-bottom: 48px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--sage-deep);
}

/* WHO */

.who {
  background: var(--cream);
}

.who-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.who-grid article {
  padding: 27px;
  background: rgba(255, 255, 255, 0.72);
}

/* BENEFITS */

.benefits {
  background: var(--sage);
}

.benefit-list {
  display: grid;
  gap: 12px;
}

.benefit-list div {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 15px 18px;
  border: 1px solid rgba(37, 39, 36, 0.08);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 600;
}

.benefit-list i {
  width: 34px;
  color: var(--sage-deep);
  text-align: center;
}

/* REGISTRATION */

.register-section {
  padding: 110px 0;
  background:
    radial-gradient(circle at 12% 15%, rgba(223, 232, 223, 0.85), transparent 25%),
    linear-gradient(180deg, #fbf8f2 0%, #f5f0e8 100%);
}

.register-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  align-items: start;
  gap: 66px;
}

.register-copy {
  position: sticky;
  top: calc(var(--header-height) + 30px);
}

.note {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  margin-top: 26px;
  padding: 18px;
  border: 1px solid rgba(113, 135, 119, 0.14);
  border-radius: 16px;
  background: rgba(223, 232, 223, 0.56);
}

.note i {
  padding-top: 4px;
  color: var(--sage-deep);
}

.note p {
  margin-bottom: 0;
  font-size: 0.91rem;
}

.registration-form {
  padding: 38px;
  border: 1px solid rgba(37, 39, 36, 0.08);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-title {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: start;
  margin-bottom: 22px;
}

.form-title > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--sage);
  color: var(--sage-deep);
  font-size: 0.75rem;
  font-weight: 700;
}

.form-title h3 {
  margin-bottom: 4px;
}

.form-title p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

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

.registration-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 17px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #4f514d;
}

.registration-form input,
.registration-form select,
.registration-form textarea {
  width: 100%;
  border: 1px solid #d8d9d4;
  border-radius: 12px;
  outline: none;
  background: #fdfcf9;
  color: var(--charcoal);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.registration-form input,
.registration-form select {
  min-height: 50px;
  padding: 0 14px;
}

.registration-form textarea {
  min-height: 118px;
  padding: 14px;
  resize: vertical;
}

.registration-form input:focus,
.registration-form select:focus,
.registration-form textarea:focus {
  border-color: var(--sage-deep);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(113, 135, 119, 0.12);
}

.registration-form input::placeholder,
.registration-form textarea::placeholder {
  color: #9a9a95;
}

.divider {
  height: 1px;
  margin: 30px 0;
  background: var(--border);
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin-bottom: 24px;
}

.check-card {
  display: flex !important;
  align-items: center;
  gap: 10px !important;
  min-height: 52px;
  margin-bottom: 0 !important;
  padding: 12px 14px;
  border: 1px solid #dedfd9;
  border-radius: 12px;
  background: #fcfbf8;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.check-card:hover {
  border-color: rgba(113, 135, 119, 0.55);
  background: #f5f8f5;
}

.check-card input {
  width: 17px;
  min-height: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--sage-deep);
}

.check-card span {
  font-size: 0.88rem;
  font-weight: 600;
}

.consent {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: flex-start;
  gap: 10px !important;
  margin: 18px 0 !important;
  font-weight: 500 !important;
  color: var(--taupe) !important;
}

.consent input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 3px 0 0;
  accent-color: var(--sage-deep);
}

.submit-button {
  width: 100%;
  margin-top: 8px;
  border: 0;
}

.privacy {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.78rem;
}

/* FORM STATUS */

.form-message {
  display: none;
  margin-top: 16px;
  padding: 13px 15px;
  border-radius: 12px;
  font-size: 0.88rem;
}

.form-message.show {
  display: block;
}

.form-message.error {
  background: #f9e8e5;
  color: #7b332a;
}

.form-message.success {
  background: #e8f2e9;
  color: #31563a;
}

/* FOOTER */

.footer {
  padding: 62px 0 34px;
  background: var(--charcoal);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 44px;
}

.footer img {
  width: 150px;
  margin-bottom: 16px;
  border-radius: 8px;
}

.footer p,
.footer span,
.footer a {
  color: rgba(255, 255, 255, 0.72);
}

.footer h4 {
  margin-bottom: 15px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
}

.footer a,
.footer span {
  display: block;
  margin-bottom: 9px;
  font-size: 0.9rem;
}

.footer a:hover {
  color: var(--white);
}

/* REVEAL ANIMATION */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */

@media (max-width: 1080px) {
  .main-nav {
    gap: 16px;
  }

  .main-nav a {
    font-size: 0.86rem;
  }

  .hero-grid {
    grid-template-columns: 1fr 0.82fr;
    gap: 42px;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 74px;
  }

  .container {
    width: min(calc(100% - 30px), var(--container));
  }

  .menu-toggle {
    display: block;
    position: relative;
    z-index: 1002;
  }

  .main-nav {
    position: fixed;
    inset: var(--header-height) 15px auto 15px;
    z-index: 1001;
    display: grid;
    gap: 3px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(251, 248, 242, 0.98);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-nav a {
    padding: 12px 13px;
    border-radius: 10px;
    font-size: 0.95rem;
  }

  .main-nav a:not(.nav-cta)::after {
    display: none;
  }

  .nav-cta {
    margin-top: 6px;
    text-align: center;
  }

  .hero {
    padding-top: 70px;
  }

  .hero-grid,
  .split,
  .register-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .split,
  .register-grid {
    gap: 42px;
  }

  .hero-card {
    max-width: 700px;
  }

  .programme-grid,
  .who-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .register-copy {
    position: static;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .section-pad,
  .register-section {
    padding: 72px 0;
  }

  .hero {
    padding: 56px 0 74px;
  }

  h1 {
    font-size: clamp(2.7rem, 14vw, 4.3rem);
  }

  h2 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .brand img {
    width: 122px;
    height: 46px;
  }

  .event-meta,
  .form-row,
  .checkbox-grid,
  .programme-grid,
  .who-grid,
  .card-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .registration-form {
    padding: 26px 20px;
    border-radius: 22px;
  }

  .event-meta div {
    min-height: auto;
  }

  .detail-card div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .supporter-logo {
    width: 128px;
    height: 68px;
  }

  .supporters-track {
    animation-duration: 18s;
  }

  .actions {
    display: grid;
  }

  .actions .btn {
    width: 100%;
  }

  .programme-grid article {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .supporters-track {
    animation: none;
  }

  .supporters-marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
}
