@font-face {
  font-family: 'Cuyabra';
  src: url('../assets/font/cuyabra/cuyabra.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Cuyabra Oblique';
  src: url('../assets/font/cuyabra/cuyabra\ oblique.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

/* ===================================================
        DESIGN SYSTEM
        Palette: chartreuse (#c8d400) replaces black panels;
        ink black (#0f0f0f) replaces green accents.
        =================================================== */
:root {
  --ink: #0f0f0f;
  --ink-2: #2a2a2a;
  --ink-3: #555;
  --ink-4: #888;
  --rule: #d8d8d2;
  --bg: #f9f8f4;
  --bg-2: #f0efe9;
  --bg-dark: #d7c800;
  /* chartreuse — hero, footer, contact */
  --accent: #0f0f0f;
  /* black — buttons, tags, active states */
  --accent-lt: #2a2a2a;
  /* dark grey — hover states */
  --accent-xs: #f5f5e8;
  /* very light yellow-tint — hover bg */
  --ff-disp: 'Cuyabra', sans-serif;
  --ff-body: 'Cuyabra', sans-serif;
  --ff-mono: 'Cuyabra', sans-serif;
  --max-w: 1400px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--ink);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ---- UTILITY ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.rule {
  border: none;
  border-top: 1px solid var(--rule);
}

.tag {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--ff-disp);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
}

/* ---- NAV ---- */
nav.topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(249, 248, 244, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow 0.3s;
}

nav.topnav.scrolled {
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.07);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  row-gap: 0;
  column-gap: 1rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 400;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-cta {
  background: var(--accent);
  color: #d7c800 !important;
  padding: 0.45rem 1.1rem;
  border-radius: 2px;
  transition: background 0.2s !important;
}

.nav-cta:hover {
  background: var(--accent-lt) !important;
  color: #d7c800 !important;
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--ink);
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  min-width: 100vw;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  padding-top: 60px;
}

.hero-left {
  /*background: var(--bg-dark);*/
  height: calc(100vh - 60px);
  padding: 6rem 4rem 5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: end;
  position: relative;
  overflow: hidden;
  background: url("../assets/img/bg-hero-full.png") no-repeat left;
  background-size: cover;
}

.hero-edition::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: rgba(0, 0, 0, 0.4);
}

.hero-title {
  font-family: var(--ff-disp);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.hero-title em {
  font-style: italic;
  color: var(--ink-2);
}

.hero-sub {
  font-size: 0.95rem;
  color: rgba(0, 0, 0, 0.55);
  margin-bottom: 2.5rem;
  line-height: 1.6;
  max-width: 380px;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 3rem;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.75);
}

.hero-meta-item i {
  color: var(--ink);
  width: 16px;
  font-size: 0.8rem;
}

.hero-btns {
  display: flex;
  gap: 2rem;
  justify-content: start;
}

.btn {
  display: inline-block;
  padding: 0.75rem 0.75rem;
  font-family: var(--ff-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 2px;
}

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

.btn-primary:hover {
  background: var(--accent-lt);
}

.btn-outline {
  background: transparent;
  color: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.3);
}

.btn-outline:hover {
  border-color: var(--ink);
  color: var(--ink);
}

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

.btn-dark:hover {
  background: var(--ink-2);
}

.hero-right {
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 3.5rem;
  border-left: 1px solid var(--rule);
  gap: 0;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 2.5rem;
}

.hero-resources {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: .5rem;
}

.hero-community {
  display: grid;
  grid-template-rows: 1fr;
  gap: 0;
}

.stat-box {
  padding: 2rem 1.5rem;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}

.stat-box:nth-child(even) {
  border-right: none;
}

.stat-box:nth-last-child(-n+2) {
  border-bottom: none;
}

.stat-num {
  font-family: var(--ff-disp);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  display: block;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* Countdown in hero-right */
.countdown-block {
  background: var(--ink);
  padding: 1.75rem 1.5rem;
  border-radius: 3px;
}

.countdown-label-text {
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rule);
  margin-bottom: 1rem;
}

.cd-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.cd-cell {
  text-align: center;
}

.cd-num {
  font-family: var(--ff-disp);
  font-size: 2rem;
  font-weight: 700;
  color: var(--bg-dark);
  line-height: 1;
  display: block;
}

.cd-lbl {
  font-family: var(--ff-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rule);
  margin-top: 0.3rem;
  display: block;
}

/* ---- SECTIONS ---- */
section {
  padding: 6rem 0;
}

section.alt {
  background: var(--bg-2);
}

/* ---- ABOUT ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
  align-items: start;
}

.about-aside {
  padding-top: 0.5rem;
}

.about-aside .tag {
  font-size: 0.68rem;
}

.about-num {
  font-family: var(--ff-disp);
  font-size: 6rem;
  font-weight: 900;
  color: var(--rule);
  line-height: 1;
  margin-bottom: 0;
}

.about-body p {
  color: var(--ink-2);
  margin-bottom: 1.25rem;
  font-size: 1.02rem;
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--bg-dark);
  border: 1px solid var(--rule);
  margin-top: 2.5rem;
}

.about-card {
  background: var(--bg);
  padding: 1.5rem;
}

.about-card strong {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: var(--ink);
}

.about-card span {
  font-size: 0.85rem;
  color: var(--ink-3);
}

/* ---- PROGRAMME ---- */
.prog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.day-block {
  overflow: hidden;
}

.day-head {
  background: var(--bg-dark);
  color: var(--ink);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.day-date {
  font-family: var(--ff-disp);
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
}

.day-tag {
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.5);
}

.day-body {
  padding: 0;
}

.ev {
  display: flex;
  gap: 1rem;
  padding: 0.8rem 1.5rem;
  border-bottom: 1px solid var(--rule);
  font-size: 0.85rem;
  align-items: baseline;
}

.ev:last-child {
  border-bottom: none;
}

.ev-time {
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  color: var(--accent);
  min-width: 100px;
  flex-shrink: 0;
  padding-top: 1px;
}

.ev-desc {
  color: var(--ink-2);
  line-height: 1.5;
}

.ev-desc em {
  font-style: italic;
  color: var(--ink-4);
}

.ev-desc strong {
  font-weight: 500;
  color: var(--ink);
}

.ev-countries {
  padding: 0.5rem 1.5rem 0.5rem calc(1.5rem + 100px + 1rem);
  font-size: 0.78rem;
  color: var(--ink-4);
  border-bottom: 1px solid var(--bg-2);
  font-family: var(--ff-mono);
  letter-spacing: 0.03em;
}

.ev-tba {
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-4);
  font-style: italic;
}

/* ---- TOPICS ---- */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.topic-cell {
  background: var(--bg);
  padding: 2.25rem 2rem;
  transition: background 0.2s;
  position: relative;
}

.topic-cell:hover {
  background: var(--accent-xs);
}

.topic-cell::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 1.25rem;
  transition: width 0.3s;
}

.topic-cell:hover::before {
  width: 48px;
}

.topic-cell h4 {
  font-family: var(--ff-disp);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--ink);
  line-height: 1.3;
}

.topic-cell p {
  font-size: 0.83rem;
  color: var(--ink-3);
  line-height: 1.6;
}

.topic-num {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  color: var(--rule);
  letter-spacing: 0.1em;
}

/* ---- ABSTRACT FORM ---- */
.form-wrap {
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: 5rem;
  align-items: start;
}

.form-aside .tag {
  font-size: 0.68rem;
}

.form-aside h2 {
  margin-bottom: 1.25rem;
}

.form-aside p {
  font-size: 0.9rem;
  color: var(--ink-3);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.deadline-box {
  border: 1px solid var(--accent);
  padding: 1.25rem;
  margin-top: 1.5rem;
}

.deadline-box .dl-label {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.4rem;
}

.deadline-box .dl-date {
  font-family: var(--ff-disp);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
}

.form-body {}

.field-group {
  margin-bottom: 0;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
}

.field-row.full {
  grid-template-columns: 1fr;
}

.field {
  background: var(--bg);
  padding: 1.25rem 1.25rem 1rem;
  border: none;
  position: relative;
  transition: background 0.15s;
}

.field:focus-within {
  background: var(--accent-xs);
}

.field label {
  display: block;
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 0.4rem;
}

.field label .req {
  color: var(--accent);
  margin-left: 2px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  outline: none;
  font-family: var(--ff-body);
  font-size: 0.92rem;
  color: var(--ink);
  padding: 0.3rem 0;
  transition: border-color 0.2s;
  appearance: none;
  font-weight: 400;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-bottom-color: var(--accent);
}

.field textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.6;
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-bottom-color: #c0392b;
}

.field select {
  cursor: pointer;
}

.field select option {
  background: var(--bg);
}

.form-grid-outer {
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--rule);
}

.form-section-head {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.65rem 1.25rem;
}

.word-bar-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  color: var(--ink-4);
}

.word-track {
  flex: 1;
  height: 2px;
  background: var(--rule);
}

.word-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width .2s, background .2s;
}

.word-fill.over {
  background: #c0392b;
}

.form-submit-row {
  background: var(--bg);
  padding: 1.5rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.form-notice {
  font-size: 0.78rem;
  color: var(--ink-4);
}

.btn-submit {
  background: var(--accent);
  color: #fff;
  padding: 0.85rem 2.5rem;
  font-family: var(--ff-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-submit:hover {
  background: var(--accent-lt);
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.alert {
  padding: 1.25rem 1.5rem;
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid;
  display: none;
  line-height: 1.5;
}

.alert.show {
  display: block;
  animation: alertIn 0.35s ease;
}

@keyframes alertIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.alert-success {
  background: #f0faf4;
  border-color: #1a7a42;
  color: #0e4d28;
  font-weight: 400;
}

.alert-success strong {
  color: #0b3d1f;
}

.alert-error {
  background: #fdf0ef;
  border-color: #c0392b;
  color: #7a1f1a;
}

/* ---- VENUE ---- */
.venue-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--rule);
  overflow: hidden;
}

.venue-info {
  padding: 3.5rem;
  border-right: 1px solid var(--rule);
}

.venue-info .tag {
  margin-bottom: 0.5rem;
}

.venue-info h2 {
  margin-bottom: 1.5rem;
}

.venue-detail {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  color: var(--ink-2);
  align-items: flex-start;
}

.venue-detail i {
  color: var(--accent);
  margin-top: 3px;
  width: 14px;
}

.venue-map {
  min-height: 400px;
}

.venue-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  min-height: 400px;
  filter: grayscale(30%) contrast(1.05);
}

/* ---- CONTACT ---- */
.contact-strip {
  background: var(--bg-dark);
  padding: 5rem 0;
}

.contact-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-cell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1;
  align-items: top;
}

.contact-cell:last-child {
  border-right: none;
}

.contact-cell .tag {
  color: var(--ink);
}

.contact-cell h4 {
  font-family: var(--ff-disp);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.contact-cell p,
.contact-cell a {
  font-size: 0.88rem;
  color: rgba(0, 0, 0, 0.6);
  text-decoration: none;
  line-height: 1.6;
}

.contact-cell a:hover {
  color: var(--ink);
}

/* ---- FOOTER ---- */
footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding: 2rem 0;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.55);
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(0, 0, 0, 0.45);
}

/* ---- SCROLL-TO-TOP ---- */
#scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 40px;
  height: 40px;
  background: var(--ink);
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 2px;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, background 0.2s;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
}

#scroll-top.show {
  opacity: 1;
  pointer-events: all;
}

#scroll-top:hover {
  background: var(--accent);
}

/* ---- ANIMATIONS ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ---- RESPONSIVE ---- */
@media (max-width: 1200px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-left {
    padding: 2rem;
  }

  .hero-btns {
    justify-content: center;
  }

  .hero-right {
    padding: 3rem 2rem;
    border-left: none;
    border-top: 1px solid var(--rule);
  }

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

  .about-grid,
  .form-wrap {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

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

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

  .venue-map {
    min-height: 300px;
  }

  .contact-inner {
    grid-template-columns: 1fr;
  }

  .contact-cell {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-links {
    display: none;
  }

  .nav-brand-title {
    display: none;
  }

  .nav-mobile-toggle {
    display: block;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .form-submit-row {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}

@media (max-width: 600px) {

  .contact-cell {
    grid-template-columns: 1fr;
    text-align: center;
  }

  #contact-btn {
    display: none;
  }

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

  .about-cards {
    grid-template-columns: 1fr;
  }

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