/* InitialLandingPage (Etapa 10): centred entry screen over the backlit-leaves parallax (Etapa 7 look: natural
   green foliage, cream base, dark-green ink) with warm salmon accents. Real loading progress + two choices.
   Previous version: landing/_backup_etapa9/landing.css */
#landing {
  --ink: #12261a; --muted: rgba(18, 38, 26, .72); --salmon: #e9825c; --peach: #f6c3a6; --cream: #f6f1e3;
  position: fixed; inset: 0; z-index: 90; overflow: hidden; color: var(--ink); background: #efe9d8;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  transition: transform 1.1s cubic-bezier(.76, 0, .24, 1), border-radius 1.1s cubic-bezier(.76, 0, .24, 1), opacity .7s ease;
  will-change: transform;
}
#landing.gone { display: none; }
/* -> interactive: the page slides up into the room; a warm glow (the room's lamp light) blooms on the way */
#landing.leaving { transform: translateY(-100%); border-bottom-left-radius: 40% 12%; border-bottom-right-radius: 40% 12%; }
#landing::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
  background: radial-gradient(70% 55% at 50% 100%, rgba(255, 180, 120, .75), rgba(233, 130, 92, .25) 55%, transparent 80%);
  transition: opacity .9s ease; }
#landing.leaving::before { opacity: 1; }
/* -> traditional: a calm cream fade, a different gesture for a different experience */
#landing.leaving-alt { opacity: 0; transform: scale(1.02); transition: opacity .55s ease, transform .55s ease; }

/* backlit leaves with parallax (WebGL, landing/glass-bg.js) + static fallback */
#landing #glass-bg, #landing .bg-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
#landing #glass-bg { display: block; opacity: 0; transition: opacity .8s ease; }
.webgl-on #landing #glass-bg { opacity: 1; }
#landing .bg-fallback { background: #efe9d8 url("bg/garden-desktop.webp") center / cover no-repeat; }
@media (max-aspect-ratio: 9/10) { #landing .bg-fallback { background-image: url("bg/garden-mobile.webp"); } }

/* ---------------------------------------------------------------- centred composition */
#landing .lp-center {
  position: relative; z-index: 1; box-sizing: border-box; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: calc(24px + env(safe-area-inset-top)) calc(20px + env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) calc(20px + env(safe-area-inset-left));
}
/* soft light behind the text so it reads over any part of the foliage */
#landing .lp-center::before { content: ""; position: absolute; left: 50%; top: 50%; z-index: -1; width: min(760px, 120vw); height: min(560px, 90vh);
  transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(246, 241, 227, .62), rgba(246, 241, 227, .32) 55%, rgba(246, 241, 227, 0)); }

/* PersonalLogo: reserved slot. Empty = keeps its height so adding the logo later does not move anything */
#landing .lp-logo { width: clamp(64px, 9vmin, 96px); height: clamp(64px, 9vmin, 96px); margin-bottom: clamp(14px, 2.6vh, 26px);
  display: grid; place-items: center; }
#landing .lp-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

#landing .eyebrow { letter-spacing: .32em; text-transform: uppercase; font-size: 12px; color: var(--muted); margin: 0 0 10px; padding-left: .32em; }
#landing h1 { font-weight: 600; font-size: clamp(64px, min(14vw, 18vh), 168px); line-height: .9; letter-spacing: -.035em; margin: 0; color: var(--ink); }
#landing .lead { font-size: clamp(15px, 1.8vw, 20px); color: var(--muted); margin: 14px 0 0; }

/* LoadingIndicator: real progress; the shimmer runs only while loading */
#landing .lp-progress { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: clamp(26px, 4.5vh, 44px);
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); min-height: 30px; }
#landing .lp-bar { position: relative; width: clamp(180px, 26vw, 300px); height: 2px; background: rgba(18, 38, 26, .14); border-radius: 2px; overflow: hidden; }
#landing .lp-bar i { position: relative; display: block; height: 100%; width: 0; background: var(--ink); transition: width .35s ease, background .4s ease; overflow: hidden; }
#landing .lp-bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(246, 195, 166, .9), transparent);
  transform: translateX(-100%); animation: lpShimmer 1.6s ease-in-out infinite; }
#landing.ready .lp-bar i { background: var(--salmon); }
#landing.ready .lp-bar i::after { animation: none; display: none; }
@keyframes lpShimmer { to { transform: translateX(100%); } }

/* PortfolioNavigation: two choices with the same weight (side by side on wide screens) */
#landing .lp-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; width: min(560px, 100%); margin-top: clamp(22px, 4vh, 40px); }
#landing .lp-choice { box-sizing: border-box; min-height: 64px; padding: 12px 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border-radius: 999px; border: 1px solid rgba(18, 38, 26, .22); background: rgba(246, 241, 227, .78);
  backdrop-filter: blur(10px) saturate(1.1); -webkit-backdrop-filter: blur(10px) saturate(1.1);
  color: var(--ink); text-decoration: none; font: inherit; cursor: pointer;
  box-shadow: 0 10px 26px rgba(18, 38, 26, .12);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease, opacity .3s ease; }
#landing .lp-choice span { font-size: 15px; font-weight: 600; letter-spacing: .02em; }
#landing .lp-choice small { font-size: 11px; letter-spacing: .04em; opacity: .7; }
#landing .lp-choice:hover { transform: translateY(-2px); border-color: var(--salmon); box-shadow: 0 14px 30px rgba(233, 130, 92, .22); }
#landing .lp-choice:active { transform: translateY(0) scale(.98); box-shadow: 0 6px 16px rgba(18, 38, 26, .14); }
#landing .lp-choice:focus-visible { outline: 3px solid rgba(233, 130, 92, .55); outline-offset: 3px; }
/* the interactive one has a subtle emphasis (filled) */
#landing .lp-choice-main { background: var(--ink); color: var(--cream); border-color: var(--ink); }
#landing .lp-choice-main:hover { background: #1e3a28; border-color: var(--salmon); }
#landing .lp-choice-main:disabled { cursor: progress; opacity: .55; transform: none; box-shadow: none; border-color: transparent; }
#landing .lp-choice-main:disabled:hover { background: var(--ink); }

/* entrance: logo slot -> title -> loader -> buttons */
#landing .lp-logo, #landing .eyebrow, #landing h1, #landing .lead, #landing .lp-progress, #landing .lp-nav { animation: lpIn .9s cubic-bezier(.2, .8, .2, 1) both; }
#landing .eyebrow { animation-delay: .08s; } #landing h1 { animation-delay: .16s; } #landing .lead { animation-delay: .26s; }
#landing .lp-progress { animation-delay: .36s; } #landing .lp-nav { animation-delay: .48s; }
@keyframes lpIn { from { opacity: 0; transform: translateY(14px); } }

/* phones (portrait): stacked buttons, comfortable touch targets */
@media (max-width: 560px) {
  #landing .lp-nav { grid-template-columns: 1fr; width: min(340px, 100%); gap: 12px; }
  #landing .lp-choice { min-height: 60px; }
  #landing h1 { font-size: clamp(58px, 20vw, 96px); }
}
/* short screens (phone in landscape): tighter vertical rhythm, buttons stay side by side */
@media (max-height: 520px) {
  #landing .lp-logo { width: 44px; height: 44px; margin-bottom: 8px; }
  #landing .eyebrow { margin-bottom: 4px; }
  #landing h1 { font-size: clamp(40px, 15vh, 72px); }
  #landing .lead { margin-top: 6px; font-size: 14px; }
  #landing .lp-progress { margin-top: 14px; gap: 6px; }
  #landing .lp-nav { margin-top: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(520px, 100%); }
  #landing .lp-choice { min-height: 50px; padding: 8px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  #landing, #landing.leaving-alt { transition-duration: .01s; }
  #landing .lp-logo, #landing .eyebrow, #landing h1, #landing .lead, #landing .lp-progress, #landing .lp-nav { animation: none; }
  #landing .lp-bar i::after { animation: none; display: none; }
}
