:root {
  --color-bg: #ffffff;
  --color-primary: ##13c47d;
  --color-text: #111111;
  --color-muted: #6b7280;
  --color-surface: #ffffff;
  --color-border: #e5e7eb;
  --color-hover: #f5f5f5;
  --button-primary-bg: #111111;
  --button-primary-border: var(--color-primary);
  --button-primary-text: #ffffff;
  --container-max: 1080px;
  --radius: 20px;
  --shadow-lg: 0 0 0 rgba(0, 0, 0, 0);
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #11110f;
    --color-primary: #13c47d;
    --color-text: #e9e9e4;
    --color-muted: #b7b7ae;
    --color-surface: #171715;
    --color-border: #2a2a29;
    --color-hover: #1f1f1d;
    --button-primary-bg: var(--color-text);
    --button-primary-border: var(--color-primary);
    --button-primary-text: #111111;
  }
}

[data-theme="light"] {
  --color-bg: #ffffff;
  --color-primary: #13c47d;
  --color-text: #111111;
  --color-muted: #6b7280;
  --color-surface: #ffffff;
  --color-border: #e5e7eb;
  --color-hover: #f5f5f5;
  --button-primary-bg: var(--color-text);
  --button-primary-border: #111111;
  --button-primary-text: #ffffff;
}

[data-theme="dark"] {
  --color-bg: #11110f;
  --color-primary: #13c47d;
  --color-text: #e9e9e4;
  --color-muted: #b7b7ae;
  --color-surface: #171715;
  --color-border: #2a2a29;
  --color-hover: #1f1f1d;
  --button-primary-bg: var(--color-primary);
  --button-primary-border: var(--color-primary);
  --button-primary-text: #111111;
}

/* Univia Pro Bold (for titles) */
@font-face {
  font-family: "Univia Pro";
  src: local("Univia Pro Bold"), local("UniviaPro-Bold"),
    url("./assets/Univia.Pro/UniviaPro-Black.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

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

html,
body {
  height: 100%;
  overflow: visible;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.header-logo {
  text-decoration: none;
  color: var(--color-text);
  line-height: 20px;
}

.header-logo:not(.bold) {
  font-weight: 500;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.6px;
  text-decoration: none;
  color: var(--color-text);
}

.brand span {
  color: var(--color-primary);
}

.menu {
  display: flex;
}

.menu a {
  color: var(--color-muted);
  text-decoration: none;
  margin-left: 18px;
  font-weight: 600;
}

.menu a:hover,
.menu a:focus {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Theme toggle button (minimal, link-like) */
.theme-toggle {
  background: transparent;
  border: 0;
  color: var(--color-muted);
  font-weight: 600;
  margin-left: 18px;
  cursor: pointer;
  padding: 0;
}
.theme-toggle:hover,
.theme-toggle:focus {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.theme-toggle img {
  width: 20px;
  height: 20px;
  display: block;
}

/* Hero */
.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 72vh;
  isolation: isolate;
  padding: 64px 0 80px;
  overflow: hidden;
}

/* decorative backgrounds removed for a minimal look */

.hero-inner {
  display: grid;
  gap: 24px;
  align-items: center;
}

.hero-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  display: block;
}

.hero-inner {
  text-align: center;
}

.hero-container {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 100vw;
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 10px;
}

.logo-container img {
  max-width: 100%;
  height: auto;
  display: block;
}

.logo-part.logo-south {
  width: 30%;
}
.logo-part.logo-tech {
  width: 78%;
}
.logo-part.logo-summit {
  width: 92%;
}

.subtitle strong {
  color: var(--color-primary);
  text-decoration: underline;
}

.kicker {
  margin: 0 0 6px;
  color: var(--color-primary);
  font-weight: 400;
  letter-spacing: 2px;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  line-height: 0.96;
  font-family: "Univia Pro", "Poppins", system-ui, -apple-system, Segoe UI,
    Roboto, Helvetica, Arial, sans-serif;
  font-weight: 700;
  color: var(--color-text);
}

.subtitle {
  margin: 0 0 10px;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  color: var(--color-text);
  max-width: 60ch;
}

.meta {
  margin: 0 0 26px;
  color: var(--color-muted);
  font-weight: 600;
}

.cta-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 30px;
  border: 1px solid var(--color-primary);
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
}

.button.primary {
  /* background: var(--button-primary-bg); */
  color: var(--color-text);
  border-color: var(--color-primary);
}

.button.primary:hover,
.button.primary:focus {
  /* background: var(--color-hover); */
  color: var(--color-primary);
  border-color: var(--button-primary-border);
}

.button.ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.button.ghost:hover,
.button.ghost:focus {
  background: var(--color-hover);
  border-color: var(--color-border);
}

/* About */
.about {
  padding: 80px 0 96px;
  border-top: 1px solid var(--color-border);
}

.about h2 {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.about p {
  margin: 0;
  max-width: 75ch;
  color: var(--color-text);
}

.highlight {
  color: var(--color-primary);
  font-weight: 600;
  border-radius: 6px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 22px 0 26px;
  color: var(--color-muted);
  font-size: 0.95rem;
  text-align: center;
}

/* Generic sections */
.section {
  padding: 80px 0;
  border-top: 1px solid varf(--color-border);
}

.section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.section .lede {
  margin: 0 0 16px;
  color: var(--color-muted);
  font-size: 1.05rem;
  max-width: 70ch;
}

#palcos {
  padding-top: 40px;
}

#palcos-title {
  margin-top: 0;
  text-align: center;
  margin-bottom: 40px;
}

/* Minimal grid and tiles */
.grid {
  display: grid;
  gap: 24px;
}

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

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

.tile {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px;
}

.tile h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.schedule {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.schedule-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.schedule-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px 18px;
  align-items: start;
}

.schedule-slot {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

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

.schedule-cells--span2 {
  grid-template-columns: 1fr;
}

.schedule-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.schedule-item {
  display: grid;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: var(--color-surface);
}

.schedule-item--keynote {
  border-color: var(--color-primary);
  background: radial-gradient(circle at 20% 20%, rgba(19, 196, 125, 0.12), transparent 60%),
    var(--color-surface);
}

.schedule-item--break {
  border-style: dashed;
  color: var(--color-muted);
}

.schedule-time {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 800;
}

.schedule-hour {
  font-size: 1.1rem;
}

.schedule-duration {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.schedule-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.schedule-label {
  margin: 0;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.3px;
  color: var(--color-muted);
  font-weight: 800;
}

.schedule-title {
  margin: 0;
  font-weight: 800;
}

.schedule-speaker {
  margin: 0;
  color: var(--color-muted);
  font-weight: 600;
}

.schedule-speaker a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.schedule-speaker a:hover,
.schedule-speaker a:focus {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* CTA band */
.cta-band {
  padding: 64px 0 72px;
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 8px;
}

.cta-band p {
  margin: 0 0 16px;
  color: var(--color-muted);
}

/* Media grid (gallery) */
.media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.img-frame {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface);
}

.img-frame img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Speakers */
.speakers {
  position: relative;
}

.section-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--color-hover);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  border-radius: 9999px;
  padding: 4px 10px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.4px;
}

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

.speaker-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.speaker-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.speaker-meta {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
}

.speaker-meta h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.speaker-meta-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.speaker-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.speaker-social:hover,
.speaker-social:focus {
  background: var(--color-hover);
  border-color: var(--color-border);
}

.speaker-social svg {
  width: 16px;
  height: 16px;
  stroke: var(--color-text);
}

.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;
}
.speaker-meta p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.speaker-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
}

.speaker-bio {
  position: relative;
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
  max-height: 7.5rem;
  overflow: hidden;
  display: -webkit-box;
  line-clamp: 5;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  transition: max-height 0.2s ease;
}

.speaker-card:not(.is-expanded) .speaker-bio::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    var(--color-surface)
  );
  pointer-events: none;
}

.speaker-card.is-expanded .speaker-bio {
  max-height: none;
  line-clamp: unset;
  -webkit-line-clamp: unset;
}

.speaker-toggle {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--color-text);
  border-radius: 12px;
  padding: 6px 10px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
}

.speaker-toggle:hover,
.speaker-toggle:focus {
  background: var(--color-hover);
  border-color: var(--color-border);
}

.speaker-toggle__icon {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-left: 2px solid var(--color-text);
  border-bottom: 2px solid var(--color-text);
  transform: translateY(-2px) rotate(-45deg);
  transition: transform 0.2s ease;
}

.speaker-toggle.is-expanded .speaker-toggle__icon {
  transform: translateY(2px) rotate(135deg);
}

/* Responsive tweaks */
@media (max-width: 720px) {
  .subtitle {
    max-width: 48ch;
  }
  .nav {
    padding: 12px 0;
  }
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .media-grid {
    grid-template-columns: 1fr;
  }
  .speaker-grid {
    grid-template-columns: 1fr;
  }
  .hero-container {
    flex-direction: column;
    align-items: start;
    gap: 16px;
  }
  /* .logo-container {
    width: 100%;
  } */
  .logo-container img.logo-south {
    width: 30%;
  }
  .logo-container img.logo-tech {
    width: 78%;
  }
  .logo-container img.logo-summit {
    width: 92%;
  }
  .schedule-row {
    grid-template-columns: 1fr;
  }
  .schedule-cells {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 900px) {
  /* .hero-inner {
    grid-template-columns: 1.2fr 1fr;
  } */
  .speaker-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Emphasis tiles (Palcos) */
.tile--emphasis {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  border: 0;
  padding: 18px;
  border-radius: var(--radius);
  background-size: 200% 200%;
  transition: transform 0.2s ease, box-shadow 0.3s ease, background-position 0.6s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  user-select: none;
}

.tile--emphasis h3 {
  color: #ffffff;
}

.tile--emphasis:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
  background-position: 100% 0%;
}

.tile--emphasis:active {
  transform: translateY(0) scale(0.98);
}

.tile--emphasis:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

/* Shimmer highlight on hover */
.tile--emphasis::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(ellipse at 30% 10%, rgba(255, 255, 255, 0.18), transparent 50%);
  transform: translateX(-30%) rotate(15deg);
  transition: transform 0.6s ease, opacity 0.4s ease;
  pointer-events: none;
  opacity: 0.6;
}

.tile--emphasis:hover::after {
  transform: translateX(10%) rotate(15deg);
  opacity: 0.85;
}

/* Specific gradients */
.tile--tech {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #06b6d4 100%);
}

.tile--business {
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 50%, #ec4899 100%);
}

/* Ripple effect element */
.tile__ripple {
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.8);
  width: 0;
  height: 0;
  opacity: 0.75;
  filter: blur(0.5px);
  animation: ripple-expand 620ms ease-out forwards;
  mix-blend-mode: overlay;
}

@keyframes ripple-expand {
  0% {
    width: 0;
    height: 0;
    opacity: 0.85;
  }
  70% {
    opacity: 0.5;
  }
  100% {
    width: 420px;
    height: 420px;
    opacity: 0;
  }
}
