/* --- CSS Variables: Teal & Green --- */
:root{
  --brand: #0f766e;      /* teal */
  --brand-2: #16a34a;    /* green accent */
  --brand-3: #0ea5a3;    /* lighter teal */
  --text: #0b1324;
  --muted: #627184;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f6faf9;  /* pale teal tint */
  --border: #e6eef0;
  --shadow: 0 6px 24px rgba(2,34,31,.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

/* Top Navigation */
.topnav{
  position: sticky; top: 0; z-index: 50;
  display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap;
  padding: 10px 12px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.topnav a{
  color: var(--text); text-decoration: none; font-weight: 600;
  padding: 8px 10px; border-radius: 8px;
}
.topnav a:hover{ background: var(--surface-2); color: var(--brand); }

/* Banner */
.banner {
  width: 100%;
  aspect-ratio: 4 / 1;
  min-height: 180px;
  position: relative;
  overflow: hidden;
  background: #030d1a;
  border-radius: 10px;
}

canvas#bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 5%;
  z-index: 10;
}

.chip-label {
  font-family: 'Space Mono', monospace;
  font-size: clamp(8px, 1.1vw, 13px);
  letter-spacing: 0.22em;
  color: #00e5c0;
  margin-bottom: 0.3em;
  opacity: 0.85;
}

.title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(18px, 4.2vw, 56px);
  line-height: 1.0;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.title span.hi {
  color: #00cfff;
}

.tagline {
  font-family: 'Space Mono', monospace;
  font-size: clamp(7px, 0.9vw, 11px);
  color: #6ec8e0;
  letter-spacing: 0.1em;
  margin-top: 0.5em;
  opacity: 0.75;
}

.scripts-col {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.18em;
  z-index: 10;
}

.script-char {
  font-size: clamp(12px, 2.1vw, 28px);
  line-height: 1.1;
  opacity: 0;
  animation: fadeScript 3.2s ease-in-out infinite;
}

.script-char:nth-child(1) { animation-delay: 0s; color: #00e5c0; }
.script-char:nth-child(2) { animation-delay: 0.4s; color: #00cfff; }
.script-char:nth-child(3) { animation-delay: 0.8s; color: #4ab8ff; }
.script-char:nth-child(4) { animation-delay: 1.2s; color: #00e5c0; }
.script-char:nth-child(5) { animation-delay: 1.6s; color: #00cfff; }
.script-char:nth-child(6) { animation-delay: 2.0s; color: #4ab8ff; }
.script-char:nth-child(7) { animation-delay: 2.4s; color: #00e5c0; }

@keyframes fadeScript {
  0% { opacity: 0; transform: translateY(4px); }
  15% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0.6; }
  100% { opacity: 0; transform: translateY(-4px); }
}

.challenge-pills {
  position: absolute;
  bottom: 8%;
  left: 5%;
  display: flex;
  gap: 0.5em;
  flex-wrap: wrap;
  z-index: 10;
}

.pill {
  font-family: 'Space Mono', monospace;
  font-size: clamp(5px, 0.65vw, 8px);
  letter-spacing: 0.08em;
  color: #00e5c0;
  border: 1px solid rgba(0, 229, 192, 0.35);
  border-radius: 999px;
  padding: 0.15em 0.55em;
  background: rgba(0, 229, 192, 0.07);
  white-space: nowrap;
  opacity: 0;
  animation: pillIn 0.6s ease forwards;
}

.pill:nth-child(1) { animation-delay: 0.2s; }
.pill:nth-child(2) { animation-delay: 0.4s; }
.pill:nth-child(3) { animation-delay: 0.6s; }
.pill:nth-child(4) { animation-delay: 0.8s; }
.pill:nth-child(5) { animation-delay: 1s; }

@keyframes pillIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 207, 255, 0.18), transparent);
  animation: scan 5s linear infinite;
  z-index: 5;
  pointer-events: none;
}

@keyframes scan {
  0% { top: 0%; }
  100% { top: 100%; }
}

/* Buttons */
.btn{
  display: inline-block; padding: 12px 18px; border-radius: 12px;
  font-weight: 700; letter-spacing: .2px; text-decoration: none;
  transition: transform .15s ease, filter .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn-primary{ background: var(--brand); color: #fff; }
.btn-accent{ background: var(--brand-2); color: #fff; }
.btn:hover{ transform: translateY(-1px); filter: brightness(1.05); }
.btn:focus-visible{
  outline: 3px solid rgba(14,165,163,.35);
  outline-offset: 2px;
}

/* Containers & Type */
.container{ max-width: 1100px; margin: 0 auto; padding: 48px 18px; }
h2{
  font-size: clamp(24px, 3.8vw, 32px);
  margin: 0 0 14px; letter-spacing: .2px; color: var(--brand);
}
h3{ margin: 10px 0 8px; font-size: 18px; }
p{ margin: 0 0 12px; color: var(--text); }
.small{ font-size: .93rem; color: var(--muted); }

/* Main content typography */
#main-content p,
#main-content li{
  text-align: justify;
  text-justify: inter-word;
}

/* Keep short labels and metadata naturally aligned */
.timeline-item time,
.timeline-item h4,
.timeline-item .meta,
.figure figcaption,
.venue-actions a,
.btn,
.card .role,
.topnav a{
  text-align: left;
}

/* Highlight block */
.highlight{
  margin-top: 14px;
  border: 1px solid #9fd7c8;
  border-left: 8px solid var(--brand-2);
  background: #d7f0e6;
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.12);
  padding: 16px 18px;
  border-radius: 10px;
}

.highlight-right{
  position: relative;
  border-left: 0 !important;
  border-right: 1px solid #9fd7c8;
  background: #cdebdc;
  padding-right: 24px;
}

.highlight-right::after{
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  bottom: -1px;
  width: 8px;
  background: var(--brand-2);
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

/* Cards & Grid */
.grid{ display: grid; gap: 22px; }
.cards-3{ grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card{
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden; box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover{ transform: translateY(-3px); box-shadow: 0 12px 28px rgba(2,34,31,.1); border-color: #d8e9e6; }
.card img{ width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.card .card-body{ padding: 12px 14px 16px; }
.card .role{ margin: 0 0 8px; color: var(--brand-3); font-weight: 700; }

/* Bullets (format section) */
.bullets{ grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 10px; }
.bullet{
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px; text-align: center; box-shadow: var(--shadow);
}
.bullet h3{ color: var(--brand-2); margin: 0 0 6px; }

/* Agenda timeline */
.agenda-columns{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.timeline{
  list-style: none;
  margin: 8px 0 0;
  padding: 0 0 0 14px;
  border-left: 3px solid #cfe7e3;
}
.timeline-item{
  position: relative;
  margin: 0 0 14px;
  padding: 10px 12px 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px 12px;
  align-items: start;
}
.timeline-item::before{
  content: "";
  position: absolute;
  left: -24px;
  top: 16px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand-2);
  box-shadow: 0 0 0 3px #e9f6f3;
}
.timeline-item time{
  display: inline-block;
  margin-bottom: 0;
  grid-column: 1;
  grid-row: 1 / span 2;
  font-weight: 800;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.timeline-item h4{ margin: 0 0 2px; grid-column: 2; }
.timeline-item .meta{ margin: 0; color: var(--muted); font-size: .95rem; grid-column: 2; }

@media (min-width: 980px){
  .agenda-columns{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .timeline-item{
    margin: 0;
  }
}

/* Venue figure */
.venue-layout{
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
  gap: 16px;
  align-items: stretch;
}
.venue-details{
  background: linear-gradient(180deg, #f2fbf8, #ffffff);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.venue-details p{ margin-bottom: 10px; }
.venue-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.map-text-link{
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}
.map-text-link:hover{ text-decoration: underline; }
.btn-small{
  padding: 9px 14px;
  border-radius: 10px;
  font-size: .92rem;
}
.figure{ margin: 0; }
.figure img{ width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.figure figcaption{ color: var(--muted); font-size: .92rem; margin-top: 8px; text-align: center; }
.venue-figure{
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
}
.venue-photo{
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 860px){
  .venue-layout{
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .venue-figure{ max-width: none; }
  .venue-photo{ min-height: 220px; }
}

/* Callout */
.callout{
  background: linear-gradient(180deg, #f2fbf8, #ffffff);
  border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow);
}
.dates{
  margin: 12px 0 14px;
  display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.date-card{
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px; box-shadow: var(--shadow);
}

/* Submission form */
.submit-form-grid{ grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
#synopsisForm{
  margin-top: 12px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
#synopsisForm label{
  display: block;
  margin: 0 0 6px;
  font-weight: 600;
}
#synopsisForm input,
#synopsisForm textarea{
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cfe0e4;
  border-radius: 10px;
  font: inherit;
  color: var(--text);
  background: #fff;
}
#synopsisForm input:focus,
#synopsisForm textarea:focus{
  outline: 2px solid #b7e4dd;
  outline-offset: 1px;
  border-color: var(--brand-3);
}

/* Lists */
.people{ padding-left: 18px; }
.people li{ margin: 8px 0; }

/* Footer */
.footer{
  text-align: center; color: var(--muted);
  padding: 28px 16px; border-top: 1px solid var(--border); background: #fbfefd;
}

/* Images default responsive */
img{ max-width: 100%; height: auto; display: block; }
a.link{ color: var(--brand); text-decoration: none; }
a.link:hover{ text-decoration: underline; }