: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: var(--frame-gap);
  padding: var(--frame-gap);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  will-change: scroll-position;
}

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

.frame {
  flex: 0 0 auto;
  height: calc(100vh - (var(--frame-gap) * 2));
  width: auto;
  display: block;
  border: 1px solid color-mix(in srgb, var(--bordeaux) 10%, transparent);
  -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); }
