:root {
  --acid: #f3d535;
  --deep: #07120c;
  --forest: #102419;
  --paper: #f4f1e7;
  --ink: #102018;
  --muted: #aeb4aa;
  --line: rgba(244, 241, 231, .16);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { min-width: 300px; background: var(--deep); }
body {
  min-height: 100svh;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--paper);
  background:
    linear-gradient(90deg, rgba(2, 10, 6, .36), rgba(2, 10, 6, .06) 50%, rgba(2, 10, 6, .5)),
    url("../assets/hero-palm-road-1600.webp") center / cover fixed no-repeat;
}
button, input { font: inherit; }
button { touch-action: manipulation; }
[hidden] { display: none !important; }

.page {
  position: relative;
  z-index: 1;
  min-height: 100svh;
}
.visual {
  min-height: 58svh;
  padding: 24px 20px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.title-block { position: relative; z-index: 1; width: min(88vw, 570px); }
.eyebrow {
  margin: 0 0 12px;
  color: var(--acid);
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: 12px;
  font-style: italic;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.title-art { display: block; width: 100%; height: auto; }
.director {
  margin: 6px 0 0;
  color: var(--paper);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Narrow", sans-serif;
  font-size: 13px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: .015em;
  line-height: 1;
  text-align: center;
}
.director strong {
  margin-left: .18em;
  font-size: 1.55em;
  font-weight: 400;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.panel {
  margin: 0 16px 24px;
  background: rgba(7, 18, 12, .94);
  border: 1px solid rgba(255, 255, 255, .05);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .34);
}
.panel-inner { width: min(100%, 590px); margin: 0 auto; padding: 30px 22px 24px; }
.step {
  margin: 0 0 8px;
  color: var(--acid);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
h2 {
  margin: 0 0 20px;
  color: var(--paper);
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: clamp(44px, 13vw, 68px);
  font-style: italic;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: .92;
  text-transform: uppercase;
}
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.panel-heading h2 { min-width: 0; margin-bottom: 20px; font-size: clamp(34px, 10vw, 44px); }
.event-mark { width: 38px; height: auto; margin-top: -2px; flex: 0 0 auto; }
.event { margin: 0 0 26px; border-block: 1px solid var(--line); }
.event div {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.event div:last-child { border-bottom: 0; }
.event dt { color: var(--muted); font-size: 9px; letter-spacing: .15em; text-transform: uppercase; }
.event dd { margin: 0; color: var(--paper); font-size: 12px; font-weight: 700; }
.event a { color: inherit; text-underline-offset: 3px; }
.event .deadline-copy { color: var(--acid); }
.event-cta {
  width: min(82%, 330px);
  margin: 18px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: Georgia, serif;
  font-size: 15px;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
}
.form-title { font-size: clamp(34px, 9vw, 48px); }

.field { margin: 18px 0; }
label, legend {
  display: block;
  margin-bottom: 8px;
  color: #c9cec4;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
input {
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  border: 1px solid rgba(244, 241, 231, .35);
  border-radius: 0;
  background: rgba(244, 241, 231, .96);
  color: var(--ink);
}
input:focus, button:focus-visible, a:focus-visible { outline: 3px solid rgba(238, 215, 87, .5); outline-offset: 2px; }
.phone-control { display: flex; min-height: 50px; border: 1px solid rgba(244, 241, 231, .35); background: rgba(244, 241, 231, .96); }
.phone-prefix { display: flex; align-items: center; padding: 0 0 0 14px; color: #4d5c50; font-weight: 700; }
.phone-control input { min-width: 0; border: 0; }
.phone-control:focus-within { outline: 3px solid rgba(238, 215, 87, .5); outline-offset: 2px; }
.phone-control input:focus { outline: 0; }
.primary {
  width: 100%;
  min-height: 53px;
  padding: 14px 18px;
  border: 0;
  background: var(--acid);
  color: #142318;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}
.primary:disabled, .danger:disabled, .text-button:disabled { cursor: wait; opacity: .56; }
.identity-note, footer { color: #aeb6aa; font-size: 11px; line-height: 1.55; }
.status { margin-bottom: 14px; padding: 12px 14px; border-left: 3px solid var(--acid); background: rgba(238, 215, 87, .13); color: var(--paper); font-size: 13px; line-height: 1.45; }
.status:empty { display: none; }
.status.error { border-color: #dc736b; background: rgba(140, 48, 43, .35); color: #ffe3dc; }
.status.success { border-color: #9ccb82; background: rgba(62, 102, 63, .4); color: #efffe7; }
.welcome { position: relative; padding: 17px 96px 17px 0; margin-bottom: 24px; border-block: 1px solid var(--line); }
.welcome p { margin: 0 0 5px; color: var(--muted); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.welcome strong { color: var(--paper); font-size: 20px; }
.text-button { position: absolute; right: 0; top: 17px; padding: 0; border: 0; background: transparent; color: var(--acid); cursor: pointer; font-size: 12px; text-decoration: underline; }
fieldset { margin: 0; padding: 0; border: 0; }
.allocation { margin: 0 0 13px; color: var(--muted); font-size: 13px; }
.ticket-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(48px, 1fr)); gap: 8px; margin-bottom: 24px; }
.ticket-option { min-height: 50px; border: 1px solid rgba(244, 241, 231, .4); background: transparent; color: var(--paper); cursor: pointer; font-weight: 800; }
.ticket-option[aria-pressed="true"] { border-color: var(--acid); background: var(--acid); color: var(--forest); }
.companions { margin-bottom: 20px; }
.companion-entry { margin: 20px 0; padding: 16px; border: 1px solid var(--line); }
.companion-heading { margin: 0 0 8px; color: var(--paper); font-size: 13px; font-weight: 800; }
.companions .field { margin: 13px 0; }
.field-hint { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; }
.email-pair { display: grid; gap: 0 12px; }
.danger { width: 100%; margin-top: 11px; min-height: 45px; border: 1px solid #dc736b; background: transparent; color: #ffaaa2; cursor: pointer; font-weight: 700; }
.identity-note { margin-top: 20px; padding: 14px; border: 1px solid var(--line); }
footer { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); }

.confirmation-dialog { width: min(92vw, 520px); padding: 30px; border: 0; background: var(--deep); color: var(--paper); box-shadow: 0 24px 70px rgba(0, 0, 0, .65); }
.confirmation-dialog::backdrop { background: rgba(4, 13, 7, .82); }
.confirmation-dialog h2 { margin-bottom: 15px; }
.confirmation-dialog p:not(.step) { color: var(--muted); line-height: 1.55; }
.dialog-actions { display: grid; gap: 10px; margin-top: 24px; }
.dialog-link { display: grid; place-items: center; text-decoration: none; }
.secondary { min-height: 49px; padding: 12px 18px; border: 1px solid var(--paper); background: transparent; color: var(--paper); cursor: pointer; font-weight: 800; text-transform: uppercase; }

@media (min-width: 840px) {
  body { background-image: linear-gradient(90deg, rgba(2, 10, 6, .32), rgba(2, 10, 6, .02) 52%, rgba(2, 10, 6, .43)), url("../assets/hero-palm-road-2560.webp"); }
  .page { display: grid; grid-template-columns: minmax(520px, 1fr) minmax(390px, 480px); gap: clamp(30px, 5vw, 96px); align-items: center; padding: 0 clamp(36px, 7.5vw, 144px); }
  .visual { min-height: 100svh; padding: 34px 0 54px; position: sticky; top: 0; }
  .title-block { width: clamp(470px, 39vw, 760px); margin-bottom: 5vh; }
  .eyebrow { font-size: 13px; }
  .director { font-size: 15px; }
  .panel { width: 100%; max-height: calc(100svh - 70px); margin: 35px 0; overflow-y: auto; overscroll-behavior: contain; }
  .panel-inner { padding: clamp(30px, 3vw, 44px); }
  .email-pair { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 839px) {
  body { background-attachment: scroll; background-position: center; }
  .visual { min-height: 70svh; }
  .panel { backdrop-filter: blur(4px); }
}

@media (max-height: 620px) and (orientation: landscape) {
  .visual { min-height: 100svh; }
  .page { align-items: start; }
}

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