:root {
  --tempo-blue: #305979;
  --tempo-blue-dark: #111820;
  --tempo-ink: #17232d;
  --tempo-yellow: #f9b233;
  --tempo-paper: #f8f7f4;
  --tempo-white: #ffffff;
  --shadow-soft: 0 18px 50px rgba(48, 89, 121, 0.08);
  --shadow-strong: 0 24px 80px rgba(48, 89, 121, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--tempo-paper);
  color: var(--tempo-ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button,
a.button {
  -webkit-tap-highlight-color: transparent;
}

.page {
  min-height: 100vh;
  overflow: hidden;
}

.container {
  width: min(100% - 40px, 1180px);
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
}

.brand-mark svg {
  width: 31px;
  height: 31px;
}

.brand-name {
  display: block;
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-context {
  display: block;
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  font-weight: 700;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    opacity 180ms ease;
}

.button:hover {
  transform: translateY(-1px) scale(1.02);
}

.button:active {
  transform: scale(0.985);
}

.button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(249, 178, 51, 0.52);
  outline-offset: 3px;
}

.button-primary {
  background: var(--tempo-yellow);
  color: #171717;
  padding: 15px 24px;
}

.button-dark {
  background: var(--tempo-blue);
  color: var(--tempo-white);
  padding: 14px 20px;
}

.button-dark:hover {
  background: #25465f;
}

.button-ghost {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.09);
  color: var(--tempo-white);
  padding: 14px 20px;
  backdrop-filter: blur(14px);
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
}

.button-muted {
  border: 1px solid rgba(48, 89, 121, 0.14);
  background: rgba(48, 89, 121, 0.05);
  color: var(--tempo-blue);
  padding: 14px 22px;
}

.button[disabled] {
  cursor: not-allowed;
  opacity: 0.62;
}

.button[disabled]:hover {
  transform: none;
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 18px;
  border-radius: 999px;
  background: var(--tempo-yellow);
  color: #171717;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-eyebrow {
  margin: 0 0 15px;
  color: rgba(48, 89, 121, 0.72);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section-eyebrow.on-dark {
  color: var(--tempo-yellow);
}

.section-title {
  margin: 0;
  color: var(--tempo-blue);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.98;
}

.section-title.on-dark {
  color: var(--tempo-white);
}

.section-copy {
  max-width: 680px;
  margin: 20px 0 0;
  color: rgba(23, 35, 45, 0.68);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.62;
}

.section-copy.on-dark {
  color: rgba(255, 255, 255, 0.73);
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--tempo-blue-dark);
  color: var(--tempo-white);
}

.hero::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 14%, rgba(249, 178, 51, 0.28), transparent 26%),
    radial-gradient(circle at 82% 72%, rgba(48, 89, 121, 0.62), transparent 35%);
  content: "";
}

.hub-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 44px;
  align-items: end;
  padding-block: clamp(66px, 10vw, 112px) 86px;
}

.hero-copy {
  max-width: 760px;
}

.hero h1 {
  max-width: 850px;
  margin: 0;
  color: var(--tempo-paper);
  font-size: clamp(48px, 9.5vw, 100px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.94;
}

.hero-lede {
  max-width: 720px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 750;
  line-height: 1.58;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-media {
  position: relative;
  display: none;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 34px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.34);
}

.hero-media img,
.festival-card img,
.photo-stage img,
.detail-hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after,
.festival-card-image::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.08)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.34), transparent 72%);
  content: "";
}

.hero-media-caption {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: 28px;
}

.hero-media-caption p:first-child {
  margin: 0;
  color: var(--tempo-yellow);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-media-caption p:last-child {
  max-width: 420px;
  margin: 12px 0 0;
  font-size: 25px;
  font-weight: 900;
  line-height: 1.12;
}

.section {
  padding-block: 78px;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 38px;
}

.section-header .section-copy {
  max-width: 460px;
  margin-top: 0;
  font-size: 15px;
}

.festival-grid {
  display: grid;
  gap: 24px;
}

.festival-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: var(--tempo-white);
  box-shadow: var(--shadow-soft);
  transition:
    transform 260ms ease,
    box-shadow 260ms ease;
}

.festival-card:hover {
  box-shadow: 0 28px 80px rgba(48, 89, 121, 0.16);
  transform: translateY(-6px);
}

.festival-card-image {
  position: relative;
  height: 340px;
  overflow: hidden;
}

.festival-card-image img {
  transition: transform 700ms ease;
}

.festival-card:hover img {
  transform: scale(1.045);
}

.status {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.status-open {
  background: var(--tempo-yellow);
  color: #171717;
}

.status-soon {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.32);
  color: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(12px);
}

.festival-card-content {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 24px;
  color: var(--tempo-white);
}

.festival-location {
  display: inline-flex;
  width: fit-content;
  margin: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  color: var(--tempo-yellow);
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}

.festival-card h2 {
  margin: 12px 0 0;
  font-size: 32px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.02;
}

.festival-meta,
.festival-missions {
  margin: 11px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 750;
}

.festival-missions {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.63);
}

.application-counter {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 900;
  line-height: 1;
}

.application-counter strong {
  display: inline-flex;
  min-width: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--tempo-yellow);
  color: #171717;
  padding: 8px 10px;
  font-size: 15px;
}

.application-counter span {
  font-size: 13px;
}

.application-counter-card {
  margin-top: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.82);
  padding: 6px 13px 6px 6px;
  backdrop-filter: blur(14px);
}

.application-counter-hero {
  margin-top: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
  padding: 7px 15px 7px 7px;
  backdrop-filter: blur(14px);
}

.volunteer-reward {
  width: min(100%, 560px);
  margin-top: 18px;
  border: 2px solid rgba(249, 178, 51, 0.92);
  border-radius: 22px;
  background: linear-gradient(135deg, #f9b233, #ffd86b);
  color: #171717;
  padding: 18px 20px;
  box-shadow: 0 18px 50px rgba(249, 178, 51, 0.28);
}

.volunteer-reward p {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.volunteer-reward strong {
  display: block;
  font-size: clamp(25px, 4.5vw, 38px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.98;
}

.volunteer-reward span {
  display: block;
  max-width: 480px;
  margin-top: 10px;
  color: rgba(23, 23, 23, 0.76);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.42;
}

.festival-card .button {
  margin-top: 22px;
}

.detail-hero {
  position: relative;
  min-height: 88svh;
  overflow: hidden;
  background: var(--tempo-blue);
  color: var(--tempo-white);
}

.detail-hero-bg {
  position: absolute;
  inset: 0;
  transform: scale(1.04);
}

.detail-hero::before,
.detail-hero::after {
  position: absolute;
  inset: 0;
  content: "";
}

.detail-hero::before {
  background:
    linear-gradient(90deg, rgba(13, 24, 34, 0.96), rgba(23, 35, 45, 0.82), rgba(0, 0, 0, 0.58)),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 34%);
}

.detail-hero::after {
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.36)),
    radial-gradient(circle at 18% 42%, rgba(0, 0, 0, 0.54), transparent 48%);
}

.header-actions {
  display: none;
  align-items: center;
  gap: 12px;
}

.detail-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: calc(88svh - 90px);
  align-items: center;
  padding-block: 16px 54px;
}

.detail-badge {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(16, 24, 32, 0.52);
  color: rgba(255, 255, 255, 0.96);
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}

.detail-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.98);
  font-size: 16px;
  font-weight: 900;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.72);
}

.detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.detail-meta .icon {
  color: var(--tempo-yellow);
}

.detail-note {
  max-width: 560px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.62;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.72);
}

.mission-grid,
.benefit-grid,
.info-grid {
  display: grid;
  gap: 18px;
}

.content-grid-spaced {
  margin-top: 42px;
}

.mission-card,
.benefit-card,
.info-item {
  background: var(--tempo-white);
  box-shadow: var(--shadow-soft);
}

.mission-card {
  border: 1px solid rgba(48, 89, 121, 0.1);
  border-radius: 26px;
  padding: 24px;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.mission-card:hover,
.mission-card.is-selected {
  border-color: rgba(249, 178, 51, 0.9);
  box-shadow: 0 18px 52px rgba(48, 89, 121, 0.12);
}

.mission-card:hover {
  transform: translateY(-3px);
}

.mission-card::before {
  display: block;
  width: 56px;
  height: 8px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: var(--tempo-yellow);
  content: "";
}

.mission-card h3,
.benefit-card h3 {
  margin: 0;
  color: var(--tempo-blue);
  font-size: 22px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.12;
}

.mission-card p,
.benefit-card p {
  margin: 14px 0 0;
  color: rgba(23, 35, 45, 0.63);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
}

.mission-card .button {
  margin-top: 22px;
}

.blue-band,
.gallery-band {
  background: var(--tempo-blue);
  color: var(--tempo-white);
}

.blue-band-layout {
  display: grid;
  gap: 36px;
  align-items: center;
}

.field-note {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.1);
  padding: 24px;
  backdrop-filter: blur(14px);
}

.field-note > p {
  margin: 0;
  color: var(--tempo-white);
  font-size: 21px;
  font-weight: 950;
  line-height: 1.24;
}

.field-note-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.field-note-list span {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.74);
  padding: 14px;
  font-size: 14px;
  font-weight: 800;
}

.gallery-band {
  background: var(--tempo-blue-dark);
}

.gallery-header {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 28px;
}

.gallery-controls {
  display: flex;
  gap: 12px;
}

.round-button {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--tempo-white);
  cursor: pointer;
  backdrop-filter: blur(14px);
  transition: background 180ms ease;
}

.round-button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.photo-stage {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 34px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.photo-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 700ms ease;
}

.photo-slide.is-active {
  opacity: 1;
}

.photo-stage::before,
.photo-stage::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
}

.photo-stage::before {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.32), transparent);
}

.photo-stage::after {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62), transparent 58%);
}

.photo-copy {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 520px;
  max-width: 690px;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(28px, 5vw, 48px);
}

.photo-label {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 18px;
  border-radius: 999px;
  background: var(--tempo-yellow);
  color: #171717;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.photo-caption {
  margin: 0;
  color: var(--tempo-white);
  font-size: clamp(21px, 3vw, 28px);
  font-weight: 950;
  line-height: 1.22;
}

.photo-support {
  max-width: 610px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 17px;
  font-weight: 750;
  line-height: 1.56;
}

.gallery-dots {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition:
    width 180ms ease,
    background 180ms ease;
}

.gallery-dot.is-active {
  width: 36px;
  background: var(--tempo-yellow);
}

.benefit-card {
  border-radius: 26px;
  padding: 24px;
}

.benefit-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 16px;
  background: rgba(249, 178, 51, 0.16);
  color: var(--tempo-yellow);
  font-size: 25px;
  font-weight: 950;
}

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.white-section {
  background: var(--tempo-white);
}

.info-layout,
.form-layout {
  display: grid;
  gap: 38px;
  align-items: start;
}

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

.info-item {
  border-radius: 20px;
  background: var(--tempo-paper);
  box-shadow: none;
  padding: 20px;
}

.info-item dt {
  margin: 0;
  color: rgba(48, 89, 121, 0.58);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.info-item dd {
  margin: 12px 0 0;
  color: var(--tempo-ink);
  font-size: 18px;
  font-weight: 950;
  line-height: 1.22;
}

.application-form {
  border: 1px solid rgba(48, 89, 121, 0.1);
  border-radius: 28px;
  background: var(--tempo-white);
  box-shadow: var(--shadow-strong);
  padding: clamp(20px, 4vw, 32px);
}

.form-steps {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
  border-radius: 24px;
  background: var(--tempo-paper);
  padding: 18px;
}

.form-steps p {
  margin: 0;
}

.form-step-label {
  color: rgba(48, 89, 121, 0.5);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.form-step-title {
  margin-top: 7px;
  color: var(--tempo-blue);
  font-size: 14px;
  font-weight: 950;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.field {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 16px;
  background: var(--tempo-paper);
  color: var(--tempo-ink);
  padding: 15px 18px;
  font-size: 15px;
  font-weight: 750;
}

textarea.field {
  min-height: 132px;
  resize: vertical;
}

.field::placeholder {
  color: rgba(23, 35, 45, 0.42);
}

.mission-confirmation {
  display: none;
  border: 1px solid rgba(249, 178, 51, 0.32);
  border-radius: 16px;
  background: rgba(249, 178, 51, 0.11);
  color: var(--tempo-blue);
  padding: 15px 18px;
  font-size: 14px;
  font-weight: 900;
}

.mission-confirmation.is-visible {
  display: block;
}

.upload-field {
  display: flex;
  min-height: 225px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(48, 89, 121, 0.16);
  border-radius: 24px;
  background: var(--tempo-paper);
  padding: 30px 22px;
  text-align: center;
  transition:
    background 180ms ease,
    border-color 180ms ease;
}

.upload-field:hover {
  border-color: rgba(249, 178, 51, 0.72);
  background: #fffdf8;
}

.upload-field input {
  display: none;
}

.upload-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 50%;
  background: rgba(249, 178, 51, 0.15);
  color: var(--tempo-yellow);
  font-size: 30px;
  font-weight: 950;
}

.upload-title {
  margin: 18px 0 0;
  color: var(--tempo-blue);
  font-size: 19px;
  font-weight: 950;
  line-height: 1.18;
}

.upload-copy {
  max-width: 520px;
  margin: 10px 0 0;
  color: rgba(23, 35, 45, 0.56);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.52;
}

.upload-hint {
  margin: 14px 0 0;
  color: rgba(48, 89, 121, 0.42);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 22px;
  border: 1px solid rgba(48, 89, 121, 0.1);
  border-radius: 16px;
  background: #fffdf8;
  padding: 15px;
  color: rgba(23, 35, 45, 0.64);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.48;
}

.consent input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--tempo-yellow);
}

.form-submit {
  width: 100%;
  margin-top: 22px;
  box-shadow: 0 14px 40px rgba(249, 178, 51, 0.24);
}

.form-footnote,
.form-message {
  margin: 14px 0 0;
  text-align: center;
  color: rgba(23, 35, 45, 0.46);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.48;
}

.form-message {
  display: none;
  border-radius: 14px;
  background: rgba(48, 89, 121, 0.07);
  color: var(--tempo-blue);
  padding: 12px;
  font-size: 13px;
  font-weight: 900;
}

.form-message.is-visible {
  display: block;
}

.detail-footer {
  background: var(--tempo-paper);
  color: var(--tempo-ink);
  padding-block: 54px;
}

.footer-panel {
  border: 1px solid rgba(48, 89, 121, 0.1);
  border-radius: 28px;
  background: var(--tempo-white);
  box-shadow: var(--shadow-soft);
  padding: clamp(26px, 4vw, 36px);
}

.footer-layout {
  display: grid;
  gap: 28px;
  align-items: center;
}

.footer-title {
  margin: 14px 0 0;
  color: var(--tempo-blue);
  font-size: clamp(27px, 4vw, 42px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.03;
}

.footer-copy {
  max-width: 760px;
  margin: 16px 0 0;
  color: rgba(23, 35, 45, 0.64);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.58;
}

.footer-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-only {
  display: inline-flex;
}

.desktop-only {
  display: none;
}

@media (min-width: 640px) {
  .detail-meta {
    flex-direction: row;
    gap: 26px;
  }

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

  .span-2 {
    grid-column: span 2;
  }

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

  .footer-actions {
    flex-direction: row;
  }
}

@media (min-width: 760px) {
  .container {
    width: min(100% - 80px, 1180px);
  }

  .section {
    padding-block: 92px;
  }

  .section-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

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

  .mobile-only {
    display: none;
  }

  .desktop-only,
  .header-actions {
    display: inline-flex;
  }

  .gallery-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .hub-hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .hero-media {
    display: block;
  }

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

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

  .blue-band-layout {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .info-layout {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .form-layout {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .footer-layout {
    grid-template-columns: 1fr auto;
  }

  .footer-actions {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    padding-block: 16px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .brand-name {
    font-size: 16px;
  }

  .hero h1 {
    font-size: clamp(43px, 13vw, 58px);
  }

  .hero-actions .button {
    width: 100%;
  }

  .festival-card-image {
    height: 320px;
  }

  .section-title {
    font-size: 38px;
  }

  .photo-stage,
  .photo-copy {
    min-height: 460px;
  }

  .gallery-dots {
    right: 18px;
    bottom: 18px;
  }
}


/* Mobile polish — avoid long festival titles and badges overlapping on previews */
.detail-hero .hero-copy {
  max-width: 760px;
}

.detail-hero .hero-copy h1 {
  max-width: 820px;
  margin: 0;
  color: var(--tempo-paper);
  font-size: clamp(44px, 8.8vw, 92px);
  font-weight: 950;
  letter-spacing: -0.035em;
  line-height: 0.96;
  text-wrap: balance;
  overflow-wrap: anywhere;
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.78);
}

.detail-hero .brand-name,
.detail-hero .brand-context,
.detail-hero .hero-lede {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.74);
}

.detail-hero .button-ghost {
  background: rgba(16, 24, 32, 0.48);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.detail-badge {
  max-width: 100%;
  white-space: normal;
  line-height: 1.35;
}

@media (max-width: 520px) {
  .detail-hero {
    min-height: auto;
  }

  .detail-hero-content {
    min-height: auto;
    align-items: flex-start;
    padding-block: 24px 56px;
  }

  .detail-hero .hero-copy h1 {
    font-size: clamp(42px, 11.5vw, 50px);
    line-height: 1.03;
    letter-spacing: -0.04em;
  }

  .hero-lede {
    margin-top: 22px;
    font-size: 22px;
    line-height: 1.34;
  }

  .detail-meta {
    margin-top: 24px;
    gap: 13px;
    font-size: 18px;
    line-height: 1.28;
  }

  .detail-meta span {
    align-items: flex-start;
  }

  .application-counter-hero {
    margin-top: 22px;
  }

  .detail-note {
    margin-top: 24px;
    font-size: 17px;
    line-height: 1.48;
  }

  .festival-card h2 {
    font-size: 30px;
    line-height: 1.05;
    text-wrap: balance;
  }

  .festival-card-content {
    padding: 22px;
  }
}

/* Final mobile cleanup — prevent badge/title overlaps */
.status {
  max-width: calc(100% - 40px);
  line-height: 1.2;
  white-space: normal;
  text-wrap: balance;
}

.festival-card-image {
  min-height: 440px;
}

.festival-card-content {
  padding-top: 104px;
}

.festival-card h2 {
  max-width: 100%;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.detail-hero .mobile-only {
  margin-bottom: 16px;
}

.detail-badge {
  margin-top: 10px;
  margin-bottom: 24px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.detail-hero .hero-copy h1 {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

@media (max-width: 760px) {
  .festival-card-image {
    height: 470px;
    min-height: 470px;
  }

  .festival-card-content {
    padding: 116px 22px 22px;
  }

  .festival-location {
    font-size: 11px;
    letter-spacing: 0.14em;
    line-height: 1.25;
  }

  .festival-card h2 {
    font-size: clamp(28px, 9vw, 38px);
    line-height: 1.02;
  }

  .status {
    top: 18px;
    left: 18px;
    padding: 9px 13px;
    font-size: 10px;
    letter-spacing: 0.13em;
  }

  .detail-hero-content {
    padding-top: 22px;
  }

  .detail-badge {
    display: flex;
    width: 100%;
    border-radius: 26px;
    padding: 13px 16px;
    font-size: 10px;
    letter-spacing: 0.18em;
    line-height: 1.35;
  }

  .detail-hero .hero-copy h1 {
    font-size: clamp(39px, 10.8vw, 48px);
    line-height: 1.04;
    letter-spacing: -0.035em;
  }
}

@media (max-width: 390px) {
  .festival-card-image {
    height: 500px;
    min-height: 500px;
  }

  .festival-card h2 {
    font-size: 30px;
  }

  .application-counter-card span {
    font-size: 12px;
  }

  .detail-hero .hero-copy h1 {
    font-size: 38px;
  }
}
