:root {
  color-scheme: light;
  --paper: #f5e8c8;
  --paper-deep: #ead3a3;
  --ink: #211f23;
  --muted: #6c6257;
  --red: #d95a32;
  --red-dark: #d95a32;
  --blue: #11676c;
  --blue-deep: #11676c;
  --gold: #e4b549;
  --teal: #11676c;
  --cream: #fff4dc;
  --line: rgba(33, 31, 35, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% -8%, rgba(217, 90, 50, 0.16), transparent 30rem),
    radial-gradient(circle at 88% 8%, rgba(17, 103, 108, 0.18), transparent 28rem),
    linear-gradient(180deg, #f7edda 0%, var(--paper) 42%, #ebd8ad 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.17;
  background-image:
    linear-gradient(90deg, rgba(33, 31, 35, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(33, 31, 35, 0.05) 1px, transparent 1px);
  background-size: 1.15rem 1.15rem;
  pointer-events: none;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: rgba(245, 232, 200, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.top-nav a,
.ticket-link {
  min-height: 2.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.58rem 0.9rem;
  border: 1px solid rgba(33, 31, 35, 0.28);
  color: var(--ink);
  background: rgba(255, 244, 220, 0.55);
  font-size: 0.78rem;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
}

.top-nav a:hover,
.ticket-link:hover {
  background: var(--ink);
  color: var(--cream);
}

.ticket-link.primary {
  border-color: var(--red-dark);
  background: var(--red);
  color: var(--cream);
}

.ticket-link.primary:hover {
  background: var(--blue);
  border-color: var(--blue);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 4.2rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  padding: clamp(2rem, 5vw, 5rem) clamp(1rem, 5vw, 4rem);
  isolation: isolate;
}

.hero::before {
  content: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 72rem;
}

.hero-geometry {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-geometry::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: min(52vw, 48rem);
  opacity: 0.24;
  background:
    linear-gradient(90deg, rgba(33, 31, 35, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(33, 31, 35, 0.045) 1px, transparent 1px);
  background-size: 2rem 2rem;
  mix-blend-mode: multiply;
}

.geo-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(52vw, 48rem);
  height: 100%;
  background: var(--teal);
}

.geo-circle {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: multiply;
}

.geo-circle.cream {
  top: clamp(2rem, 7vw, 5rem);
  right: clamp(1rem, 7vw, 6rem);
  width: clamp(17rem, 34vw, 31rem);
  aspect-ratio: 1;
  background: var(--cream);
  mix-blend-mode: normal;
}

.geo-circle.orange {
  top: clamp(8rem, 24vw, 20rem);
  right: clamp(18rem, 32vw, 33rem);
  width: clamp(16rem, 33vw, 30rem);
  aspect-ratio: 1;
  background: var(--red);
  mix-blend-mode: normal;
}

.geo-label {
  position: absolute;
  color: rgba(33, 31, 35, 0.9);
  font-size: clamp(0.72rem, 1.4vw, 1rem);
  font-weight: 950;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.geo-label.left {
  left: clamp(1rem, 3vw, 2.4rem);
  bottom: clamp(10rem, 18vw, 15rem);
  transform: rotate(180deg);
}

.geo-label.right {
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(0.8rem, 2vw, 1.5rem);
}

.kicker {
  margin: 0 0 0.75rem;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  font-size: clamp(4rem, 10vw, 9.8rem);
  line-height: 0.88;
  text-transform: uppercase;
}

.hero-copy p:not(.kicker) {
  max-width: 38rem;
  margin: 1.45rem 0 0;
  color: var(--ink);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.55rem;
}

.program-card::after,
.schedule-board::after,
.ticket-window::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  background: repeating-linear-gradient(0deg, rgba(33, 31, 35, 0.08) 0 1px, transparent 1px 5px);
  mix-blend-mode: multiply;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
}

.program-section,
.resume-section,
.contact-section {
  padding: clamp(3.5rem, 8vw, 7rem) clamp(1rem, 5vw, 4rem);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(18rem, 0.85fr) minmax(18rem, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
}

.section-heading.compact {
  display: block;
}

.section-heading h2 {
  font-size: clamp(3rem, 7vw, 6.8rem);
}

.section-heading > p:last-child {
  max-width: 38rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.55;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.program-card {
  position: relative;
  overflow: hidden;
  min-height: 18rem;
  display: flex;
  flex-direction: column;
  padding: clamp(1rem, 2vw, 1.25rem);
  border: 2px solid var(--ink);
  background: rgba(255, 244, 220, 0.76);
}

.program-card.flip-card {
  display: block;
  padding: 0;
  cursor: pointer;
  perspective: 75rem;
  background: transparent;
}

.flip-card-inner {
  position: relative;
  height: 100%;
  min-height: 18rem;
  display: grid;
  transform-style: preserve-3d;
  transition: transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.flip-card.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.card-face {
  grid-area: 1 / 1;
  height: 100%;
  min-height: 18rem;
  display: flex;
  flex-direction: column;
  padding: clamp(1rem, 2vw, 1.25rem);
  background: rgba(255, 244, 220, 0.8);
  backface-visibility: hidden;
}

.project-image-card {
  position: relative;
  justify-content: flex-end;
  color: var(--cream);
  overflow: hidden;
  background: #0d5054;
}

.project-image-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--card-image);
  background-position: center;
  background-size: cover;
}

.project-image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 36%, rgba(0, 0, 0, 0.28) 54%, rgba(0, 0, 0, 0.92));
}

.project-image-card .card-meta {
  margin-top: auto;
}

.project-image-card h3 {
  margin-top: 0.65rem;
  margin-bottom: 0;
}

.project-image-card .flip-hint {
  margin-top: 0.6rem;
  padding-top: 0;
}

.project-image-card .card-meta,
.project-image-card .flip-hint,
.project-image-card h3 {
  position: relative;
  z-index: 1;
}

.project-image-card .card-meta,
.project-image-card .flip-hint {
  color: var(--cream);
}

.project-image-card h3,
.project-image-card .flip-hint {
  text-shadow:
    0 1px 0.25rem rgba(0, 0, 0, 0.8),
    0 0 0.75rem rgba(0, 0, 0, 0.7);
}

.swurl-preview {
  background: #0d5054;
}

.swurl-preview::before {
  background:
    radial-gradient(circle at 76% 18%, rgba(255, 244, 220, 0.92) 0 18%, transparent 18.5%),
    radial-gradient(circle at 28% 42%, rgba(217, 90, 50, 0.96) 0 26%, transparent 26.5%),
    linear-gradient(135deg, var(--teal), #0d5054);
}

.card-back {
  color: var(--cream);
  background:
    linear-gradient(90deg, rgba(17, 103, 108, 0.96), rgba(17, 103, 108, 0.96)),
    repeating-linear-gradient(0deg, transparent 0 1rem, rgba(255, 244, 220, 0.16) 1rem 1.2rem);
  transform: rotateY(180deg);
}

.card-back .card-meta,
.card-back a,
.card-back .card-cta {
  color: var(--cream);
}

.card-cta {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin-top: auto;
  padding-top: 1.25rem;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
  text-decoration: underline;
}

.flip-hint {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin-top: auto;
  padding-top: 1.25rem;
  color: var(--red-dark);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
  text-decoration: underline;
}

.program-card.main-feature {
  grid-column: span 2;
  min-height: 18rem;
  color: var(--cream);
  background:
    linear-gradient(90deg, rgba(217, 90, 50, 0.94), rgba(217, 90, 50, 0.94)),
    repeating-linear-gradient(0deg, transparent 0 1rem, rgba(255, 244, 220, 0.2) 1rem 1.2rem);
}

.main-feature .card-meta {
  color: var(--cream);
}

.program-card h3 {
  margin: 0.65rem 0 0.8rem;
  font-size: clamp(2rem, 4.5vw, 4.4rem);
  line-height: 0.92;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.program-card:not(.main-feature) h3 {
  font-size: clamp(1.85rem, 2.75vw, 2.8rem);
}

.program-card p {
  max-width: 29rem;
  margin: 0;
  line-height: 1.48;
}

.program-card a {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin-top: auto;
  padding-top: 1.25rem;
  color: var(--red-dark);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.program-card.main-feature a {
  color: var(--cream);
}

.schedule-board,
.ticket-window {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: rgba(255, 244, 220, 0.7);
}

.schedule-item {
  display: grid;
  grid-template-columns: minmax(3.25rem, 0.1fr) 1fr;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  padding: clamp(1rem, 3vw, 1.6rem);
}

.schedule-item + .schedule-item {
  border-top: 2px dashed rgba(33, 31, 35, 0.34);
}

.schedule-item time {
  color: var(--red);
  font-weight: 950;
  text-transform: uppercase;
}

.schedule-item time {
  align-self: center;
  justify-self: start;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.rating {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.schedule-item h3 {
  margin: 0.35rem 0;
  font-size: clamp(1.45rem, 3vw, 2.5rem);
  line-height: 1;
  text-transform: uppercase;
}

.schedule-item p {
  max-width: 48rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.schedule-item ul {
  max-width: 58rem;
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.48;
}

.schedule-item li + li {
  margin-top: 0.45rem;
}

.feature-slot {
  color: var(--cream);
  background:
    linear-gradient(90deg, var(--teal), var(--teal)),
    repeating-linear-gradient(0deg, transparent 0 1rem, rgba(255, 244, 220, 0.14) 1rem 1.2rem);
}

.feature-slot time,
.feature-slot .rating,
.feature-slot p {
  color: var(--cream);
}

.ticket-window {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  background:
    linear-gradient(90deg, rgba(255, 244, 220, 0.82), rgba(255, 244, 220, 0.82)),
    repeating-linear-gradient(90deg, transparent 0 1.3rem, rgba(33, 31, 35, 0.12) 1.3rem 1.4rem);
}

.ticket-window h2 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5.6rem);
  line-height: 0.92;
  text-transform: uppercase;
}

@media (max-width: 1060px) {
  .hero,
  .section-heading {
    grid-template-columns: 1fr;
  }

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

}

@media (max-width: 680px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    justify-content: flex-start;
  }

  .top-nav a,
  .ticket-link {
    font-size: 0.72rem;
  }

  .hero {
    min-height: 0;
    padding-top: 2.5rem;
  }

  .hero::before {
    content: none;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 17vw, 5rem);
    text-shadow:
      0 0 0.35rem rgba(245, 232, 200, 0.95),
      0 0 0.9rem rgba(245, 232, 200, 0.84);
  }

  .hero-copy p:not(.kicker) {
    max-width: 19rem;
    padding: 0.65rem 0.75rem;
    background: rgba(245, 232, 200, 0.88);
  }

  .geo-panel {
    width: 49%;
  }

  .hero-geometry::after {
    width: 49%;
  }

  .geo-circle.cream {
    top: 2rem;
    right: 1.6rem;
    width: 14rem;
  }

  .geo-circle.orange {
    top: 8.5rem;
    right: auto;
    left: -6rem;
    width: 14rem;
  }

  .geo-label.left {
    display: none;
  }

  .geo-label.right {
    top: 1rem;
    right: 0.7rem;
  }

  .section-heading h2 {
    font-size: clamp(2.7rem, 14vw, 4.4rem);
  }

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

  .program-card.main-feature {
    grid-column: auto;
    grid-row: auto;
    min-height: 18rem;
  }

  .schedule-item {
    grid-template-columns: 1fr;
  }

  .schedule-item time {
    align-self: auto;
    justify-self: start;
    writing-mode: horizontal-tb;
    transform: none;
  }

  .feature-slot {
    background:
      linear-gradient(90deg, var(--teal), var(--teal)),
      repeating-linear-gradient(0deg, transparent 0 1rem, rgba(255, 244, 220, 0.14) 1rem 1.2rem);
  }

  .ticket-window {
    align-items: flex-start;
    flex-direction: column;
  }
}
