:root {
  --bordeaux: #3a1212;
  --bordeaux-dark: #281010;
  --ecru: #f2e8dd;
  --ecru-light: #f9f5f1;
  --cherry: #b50a0a;
  --serif: 'Fraunces', 'Times New Roman', serif;
  --mono: 'DM Mono', ui-monospace, monospace;
  --frame-gap: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  background: var(--ecru);
  color: var(--bordeaux);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.lovr-locked { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }

/* ============================================================ */
/* PRE-SCROLLER (password gate)                                 */
/* ============================================================ */

.prescroller {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bordeaux);
  color: var(--ecru);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 600ms ease;
}

.prescroller.is-hidden { opacity: 0; pointer-events: none; }
.prescroller.is-gone { display: none; }

.prescroller__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.4rem;
  width: min(420px, 80vw);
}

.prescroller__logo {
  width: 140px;
  height: auto;
  filter: brightness(0) invert(1);
}

.prescroller__form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.prescroller__input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ecru) 35%, transparent);
  color: var(--ecru);
  font: inherit;
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.6rem 0;
  outline: none;
  caret-color: var(--ecru);
}

.prescroller__input::placeholder {
  color: color-mix(in srgb, var(--ecru) 45%, transparent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.prescroller__input:focus {
  border-bottom-color: var(--ecru);
}

.prescroller__hint {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ecru) 65%, transparent);
  min-height: 1.4em;
}

.prescroller__hint.is-error {
  color: color-mix(in srgb, #f4a3a3 95%, transparent);
}

/* ============================================================ */
/* FRAME STRIP (stitched proposal frames as horizontal scroll)  */
/* ============================================================ */

.frame-strip {
  position: fixed;
  inset: 0;
  background: var(--ecru);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  will-change: scroll-position;
}

.frame-strip[hidden] { display: none; }

.frame {
  flex: 0 0 100vw;
  width: 100vw;
  height: 100vh;
  object-fit: contain;
  display: block;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  -webkit-user-drag: none;
  user-select: none;
  content-visibility: auto;
  contain-intrinsic-size: 800px 1000px;
}

/* Scrollbar polish (WebKit) */
.frame-strip::-webkit-scrollbar { height: 8px; }
.frame-strip::-webkit-scrollbar-track { background: color-mix(in srgb, var(--bordeaux) 5%, transparent); }
.frame-strip::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--bordeaux) 25%, transparent);
  border-radius: 4px;
}
.frame-strip::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--bordeaux) 40%, transparent); }

.reply-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  background: var(--bordeaux);
  color: var(--ecru);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(40, 16, 16, 0.18);
  transition: background 180ms ease, transform 180ms ease;
}

.reply-btn:hover { background: var(--bordeaux-dark); transform: translateY(-1px); }
.reply-btn:focus-visible { outline: 2px solid var(--ecru); outline-offset: 2px; }

body.lovr-locked .reply-btn { display: none; }


/* ============================================================ */
/* HTML SLIDE FRAMES (deck idiom, sibling of the PNG decks)     */
/* ============================================================ */

.frame-strip .slide {
  flex: 0 0 100vw;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  background: var(--ecru);
}

.slide__canvas {
  width: min(100vw, 141.4vh);
  aspect-ratio: 1123 / 794;
  position: relative;
  container-type: inline-size;
  padding: 4cqw 4cqw 2.6cqw 4cqw;
  display: flex;
  flex-direction: column;
}

.sl-eyebrow {
  font-family: var(--mono);
  font-size: 1.05cqw;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  text-align: center;
}

.sl-header {
  font-family: var(--serif);
  font-size: 1.75cqw;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.65;
}

.sl-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.4cqw;
  margin-top: 7cqw;
}

.sl-cols--2 { grid-template-columns: repeat(2, 1fr); margin-right: 24cqw; }

.sl-colhead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5cqw;
  margin-bottom: 1.9cqw;
}

.sl-colhead h3 {
  font-family: var(--serif);
  font-size: 1.25cqw;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.sl-price {
  font-family: var(--mono);
  font-size: 1.02cqw;
  white-space: nowrap;
}

.sl-list { list-style: none; }

.sl-list li {
  font-family: var(--serif);
  font-size: 1.18cqw;
  line-height: 2.05;
  font-weight: 500;
}

.sl-list li.sl-note {
  font-size: 1cqw;
  font-style: italic;
  opacity: 0.75;
  line-height: 1.7;
  margin-top: 1.2cqw;
}

.sl-menu { margin-top: 6cqw; margin-right: 20cqw; }

.sl-menu-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2cqw;
  padding: 0.85cqw 0;
  border-bottom: 1px solid color-mix(in srgb, var(--bordeaux) 14%, transparent);
}

.sl-menu-row span:first-child {
  font-family: var(--serif);
  font-size: 1.3cqw;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.sl-total {
  position: absolute;
  right: 4cqw;
  bottom: 7.5cqw;
  width: 27cqw;
  border-top: 1px solid var(--bordeaux);
  border-bottom: 1px solid var(--bordeaux);
  padding: 0.8cqw 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2cqw;
}

.sl-total span:first-child {
  font-family: var(--serif);
  font-size: 1.25cqw;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.sl-footer {
  position: absolute;
  left: 4cqw;
  bottom: 2.6cqw;
  font-family: var(--mono);
  font-size: 0.82cqw;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: flex;
  gap: 4cqw;
}

.sl-cover {
  align-items: stretch;
  justify-content: space-between;
}

.sl-cover .sl-logo {
  width: 92cqw;
  align-self: center;
  margin-top: auto;
}

.sl-title-block { margin: auto 0; }

.sl-title-block h1 {
  font-family: var(--serif);
  font-size: 4.6cqw;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.3;
  max-width: 72cqw;
}

.sl-title-block p {
  font-family: var(--serif);
  font-size: 1.45cqw;
  line-height: 1.9;
  margin-top: 2.6cqw;
  max-width: 56cqw;
  font-weight: 500;
}

.sl-tiercard h2 {
  font-family: var(--mono);
  font-size: 1cqw;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1.6cqw;
}

.sl-tiercard h3 {
  font-family: var(--serif);
  font-size: 1.9cqw;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.6cqw;
}

.sl-tiercard p {
  font-family: var(--serif);
  font-size: 1.2cqw;
  line-height: 1.9;
  font-weight: 500;
}

.frame-strip .slide--dark { background: var(--bordeaux); }
.slide--dark .slide__canvas { color: var(--ecru); }
.sl-cover .sl-logo {
  width: 40cqw;
  object-fit: contain;
  align-self: center;
  margin: auto;
  filter: brightness(0) invert(1);
}

