/* ==========================================================
   The Noma Photobooth — pics or it didn't happen!
   ========================================================== */

:root {
  --wall: #e7e4de;
  --wall-2: #dedad2;
  --cream: #fbf8f1;
  --wood: #4a2a1b;
  --wood-dark: #36190f;
  --wood-light: #5d3524;
  --ink: #2b211b;
  --ink-soft: #6e6157;
  --line: #cfc8bd;
  --cream-soft: rgba(251, 248, 241, 0.72);

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --script: "Pinyon Script", "Snell Roundhand", cursive;
  --mono: "DM Mono", ui-monospace, Menlo, monospace;

  --max: 1140px;
  --gutter: clamp(16px, 4vw, 40px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
h1, h2, h3, p { margin: 0; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* The script "noma" voice */
.script {
  font-family: var(--script);
  font-weight: 400;
  font-stretch: 100%;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.18em;
  line-height: 1;
}

/* The real noma logo, recoloured with currentColor */
.wordmark {
  display: inline-block;
  height: 0.82em;
  aspect-ratio: 1038 / 201;
  vertical-align: -0.08em;
  background-color: currentColor;
  -webkit-mask: url("../images/noma-logo.png") center / contain no-repeat;
  mask: url("../images/noma-logo.png") center / contain no-repeat;
}

/* Spaced lowercase, like "coming soon" */
.eyebrow {
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: lowercase;
  color: var(--ink-soft);
  margin-bottom: 22px;
}
.eyebrow--cream { color: var(--cream-soft); }

/* Bold grotesk headline, like the lightbox sign */
.title {
  font-weight: 700;
  font-stretch: 88%;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.01em;
}
.title .script { font-size: 1.25em; }
.title--cream { color: var(--cream); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--wood);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.24em;
  text-transform: lowercase;
  text-decoration: none;
  padding: 16px 30px;
  border: 1px solid var(--wood);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { background: transparent; color: var(--wood); }
.btn--small { padding: 9px 20px; font-size: 13px; }
.btn--full { width: 100%; }
.btn--cream { background: var(--cream); color: var(--wood); border-color: var(--cream); }
.btn--cream:hover { background: transparent; color: var(--cream); }
.btn:disabled { opacity: 0.55; cursor: wait; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.nav.is-scrolled {
  background: rgba(231, 228, 222, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
  color: var(--ink);
}
.logo .wordmark { height: 26px; }
.nav__links { display: flex; gap: 34px; }
.nav__links a {
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.26em;
  text-decoration: none;
  color: var(--ink-soft);
}
.nav__links a:hover { color: var(--ink); }

/* ---------- Hero: lightbox + cabinet ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  justify-content: center;
  padding: 110px var(--gutter) 0;
  background: radial-gradient(ellipse 60% 45% at 50% 30%, #f1efea 0%, var(--wall) 70%);
}
.booth {
  width: min(680px, 100%);
  display: flex;
  flex-direction: column;
}
.lightbox {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, #fffefb 0%, #f7f4ec 100%);
  text-align: center;
  padding: clamp(22px, 4vw, 40px) 16px clamp(18px, 3vw, 30px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.9) inset,
    0 0 40px 6px rgba(255, 250, 235, 0.95),
    0 0 120px 30px rgba(255, 247, 228, 0.55);
  animation: glow 4s ease-in-out infinite alternate;
}
@keyframes glow {
  from { box-shadow: 0 0 0 1px rgba(255,255,255,.9) inset, 0 0 32px 4px rgba(255,250,235,.85), 0 0 100px 24px rgba(255,247,228,.45); }
  to   { box-shadow: 0 0 0 1px rgba(255,255,255,.9) inset, 0 0 46px 8px rgba(255,250,235,1), 0 0 140px 36px rgba(255,247,228,.65); }
}
.lightbox__line {
  font-weight: 600;
  font-stretch: 90%;
  font-size: clamp(36px, 8.4vw, 80px);
  line-height: 1.02;
  color: #2a1f19;
  letter-spacing: -0.005em;
}
.lightbox__line .wordmark { height: 0.86em; }
.cabinet {
  flex: 1;
  min-height: 420px;
  margin: 0 3%;
  padding: clamp(20px, 4vw, 34px);
  background:
    repeating-linear-gradient(92deg, rgba(0,0,0,0.05) 0 2px, transparent 2px 7px, rgba(255,255,255,0.025) 7px 9px, transparent 9px 15px),
    linear-gradient(180deg, var(--wood-light), var(--wood) 30%, var(--wood-dark));
  box-shadow: 0 -2px 0 rgba(0,0,0,0.25) inset;
}
.cabinet__panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 22px;
  padding: 48px 20px 64px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  box-shadow:
    inset 0 6px 10px -4px rgba(0, 0, 0, 0.55),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.07);
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,0.04) 0 3px, transparent 3px 11px),
    linear-gradient(180deg, #4f2d1d, #43251a);
}
.cabinet__slogan {
  color: var(--cream);
  font-weight: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.cabinet__slogan .script { font-size: clamp(76px, 13vw, 128px); }
.cabinet__rest {
  font-weight: 300;
  font-size: clamp(15px, 2.4vw, 22px);
  letter-spacing: 0.32em;
  margin-right: -0.32em;
}
.cabinet__sub {
  color: var(--cream-soft);
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.08em;
  max-width: 320px;
}
.cabinet .btn { margin-top: 10px; }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--cream);
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding: 16px 0;
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee__track span {
  font-weight: 300;
  font-size: 15px;
  letter-spacing: 0.3em;
  white-space: nowrap;
}
.marquee__track .wordmark { height: 22px; color: var(--wood); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 12vw, 140px) 0; }
.section__head { margin-bottom: 64px; }
.wood {
  color: var(--cream);
  background:
    repeating-linear-gradient(91deg, rgba(0,0,0,0.045) 0 2px, transparent 2px 8px, rgba(255,255,255,0.02) 8px 10px, transparent 10px 17px),
    linear-gradient(180deg, var(--wood), var(--wood-dark));
}

/* ---------- How it works ---------- */
.how .section__head { text-align: center; }
.how__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 56px;
  align-items: center;
}
.how__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 56px; }
.how__steps--left { text-align: right; }
.how__steps--left .step p { margin-left: auto; }
.step__num {
  font-family: var(--script);
  font-size: 34px;
  color: var(--wood);
  line-height: 1;
}
.step h3 {
  font-weight: 700;
  font-stretch: 88%;
  font-size: 26px;
  margin: 8px 0 8px;
}
.step p { color: var(--ink-soft); max-width: 260px; }

/* ---------- Receipt ---------- */
.how__receipt { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.printer { position: relative; width: 290px; padding-top: 18px; }
.printer__slot {
  position: absolute;
  top: 0;
  left: -16px;
  right: -16px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--wood-light), var(--wood-dark));
  z-index: 2;
  box-shadow: 0 8px 18px -8px rgba(54, 25, 15, 0.6);
}
.printer__slot::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 6px;
  height: 3px;
  background: #1c0d07;
  border-radius: 2px;
}
.receipt {
  position: relative;
  background: var(--cream);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink);
  padding: 26px 22px 30px;
  box-shadow: 0 30px 50px -30px rgba(54, 25, 15, 0.45);
  clip-path: inset(0 0 100% 0);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 8px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 8px repeat-x;
}
.receipt.is-printing { animation: print 3s steps(40, end) forwards; }
@keyframes print { to { clip-path: inset(0 0 0 0); } }
.receipt__head {
  text-align: center;
  font-family: var(--sans);
  font-weight: 700;
  font-stretch: 88%;
  font-size: 22px;
  letter-spacing: 0;
  line-height: 1;
}
.receipt__head .wordmark { height: 0.9em; }
.receipt__head--sub { font-size: 20px; margin-top: 2px; }
.receipt__meta {
  display: flex;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 10px;
  margin: 16px 0 14px;
  padding-top: 10px;
  border-top: 1px dashed var(--ink-soft);
}
.receipt__photo {
  height: 128px;
  margin-bottom: 8px;
  background-color: #2b2420;
  background-image:
    radial-gradient(rgba(251, 248, 241, 0.5) 0.8px, transparent 1.2px),
    radial-gradient(ellipse 30% 38% at 50% 58%, #b8afa4 0 60%, transparent 62%),
    radial-gradient(circle at 50% 30%, #d9d2c7 0 14%, transparent 15%);
  background-size: 3px 3px, 100% 100%, 100% 100%;
}
.receipt__photo--2 {
  background-image:
    radial-gradient(rgba(251, 248, 241, 0.5) 0.8px, transparent 1.2px),
    radial-gradient(ellipse 22% 36% at 34% 62%, #b8afa4 0 60%, transparent 62%),
    radial-gradient(ellipse 22% 36% at 68% 64%, #a79e92 0 60%, transparent 62%),
    radial-gradient(circle at 34% 32%, #d9d2c7 0 11%, transparent 12%),
    radial-gradient(circle at 68% 35%, #ccc4b8 0 11%, transparent 12%);
  background-size: 3px 3px, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
}
.receipt__photo--3 {
  background-image:
    radial-gradient(rgba(251, 248, 241, 0.5) 0.8px, transparent 1.2px),
    radial-gradient(ellipse 34% 40% at 46% 60%, #b8afa4 0 60%, transparent 62%),
    radial-gradient(circle at 44% 30%, #d9d2c7 0 14%, transparent 15%),
    radial-gradient(circle at 76% 22%, #eee9e0 0 4%, transparent 5%);
  background-size: 3px 3px, 100% 100%, 100% 100%, 100% 100%;
}
.receipt__rows {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 0;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--ink-soft);
}
.receipt__total {
  display: flex;
  justify-content: space-between;
  font-weight: 500;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--ink-soft);
}
.receipt__thanks { text-align: center; margin-top: 18px; font-size: 10px; }
.receipt__barcode {
  height: 34px;
  margin: 12px auto 0;
  width: 80%;
  background: repeating-linear-gradient(90deg,
      var(--ink) 0 2px, transparent 2px 4px,
      var(--ink) 4px 5px, transparent 5px 8px,
      var(--ink) 8px 11px, transparent 11px 12px);
}
.reprint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.26em;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.reprint:hover { background: var(--ink); color: var(--cream); }
.reprint__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.2);
}
.reprint:disabled { opacity: 0.5; cursor: progress; }

/* ---------- The booth (wood) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split__copy p:not(.eyebrow) { margin-top: 28px; color: var(--cream-soft); max-width: 440px; font-weight: 300; font-size: 17px; }
.ticket {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  padding: 34px 30px 40px;
  transform: rotate(1.5deg);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 8px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 8px repeat-x;
}
.ticket__title {
  text-align: center;
  letter-spacing: 0.2em;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--ink-soft);
}
.ticket__list { list-style: none; margin: 0; padding: 0; }
.ticket__list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
}
.ticket__list li span:last-child { color: var(--wood); }
.ticket__fine { margin-top: 18px; font-size: 10px; letter-spacing: 0.08em; color: var(--ink-soft); text-align: center; }

/* ---------- Perfect for ---------- */
.uses {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
}
.use { padding: 36px 32px 8px 0; }
.use + .use { padding-left: 32px; border-left: 1px solid var(--line); }
.use__script { display: block; font-size: 58px; color: var(--wood); margin-bottom: 18px; }
.use h3 { font-weight: 700; font-stretch: 88%; font-size: 20px; letter-spacing: 0.02em; margin-bottom: 10px; }
.use p { color: var(--ink-soft); max-width: 300px; }

/* ---------- FAQ ---------- */
#faq { padding-top: clamp(24px, 4vw, 48px); }
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; }
.faq .section__head { margin-bottom: 0; }
.faq__list { border-top: 1px solid var(--ink); }
details { border-bottom: 1px solid var(--line); }
summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-size: 18px;
  font-weight: 500;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 300; font-size: 22px; line-height: 1; transition: transform 0.25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 24px; color: var(--ink-soft); max-width: 560px; }

/* ---------- Booking ---------- */
.book { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.book__intro p:not(.eyebrow) { margin-top: 28px; color: var(--cream-soft); max-width: 380px; font-weight: 300; font-size: 17px; }
.form {
  background: var(--cream);
  color: var(--ink);
  padding: clamp(24px, 4vw, 44px);
  display: grid;
  gap: 20px;
  border-radius: 4px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field span {
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: lowercase;
  color: var(--ink-soft);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 10px 0;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%),
    linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
  background-position: calc(100% - 10px) 52%, calc(100% - 5px) 52%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.field textarea { resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-bottom-color: var(--wood); }
.form__hp { position: absolute; left: -9999px; }
.form .btn { margin-top: 8px; }
.form__status { font-size: 14px; min-height: 1em; text-align: center; }
.form__status.is-ok { color: #3f6b46; }
.form__status.is-err { color: #9b3b30; }

/* ---------- Footer ---------- */
.footer { background: var(--wood-dark); color: var(--cream); padding: 56px 0 40px; text-align: center; }
.footer__inner { display: grid; justify-items: center; gap: 10px; }
.footer__logo .wordmark { height: 44px; }
.footer__slogan { font-weight: 300; letter-spacing: 0.32em; font-size: 13px; color: var(--cream-soft); }
.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  margin-top: 26px;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--cream-soft);
}
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: var(--cream); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.ticket.reveal.is-in { transform: rotate(1.5deg); }
.uses .reveal:nth-child(2), .how__steps .reveal:nth-child(2) { transition-delay: 0.12s; }
.uses .reveal:nth-child(3) { transition-delay: 0.24s; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .how__grid { grid-template-columns: 1fr; gap: 48px; }
  .how__receipt { order: -1; }
  .how__steps { gap: 36px; }
  .how__steps--left { text-align: left; }
  .how__steps--left .step p { margin-left: 0; }
  .split, .faq, .book { grid-template-columns: 1fr; gap: 48px; }
  .uses { grid-template-columns: 1fr; }
  .use, .use + .use { padding: 32px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 720px) {
  .nav__links { display: none; }
  .hero { padding-top: 92px; }
  .cabinet { min-height: 380px; }
  .form__row { grid-template-columns: 1fr; }
  .printer { width: 250px; }
  .ticket { transform: none; }
  .ticket.reveal.is-in { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .receipt, .receipt.is-printing { animation: none; clip-path: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .lightbox, .marquee__track { animation: none; }
}
