/* ==========================================================================
   RECEPT LANDING & HEADER DESIGN SYSTEM
   Editorial polish, warm heritage craft, high-precision motion.
   ========================================================================== */

@property --shader-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

@property --shader-shift {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 50%;
}

:root {
  /* Tool design token overrides */
  --bg: #F8F4EA;
  --surface: #FBF4E4;
  --surface-2: #F1E9D7;
  --text: #2A1A12;
  --muted: #6E5F55;
  --border: rgba(42, 26, 18, 0.12);
  --border-strong: rgba(42, 26, 18, 0.28);
  --accent: #4A5A26;
  --accent-ink: #FAF7F0;
  --accent-soft: rgba(86, 101, 44, 0.12);
  --radius: 12px;

  /* Editorial palette & typography */
  --lp-paper: #FBF4E4;
  --lp-canvas: #F8F4EA;
  --lp-ink: #2A1A12;
  --lp-ink-soft: #63534A;
  --lp-olive: #56652C;
  --lp-olive-dark: #3F4B20;
  --lp-olive-action: #4A5A26;
  --lp-wine: #A41A3B;
  --lp-gold: #C9A227;
  --lp-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;

  --lp-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --lp-ease-spring: cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

/* Page film grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.16  0 0 0 0 0.1  0 0 0 0 0.07  0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0;
  background: transparent;
  border-bottom: none;
  transition: background 300ms ease, border-color 300ms ease;
}

.site-announcement {
  background: #23150E;
  color: #ECE1CD;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
  transition: transform 260ms var(--lp-ease-out), opacity 260ms ease;
}

.site-announcement-inner {
  width: min(100% - 40px, 1180px);
  margin-inline: auto;
  padding: 7px 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.site-announcement-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lp-gold);
  box-shadow: 0 0 8px var(--lp-gold);
  flex-shrink: 0;
}

.site-announcement-text {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.92;
}

.site-nav {
  position: relative;
  background: rgba(251, 244, 228, 0.72);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid rgba(42, 26, 18, 0.08);
  transition: padding 260ms var(--lp-ease-out), background 260ms ease, box-shadow 260ms ease;
}

.site-nav-inner {
  width: min(100% - 40px, 1180px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  transition: padding 260ms var(--lp-ease-out);
}

.site-header.is-stuck .site-nav {
  background: rgba(251, 244, 228, 0.92);
  box-shadow: 0 4px 20px rgba(42, 26, 18, 0.06);
  border-bottom-color: rgba(42, 26, 18, 0.14);
}

.site-header.is-stuck .site-nav-inner {
  padding: 9px 0;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--lp-ink);
}

.site-brand-mark {
  display: block;
  flex-shrink: 0;
  transition: rotate 500ms var(--lp-ease-out);
}

.site-brand:hover .site-brand-mark {
  rotate: 45deg;
}

.site-brand-name {
  font-family: var(--lp-serif);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--lp-ink);
  line-height: 1;
}

.site-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--lp-ink-soft);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  transition: color 180ms ease;
}

.site-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--lp-wine);
  scale: 0 1;
  transform-origin: center right;
  transition: scale 220ms var(--lp-ease-out);
}

.site-link:hover {
  color: var(--lp-ink);
  text-decoration: none;
}

.site-link:hover::after {
  scale: 1 1;
  transform-origin: center left;
}

.site-cta {
  appearance: none;
  border: 1px solid #3F4B20;
  background: linear-gradient(180deg, #586930 0%, #445422 100%);
  color: #FAF7F0;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(42, 26, 18, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: translate 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.site-cta:hover {
  translate: 0 -1px;
  box-shadow: 0 4px 10px rgba(63, 75, 32, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  filter: brightness(1.05);
}

.site-cta:active {
  translate: 0 0;
  box-shadow: 0 1px 2px rgba(42, 26, 18, 0.2);
}

@media (max-width: 820px) {
  .site-links {
    display: none;
  }
}

/* ==========================================================================
   LANDING ROOT & INNER CONTAINER
   ========================================================================== */

.lp {
  position: relative;
  width: 100%;
  overflow-x: clip;
  background: var(--lp-canvas);
  color: var(--lp-ink);
  padding-bottom: 60px;
}

.lp-wrap {
  width: min(100% - 40px, 1180px);
  margin-inline: auto;
}

/* Reveal mechanism */
.lp.lp-js [data-lp-reveal] {
  opacity: 0;
  translate: 0 24px;
  transition: opacity 800ms var(--lp-ease-out), translate 800ms var(--lp-ease-out);
  transition-delay: calc(var(--lp-delay, 0) * 1ms);
}

.lp.lp-js [data-lp-reveal].lp-in {
  opacity: 1;
  translate: 0 0;
}

/* Word-by-word reveal for title */
.lp.lp-js #lp-title .lp-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.lp.lp-js #lp-title .lp-word span {
  display: inline-block;
  translate: 0 115%;
  opacity: 0;
  transition: translate 850ms cubic-bezier(0.12, 0.9, 0.2, 1), opacity 650ms ease;
  transition-delay: calc(var(--lp-i, 0) * 45ms + 120ms);
}

.lp.lp-js [data-lp-reveal].lp-in #lp-title .lp-word span {
  translate: 0 0;
  opacity: 1;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.lp-hero {
  position: relative;
  padding: 80px 0 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 120px);
  box-sizing: border-box;
}

.lp-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.lp-shader {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at var(--shader-shift) 35%, rgba(164, 26, 59, 0.12) 0%, transparent 48%),
    radial-gradient(circle at calc(100% - var(--shader-shift)) 65%, rgba(86, 101, 44, 0.15) 0%, transparent 52%),
    conic-gradient(from var(--shader-angle) at 50% 50%, rgba(201, 162, 39, 0.08) 0deg, rgba(86, 101, 44, 0.1) 120deg, rgba(164, 26, 59, 0.08) 240deg, rgba(201, 162, 39, 0.08) 360deg);
  filter: blur(55px);
  opacity: 0.95;
  animation: lp-shader-move 28s ease-in-out infinite alternate;
}

.lp-shader::after {
  content: "";
  position: absolute;
  inset: 5%;
  background:
    radial-gradient(ellipse at 40% 60%, rgba(201, 162, 39, 0.14) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 30%, rgba(86, 101, 44, 0.18) 0%, transparent 55%);
  filter: blur(65px);
  animation: lp-shader-pulse 19s ease-in-out infinite alternate;
}

@keyframes lp-shader-move {
  0% {
    --shader-angle: 0deg;
    --shader-shift: 40%;
  }
  50% {
    --shader-shift: 62%;
  }
  100% {
    --shader-angle: 360deg;
    --shader-shift: 38%;
  }
}

@keyframes lp-shader-pulse {
  0% {
    translate: -2% -3%;
    scale: 0.96;
  }
  100% {
    translate: 3% 2%;
    scale: 1.05;
  }
}

/* CSS Particles */
.lp-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.lp-particle {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(var(--blur, 0px));
  animation: lp-particle-drift var(--dur, 16s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.lp-particle[data-tone="olive"] {
  background: var(--lp-olive);
  box-shadow: 0 0 8px rgba(86, 101, 44, 0.5);
}

.lp-particle[data-tone="wine"] {
  background: var(--lp-wine);
  box-shadow: 0 0 8px rgba(164, 26, 59, 0.5);
}

.lp-particle[data-tone="gold"] {
  background: var(--lp-gold);
  box-shadow: 0 0 8px rgba(201, 162, 39, 0.5);
}

@keyframes lp-particle-drift {
  0% {
    opacity: 0;
    translate: 0 0;
    scale: 0.6;
  }
  20% {
    opacity: var(--alpha, 0.5);
  }
  50% {
    opacity: calc(var(--alpha, 0.5) * 1.3);
    scale: 1.1;
  }
  80% {
    opacity: var(--alpha, 0.5);
  }
  100% {
    opacity: 0;
    translate: var(--dx, 20px) var(--dy, -80px);
    scale: 0.7;
  }
}

/* Decorative orbits */
.lp-orbits {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: min(100%, 1200px);
  height: auto;
  pointer-events: none;
  z-index: 1;
}

.lp-orbit-ring {
  transform-origin: 600px 340px;
  animation: lp-orbit-spin 120s linear infinite;
}

.lp-orbit-rev {
  transform-origin: 600px 340px;
  animation: lp-orbit-spin-rev 95s linear infinite;
}

.lp-orbit-ellipse {
  transform-origin: 600px 340px;
  animation: lp-orbit-spin 160s linear infinite;
}

@keyframes lp-orbit-spin {
  to { rotate: 360deg; }
}

@keyframes lp-orbit-spin-rev {
  to { rotate: -360deg; }
}

/* Floating thumbnail cards */
.lp-hero-floats {
  position: absolute;
  inset: 0;
  max-width: 1400px;
  margin-inline: auto;
  pointer-events: none;
  z-index: 1;
}

.lp-card-float {
  position: absolute;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 45px -10px rgba(42, 26, 18, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.6);
  background: var(--lp-paper);
}

.lp-card-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, transparent 60%);
  pointer-events: none;
  z-index: 2;
}

.lp-float-img {
  display: block;
  width: 100%;
  height: auto;
}

.lp-card-float-left {
  width: 190px;
  left: 3%;
  top: 24%;
  rotate: -6deg;
  animation: lp-float-left 14s ease-in-out infinite alternate;
}

.lp-card-float-right {
  width: 200px;
  right: 3%;
  top: 28%;
  rotate: 7deg;
  animation: lp-float-right 16s ease-in-out infinite alternate;
}

.lp-card-float-extra {
  width: 170px;
  right: 12%;
  top: 60%;
  rotate: -4deg;
  animation: lp-float-extra 18s ease-in-out infinite alternate;
}

@keyframes lp-float-left {
  0% { translate: 0 0; rotate: -6deg; }
  100% { translate: 8px -18px; rotate: -3deg; }
}

@keyframes lp-float-right {
  0% { translate: 0 0; rotate: 7deg; }
  100% { translate: -10px -22px; rotate: 4deg; }
}

@keyframes lp-float-extra {
  0% { translate: 0 0; rotate: -4deg; }
  100% { translate: 6px -16px; rotate: -1deg; }
}

@media (max-width: 1100px) {
  .lp-hero-floats {
    display: none;
  }
}

/* Hero Content */
.lp-hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--lp-olive-dark);
  background: rgba(86, 101, 44, 0.08);
  border: 1px solid rgba(86, 101, 44, 0.22);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.lp-eyebrow-pip {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lp-wine);
  box-shadow: 0 0 6px var(--lp-wine);
}

.lp-title {
  font-family: var(--lp-serif);
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--lp-ink);
  margin: 0 0 24px;
  text-wrap: balance;
}

.lp-lead {
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  line-height: 1.62;
  color: var(--lp-ink-soft);
  max-width: 660px;
  margin: 0 0 36px;
  text-wrap: pretty;
}

.lp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.lp-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: translate 200ms var(--lp-ease-out), box-shadow 200ms var(--lp-ease-out), background 200ms ease, filter 200ms ease;
}

.lp-cta-primary {
  background: linear-gradient(180deg, #586930 0%, #445422 100%);
  color: #FAF7F0;
  border: 1px solid #3F4B20;
  box-shadow: 0 2px 4px rgba(42, 26, 18, 0.16), 0 8px 24px -4px rgba(63, 75, 32, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  position: relative;
  overflow: hidden;
}

.lp-cta-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.22) 50%, transparent 100%);
  translate: -100% 0;
  transition: translate 600ms ease;
}

.lp-cta-primary:hover::before {
  translate: 100% 0;
}

.lp-cta-primary:hover {
  translate: 0 -2px;
  box-shadow: 0 4px 8px rgba(42, 26, 18, 0.2), 0 12px 28px -4px rgba(63, 75, 32, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  color: #FFFFFF;
  text-decoration: none;
}

.lp-cta-primary:active {
  translate: 0 0;
}

.lp-cta-secondary {
  background: rgba(251, 244, 228, 0.85);
  color: var(--lp-ink);
  border: 1px solid rgba(42, 26, 18, 0.2);
  box-shadow: 0 1px 3px rgba(42, 26, 18, 0.08);
}

.lp-cta-secondary:hover {
  translate: 0 -2px;
  background: #FFFFFF;
  border-color: rgba(42, 26, 18, 0.35);
  box-shadow: 0 4px 14px rgba(42, 26, 18, 0.12);
}

.lp-cta-secondary:active {
  translate: 0 0;
}

/* ==========================================================================
   B. FILM SECTION (OVERLAPPING APP WINDOW)
   ========================================================================== */

.lp-film-section {
  position: relative;
  z-index: 3;
  margin-top: -30px;
  padding-bottom: 50px;
}

.lp-window {
  position: relative;
  border-radius: 18px;
  background: #23150E;
  border: 1px solid rgba(201, 162, 39, 0.25);
  box-shadow: 0 30px 80px -15px rgba(42, 26, 18, 0.35), 0 0 0 1px rgba(42, 26, 18, 0.1);
  overflow: visible;
}

.lp-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #1B0F09;
  border-top-left-radius: 17px;
  border-top-right-radius: 17px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lp-window-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.lp-window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.lp-window-dot:nth-child(1) { background: #A41A3B; opacity: 0.85; }
.lp-window-dot:nth-child(2) { background: #C9A227; opacity: 0.85; }
.lp-window-dot:nth-child(3) { background: #56652C; opacity: 0.85; }

.lp-window-title {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: #B2A296;
}

.lp-window-spacer {
  width: 44px;
}

.lp-film {
  position: relative;
  display: block;
  overflow: hidden;
  border-bottom-left-radius: 17px;
  border-bottom-right-radius: 17px;
  aspect-ratio: 16 / 9;
  background: #100804;
}

.lp-aura {
  position: absolute;
  inset: -15%;
  width: 130%;
  height: 130%;
  object-fit: cover;
  pointer-events: none;
  opacity: 0.55;
  filter: blur(28px);
  translate: 0 var(--lp-shift, 0px);
  will-change: translate;
}

.lp-ring {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.lp-ring::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle 280px at 50% 0%, rgba(201, 162, 39, 0.35), transparent 70%);
  opacity: 0.7;
}

.lp-video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   C. STATS ROW
   ========================================================================== */

.lp-stats {
  list-style: none;
  padding: 0;
  margin: 40px 0 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.lp-stat {
  position: relative;
  padding: 26px 20px;
  border-radius: 14px;
  background: var(--lp-paper);
  border: 1px solid rgba(42, 26, 18, 0.1);
  box-shadow: 0 4px 16px rgba(42, 26, 18, 0.03);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: translate 220ms var(--lp-ease-out), box-shadow 220ms var(--lp-ease-out);
}

.lp-stat:hover {
  translate: 0 -3px;
  box-shadow: 0 8px 24px rgba(42, 26, 18, 0.08);
}

.lp-stat-num {
  font-family: var(--lp-serif);
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  font-weight: 700;
  line-height: 1;
  color: var(--lp-ink);
  letter-spacing: -0.02em;
}

.lp-stat-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--lp-ink-soft);
  text-transform: lowercase;
  letter-spacing: 0.02em;
}

@media (max-width: 860px) {
  .lp-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .lp-stats {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   D. MARQUEE
   ========================================================================== */

.lp-marquee {
  width: 100%;
  overflow: hidden;
  margin: 20px 0 90px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  mask-image: linear-gradient(90deg, transparent 0%, black 12%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 12%, black 88%, transparent 100%);
}

.lp-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: lp-marquee-left 42s linear infinite;
  will-change: transform;
}

.lp-track-rev {
  animation: lp-marquee-right 46s linear infinite;
}

.lp-track img {
  height: 200px;
  width: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(42, 26, 18, 0.1);
  border: 1px solid rgba(42, 26, 18, 0.08);
}

@keyframes lp-marquee-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes lp-marquee-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* ==========================================================================
   E. SHOWCASE
   ========================================================================== */

.lp-showcase {
  padding: 30px 0 80px;
}

.lp-section-head {
  text-align: center;
  margin-bottom: 48px;
}

.lp-subhead {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--lp-wine);
  margin-bottom: 8px;
}

.lp-section-heading {
  font-family: var(--lp-serif);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--lp-ink);
  line-height: 1.2;
}

.lp-stage {
  display: grid;
  grid-template-columns: 1fr 1fr 1.08fr;
  align-items: end;
  gap: 28px;
  max-width: 1080px;
  margin-inline: auto;
}

.lp-post {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  perspective: 1000px;
}

.lp-frame {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #23150E;
  box-shadow: 0 16px 36px -8px rgba(42, 26, 18, 0.22), 0 0 0 1px rgba(42, 26, 18, 0.1);
  transition: scale 280ms var(--lp-ease-out), box-shadow 280ms var(--lp-ease-out);
}

.lp-post:hover .lp-frame {
  scale: 1.02;
  box-shadow: 0 24px 50px -10px rgba(42, 26, 18, 0.3), 0 0 0 1px rgba(201, 162, 39, 0.35);
}

.lp-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transform: rotateX(var(--lp-rx, 0deg)) rotateY(var(--lp-ry, 0deg));
  transition: transform 120ms ease-out;
  will-change: transform;
}

.lp-post-story .lp-img {
  aspect-ratio: 9 / 16;
}

.lp-caption {
  margin-top: 14px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--lp-ink-soft);
  text-align: center;
  letter-spacing: 0.01em;
}

@media (max-width: 820px) {
  .lp-stage {
    grid-template-columns: 1fr;
    max-width: 440px;
    gap: 36px;
  }
  .lp-post-story .lp-img {
    aspect-ratio: 4 / 5;
  }
}

/* ==========================================================================
   F. PRINCIPLE (DARK BAND)
   ========================================================================== */

.lp-principle-wrap {
  width: 100%;
  margin: 40px 0 90px;
}

.lp-principle {
  margin: 0;
  padding: 85px 0;
  background-color: #23150E;
  background-image: url("/landing/band.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.lp-principle::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(35, 21, 14, 0.3) 0%, rgba(35, 21, 14, 0.8) 100%);
  pointer-events: none;
}

.lp-principle .lp-wrap {
  position: relative;
  z-index: 1;
}

.lp-principle-text {
  margin: 0;
  font-family: var(--lp-serif);
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.25;
  color: #FAF4E8;
  text-align: center;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   G. PHASES
   ========================================================================== */

.lp-phases-section {
  padding: 30px 0 60px;
}

.lp-phases {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: lp-phase-counter;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  position: relative;
}

.lp-phases::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 36px;
  right: 36px;
  height: 2px;
  background: linear-gradient(90deg, rgba(86, 101, 44, 0.35) 0%, rgba(164, 26, 59, 0.35) 50%, rgba(201, 162, 39, 0.35) 100%);
  z-index: 0;
}

.lp-phase {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  counter-increment: lp-phase-counter;
}

.lp-phase-marker {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--lp-paper);
  border: 2px solid var(--lp-olive);
  box-shadow: 0 0 0 4px var(--lp-canvas), 0 3px 8px rgba(42, 26, 18, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  transition: scale 240ms var(--lp-ease-spring), border-color 240ms ease;
}

.lp-phase:hover .lp-phase-marker {
  scale: 1.15;
  border-color: var(--lp-wine);
}

.lp-phase-marker::after {
  content: counter(lp-phase-counter, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--lp-ink);
}

.lp-phase-name {
  font-family: var(--lp-serif);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--lp-ink);
  margin: 0 0 8px;
}

.lp-phase-desc {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--lp-ink-soft);
  margin: 0;
  text-wrap: pretty;
}

@media (max-width: 960px) {
  .lp-phases {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .lp-phases::before {
    top: 22px;
    bottom: 22px;
    left: 21px;
    right: auto;
    width: 2px;
    height: auto;
  }
  .lp-phase {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 20px;
  }
  .lp-phase-marker {
    margin-bottom: 0;
    flex-shrink: 0;
  }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

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

  .lp.lp-js [data-lp-reveal] {
    opacity: 1 !important;
    translate: 0 0 !important;
  }

  .lp.lp-js #lp-title .lp-word span {
    translate: 0 0 !important;
    opacity: 1 !important;
  }

  .lp-orbit-ring,
  .lp-orbit-rev,
  .lp-orbit-ellipse,
  .lp-shader,
  .lp-shader::after,
  .lp-card-float,
  .lp-track {
    animation: none !important;
  }

  .lp-img {
    transform: none !important;
  }
}

/* ---------- Tool area (outside the generated design) ---------- */
.tool { padding-top: clamp(2rem, 5vw, 4rem); }

.pipeline > * {
  transition: box-shadow 0.35s ease, translate 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.pipeline > *:hover {
  translate: 0 -2px;
  box-shadow: 0 22px 44px -30px rgba(42, 26, 18, 0.45);
}

/* ---------- Corrections after reviewing the generated design in the browser ---------- */

/* The third card sat across the hero's lower edge and was cut by it. */
.lp-card-float-extra {
  width: 150px;
  right: 15%;
  top: 9%;
  rotate: -5deg;
}

@keyframes lp-float-extra {
  0% { translate: 0 0; rotate: -5deg; }
  100% { translate: 6px -14px; rotate: -2deg; }
}

.lp-card-float-right {
  top: 40%;
}

/* In-page links must clear the sticky bar. */
#lp-primjeri,
#lp-faze,
#pipeline-title,
#brief-panel {
  scroll-margin-top: 120px;
}

/* The non-affiliation notice must always be readable in full. */
.site-announcement-text {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

@media (max-width: 820px) {
  .site-announcement-inner {
    align-items: flex-start;
  }

  .site-announcement-text {
    font-size: 0.72rem;
    line-height: 1.35;
  }
}
