/* LOVR Proposal Template — Core Styles */

:root {
  --bordeaux: #4A0D1A;
  --bordeaux-light: #6B1A2B;
  --ecru: #F5F0E8;
  --ecru-dark: #E8E0D4;
  --text-dark: #1A1A1A;
  --text-light: #F5F0E8;
  --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  font-family: 'Fraunces', serif;
  background: var(--ecru);
  color: var(--text-dark);
  overflow-x: hidden;
}

body.lovr-locked {
  overflow: hidden;
  height: 100vh;
}

/* PASSWORD GATE */
.gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bordeaux);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
}

.gate.is-hidden {
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
}

.gate.is-gone {
  display: none;
}

.gate__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.gate__logo {
  width: 180px;
  height: auto;
  opacity: 0.9;
  filter: brightness(0) invert(1);
  animation: gate-logo-fade 1.5s var(--transition-smooth) forwards;
}

@keyframes gate-logo-fade {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 0.9; transform: translateY(0); }
}

.gate__form {
  position: relative;
  width: 200px;
}

.gate__input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(245, 240, 232, 0.3);
  padding: 0.5rem 0;
  font-family: 'DM Mono', monospace;
  font-size: 0.875rem;
  color: var(--ecru);
  text-align: center;
  outline: none;
  letter-spacing: 0.2em;
  caret-color: var(--ecru);
  animation: gate-input-fade 2s var(--transition-smooth) 0.8s both;
}

@keyframes gate-input-fade {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.gate__input::placeholder {
  color: transparent;
}

.gate__cursor {
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  width: 1px;
  height: 1.2em;
  background: var(--bordeaux);
  animation: blink 1s step-end infinite;
  pointer-events: none;
  transition: opacity 0.2s;
}

.gate__input:focus ~ .gate__cursor,
.gate__input:not(:placeholder-shown) ~ .gate__cursor {
  opacity: 0;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.gate__input.shake {
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* PAGE */
.page {
  opacity: 0;
  transition: opacity 1s var(--transition-smooth);
}

.page[aria-hidden="false"] {
  opacity: 1;
}

/* EYEBROW */
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
  display: block;
  margin-bottom: 1.5rem;
}

/* HERO */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(74, 13, 26, 0.7) 0%,
    rgba(74, 13, 26, 0.4) 50%,
    rgba(74, 13, 26, 0.85) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--text-light);
  padding: 2rem;
  max-width: 900px;
}

.hero__title {
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 300;
  line-height: 0.95;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero__hook {
  font-size: clamp(0.875rem, 1.5vw, 1.125rem);
  opacity: 0.8;
  letter-spacing: 0.05em;
  max-width: 500px;
  margin: 0 auto;
}

.hero__footer {
  position: absolute;
  bottom: 6rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.5;
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.6;
  animation: float 2.5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* OPPORTUNITY */
.opportunity {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 2rem;
  background: var(--ecru);
}

.opportunity__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.opportunity__image {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 3/4;
}

.opportunity__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.opportunity__text {
  padding: 2rem 0;
}

.opportunity__line {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  color: var(--bordeaux);
}

/* INSIGHTS — HORIZONTAL SCROLL */
.insights {
  min-height: 100vh;
  background: var(--bordeaux);
  color: var(--text-light);
  padding: 6rem 0;
  overflow: hidden;
}

.insights__header {
  padding: 0 4rem;
  margin-bottom: 3rem;
}

.insights__header .eyebrow {
  color: var(--ecru);
  opacity: 0.6;
}

.insights__track {
  display: flex;
  gap: 2rem;
  padding: 0 4rem;
  width: max-content;
}

.insights__card {
  width: 380px;
  min-height: 420px;
  background: rgba(245, 240, 232, 0.05);
  border: 1px solid rgba(245, 240, 232, 0.1);
  border-radius: 4px;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex-shrink: 0;
  transition: border-color 0.4s ease, background 0.4s ease;
}

.insights__card:hover {
  border-color: rgba(245, 240, 232, 0.25);
  background: rgba(245, 240, 232, 0.08);
}

.insights__card-icon {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  opacity: 0.5;
}

.insights__card h3 {
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.2;
}

.insights__card p {
  font-size: 0.8rem;
  line-height: 1.7;
  opacity: 0.7;
}

/* STRATEGY */
.strategy {
  min-height: 100vh;
  padding: 0;
}

.strategy__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.strategy__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem;
  background: var(--ecru);
}

.strategy__title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  color: var(--bordeaux);
  line-height: 1.1;
  margin-top: 1rem;
}

.strategy__pillars {
  display: flex;
  flex-direction: column;
}

.strategy__pillar {
  padding: 6rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-height: 80vh;
  justify-content: center;
}

.strategy__pillar--dark {
  background: var(--bordeaux);
  color: var(--text-light);
}

.strategy__pillar--dark .eyebrow {
  color: var(--ecru);
  opacity: 0.5;
}

.strategy__pillar--light {
  background: var(--ecru);
  color: var(--text-dark);
}

.strategy__pillar h3 {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 400;
  line-height: 1.2;
}

.strategy__pillar p {
  font-size: 0.8rem;
  line-height: 1.8;
  opacity: 0.75;
  max-width: 400px;
}

.strategy__pillar-img {
  width: 100%;
  max-width: 360px;
  height: 200px;
  object-fit: cover;
  border-radius: 2px;
  margin-top: 1rem;
}

/* PLAN — TIMELINE */
.plan {
  min-height: 100vh;
  background: var(--ecru);
  padding: 8rem 2rem;
  display: flex;
  align-items: center;
}

.plan__inner {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.plan__timeline {
  position: relative;
  padding: 3rem 0;
  margin-left: 2rem;
}

.plan__line {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 100%;
  background: rgba(74, 13, 26, 0.15);
}

.plan__line::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 0%;
  background: var(--bordeaux);
  transition: height 0.1s linear;
}

.plan__milestone {
  position: relative;
  padding: 2.5rem 0 2.5rem 3rem;
}

.plan__dot {
  position: absolute;
  left: -5px;
  top: 3rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--bordeaux);
  background: var(--ecru);
  transition: background 0.4s ease, transform 0.4s ease;
}

.plan__milestone.is-active .plan__dot {
  background: var(--bordeaux);
  transform: scale(1.3);
}

.plan__date {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.5;
  display: block;
  margin-bottom: 0.5rem;
}

.plan__milestone h4 {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--bordeaux);
  margin-bottom: 0.5rem;
}

.plan__milestone p {
  font-size: 0.8rem;
  line-height: 1.7;
  opacity: 0.7;
  max-width: 400px;
}

/* DELIVERABLES */
.deliverables {
  min-height: 100vh;
  background: var(--ecru-dark);
  padding: 8rem 2rem;
  display: flex;
  align-items: center;
}

.deliverables__inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.deliverables__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.deliverables__card {
  background: var(--ecru);
  border: 1px solid rgba(74, 13, 26, 0.08);
  border-radius: 4px;
  padding: 2.5rem 2rem;
  transition: transform 0.4s var(--transition-smooth), box-shadow 0.4s ease;
}

.deliverables__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(74, 13, 26, 0.08);
}

.deliverables__label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.5;
  display: block;
  margin-bottom: 1rem;
}

.deliverables__card p {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--bordeaux);
}

/* CTA */
.cta {
  min-height: 100vh;
  background: var(--bordeaux);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
}

.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.cta__logo {
  width: 80px;
  height: auto;
  opacity: 0.6;
  filter: brightness(10);
}

.cta__line {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  max-width: 600px;
}

.cta__contact {
  font-size: 0.8rem;
  line-height: 2;
  opacity: 0.6;
  letter-spacing: 0.05em;
}

/* ANIMATIONS — initial states */
[data-animate="reveal"] {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.2s var(--transition-smooth);
}

[data-animate="reveal"].is-visible {
  clip-path: inset(0 0 0% 0);
}

[data-animate="fade-up"] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
}

[data-animate="fade-up"].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="card"] {
  opacity: 0;
  transform: translateY(30px) scale(0.97);
  transition: opacity 0.6s var(--transition-smooth), transform 0.6s var(--transition-smooth);
}

[data-animate="card"].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

[data-animate="milestone"] {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s var(--transition-smooth), transform 0.6s var(--transition-smooth);
}

[data-animate="milestone"].is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* MOBILE */
@media (max-width: 768px) {
  .opportunity__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .opportunity__image {
    aspect-ratio: 16/9;
  }

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

  .strategy__sticky {
    position: relative;
    height: auto;
    min-height: 50vh;
    padding: 4rem 2rem;
  }

  .strategy__pillar {
    padding: 4rem 2rem;
    min-height: 60vh;
  }

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

  .insights__card {
    width: 300px;
    min-height: 350px;
    padding: 2rem 1.5rem;
  }

  .insights__header {
    padding: 0 2rem;
  }

  .insights__track {
    padding: 0 2rem;
  }

  .hero__footer {
    bottom: 5rem;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 2.5rem;
  }

  .opportunity__line {
    font-size: 1.25rem;
  }

  .gate__logo {
    width: 80px;
  }
}
