:root {
  --white: #fff;
  --coral: #ff4f61;
  --yellow: #e7ec27;
  --blue: #abcdf0;
  --black: #18110c;
  --line: rgba(24,17,12,.32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: "IBM Plex Mono", monospace;
  line-height: 1.55;
}

a { color: inherit; }
img { max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 12px clamp(18px, 3vw, 42px);
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--black);
  backdrop-filter: blur(10px);
}

.brand img {
  width: 68px;
  height: 48px;
  object-fit: contain;
  display: block;
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  text-transform: uppercase;
}

nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-cta {
  background: var(--black);
  color: var(--white);
  padding: 11px 15px;
  text-decoration: none !important;
}

main { overflow: hidden; }

.page-sheet {
  position: relative;
  width: min(1480px, calc(100% - 36px));
  margin: 18px auto;
  border: 1px solid var(--black);
  box-shadow: 8px 8px 0 var(--black);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(28px, 5vw, 72px);
  background: var(--white);
}

.hero-copy { max-width: 720px; }
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual img {
  display: block;
  width: 100%;
  max-height: 650px;
  object-fit: contain;
}

h1, h2, p { margin-top: 0; }
h1 {
  margin-bottom: 20px;
  font-size: clamp(42px, 5.3vw, 82px);
  line-height: 1.02;
  font-weight: 400;
  letter-spacing: -.045em;
}
h2 {
  font-size: clamp(30px, 4vw, 58px);
  line-height: 1.08;
  font-weight: 400;
  max-width: 1050px;
  letter-spacing: -.025em;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.festival-label {
  margin: 0 0 18px;
  font-size: clamp(17px, 1.6vw, 24px);
  font-weight: 500;
}

.hero-lead {
  max-width: 680px;
  margin-bottom: 22px;
  font-size: clamp(18px, 1.7vw, 25px);
}

.deadline {
  margin-bottom: 28px;
  font-size: clamp(15px, 1.5vw, 21px);
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 62px;
  padding: 17px 26px;
  text-decoration: none;
  text-transform: uppercase;
  border: 1px solid var(--black);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.button:hover {
  transform: translate(-3px,-3px);
  box-shadow: 6px 6px 0 var(--black);
}
.button-primary { background: var(--yellow); min-width: 250px; }
.button-primary:hover { background: var(--black); color: var(--white); }
.button-dark { background: var(--black); color: var(--white); min-width: 230px; }

.section {
  display: grid;
  grid-template-columns: 90px 1fr;
  min-height: 480px;
}
.section-number {
  padding: 28px 22px;
  font-size: 22px;
  border-right: 1px solid var(--black);
  writing-mode: vertical-rl;
}
.section-content { padding: clamp(44px, 6vw, 92px); }
.section-content > p {
  max-width: 960px;
  font-size: clamp(18px, 1.85vw, 24px);
}

.coral-sheet { background: var(--coral); }
.blue-sheet { background: var(--blue); }
.yellow-sheet { background: var(--yellow); }
.documents-sheet { background: var(--white); }

.dates-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--black);
  border-left: 1px solid var(--black);
}
.dates-grid article {
  min-height: 220px;
  padding: 24px;
  border-right: 1px solid var(--black);
  border-bottom: 1px solid var(--black);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.dates-grid span { text-transform: uppercase; font-size: 17px; }
.dates-grid strong { font-size: clamp(35px, 4vw, 64px); font-weight: 500; }

.text-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 100px);
}
.text-grid p {
  font-size: clamp(18px, 1.85vw, 23px);
  line-height: 1.7;
}

.document-list {
  border-top: 1px solid var(--black);
  margin-top: 40px;
}
.document-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--black);
  text-decoration: none;
  font-size: clamp(17px, 2vw, 27px);
}
.document-list a:hover .document-name { text-decoration: underline; text-underline-offset: 5px; }
.document-name { display: inline-flex; align-items: center; gap: 14px; }
.document-name svg {
  width: 28px;
  min-width: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.final-cta {
  margin-top: 70px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  padding: 34px;
  background: var(--yellow);
  border: 1px solid var(--black);
}
.final-cta h2 { margin-bottom: 0; }
.note { margin: 28px 0 0; font-size: 14px !important; }

footer {
  width: min(1480px, calc(100% - 36px));
  margin: 40px auto 24px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--black);
  font-size: 14px;
}
footer a { display: block; margin-bottom: 8px; }
footer p { margin-bottom: 8px; }

.socials {
  display: flex;
  gap: 18px;
  justify-content: flex-start;
}
.socials a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.socials a:hover span { text-decoration: underline; text-underline-offset: 4px; }
.socials svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.socials svg .fill { fill: currentColor; stroke: none; }
.gdpr { grid-column: 1 / -1; max-width: 900px; opacity: .7; }

/* MOBILE AND TABLET: desktop styles above remain unchanged */
@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .hero-visual img {
    width: 100%;
    max-height: 560px;
    object-fit: contain;
  }
}

@media (max-width: 860px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    line-height: 1.45;
  }

  nav a:not(.nav-cta) {
    display: none;
  }

  .site-header {
    gap: 12px;
    padding: 10px 14px;
  }

  .brand img {
    width: 58px;
    height: 42px;
  }

  .nav-cta {
    padding: 11px 14px;
    font-size: 12px;
    white-space: nowrap;
  }

  .page-sheet {
    width: calc(100% - 20px);
    margin: 10px auto;
    box-shadow: 4px 4px 0 var(--black);
  }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 30px;
    padding: 24px 24px 34px;
  }

  .hero-copy {
    width: 100%;
    max-width: none;
  }

  .hero-visual {
    width: 100%;
    min-height: 0;
  }

  .hero-visual img {
    width: 100%;
    max-width: 500px;
    max-height: 58vh;
    margin: 0 auto;
    object-fit: contain;
  }

  .eyebrow {
    font-size: 12px;
    letter-spacing: 0.08em;
  }

  .festival-label {
    margin-bottom: 14px;
    font-size: 17px;
    line-height: 1.35;
    text-wrap: balance;
  }

  h1 {
    max-width: 100%;
    margin-bottom: 22px;
    font-size: clamp(42px, 12vw, 64px);
    line-height: 0.98;
    letter-spacing: -0.055em;
    overflow-wrap: break-word;
    text-wrap: balance;
  }

  h2 {
    max-width: 100%;
    font-size: clamp(30px, 8.5vw, 46px);
    line-height: 1.08;
    letter-spacing: -0.035em;
    overflow-wrap: break-word;
    text-wrap: balance;
  }

  .hero-lead {
    max-width: 100%;
    margin-bottom: 22px;
    font-size: 19px;
    line-height: 1.5;
    text-wrap: pretty;
  }

  .deadline {
    margin-bottom: 26px;
    font-size: 16px;
    line-height: 1.55;
  }

  .button {
    width: 100%;
    min-width: 0;
    min-height: 58px;
    padding: 16px 18px;
    font-size: 15px;
  }

  .section {
    grid-template-columns: 46px minmax(0, 1fr);
    min-height: auto;
  }

  .section-number {
    padding: 20px 11px;
    font-size: 15px;
  }

  .section-content {
    min-width: 0;
    padding: 38px 24px 44px;
  }

  .section-content > p {
    max-width: 100%;
    font-size: 18px;
    line-height: 1.65;
    overflow-wrap: break-word;
    text-wrap: pretty;
  }

  .section-content h2 {
    margin-bottom: 34px;
  }

  .coral-sheet .section-content > p {
    font-size: 18px;
    line-height: 1.65;
  }

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

  .dates-grid article {
    min-height: 148px;
    padding: 24px 26px;
  }

  .dates-grid span {
    font-size: 16px;
  }

  .dates-grid strong {
    font-size: clamp(42px, 11vw, 58px);
    line-height: 1.05;
    overflow-wrap: normal;
  }

  .text-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .text-grid p {
    font-size: 18px;
    line-height: 1.65;
    overflow-wrap: break-word;
    text-wrap: pretty;
  }

  .document-list {
    margin-top: 30px;
  }

  .document-list a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 16px;
    padding: 24px 0;
    font-size: 17px;
    line-height: 1.45;
  }

  .document-name {
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
  }

  .document-name svg {
    width: 25px;
    min-width: 25px;
    margin-top: 3px;
  }

  .document-list b {
    white-space: nowrap;
    font-size: 16px;
  }

  .final-cta {
    margin-top: 48px;
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    padding: 28px 24px;
  }

  .final-cta h2 {
    font-size: clamp(34px, 10vw, 50px);
    line-height: 1.08;
  }

  .note {
    margin-top: 24px;
    font-size: 14px !important;
    line-height: 1.6;
  }

  footer {
    width: calc(100% - 32px);
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 48px;
    padding-top: 28px;
    font-size: 15px;
  }

  footer p,
  footer a {
    overflow-wrap: break-word;
  }

  .contacts a {
    font-size: 15px;
  }

  .socials {
    flex-direction: column;
    gap: 10px;
  }

  .gdpr {
    grid-column: auto;
    font-size: 14px;
    line-height: 1.65;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 8px 12px;
  }

  .brand img {
    width: 52px;
    height: 38px;
  }

  .nav-cta {
    padding: 10px 12px;
    font-size: 11px;
  }

  .page-sheet {
    width: calc(100% - 18px);
  }

  .hero {
    gap: 26px;
    padding: 20px 20px 30px;
  }

  .hero-visual img {
    max-height: 52vh;
  }

  h1 {
    font-size: clamp(39px, 11.5vw, 52px);
    line-height: 1;
  }

  h2 {
    font-size: clamp(28px, 8vw, 39px);
  }

  .festival-label {
    font-size: 16px;
  }

  .hero-lead {
    font-size: 17px;
  }

  .section {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .section-number {
    padding: 18px 9px;
    font-size: 14px;
  }

  .section-content {
    padding: 32px 20px 38px;
  }

  .section-content > p,
  .text-grid p,
  .coral-sheet .section-content > p {
    font-size: 16px;
    line-height: 1.65;
  }

  .dates-grid article {
    min-height: 132px;
    padding: 22px;
  }

  .dates-grid strong {
    font-size: clamp(38px, 10.5vw, 50px);
  }

  .document-list a {
    font-size: 16px;
  }

  .final-cta {
    padding: 24px 20px;
  }

  .contacts a {
    font-size: 14px;
  }
}
/* FINAL MOBILE TYPOGRAPHY FIX */

@media (max-width: 520px) {
  .hero h1 {
    width: 100%;
    max-width: 100%;
    font-size: 34px;
    line-height: 1.04;
    letter-spacing: -0.075em;
    overflow-wrap: normal;
    word-break: normal;
    text-wrap: wrap;
  }

  .hero-copy {
    min-width: 0;
    overflow: hidden;
  }
}

@media (max-width: 390px) {
  .hero h1 {
    font-size: 31px;
    letter-spacing: -0.08em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
