/* =========================================================
   Landing — Adpanel-inspired editorial redesign
   All landing-page-specific classes are prefixed .lp-
   This file loads AFTER styles.css and overrides body,
   header, hero, footer, and dropzone visuals.
   ========================================================= */

:root {
  --lp-bg: #f0f0f0;
  --lp-surface: #ffffff;
  --lp-surface-2: #ffffff;
  --lp-ink: #0a0a0a;
  --lp-ink-2: #252525;
  --lp-muted: #6b6b6b;
  --lp-line: #e4e4e4;
  --lp-line-2: #d6d6d6;
  --lp-accent: #000000;
  --lp-radius-pill: 999px;
  --lp-radius-card: 12px;
  --lp-radius-small: 6px;
  --lp-shadow-nav: 0 1px 2px rgba(0, 0, 0, 0.04);
  --lp-sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    Arial, sans-serif;
  --lp-serif: "Source Serif 4", "Fraunces", "Cormorant Garamond",
    "Times New Roman", serif;
  --lp-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --lp-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --lp-container: 1400px;
}

/* ---------- reset overrides ---------- */
html,
body {
  background: var(--lp-bg);
  color: var(--lp-ink);
  font-family: var(--lp-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-feature-settings: "ss01", "cv02", "cv11";
}

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

/* Kill the sticky/blur old header rules that would still apply */
.site-header {
  position: static;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 0;
}

/* ---------- HEADER — two-tier editorial nav ---------- */
.lp-header {
  display: block;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(240, 240, 240, 0.82);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
}

.lp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 48px;
  gap: 16px;
}

.lp-topbar-right {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.lp-signin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--lp-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--lp-ink);
  line-height: 1;
  transition: opacity 160ms var(--lp-ease);
}

.lp-signin:hover {
  opacity: 0.65;
}

.lp-signin svg {
  display: block;
}

.lp-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  color: var(--lp-ink);
  white-space: nowrap;
  line-height: 1;
}

.lp-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.lp-brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.lp-brand-name {
  font-family: "Fraunces", "Cormorant Garamond", "Times New Roman", serif;
  font-style: normal;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: normal;
  color: var(--lp-ink);
}

/* Full-width rule lines; tabs live in a gallery-aligned max-width container.
   Inner padding = 24px (gallery padding) + 64px inset from the image edges. */
.lp-tabs {
  width: 100%;
  border-top: 1px solid #d9d9d9;
  border-bottom: 1px solid #d9d9d9;
}

.lp-tabs-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  max-width: var(--lp-container);
  margin: 0 auto;
  height: 54px;
  padding: 0 88px;
  overflow-x: auto;
  scrollbar-width: none;
}

.lp-tabs-inner::-webkit-scrollbar {
  display: none;
}

.lp-tab {
  display: inline-flex;
  align-items: center;
  padding: 0 30px;
  font-family: var(--lp-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lp-ink);
  white-space: nowrap;
  line-height: 1;
  transition: background 160ms var(--lp-ease), color 160ms var(--lp-ease);
}

.lp-tab:hover {
  background: rgba(0, 0, 0, 0.05);
}

.lp-tab.is-active {
  background: var(--lp-ink);
  color: #fff;
}

.lp-tab.is-active:hover {
  background: var(--lp-ink);
}

.lp-tab-divider {
  align-self: center;
  width: 1px;
  height: 34px;
  background: #cfcfcf;
  flex-shrink: 0;
}

.lp-nav-user {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--lp-ink);
  color: #fff;
  overflow: hidden;
  text-indent: -9999px;
  white-space: nowrap;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='8' r='4'/><path d='M4 21c1-4 5-6 8-6s7 2 8 6'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  transition: background-color 160ms var(--lp-ease);
}

.lp-nav-user:hover {
  background-color: #333;
}

/* Ensure the HTML5 hidden attribute wins over utility display rules */
[hidden] {
  display: none !important;
}

/* ---------- HERO ---------- */
.lp-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 24px 0;
  max-width: 1080px;
  margin: 0 auto;
}

.lp-hero-title {
  margin: 0;
  padding: 0;
  font-family: var(--lp-sans);
  font-weight: 700;
  font-size: clamp(52px, 7.5vw, 96px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--lp-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.lp-hero-line {
  display: inline-flex;
  align-items: baseline;
  gap: 0.28em;
  white-space: nowrap;
}

.lp-italic {
  font-family: var(--lp-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--lp-ink);
  line-height: 1;
}

.lp-rotator-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  overflow: visible;
  min-width: 1ch;
}

.lp-rotator-text {
  display: inline-block;
  white-space: pre;
}

.lp-caret {
  display: inline-block;
  width: 0.13em;
  height: 0.95em;
  background: var(--lp-ink);
  margin-left: 0.04em;
  transform: translateY(0.08em);
  animation: lp-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  vertical-align: baseline;
}

@keyframes lp-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.lp-hero-sub {
  margin: 32px 0 0;
  max-width: 576px;
  font-family: var(--lp-sans);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--lp-ink);
  letter-spacing: normal;
  animation: lp-rise 0.9s var(--lp-ease-out) 0.2s both;
}

@keyframes lp-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- STUDIO / DROPZONE (redesigned adpanel style) ---------- */
/* 470px inner width + 48px side padding, centered */
.lp-studio {
  width: 100%;
  max-width: 518px;
  margin: 24px auto 0;
  padding: 0 24px;
  animation: lp-rise 0.9s var(--lp-ease-out) 0.35s both;
}

.lp-studio-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Override the dropzone visual to match adpanel drop area */
.lp-studio .dropzone-wrap {
  position: relative;
  width: 100%;
}

.lp-studio .dropzone-wrap.has-image {
  max-width: 480px;
  margin: 0 auto;
}

.lp-studio .dropzone {
  appearance: none;
  color: inherit;
  font: inherit;
  text-align: inherit;
  background: #ffffff;
  border: 2px dashed #d4d4d4;
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  aspect-ratio: auto;
  box-sizing: border-box;
  height: 128px;
  min-height: 128px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 160ms var(--lp-ease), background 160ms var(--lp-ease);
  position: relative;
  overflow: hidden;
  width: 100%;
}

.lp-studio .dropzone:hover,
.lp-studio .dropzone.is-drag {
  border-color: #1a1a1a;
  background: #fcfcfc;
}

.lp-studio .dropzone.has-image {
  aspect-ratio: 4 / 5;
  min-height: 0;
  padding: 0;
}

.lp-studio .dz-inner {
  position: static;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  color: var(--lp-ink);
  text-align: center;
  transition: opacity 160ms var(--lp-ease);
}

.lp-studio .dropzone.has-image .dz-inner {
  opacity: 0;
  pointer-events: none;
}

/* Monochrome: three steps of black — icon #1a1a1a, title #0a0a0a, caption #8a8a8a */
.lp-studio .dz-icon {
  display: block;
  width: 46px;
  height: 33px;
  color: #1a1a1a;
  margin-bottom: 18px;
  transform-origin: 50% 6%;
}

/* Nudge the hanger when the drop area is hovered — one soft, settling sway */
.lp-studio .dropzone:hover .dz-icon {
  animation: lp-hanger-sway 1.1s cubic-bezier(0.34, 0.7, 0.4, 1) both;
}

@keyframes lp-hanger-sway {
  0% { transform: rotate(0deg); }
  22% { transform: rotate(3.5deg); }
  48% { transform: rotate(-2.4deg); }
  72% { transform: rotate(1.2deg); }
  100% { transform: rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  .lp-studio .dropzone:hover .dz-icon {
    animation: none;
  }
}

.lp-studio .dz-title {
  margin: 0;
  font-family: var(--lp-sans);
  font-size: 12px;
  font-weight: 600;
  color: #0a0a0a;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lp-studio .dz-sub {
  display: block;
  margin: 8px 0 0;
  font-family: var(--lp-sans);
  font-size: 12px;
  font-weight: 400;
  color: #8a8a8a;
  letter-spacing: 0.02em;
}

.lp-studio .preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
  border-radius: var(--lp-radius-card);
  display: none;
}

.lp-studio .dropzone.has-image .preview {
  display: block;
}

.lp-studio .clear-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 160ms var(--lp-ease);
}

.lp-studio .clear-btn:hover {
  background: #000;
}

/* Controls become subtle, compact when visible */
.lp-controls-wrap {
  display: none;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  background: var(--lp-surface);
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius-card);
}

.lp-controls-wrap.is-open {
  display: flex;
}

.lp-controls-wrap .person-ref {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lp-controls-wrap .person-label {
  display: block;
  cursor: pointer;
}

.lp-controls-wrap .person-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px dashed #cfcfcf;
  border-radius: 10px;
  background: #fafafa;
  transition: border-color 160ms var(--lp-ease);
}

.lp-controls-wrap .person-inner.is-drag,
.lp-controls-wrap .person-inner:hover {
  border-color: var(--lp-ink);
}

.lp-controls-wrap .person-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #eaeaea;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.lp-controls-wrap .person-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lp-controls-wrap .person-avatar-placeholder {
  font-size: 20px;
  color: var(--lp-muted);
}

.lp-controls-wrap .person-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.lp-controls-wrap .person-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--lp-ink);
}

.lp-controls-wrap .person-sub {
  font-size: 12px;
  color: var(--lp-muted);
  line-height: 1.4;
}

.lp-controls-wrap .person-clear {
  border: 0;
  background: transparent;
  color: var(--lp-muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

.lp-controls-wrap .person-hint {
  font-size: 11px;
  color: var(--lp-muted);
  margin: 0;
  line-height: 1.4;
}

.lp-controls-wrap .gender-toggle {
  display: flex;
  gap: 8px;
  padding: 4px;
  background: #f2f2f2;
  border-radius: var(--lp-radius-pill);
  align-self: flex-start;
}

.lp-controls-wrap .gender-option {
  cursor: pointer;
}

.lp-controls-wrap .gender-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.lp-controls-wrap .gender-option span {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: var(--lp-radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--lp-muted);
  transition: all 160ms var(--lp-ease);
}

.lp-controls-wrap .gender-option input:checked + span {
  background: var(--lp-ink);
  color: #fff;
}

.lp-controls-wrap .controls {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.lp-controls-wrap .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lp-controls-wrap .field label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lp-muted);
}

.lp-controls-wrap .field select {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--lp-line);
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1L6 6L11 1' stroke='%23333' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/></svg>")
    no-repeat right 14px center;
  border-radius: 8px;
  padding: 11px 36px 11px 14px;
  font-family: var(--lp-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--lp-ink);
  cursor: pointer;
  transition: border-color 160ms var(--lp-ease);
}

.lp-controls-wrap .field select:focus,
.lp-controls-wrap .field select:hover {
  border-color: var(--lp-ink);
  outline: none;
}

.lp-controls-wrap .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 24px;
  border-radius: var(--lp-radius-pill);
  background: var(--lp-ink);
  color: #fff;
  border: 0;
  font-family: var(--lp-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 160ms var(--lp-ease), transform 160ms var(--lp-ease);
}

.lp-controls-wrap .btn-primary:hover {
  background: #333;
}

.lp-controls-wrap .btn-primary:active {
  transform: translateY(1px);
}

.lp-controls-wrap .fine-print {
  margin: 0;
  font-size: 11px;
  color: var(--lp-muted);
  text-align: center;
}

/* Results area — appears when generation returns */
.lp-results {
  margin-top: 32px;
}

.lp-results:empty {
  display: none;
}

/* ---------- GALLERY GRID ---------- */
.lp-gallery {
  padding: 28px 24px 0;
  max-width: var(--lp-container);
  margin: 0 auto;
}

.lp-gallery-caption {
  margin: 0 0 16px;
  font-family: var(--lp-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a8a8a;
}

.lp-gallery-head {
  text-align: center;
  padding: 0 0 40px;
}

.lp-gallery-eyebrow {
  font-family: var(--lp-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lp-muted);
  margin: 0 0 14px;
}

.lp-gallery-title {
  font-family: var(--lp-sans);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--lp-ink);
  margin: 0;
}

.lp-gallery-title em {
  font-family: var(--lp-serif);
  font-style: italic;
  font-weight: 400;
}

.lp-gallery-sub {
  margin: 18px auto 0;
  max-width: 560px;
  font-size: 16px;
  color: var(--lp-muted);
  line-height: 1.5;
}

/* Explicit editorial columns allow the opening edge to stagger instead of
   reading as a rigid, shared grid baseline. */
.lp-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.lp-grid-column {
  min-width: 0;
  list-style: none;
}

.lp-grid-column:nth-child(1) { padding-top: 0; }
.lp-grid-column:nth-child(2) { padding-top: 22px; }
.lp-grid-column:nth-child(3) { padding-top: 8px; }
.lp-grid-column:nth-child(4) { padding-top: 30px; }
.lp-grid-column:nth-child(5) { padding-top: 14px; }

.lp-grid-column-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lp-grid-item {
  position: relative;
  margin: 0 0 24px;
  border-radius: 14px;
  overflow: hidden;
  background: #e4e4e4;
  display: block;
  transition: transform 400ms var(--lp-ease-out);
}

/* Ratios are assigned before items enter columns, preventing each column from
   repeating the same vertical rhythm. */
.lp-grid-ratio-1 { aspect-ratio: 3 / 4; }
.lp-grid-ratio-2 { aspect-ratio: 3 / 5; }
.lp-grid-ratio-3 { aspect-ratio: 4 / 5; }
.lp-grid-ratio-4 { aspect-ratio: 5 / 7; }

.lp-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--lp-ease-out);
}

.lp-grid-item:hover img {
  transform: scale(1.04);
}

.lp-grid-heart {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  opacity: 0.7;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
  transition: opacity 160ms var(--lp-ease), transform 160ms var(--lp-ease);
}

.lp-grid-item:hover .lp-grid-heart,
.lp-grid-heart:hover {
  opacity: 1;
}

.lp-grid-heart:hover {
  transform: scale(1.1);
}

.lp-grid-heart svg {
  width: 18px;
  height: 18px;
  display: block;
  transition: fill 160ms var(--lp-ease), color 160ms var(--lp-ease);
}

.lp-grid-heart.is-saved {
  opacity: 1;
}

.lp-grid-heart.is-saved svg {
  fill: #ffffff;
  color: #ffffff;
}

/* Reveal-on-scroll — opacity only so it plays nice with column masonry */
@media (prefers-reduced-motion: no-preference) {
  .lp-reveal:not(.is-visible) {
    opacity: 0;
  }
}
.lp-reveal {
  transition: opacity 700ms var(--lp-ease-out);
}
.lp-reveal.is-visible {
  opacity: 1;
}

/* ---------- TRUST BAND ---------- */
.lp-trust {
  padding: 96px 24px 80px;
  max-width: var(--lp-container);
  margin: 0 auto;
  text-align: center;
}

.lp-trust-title {
  font-family: var(--lp-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--lp-ink);
  margin: 0 0 36px;
  letter-spacing: -0.01em;
}

.lp-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(28px, 6vw, 76px);
  opacity: 0.85;
}

.lp-trust-item {
  font-family: var(--lp-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--lp-ink);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lp-trust-item .lp-trust-mark {
  font-family: var(--lp-serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  font-size: 16px;
}

/* ---------- FOOTER (multi-column, adpanel style) ---------- */
.lp-footer {
  background: #e6e6e6;
  padding: 64px 24px 40px;
  border-top: 1px solid var(--lp-line);
}

.lp-footer-inner {
  max-width: var(--lp-container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(5, 1fr);
  gap: 40px;
  align-items: start;
}

.lp-footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.lp-footer-brand .lp-brand-name {
  font-size: 22px;
}

.lp-footer-brand .lp-brand-mark {
  width: 28px;
  height: 28px;
}

.lp-footer-address {
  font-size: 13px;
  line-height: 1.6;
  color: var(--lp-muted);
  font-style: normal;
}

.lp-footer-address a {
  color: var(--lp-muted);
  transition: color 160ms var(--lp-ease);
}

.lp-footer-address a:hover {
  color: var(--lp-ink);
}

.lp-footer-socials {
  display: inline-flex;
  gap: 14px;
  margin-top: 6px;
}

.lp-footer-socials a {
  color: var(--lp-muted);
  transition: color 160ms var(--lp-ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.lp-footer-socials a:hover {
  color: var(--lp-ink);
}

.lp-footer-col h4 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--lp-ink);
  letter-spacing: -0.01em;
}

.lp-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lp-footer-col ul a {
  font-size: 13px;
  color: var(--lp-muted);
  transition: color 160ms var(--lp-ease);
}

.lp-footer-col ul a:hover {
  color: var(--lp-ink);
}

.lp-footer-bottom {
  max-width: var(--lp-container);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid #dcdcdc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  color: var(--lp-muted);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .lp-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .lp-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
  .lp-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .lp-footer-brand-col {
    grid-column: 1 / -1;
  }
  .lp-controls-wrap .controls {
    grid-template-columns: 1fr;
  }
  .lp-topbar {
    padding: 12px 20px;
  }
  .lp-tabs-inner {
    padding: 0 20px;
    height: 50px;
    justify-content: flex-start;
    gap: 4px;
  }
  .lp-tab {
    padding: 0 16px;
    font-size: 12px;
  }
  .lp-hero {
    padding: 32px 20px 12px;
  }
  .lp-hero-title {
    font-size: clamp(48px, 13vw, 84px);
    letter-spacing: -0.03em;
  }
  .lp-gallery {
    padding: 60px 16px 0;
  }
  .lp-trust {
    padding: 72px 16px 56px;
  }
}

@media (max-width: 640px) {
  .lp-hero-sub {
    font-size: 16px;
    line-height: 24px;
  }
}

@media (max-width: 560px) {
  .lp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .lp-footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .lp-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .lp-brand-name {
    font-size: 17px;
  }
  .lp-signin {
    font-size: 14px;
  }
}

/* When the auth-user is present, hide the auth-link */
body:has(#auth-user:not([hidden])) .lp-signin {
  display: none;
}

/* Ensure the old header spacing quirks don't leak */
.lp-header .wrap {
  padding: 0;
  max-width: none;
}

.lp-header .header-inner {
  display: contents;
}

/* =========================================================
   Guided styling flow — modal steps, generating, results
   ========================================================= */

/* Legacy results panel is consumed by the flow, never shown raw */
.lp-results {
  display: none !important;
}

.flow-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background: rgba(12, 12, 12, 0.78);
  overflow-y: auto;
}

.flow-overlay-dark {
  background: rgba(10, 10, 10, 0.86);
}

.flow-overlay[hidden] {
  display: none !important;
}

/* ---------- modal shell ---------- */
.flow-modal {
  width: min(1200px, 100%);
  max-height: min(860px, calc(100vh - 48px));
  display: flex;
  flex-direction: column;
  background: #f7f7f7;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.55);
  margin: auto;
}

/* ---------- progress header ---------- */
.flow-steps {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: #f2f1f0;
  border-bottom: 1px solid #e0e0e0;
  flex-shrink: 0;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  border-right: 1px solid #e0e0e0;
  color: var(--lp-ink);
  position: relative;
}

.flow-step:last-child {
  border-right: 0;
}

.flow-step.is-active {
  background: #0a0a0a;
  color: #fff;
}

.flow-step-num {
  font-family: var(--lp-serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1;
  opacity: 0.9;
}

.flow-step-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.flow-step-copy b {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.flow-step-copy i {
  font-style: normal;
  font-size: 12px;
  opacity: 0.6;
}

.flow-step-mark {
  flex-shrink: 0;
}

.flow-step-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0a0a0a;
  color: #fff;
}

.flow-step.is-active .flow-step-check {
  background: #fff;
  color: #0a0a0a;
}

.flow-step-ring {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  opacity: 0.9;
}

.flow-close {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  display: inline-flex;
  opacity: 0.85;
  transition: opacity 160ms var(--lp-ease);
}

.flow-close:hover {
  opacity: 1;
}

/* ---------- body: rail + panel ---------- */
.flow-body {
  display: flex;
  align-items: stretch;
  flex: 1;
  min-height: 0;
}

.flow-rail {
  width: 252px;
  flex-shrink: 0;
  border-right: 1px solid #e5e5e5;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  overflow-y: auto;
}

.flow-rail-label {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #333333;
}

.flow-rail-ready {
  font-family: var(--lp-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: normal;
  text-transform: none;
  color: #6b6b6b;
  margin-left: 6px;
}

.flow-rail-img {
  background: #ececec;
  border-radius: 6px;
  overflow: hidden;
}

.flow-rail-img img {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  display: block;
}

.flow-rail-name {
  margin: 12px 0 0;
  font-family: var(--lp-serif);
  font-style: italic;
  font-size: 17px;
  color: var(--lp-ink);
}

.flow-panel {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.flow-panel[hidden] {
  display: none !important;
}

.flow-panel-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 34px 44px 28px;
}

.flow-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #333333;
}

.flow-title {
  margin: 0;
  font-family: var(--lp-sans);
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--lp-ink);
}

.flow-title em {
  font-family: var(--lp-serif);
  font-style: italic;
  font-weight: 400;
}

.flow-sub {
  margin: 12px 0 0;
  font-size: 16px;
  color: #6f6f6f;
}

/* ---------- step 2 · experience options ---------- */
.flow-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 28px;
  align-items: stretch;
}

.flow-option {
  position: relative;
  background: #f7f7f7;
  border: 1px solid #dddddd;
  border-radius: 10px;
  padding: 22px;
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms var(--lp-ease), box-shadow 160ms var(--lp-ease);
}

.flow-option:hover {
  border-color: #a9a9a9;
}

.flow-option.is-selected {
  border: 1.5px solid #0a0a0a;
  box-shadow: 0 8px 30px -18px rgba(0, 0, 0, 0.35);
}

.flow-option-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.flow-credits {
  display: inline-flex;
  padding: 5px 11px;
  border-radius: 999px;
  background: #ececec;
  border: 1px solid #e3e3e3;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #333333;
}

.flow-top-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.flow-recommended {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  background: #bef264;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0a0a0a;
  line-height: 1.2;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 0 14px rgba(190, 242, 100, 0.85);
}

.flow-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #8f8f8f;
  position: relative;
  flex-shrink: 0;
  transition: border-color 160ms var(--lp-ease);
}

.flow-option.is-selected .flow-radio,
.flow-occ.is-selected .flow-radio {
  border-color: #0a0a0a;
}

.flow-option.is-selected .flow-radio::after,
.flow-occ.is-selected .flow-radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #0a0a0a;
}

.flow-option h3 {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--lp-ink);
}

.flow-option p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: #6f6f6f;
}

/* photo drop inside option card */
.flow-photo-drop {
  margin-top: 18px;
  border: 1.5px dashed #c9c9c9;
  border-radius: 8px;
  background: #f0f0f0;
  min-height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: border-color 160ms var(--lp-ease);
}

.flow-photo-drop:hover {
  border-color: #0a0a0a;
}

.flow-photo-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
  color: #333333;
}

.flow-upload-illo {
  display: block;
  height: 60px;
  width: auto;
  transform-origin: 50% 96%;
}

/* The figure perks up when the photo drop is hovered — one soft, settling tilt */
.flow-photo-drop:hover .flow-upload-illo {
  animation: lp-figure-greet 1s cubic-bezier(0.34, 0.7, 0.4, 1) both;
}

@keyframes lp-figure-greet {
  0% { transform: rotate(0deg) translateY(0); }
  25% { transform: rotate(2deg) translateY(-2px); }
  55% { transform: rotate(-1.3deg) translateY(0); }
  80% { transform: rotate(0.6deg); }
  100% { transform: rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  .flow-photo-drop:hover .flow-upload-illo {
    animation: none;
  }
}

.flow-photo-empty span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.flow-photo-empty[hidden],
.flow-photo-preview[hidden] {
  display: none !important;
}

.flow-photo-preview {
  position: relative;
  width: 100%;
  background: #e9e9e9;
}

.flow-photo-preview img {
  display: block;
  margin: 0 auto;
  height: 150px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.flow-pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.flow-pill-added {
  top: 10px;
  left: 10px;
  background: #0a0a0a;
  color: #fff;
}

.flow-pill-change {
  bottom: 10px;
  right: 10px;
  background: #fff;
  color: #0a0a0a;
  border: 1px solid #dddddd;
}

/* ---------- step 3 · occasions ---------- */
.flow-occasions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 26px;
}

.flow-occ {
  background: #f7f7f7;
  border: 1px solid #dddddd;
  border-radius: 8px;
  padding: 16px 16px 12px;
  cursor: pointer;
  transition: border-color 160ms var(--lp-ease), box-shadow 160ms var(--lp-ease);
}

.flow-occ:hover {
  border-color: #a9a9a9;
}

.flow-occ.is-selected {
  border: 2px solid #0a0a0a;
  padding: 15px 15px 11px;
  box-shadow: 0 8px 30px -18px rgba(0, 0, 0, 0.3);
}

.flow-occ-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.flow-occ-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lp-ink);
}

.flow-occ .flow-radio {
  width: 18px;
  height: 18px;
}

.flow-occ-icon {
  display: block;
  height: 76px;
  width: auto;
  max-width: 88%;
  object-fit: contain;
  margin: 10px auto 4px;
  mix-blend-mode: multiply;
}

.flow-error {
  margin: 18px 0 0;
  font-size: 14px;
  color: #a03a3a;
}

.flow-auth-required {
  margin: 18px 0 0;
  padding: 16px;
  border: 1px solid #d8d0c5;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  color: var(--lp-ink);
}

.flow-auth-required p {
  margin: 8px 0 0;
}

.flow-auth-required .inline-auth-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--lp-ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

/* ---------- shared footer ---------- */
.flow-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 28px;
  border-top: 1px solid #e5e5e5;
  flex-shrink: 0;
  background: #f7f7f7;
}

.flow-back {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--lp-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lp-ink);
  padding: 10px 0;
}

.flow-foot-note {
  font-size: 13px;
  color: #8b8b8b;
}

.flow-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: #0a0a0a;
  color: #fff;
  font-family: var(--lp-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 17px 26px;
  cursor: pointer;
  transition: opacity 160ms var(--lp-ease);
}

.flow-cta:hover {
  opacity: 0.85;
}

.flow-cta:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ---------- generating ---------- */
.flow-gen-card {
  width: min(800px, 100%);
  background: #f7f7f7;
  border-radius: 8px;
  padding: 52px 40px 44px;
  text-align: center;
  margin: auto;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.6);
}

.flow-gen-card .flow-title {
  font-size: clamp(32px, 4vw, 48px);
}

.flow-gen-sub {
  margin: 14px 0 0;
  font-size: 17px;
  color: #6f6f6f;
}

.flow-gen-illo {
  max-width: 300px;
  margin: 14px auto 0;
  color: #1a1a1a;
}

.flow-gen-illo img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}

.flow-gen-thumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
  min-height: 0;
}

.flow-gen-thumbs img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  background: #fff;
}

.flow-gen-progress {
  margin: 18px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 19px;
  font-weight: 600;
  color: var(--lp-ink);
}

.flow-gen-dots {
  display: inline-flex;
  gap: 5px;
}

.flow-gen-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0a0a0a;
  animation: flow-dot 1.2s ease-in-out infinite;
}

.flow-gen-dots i:nth-child(2) { animation-delay: 0.15s; }
.flow-gen-dots i:nth-child(3) { animation-delay: 0.3s; }

@keyframes flow-dot {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .flow-gen-dots i {
    animation: none;
    opacity: 0.65;
  }
}

.flow-gen-note {
  margin: 14px 0 0;
  font-size: 15px;
  color: #8b8b8b;
}

/* ---------- results ---------- */
body.flow-results-open .lp-hero,
body.flow-results-open .lp-studio,
body.flow-results-open .lp-gallery,
body.flow-results-open .lp-trust {
  display: none !important;
}

.flow-results[hidden] {
  display: none !important;
}

.flow-results {
  padding: 40px 24px 72px;
}

.flow-results-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.flow-results-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 36px;
}

.flow-results-sub {
  margin: 14px 0 0;
  font-size: 16px;
  color: #555555;
}

.flow-chiprow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.flow-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  background: #efefee;
  font-family: var(--lp-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lp-ink);
  cursor: pointer;
  transition: border-color 160ms var(--lp-ease);
}

.flow-chip:hover {
  border-color: #0a0a0a;
}

.flow-item-card {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.flow-item-card-img {
  width: 104px;
  background: #fff;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.flow-item-card-img img {
  width: 100%;
  height: auto;
  max-height: 110px;
  object-fit: contain;
  display: block;
}

.flow-item-card-copy .flow-rail-name {
  margin: 4px 0 10px;
}

.flow-underline-btn {
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 0 2px;
  font-family: var(--lp-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lp-ink);
  border-bottom: 1.5px solid #0a0a0a;
  cursor: pointer;
}

.flow-looks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.flow-look {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.flow-look-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background-color: #e9e9e9;
  background-repeat: no-repeat;
}

.flow-look-num {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #fff;
  border-radius: 6px;
  padding: 5px 10px;
  font-family: var(--lp-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--lp-ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.flow-look-icons {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  gap: 8px;
}

.flow-look-icons button {
  border: 0;
  background: transparent;
  padding: 2px;
  color: #fff;
  cursor: pointer;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.flow-look footer {
  padding: 14px 16px;
}

.flow-look h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--lp-ink);
}

.flow-results-note {
  text-align: center;
  margin: 44px 0 0;
  font-size: 15px;
  color: #555555;
}

.flow-results-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.flow-cta-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid #0a0a0a;
  background: transparent;
  color: #0a0a0a;
  font-family: var(--lp-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 26px;
  cursor: pointer;
  transition: background 160ms var(--lp-ease), color 160ms var(--lp-ease);
}

.flow-cta-outline:hover {
  background: #0a0a0a;
  color: #fff;
}

/* ---------- flow responsive ---------- */
@media (max-width: 900px) {
  .flow-body {
    flex-direction: column;
  }
  .flow-rail {
    width: 100%;
    flex-direction: row;
    align-items: flex-start;
    border-right: 0;
    border-bottom: 1px solid #e5e5e5;
    padding: 16px 24px;
    gap: 20px;
  }
  .flow-rail-img img {
    max-height: 90px;
  }
  .flow-rail > div {
    flex: 1;
  }
  .flow-options {
    grid-template-columns: 1fr;
  }
  .flow-occasions {
    grid-template-columns: repeat(2, 1fr);
  }
  .flow-panel-scroll {
    padding: 24px;
  }
  .flow-steps {
    grid-template-columns: 1fr;
  }
  .flow-step {
    border-right: 0;
    border-bottom: 1px solid #e0e0e0;
    padding: 12px 20px;
  }
  .flow-step:last-child {
    border-bottom: 0;
  }
  .flow-results-head {
    flex-direction: column-reverse;
  }
  .flow-looks-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 560px) {
  .flow-overlay {
    padding: 12px;
  }
  .flow-occasions {
    grid-template-columns: 1fr;
  }
  .flow-looks-grid {
    grid-template-columns: 1fr;
  }
  .flow-foot {
    flex-wrap: wrap;
  }
  .flow-foot-note {
    display: none;
  }
}

/* =========================================================
   Full-screen intro loader — photo field flying past camera
   (auto-plays on page load; removed when progress hits 100%)
   ========================================================= */

.lp-loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #0a0a0a;
  overflow: hidden;
}

/* soft crossfade dissolve at 100% */
.lp-loader.is-leaving {
  opacity: 0;
  transition: opacity 950ms cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

/* page held below the curtain, then rising into place */
html.lp-preload body > header,
html.lp-preload body > footer {
  opacity: 0;
}

html.lp-preload main {
  opacity: 0;
  transform: translateY(28px);
}

html.lp-revealing body > header {
  opacity: 1;
  transition: opacity 500ms ease 250ms;
}

html.lp-revealing main {
  opacity: 1;
  transform: none;
  transition: opacity 650ms cubic-bezier(0.16, 1, 0.3, 1) 180ms,
    transform 650ms cubic-bezier(0.16, 1, 0.3, 1) 180ms;
}

html.lp-revealing body > footer {
  opacity: 1;
  transition: opacity 600ms ease 320ms;
}

/* film grain */
.lp-loader::after {
  content: "";
  position: absolute;
  inset: -60%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='240' height='240' filter='url(%23n)'/></svg>");
  opacity: 0.07;
  pointer-events: none;
  animation: lp-grain 1.6s steps(4) infinite;
}

@keyframes lp-grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-4%, 3%); }
  50% { transform: translate(3%, -4%); }
  75% { transform: translate(-2%, -2%); }
  100% { transform: translate(0, 0); }
}

.lp-loader-field {
  position: absolute;
  inset: 0;
  perspective: 1100px;
  transform-style: preserve-3d;
}

.lp-loader-tile {
  position: absolute;
  transform: translate(-50%, -50%) translateZ(811px);
  opacity: 0;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06) brightness(0.92);
  border-radius: 2px;
  animation-name: lp-loader-fly;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform, opacity;
}

/* camera-recede fly-through: every tile spawns near the camera (projection
   factor 3.8 pushes it fully beyond the viewport edge), then linear z-travel
   lets perspective carry it inward — fast and huge at the edges, decelerating
   and shrinking toward the vanishing point. The shared depth range means the
   opacity curve reads as fog: tiles dissolve by the time they shrink back to
   their reference positions, so the center stays clean for the loading UI. */
/* depth range calibrated to the reference (fov 60, linear fog 120→320):
   tiles enter ~3.5× their base size and shrink ~4.5× before the fog-fade
   completes, with dimming starting around 40% of the journey like real fog */
@keyframes lp-loader-fly {
  0% { transform: translate(-50%, -50%) translateZ(811px); opacity: 0; }
  6% { opacity: 0.95; }
  20% { opacity: 0.75; }
  40% { opacity: 0.38; }
  54% { opacity: 0; }
  100% { transform: translate(-50%, -50%) translateZ(-1265px); opacity: 0; }
}

.lp-loader-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  z-index: 2;
  padding: 24px;
  pointer-events: none;
}

/* dark focal core — dissolving tiles never reach the loading UI */
.lp-loader-center::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(66vw, 960px);
  height: min(62vh, 640px);
  transform: translate(-50%, -50%);
  background: radial-gradient(
    closest-side,
    rgba(10, 10, 10, 0.98) 22%,
    rgba(10, 10, 10, 0.82) 52%,
    rgba(10, 10, 10, 0) 100%
  );
  z-index: -1;
}

.lp-loader-count {
  margin: 0;
  color: #f4efe2;
  font-family: var(--lp-sans);
  font-size: clamp(22px, 2.9vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.8);
}

.lp-loader-count em {
  font-family: var(--lp-serif);
  font-style: italic;
  font-weight: 400;
  margin-right: 0.35em;
}

.lp-loader-msg {
  margin: 0;
  min-height: 22px;
  color: rgba(244, 239, 226, 0.62);
  font-family: var(--lp-sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  opacity: 1;
  transition: opacity 320ms ease;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.8);
}

.lp-loader-msg.is-swapping {
  opacity: 0;
}

.lp-loader-corner {
  position: absolute;
  z-index: 2;
  color: rgba(244, 239, 226, 0.8);
  font-family: var(--lp-serif);
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.lp-loader-corner.bl { left: 26px; bottom: 22px; }
.lp-loader-corner.br { right: 26px; bottom: 22px; }

@media (prefers-reduced-motion: reduce) {
  .lp-loader-tile,
  .lp-loader::after {
    animation: none;
  }
}
