/* Brand Sapiens — modern, minimal */

:root {
  --red: #f04f4d;
  --red-hover: #d63e3c;
  --text: #2c292a;
  --muted: #6f6b6c;
  --bg: #ffffff;
  --off: #f6f5f4;
  --line: rgba(44, 41, 42, 0.12);
  --font-sans: "Inter", system-ui, sans-serif;
  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --nav-h: 80px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 12px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

ul {
  list-style: none;
}

::selection {
  background: var(--red);
  color: #fff;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.65rem 1rem;
  background: var(--text);
  color: #fff;
  border-radius: 999px;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: min(1120px, calc(100% - 3rem));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  max-width: 14ch;
}

.section-title em {
  font-style: italic;
  font-weight: 500;
}

.lede {
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.0625rem;
}

.lede a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.lede a:hover {
  color: var(--red);
}

.note {
  display: inline-block;
  margin-top: 1.1rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:focus-visible,
.nav-links a:focus-visible,
.logo:focus-visible,
.hero-meta a:focus-visible,
.event-meta a:focus-visible,
.contact-list a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.btn-primary,
.btn-red {
  background: var(--red);
  color: #fff;
}

.btn-primary:hover,
.btn-red:hover {
  background: var(--red-hover);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--text);
}

.btn-dark {
  background: var(--text);
  color: #fff;
}

.btn-dark:hover {
  background: #000;
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
  backdrop-filter: blur(16px);
}

.site-header.is-scrolled,
.site-header.menu-open {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.94);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  display: block;
  height: 26px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav-links a {
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0.78;
  transition: opacity 0.2s ease;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-cta {
  background: var(--red);
  color: #fff !important;
  opacity: 1 !important;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--red-hover);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  position: relative;
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

.site-header.menu-open .nav-toggle span {
  background: transparent;
}

.site-header.menu-open .nav-toggle span::before {
  top: 0;
  transform: rotate(45deg);
}

.site-header.menu-open .nav-toggle span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Hero */

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: calc(var(--nav-h) + 1rem) 0 0;
  background: var(--bg);
  text-align: center;
}

.hero-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 0 2.5rem;
}

.hero-kicker {
  margin-bottom: 1.6rem;
}

.hero-kicker::before {
  display: none;
}

.hero-logo-wrap {
  margin: 0 auto 1.35rem;
  max-width: 820px;
}

.hero-logo {
  width: min(100%, 760px);
  height: auto;
  margin-inline: auto;
}

.hero-when {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  letter-spacing: -0.04em;
  line-height: 1.2;
  margin: 0 0 0.25rem;
}

.hero-where {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  letter-spacing: -0.02em;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.hero-tagline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.4;
  letter-spacing: -0.03em;
  max-width: 28ch;
  margin: 0 auto 2rem;
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}

.countdown-block {
  margin-top: 2.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.countdown {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.countdown div {
  min-width: 76px;
  padding: 0.75rem 0.7rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: center;
}

.countdown span {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.countdown small {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  margin-top: 3.2rem;
}

.hero-meta div {
  padding: 1.3rem 1.2rem 1.5rem 0;
  border-right: 1px solid var(--line);
}

.hero-meta div:last-child {
  border-right: 0;
  padding-right: 0;
}

.hero-meta dt {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.hero-meta dd {
  font-family: var(--font-display);
  font-weight: 550;
  letter-spacing: -0.025em;
}

.hero-meta a,
.event-meta a,
.contact-list a {
  text-decoration: underline;
  text-underline-offset: 0.16em;
  text-decoration-thickness: 1px;
}

.hero-meta a:hover,
.event-meta a:hover,
.contact-list a:hover {
  color: var(--red);
}

/* Sections */

.section {
  padding: clamp(6rem, 12vw, 10rem) 0;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 4rem;
  align-items: end;
  margin-bottom: clamp(2.8rem, 6vw, 4.5rem);
}

.section-head .lede {
  justify-self: end;
}

.split-intro .section-head {
  align-items: start;
}

.section-head.is-center {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
}

.section-head.is-center .section-title {
  margin-inline: auto;
}

.section-head.is-center .lede,
.section-head.is-center .note {
  justify-self: center;
  margin-inline: auto;
}

.section-head.is-center .eyebrow::before {
  display: none;
}

.about,
.agenda,
.signup {
  background: var(--off);
}

.events,
.speakers,
.partners {
  background: var(--bg);
}

/* About */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.pillar {
  padding: 0;
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
}

.pillar-index {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--red);
  margin-bottom: 1.1rem;
}

.pillar h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.pillar p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* Events */

.event-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.9fr 0.9fr;
  gap: 1.1rem;
}

.event-card {
  display: flex;
  flex-direction: column;
  min-height: 400px;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  transition: border-color 0.25s ease;
}

.event-card:hover {
  border-color: rgba(44, 41, 42, 0.28);
}

.event-card.is-featured {
  border-color: var(--red);
}

.event-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.6rem;
}

.event-edition {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.badge {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}

.event-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.45rem, 2.1vw, 1.9rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 0.45rem;
}

.event-type {
  color: var(--muted);
  margin-bottom: auto;
}

.event-meta {
  display: grid;
  gap: 0.65rem;
  margin-top: 2rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.event-meta li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
}

.event-meta span {
  color: var(--muted);
}

/* Speakers */

.speakers {
  padding-top: 0;
}

.speaker-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.speaker-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}

.speaker-visual {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: var(--off);
}

.speaker-visual svg {
  width: 46%;
  height: 46%;
}

.speaker-body {
  padding: 1.15rem 1.2rem 1.3rem;
  border-top: 1px solid var(--line);
}

.speaker-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}

.speaker-body p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Agenda */

.agenda-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3.5rem;
  align-items: start;
}

.agenda-sticky {
  position: sticky;
  top: 110px;
}

.agenda-item {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1.25rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}

.agenda-item:last-child {
  border-bottom: 1px solid var(--line);
}

.agenda-time {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.35rem;
}

.agenda-item h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}

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

/* Partners */

.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.partner-slot {
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1.5rem 1rem;
  text-align: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.partner-mark {
  width: 36px;
  height: 36px;
  opacity: 0.7;
}

.partner-slot span {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.partner-slot strong {
  font-family: var(--font-display);
  font-weight: 550;
  letter-spacing: -0.02em;
}

/* Signup + contact */

.panel-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.15rem;
}

.panel {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(1.6rem, 3vw, 2.4rem);
}

.panel h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 0.7rem 0 0.8rem;
  max-width: 16ch;
}

.form {
  display: grid;
  gap: 1rem;
  margin-top: 1.6rem;
  position: relative;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.field-full,
.field-event {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0 0.95rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input {
  height: 3.05rem;
}

.field textarea {
  display: block;
  min-height: 7.2rem;
  padding: 0.8rem 0.95rem;
  resize: vertical;
  line-height: 1.5;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(240, 79, 77, 0.14);
}

.field input[readonly] {
  background: var(--off);
  color: var(--text);
  cursor: default;
}

.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.field-check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.field-check input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--red);
  cursor: pointer;
}

.field-check label {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 0;
  cursor: pointer;
}

.form-status {
  display: none;
  margin-top: 0.15rem;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  background: #eef6f1;
}

.form-status.is-error {
  background: #f8eeee;
}

.form.is-sent .form-grid,
.form.is-sent .btn {
  display: none;
}

.contact-list {
  display: grid;
  margin-top: 1.8rem;
}

.contact-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.98rem;
}

.contact-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.contact-list span {
  color: var(--muted);
}

.contact-list strong {
  font-weight: 600;
  text-align: right;
}

/* Footer */

.site-footer {
  background: var(--bg);
  color: var(--text);
  padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-start;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid var(--line);
}

.footer-logo {
  height: 28px;
  width: auto;
}

.footer-brand p {
  max-width: 30ch;
  color: var(--muted);
  margin-top: 1rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.35rem;
  justify-content: flex-end;
}

.footer-nav a {
  color: var(--text);
  opacity: 0.7;
  font-size: 0.92rem;
}

.footer-nav a:hover {
  opacity: 1;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.2rem;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Thank-you */

.thanks {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--off);
  padding: calc(var(--nav-h) + 3rem) 0 4rem;
  display: flex;
  align-items: center;
}

.thanks-card {
  width: min(640px, 100%);
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(1.8rem, 4vw, 3rem);
}

.thanks-card h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 4vw, 3rem);
  letter-spacing: -0.045em;
  line-height: 1.08;
  margin: 0.7rem 0 0.9rem;
}

.thanks-card .lede {
  margin-bottom: 1.8rem;
}

/* Motion */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.8s var(--ease) forwards;
}

.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }
.delay-4 { animation-delay: 0.32s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

.js-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Responsive */

@media (max-width: 980px) {
  .section-head,
  .agenda-layout,
  .panel-grid {
    grid-template-columns: 1fr;
  }

  .section-head:not(.is-center) .lede {
    justify-self: start;
  }

  .event-grid,
  .speaker-grid,
  .pillars {
    grid-template-columns: 1fr;
  }

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

  .hero-meta {
    grid-template-columns: 1fr 1fr;
  }

  .hero-meta div:nth-child(2) {
    border-right: 0;
  }

  .hero-meta div:nth-child(1),
  .hero-meta div:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .agenda-sticky {
    position: static;
  }
}

@media (max-width: 760px) {
  :root { --nav-h: 68px; }

  .wrap {
    width: min(1120px, calc(100% - 1.6rem));
  }

  .logo-img {
    height: 22px;
  }

  .nav-toggle {
    display: grid;
  }

  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    padding: 0.5rem 1.25rem 2rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s var(--ease);
    border-top: 1px solid var(--line);
  }

  .site-header.menu-open .nav-links {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav-links a {
    width: 100%;
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.1rem;
    opacity: 1;
  }

  .nav-cta {
    width: auto;
    margin-top: 1.15rem;
    border: 0;
  }

  .event-card {
    min-height: 0;
  }

  .agenda-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

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

  .footer-top,
  .footer-bottom,
  .contact-list li {
    flex-direction: column;
  }

  .footer-nav,
  .contact-list strong {
    justify-content: flex-start;
    text-align: left;
  }

  .countdown div {
    min-width: 66px;
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .js-reveal,
  .btn {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
}
