/* ============================================================
   KIRIGAMI — Design tokens
   ============================================================ */
:root {
  /* Color */
  --c-cream:        #FAF3E8;
  --c-card:         #F1E1C9;
  --c-orange:       #FF7A1F;
  --c-orange-deep:  #E8590A;
  --c-orange-soft:  #FFAE66;
  --c-ink:          #2B2118;
  --c-ink-soft:     #6E5D4E;
  --c-cream-on-dark: #FBEFE0;

  /* Type */
  --font-display: "Fraunces", serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  /* Layout */
  --maxw: 1180px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --radius: 18px;
  --radius-sm: 10px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   Reset
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--c-cream);
  color: var(--c-ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.08; font-weight: 600; }
p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--c-orange-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   Shared
   ============================================================ */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-orange-deep);
  margin-bottom: 1rem;
  display: block;
}
.eyebrow--light { color: var(--c-orange-soft); }

.lede {
  font-size: 1.1rem;
  color: var(--c-ink-soft);
  max-width: 42ch;
}
.lede--light { color: var(--c-cream-on-dark); opacity: 0.85; }

/* Buttons */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  padding: 0.85rem 1.6rem;
  border: 2px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
  text-decoration: none;
}
.btn--primary {
  background: var(--c-orange);
  color: var(--c-cream);
}
.btn--primary:hover {
  background: var(--c-orange-deep);
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-ink);
}
.btn--ghost:hover {
  background: var(--c-ink);
  color: var(--c-cream);
  transform: translateY(-2px);
}
.btn--lg { padding: 1.05rem 2.2rem; font-size: 1.05rem; }
.btn--block { width: 100%; justify-content: center; }

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 243, 232, 0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(43, 33, 24, 0.06);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1rem var(--pad);
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  text-decoration: none;
  color: var(--c-ink);
  margin-right: auto;
}
.nav__mark .brand-suffix,
.hero__title .brand-suffix,
.footer__mark .brand-suffix {
  font-weight: 400;
  opacity: 0.55;
}
.hero__title .brand-suffix {
  font-size: 0.4em;
  vertical-align: 0.32em;
  letter-spacing: 0.02em;
}
.nav__mark .brand-suffix {
  font-size: 0.78em;
}
.footer__mark .brand-suffix {
  font-size: 0.7em;
}
.nav__links {
  display: flex;
  gap: 1.75rem;
}
.nav__links a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--c-ink-soft);
  transition: color 0.2s var(--ease);
}
.nav__links a:hover { color: var(--c-orange-deep); }

.nav__burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav__burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--c-ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 5rem;
}
.hero__folds {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__folds svg {
  width: 100%; height: 100%;
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  width: 100%;
  max-width: 640px;
}
.hero__title {
  font-size: clamp(3.5rem, 11vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0.3rem 0 0.6rem;
}
.hero__meaning {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--c-ink-soft);
  margin-bottom: 1.5rem;
}
.hero__tagline {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--c-ink-soft);
  max-width: 36ch;
  margin-bottom: 2.25rem;
}
.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.scroll-cue {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 28px; height: 46px;
  border: 2px solid var(--c-ink);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.scroll-cue span {
  width: 4px; height: 8px;
  background: var(--c-ink);
  border-radius: 2px;
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: 0.3; }
}

/* ============================================================
   The Fold (About)
   ============================================================ */
.fold__grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.photo-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--c-card);
  border-radius: var(--radius);
  overflow: hidden;
}
.photo-frame__slides {
  position: relative;
  width: 100%;
  height: 100%;
}
.photo-frame__slide {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
}
.photo-frame__slide.is-active {
  opacity: 1;
}
.photo-frame__dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}
.photo-frame__dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(251, 239, 224, 0.45);
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.photo-frame__dot.is-active {
  background: var(--c-cream);
  transform: scale(1.25);
}
.photo-frame__corner {
  position: absolute;
  top: 0; right: 0;
  width: 70px; height: 70px;
  background: var(--c-cream);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  box-shadow: -6px 6px 14px rgba(43, 33, 24, 0.12);
  transition: width 0.3s var(--ease), height 0.3s var(--ease);
  z-index: 1;
}
.photo-frame:hover .photo-frame__corner {
  width: 92px; height: 92px;
}

.fold__copy h2 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 1.25rem; }
.fold__copy .lede { margin-bottom: 1.1rem; }
.fold__copy > p:not(.lede) { color: var(--c-ink-soft); max-width: 46ch; margin-bottom: 1.5rem; }

.rig {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  max-width: 26rem;
  gap: 0.75rem;
}
.rig li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  font-size: 0.95rem;
  border-top: 1px solid rgba(43, 33, 24, 0.12);
  padding-top: 0.6rem;
}
.rig__tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--c-orange-deep);
}

/* ============================================================
   Sound / Video
   ============================================================ */
.sound {
  background: var(--c-ink);
  color: var(--c-cream-on-dark);
}
.sound__heading {
  color: var(--c-cream-on-dark);
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.75rem;
}
.sound .lede { margin-bottom: 2.5rem; }

.sound__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #1c1510;
}
.video-frame iframe {
  width: 100%; height: 100%;
  border: 0;
}

.sound__links h3 {
  color: var(--c-cream-on-dark);
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}
.sound__links p { color: rgba(251, 239, 224, 0.65); margin-bottom: 1.5rem; }
.platform-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.platform-link {
  text-decoration: none;
  color: var(--c-cream-on-dark);
  font-weight: 600;
  padding: 0.85rem 1.1rem;
  border: 1px solid rgba(251, 239, 224, 0.18);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}
.platform-link:hover {
  border-color: var(--c-orange);
  background: rgba(232, 99, 46, 0.12);
  transform: translateX(4px);
}

/* ============================================================
   Shows
   ============================================================ */
.shows h2 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 2.5rem; }

.show-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(43, 33, 24, 0.12);
}
.show-row {
  display: grid;
  grid-template-columns: 140px 1.5fr 1fr 100px;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(43, 33, 24, 0.12);
}
.show-row--head {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
  padding-bottom: 0.75rem;
}
.show-row__date strong { font-family: var(--font-display); font-size: 1.1rem; }
.show-row__venue { font-weight: 600; }
.show-row__city { color: var(--c-ink-soft); }
.show-row--empty {
  display: block;
  color: var(--c-ink-soft);
  padding: 1.75rem 0;
}
.show-row__link {
  text-decoration: none;
  font-weight: 600;
  color: var(--c-orange-deep);
  justify-self: end;
  transition: transform 0.2s var(--ease);
  display: inline-block;
}
.show-row__link:hover { transform: translateX(3px); }

.shows__cta {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.shows__cta p { font-family: var(--font-display); font-size: 1.25rem; max-width: 30ch; }

/* ============================================================
   Gallery
   ============================================================ */
.gallery h2 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 2.5rem; }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 1rem;
}
.gallery__item--wide { grid-column: span 2; }
.gallery__item { position: relative; overflow: hidden; border-radius: var(--radius-sm); }
.gallery__placeholder {
  position: relative;
  width: 100%; height: 100%;
  background: var(--c-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
  transition: transform 0.4s var(--ease);
}
.gallery__placeholder::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 40px; height: 40px;
  background: var(--c-cream);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  opacity: 0.7;
  transition: width 0.3s var(--ease), height 0.3s var(--ease);
}
.gallery__item:hover .gallery__placeholder { transform: scale(1.03); }
.gallery__item:hover .gallery__placeholder::after { width: 56px; height: 56px; }

/* ============================================================
   Book CTA
   ============================================================ */
.book {
  position: relative;
  background: var(--c-ink);
  color: var(--c-cream-on-dark);
  overflow: hidden;
  text-align: center;
}
.book__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.book__folds {
  position: absolute;
  width: clamp(160px, 22vw, 320px);
  height: clamp(160px, 22vw, 320px);
  z-index: 0;
  bottom: 0; left: 0;
}
.book__folds--tr { bottom: auto; left: auto; top: 0; right: 0; }
.book__folds svg { width: 100%; height: 100%; display: block; }
.book__heading {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  color: var(--c-cream-on-dark);
  margin: 0 auto 1.25rem;
  max-width: 18ch;
}
.book .lede { margin: 0 auto 2.25rem; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--c-ink);
  color: rgba(251, 239, 224, 0.75);
  border-top: 1px solid rgba(251, 239, 224, 0.08);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-top: 3.5rem;
  padding-bottom: 2.5rem;
}
.footer__mark {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--c-cream-on-dark);
  margin-bottom: 0.5rem;
}
.footer__col h3 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-orange-soft);
  margin-bottom: 0.85rem;
  font-weight: 500;
}
.footer__col p { margin-bottom: 0.5rem; }
.footer__col a { text-decoration: none; transition: color 0.2s var(--ease); }
.footer__col a:hover { color: var(--c-orange-soft); }
.footer__bottom {
  border-top: 1px solid rgba(251, 239, 224, 0.08);
  text-align: center;
  font-size: 0.85rem;
  padding: 1.5rem var(--pad);
}

/* ============================================================
   Booking Modal
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease);
}
.modal[aria-hidden="false"] { opacity: 1; visibility: visible; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(43, 33, 24, 0.55);
  backdrop-filter: blur(3px);
}
.modal__panel {
  position: relative;
  background: var(--c-cream);
  border-radius: var(--radius);
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s var(--ease);
}
.modal[aria-hidden="false"] .modal__panel { transform: translateY(0) scale(1); }

.modal__fold {
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 56px 56px 0 0;
  border-color: var(--c-orange) transparent transparent transparent;
  border-radius: var(--radius) 0 0 0;
}
.modal__close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(43, 33, 24, 0.06);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
  transition: background 0.2s var(--ease);
}
.modal__close:hover { background: rgba(43, 33, 24, 0.12); }

.modal__body { padding: clamp(1.75rem, 5vw, 2.5rem); }
.modal__sub { color: var(--c-ink-soft); margin: 0.6rem 0 1.5rem; font-size: 0.95rem; }
#modalTitle { font-size: 1.6rem; margin-bottom: 0.2rem; }

.booking-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: flex; flex-direction: column; gap: 0.4rem; }
.form-row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-row--split > div { display: flex; flex-direction: column; gap: 0.4rem; }
label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-ink-soft);
}
input, textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid rgba(43, 33, 24, 0.15);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--c-ink);
  resize: vertical;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--c-orange);
}
.form-status {
  font-size: 0.9rem;
  text-align: center;
  min-height: 1.2em;
  color: var(--c-orange-deep);
  font-weight: 600;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 920px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__cta { display: none; }

  .nav[data-open="true"] .nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--c-cream);
    padding: 1.25rem var(--pad);
    gap: 1rem;
    border-bottom: 1px solid rgba(43, 33, 24, 0.08);
  }
  .nav[data-open="true"] .nav__cta {
    display: inline-flex;
    margin: 0 var(--pad) 1.25rem;
  }

  .fold__grid { grid-template-columns: 1fr; }
  .photo-frame { aspect-ratio: 16/10; }

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

  .show-row { grid-template-columns: 100px 1fr 1fr; }
  .show-row__link { display: none; }
  .show-row--head span:last-child { display: none; }

  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery__item--wide { grid-column: span 2; }

  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 560px) {
  .hero__title { font-size: clamp(3rem, 16vw, 5rem); }
  .rig { grid-template-columns: 1fr; }
  .show-row { grid-template-columns: 1fr; gap: 0.25rem; }
  .show-row--head { display: none; }
  .show-row { padding: 1rem 0; }
  .form-row--split { grid-template-columns: 1fr; }
}
