/* ============================================
   FONTS
   ============================================ */

@font-face {
  font-family: "Superline Regular";
  src: url("Superline-Regular.ttf") format("truetype");
}

@font-face {
  font-family: 'Superline';
  src: url('Superline-Regular.ttf') format('truetype');
  font-weight: normal;

}

/* ============================================
   RESET & GLOBAL
   ============================================ */

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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* ============================================
   DESIGN TOKENS (Root)
   ============================================ */

:root {
  /* Colors */
  --paper: oklch(0.972 0.012 78);
  --paper-2: oklch(0.945 0.018 75);
  --beige: oklch(0.882 0.024 72);
  --beige-deep: oklch(0.78 0.035 65);
  --ink: oklch(0.20 0.012 60);
  --ink-soft: oklch(0.34 0.012 60);
  --rule: oklch(0.20 0.012 60 / 0.18);
  --rule-soft: oklch(0.20 0.012 60 / 0.10);
  --terracotta: oklch(0.585 0.135 42);
  --terracotta-deep: oklch(0.48 0.13 38);

  /* Typography */
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  /* Spacing */
  --pad-x: clamp(20px, 5vw, 80px);
}

/* ============================================
   BASE ELEMENTS
   ============================================ */

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

em {
  color: var(--terracotta);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.serif {
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.mono {
  font-family: var(--mono);
  font-size: 11px;
}

.ital {
  color: var(--terracotta);
}

.body {
  font-size: 15px;
  line-height: 1.55;
}

.body-large {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.display {
  font-family: var(--sans);
  font-size: clamp(64px, 12vw, 220px);
  line-height: .92;
}

.h-display {
  font-family: var(--sans);
  font-size: clamp(40px, 6.5vw, 60px);
  line-height: 1.2;
  text-transform: uppercase;
}

.h-section {
  font-family: var(--sans);
  font-size: clamp(40px, 6.5vw, 60px);
  line-height: 1.2;
  text-transform: uppercase
}

.lede {
  font-family: var(--sans);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.015em;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ============================================
   LAYOUT
   ============================================ */

.section {
  padding: clamp(80px, 10vw, 160px) var(--pad-x);
}

.wrap {
  margin: 0 auto;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(24px, 3vw, 48px);
}

.section-head {
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head .num {
  font-family: var(--mono);
  color: var(--ink-soft);
  margin-bottom: 10px;
}

/* ============================================
   COMPONENTS: NAVIGATION
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
  background: color-mix(in oklab, var(--paper) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule-soft);
}

.nav-inner {
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad-x);
}

.nav-mark {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.nav-mark span {
  font-family: 'Superline', var(--sans);
  font-size: 42px;
  line-height: 1;
  text-transform: uppercase;
}

.nav-mark .amp {

  color: var(--terracotta);
}

.nav-mark .ed {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-soft);
}

.nav-links {
  display: flex;
  gap: 28px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}

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

.nav-social {
  font-size: 15px;
}

.nav-cta {
  font-family: var(--mono);
  font-size: 11px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 999px;
  transition: background .2s ease;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform .3s ease, opacity .3s ease;
}

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

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

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

.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: var(--paper);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  z-index: 99;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}

.nav-mobile.active {
  transform: translateX(0);
}

.nav-mobile a {
  font-size: 18px;
  font-family: var(--mono);
  text-transform: uppercase;
}

/* ============================================
   COMPONENTS: HERO
   ============================================ */

.hero {
  position: relative;
  padding: 180px var(--pad-x) clamp(60px, 8vw, 120px);
  display: flex;
  flex-direction: column;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: clamp(60px, 8vw, 100px);
}

.hero-meta .cell .k {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.hero-meta .cell .v {
  font-family: var(--sans);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.15;
}

.hero-title {
  font-family: 'Superline', var(--serif);
  font-size: clamp(72px, 12vw, 200px);
  line-height: .88;
  margin-bottom: clamp(40px, 5vw, 60px);
}

.hero-title .line {
  display: block;
}

.hero-title .amp {

  color: var(--terracotta);
}

.hero-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.hero-foot .theme {
  font-family: var(--sans);
  font-size: clamp(28px, 3vw, 34px);
  line-height: 1.2;
  color: var(--terracotta);
  text-transform: uppercase
}

.hero-foot .theme small {
  display: block;
  font-family: var(--mono);
  font-size: 14px;

  color: var(--ink-soft);
  margin-bottom: 14px;
}

.hero-foot .theme em {
  color: var(--ink);

}

.hero-rule {
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform-origin: left;
  margin-top: clamp(60px, 8vw, 100px);
}

/* ============================================
   COMPONENTS: MANIFESTO
   ============================================ */

.manifesto-quote {
  font-family: var(--sans);
  font-size: clamp(34px, 4.6vw, 34px);
  line-height: 1.2;
  margin-bottom: 24px;
  text-transform: uppercase;
}

/* ============================================
   COMPONENTS: TEMA
   ============================================ */

.tema-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  margin-bottom: clamp(60px, 8vw, 100px);
}

.tema-big {
    font-family: var(--sans);
  font-size: clamp(48px, 8vw, 72px);
  line-height: 1.2;
  text-transform:uppercase
}

.tema-big .alt {
  color: var(--terracotta);
}

.tema-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.tema-grid .cell .num {
  font-family: var(--mono);
  color: var(--terracotta);
  margin-bottom: 14px;
}

.tema-grid .cell h3 {
  font-family: var(--sans);
  font-size: 28px;
  line-height: 1.1;
  margin-bottom: 14px;
  letter-spacing: -0.015em;
}

.tema-grid .cell p {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ============================================
   COMPONENTS: PROGRAMMA
   ============================================ */

.program-list {
  border-top: 1px solid var(--ink);
}

.program-row {
  display: grid;
  grid-template-columns: 140px 1fr 1.6fr 200px;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
  transition: padding-left .35s ease, background .35s ease;
}

.program-row:hover {
  background: var(--beige);
  padding-left: 12px;
}

.program-row .time {
  font-family: var(--mono);
  color: var(--ink-soft);
}

.program-row .tag {
  font-family: var(--mono);
  color: var(--terracotta);
}

.program-row .title {
  font-family: var(--sans);
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.program-row .speaker {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-soft);
  text-align: right;
}

/* ============================================
   COMPONENTS: SPEAKERS
   ============================================ */

.speakers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.speaker-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.speaker-card .ph {
  aspect-ratio: 4/5;
}

.speaker-card .name {
  font-family: var(--sans);
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.speaker-card .role {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-soft);
}

.speaker-card .talk {
  font-size: 14px;
  color: var(--ink-soft);
}

/* ============================================
   COMPONENTS: PLACEHOLDER
   ============================================ */

.ph {
  aspect-ratio: 4/5;
}

.placeholder {
  position: relative;
  background: var(--beige);
  background-image: repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in oklab, var(--ink) 6%, transparent) 14px 15px);
  border: 1px solid var(--rule);
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
}

.placeholder.tall {
  aspect-ratio: 4/5;
}

.placeholder.wide {
  aspect-ratio: 16/9;
}

.placeholder.square {
  aspect-ratio: 1/1;
}

.placeholder span {
  background: var(--paper);
  padding: 8px 12px;
  border: 1px solid var(--rule);
}

/* ============================================
   COMPONENTS: AWARDS
   ============================================ */

.awards {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(80px, 10vw, 160px) var(--pad-x);
  position: relative;
  overflow: hidden;
}

.awards .eyebrow {
  color: color-mix(in oklab, var(--paper) 65%, transparent);
}

.awards .h-section {
  color: var(--paper);
}

.awards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.awards-grid p {
  color: color-mix(in oklab, var(--paper) 75%, transparent);
  max-width: 52ch;
}

.awards-pull {
  font-family: var(--sans);
  font-size: clamp(34px, 4.4vw, 50px);
  line-height: 1.2;
  margin-top: clamp(60px, 8vw, 110px);
  max-width: 22ch;
}

.awards-pull .alt {

  color: var(--terracotta);
}

.section-head--dark {
  border-color: color-mix(in oklab, var(--paper) 25%, transparent);
}

/* ============================================
   COMPONENTS: AUDIENCE
   ============================================ */

.audience {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
}

.audience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.audience-tags span {
  font-family: var(--mono);
  font-size: 11px;
  border: 1px solid var(--rule);
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--paper);
}

.audience-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.audience-stats .stat {
  border-top: 1px solid var(--ink);
  padding-top: 16px;
}

.audience-stats .stat .v {
  font-family: var(--sans);
  font-size: clamp(40px, 4vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1;
}

.audience-stats .stat .l {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-soft);
  margin-top: 6px;
}

/* ============================================
   COMPONENTS: PARTNERS
   ============================================ */

.partners-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.partners-list .p {
  background: var(--paper);
  padding: 56px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  transition: background .25s ease;
}

.partners-list .p img {
  width: 95%;
  height: auto;
  object-fit: contain;
}

.partners-list .p:nth-child(1) img,
.partners-list .p:nth-child(3) img {
  width: 65%;
}

.partners-list .p:hover {
  background: var(--beige);
}



/* ============================================
   COMPONENTS: SEDE
   ============================================ */

.sede {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: stretch;
}

.sede .ph {
  aspect-ratio: 4/5;
}

.sede .info h3 {
  font-family: var(--sans);
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.sede .info h3 .ital {

  color: var(--terracotta);
}

.sede .meta-rows {
  margin-top: 32px;
  border-top: 1px solid var(--rule);
}

.sede .meta-rows .row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
}

.sede .meta-rows .row .k {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-soft);
  padding-top: 4px;
}

/* ============================================
   COMPONENTS: GALLERY
   ============================================ */

.gallery-grid {
  column-count: 5;
  column-gap: 16px;
}

.gallery-grid img {
  width: 100%;
  display: block;
  margin-bottom: 16px;
  cursor: pointer;
  transition: opacity .3s ease;
}

.gallery-grid img:hover {
  opacity: .85;
}

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  z-index: 201;
}

@media (max-width: 880px) {
  .gallery-grid {
    column-count: 2;
  }
}

@media (max-width: 560px) {
  .gallery-grid {
    column-count: 1;
  }
}

/* ============================================
   COMPONENTS: SPONSOR
   ============================================ */

.sponsor {
  background: var(--terracotta);
  color: var(--paper);
  padding: clamp(80px, 10vw, 140px) var(--pad-x);
}

.sponsor .eyebrow {
  color: color-mix(in oklab, var(--paper) 75%, transparent);
}

.sponsor .h-section {
  color: var(--paper);
}

.sponsor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  margin-top: clamp(40px, 5vw, 64px);
  align-items: start;
}

.sponsor-grid p {
  color: color-mix(in oklab, var(--paper) 90%, transparent);
  max-width: 50ch;
}

.sponsor-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sponsor-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid color-mix(in oklab, var(--paper) 35%, transparent);
  font-family: var(--sans);
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.sponsor-list li:last-child {
  border-bottom: 1px solid color-mix(in oklab, var(--paper) 35%, transparent);
}

.sponsor-list li .n {
  font-family: var(--mono);
  font-size: 11px;
  padding-top: 10px;
  color: color-mix(in oklab, var(--paper) 75%, transparent);
}

/* ============================================
   COMPONENTS: BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
  transition: transform .2s ease, background .2s ease, color .2s ease;
  margin-top: 28px;
}

.btn:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn .arrow {
  transition: transform .2s ease;
}

.btn:hover .arrow {
  transform: translateX(4px);
}

.btn--inverse {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn--inverse:hover {
  background: var(--paper);
  color: var(--ink);
}

/* ============================================
   COMPONENTS: CONTACT
   ============================================ */

.contact {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.contact .h-display a {
  display: inline-block;
}

.contact .h-display a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

.contact-form {
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-soft);
  letter-spacing: .08em;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 8px 0;
  outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--ink);
}

.contact-form button {
  font-family: var(--mono);
  font-size: 11px;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  padding: 16px 22px;
  border-radius: 999px;
  cursor: pointer;
  margin-top: 12px;
  transition: background .2s ease;
}

.contact-form button:hover {
  background: var(--terracotta);
}

/* ============================================
   COMPONENTS: FOOTER
   ============================================ */

.footer {
  border-top: 1px solid var(--rule);
  padding: 40px var(--pad-x);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
}

.footer .center {
  text-align: center;
}

.footer .right {
  text-align: right;
}

.footer .tremil {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer .tremil img {
  height: auto;
  width: auto;
  opacity: .8;
}

/* ============================================
   ANIMATIONS / REVEAL
   ============================================ */

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

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

.reveal-rule {
  transform: scaleX(0);
  transition: transform 1.1s cubic-bezier(.2, .8, .2, 1);
}

.reveal-rule.is-in {
  transform: scaleX(1);
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--terracotta);
  border-radius: 999px;
  vertical-align: middle;
  margin: 0 10px 4px;
}

/* ============================================
   MEDIA QUERIES
   ============================================ */

@media (max-width: 1000px) {
  .speakers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 880px) {
  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 101;
  }

  .nav-links {
    display: none;
  }

  .nav-mobile {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

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

  .hero-foot,
  .tema-hero,
  .awards-grid,
  .audience,
  .sponsor-grid,
  .sede,
  .contact {
    grid-template-columns: 1fr;
  }

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

  .tema-big {
    font-size: clamp(36px, 6vw, 48px);
  }

  .program-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .program-row .time {
    font-size: 11px;
    margin-bottom: 4px;
  }

  .program-row .tag {
    display: none;
  }

  .program-row .title {
    font-size: 18px;
  }

  .program-row .speaker {
    text-align: left;
    font-size: 13px;
  }
}

@media (max-width: 720px) {
  .hero-meta {
    grid-template-columns: 1fr;
  }

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

  .footer {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .footer .center,
  .footer .right {
    text-align: left;
  }

  .partners-list {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .speakers-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-rule {
    opacity: 1;
    transform: none;
  }
}

#awards > div.awards-grid > div > a {display: none !important}
#awards > div.section-head.section-head--dark.reveal.is-in > div.num {color: var(--paper) !important}
