/*! © 2026 Veertik · Victor Padilla Navarro. Landing de diseño web: escenas de scroll. */
/* Sits on top of landing.css. The page's own pieces: the laptop that fills the screen, the
   reel of projects, the template-versus-bespoke comparison and the list of what a web carries. */
body[data-accent="web"] { --accent: #ff6bb5; --accent-rgb: 255, 107, 181; }

/* --- hero: a laptop that rises, straightens and becomes the whole screen ------------------- */
.dw-hero { position: relative; height: 100svh; min-height: 640px; padding: 0; overflow: hidden; }
.dw-hero .copy { position: absolute; z-index: 2; left: 0; right: 0; top: clamp(104px, 15vh, 150px); padding: 0 var(--pad); text-align: center; }
.dw-hero h1 { font-size: clamp(2.8rem, 8.4vw, 8rem); line-height: 0.95; letter-spacing: -0.05em; text-shadow: 0 4px 30px rgba(7, 6, 13, 0.9); }
.dw-hero h1 .grad { text-shadow: none; }
.dw-hero .lead { margin: 22px auto 0; max-width: 620px; text-shadow: 0 2px 18px rgba(7, 6, 13, 0.95); }
.dw-hero .ctas { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.dw-hero .hint { margin-top: 18px; font-size: 13px; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
.dw-hero .hint i { width: 18px; height: 28px; border: 2px solid var(--line); border-radius: 12px; position: relative; }
.dw-hero .hint i::after { content: ""; position: absolute; left: 50%; top: 5px; width: 4px; height: 6px; margin-left: -2px; border-radius: 2px; background: var(--accent); animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 60% { transform: translateY(8px); opacity: 0; } 61% { transform: none; opacity: 0; } 100% { opacity: 1; } }

.stage { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; perspective: 1000px; perspective-origin: 50% 10%; pointer-events: none; }
.laptop { width: min(1040px, 84vw); transform-origin: 50% 100%; will-change: transform; }
.laptop .lid {
  position: relative; border-radius: 22px 22px 8px 8px; padding: 1.6% 1.6% 2.6%;
  background: linear-gradient(180deg, #2a2540, #141024); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 80px 160px -50px rgba(var(--accent-rgb), 0.55), 0 40px 120px -40px rgba(155, 92, 255, 0.8);
}
.laptop .lid::before { content: ""; position: absolute; top: 0.6%; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #000; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.06); }
.laptop .view { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; }
.laptop video, .laptop .view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.laptop .glare { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, 0.14), transparent 35%); pointer-events: none; }
.laptop .base { height: 14px; margin: 0 -7%; border-radius: 0 0 18px 18px; background: linear-gradient(180deg, #3a3456, #17132a); box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.9); }
.laptop .base::before { content: ""; display: block; width: 16%; height: 6px; margin: 0 auto; border-radius: 0 0 8px 8px; background: #0e0b1c; }
.dw-hero .caption { position: absolute; z-index: 3; left: var(--pad); right: var(--pad); bottom: clamp(28px, 7vh, 72px); visibility: hidden; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.dw-hero .caption p { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; font-weight: 600; }
.dw-hero .caption h2 { font-size: clamp(2.2rem, 6vw, 5.4rem); max-width: 12ch; text-shadow: 0 6px 40px rgba(0, 0, 0, 0.8); }
.dw-hero .shade { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; background: radial-gradient(ellipse 60% 45% at 100% 100%, rgba(7, 6, 13, 0.92), rgba(7, 6, 13, 0.5) 55%, transparent); }

/* --- manifesto: the words light up as you read ------------------------------------------------- */
#manifesto { font-size: clamp(1.7rem, 4vw, 3.4rem); font-weight: 600; line-height: 1.18; letter-spacing: -0.03em; max-width: 1060px; }
.manifesto .w { opacity: 0.16; }
.manifesto .w.hl { color: var(--accent); }

/* --- the reel: projects slide past sideways while the page holds still ---------------------------- */
.reel { padding: 0; overflow: hidden; }
.reel .head { padding: clamp(84px, 11vh, 120px) var(--pad) 0; max-width: calc(1000px + 2 * var(--pad)); margin: 0; }
.reel .head .lead { max-width: 640px; }
.reel-track { display: flex; gap: clamp(20px, 3vw, 44px); padding: clamp(28px, 4vh, 56px) var(--pad) 80px; width: max-content; }
.proj { --c: var(--accent); width: min(1040px, 74vw); flex: none; display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(22px, 3vw, 44px); align-items: center; }
.proj .frame {
  position: relative; border-radius: 18px; padding: 10px; transform-style: preserve-3d;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03)); border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 50px 120px -50px var(--c);
}
.proj .bar { display: flex; gap: 6px; align-items: center; padding: 2px 6px 9px; }
.proj .bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); }
.proj .bar span { margin-left: 10px; font-size: 11px; color: var(--muted); padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); }
.proj .frame .screen { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.proj video, .proj .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.proj .tag { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c); }
.proj .tag::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 25%, transparent); }
.proj h3 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); font-weight: 500; margin: 14px 0 6px; }
.proj .big { font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.04em; }
.proj .txt > p:not(.tag):not(.big) { color: var(--muted); margin-top: 16px; max-width: 42ch; }
.proj .chips { margin-top: 20px; }
.proj.phones { width: min(980px, 78vw); grid-template-columns: 1fr 1fr; }
.duo { display: flex; justify-content: center; gap: 22px; }
.mini-phone { position: relative; width: clamp(150px, 15vw, 220px); aspect-ratio: 9 / 19.5; border-radius: 34px; padding: 9px; background: linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03)); border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: 0 50px 100px -40px var(--c); }
.mini-phone:nth-child(2) { transform: translateY(40px); }
.mini-phone .screen { position: relative; height: 100%; border-radius: 26px; overflow: hidden; background: #000; }
.mini-phone video, .mini-phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mini-phone small { position: absolute; left: 0; right: 0; bottom: -30px; text-align: center; font-size: 12px; color: var(--muted); }

/* --- template or bespoke: drag to compare --------------------------------------------------------- */
.compare-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.compare-wrap .head { margin-bottom: 0; }
.compare { --pos: 50%; position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 50px 120px -50px rgba(var(--accent-rgb), 0.7); user-select: none; touch-action: pan-y; }
.compare .after { position: absolute; inset: 0; }
.compare .after img { width: 100%; height: 100%; object-fit: cover; }
.compare .before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); background: #ecebf1; color: #4a4a57; font-family: Arial, Helvetica, sans-serif; padding: 4% 5%; display: grid; grid-template-rows: auto auto 1fr; gap: 5%; }
.tpl-nav { display: flex; justify-content: space-between; align-items: center; font-size: clamp(9px, 1vw, 13px); }
.tpl-nav b { font-size: 1.3em; color: #2b5ea8; }
.tpl-nav span { display: flex; gap: 1.4em; }
.tpl-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 5%; align-items: center; }
.tpl-hero h4 { font-size: clamp(14px, 2vw, 26px); font-weight: 700; color: #333; line-height: 1.15; }
.tpl-hero p { font-size: clamp(8px, 0.95vw, 12px); margin: 6% 0; line-height: 1.4; }
.tpl-hero em { display: inline-block; font-style: normal; background: #2b5ea8; color: #fff; padding: 0.5em 1.1em; border-radius: 3px; font-size: clamp(8px, 0.95vw, 12px); }
.tpl-img { aspect-ratio: 4 / 3; background: #c9c8d2; position: relative; }
.tpl-img::before, .tpl-img::after { content: ""; position: absolute; left: 50%; top: 50%; width: 70%; height: 2px; background: #b0afba; transform: translate(-50%, -50%) rotate(37deg); }
.tpl-img::after { transform: translate(-50%, -50%) rotate(-37deg); }
.tpl-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; align-self: start; }
.tpl-cards div { background: #fff; padding: 9% 8%; font-size: clamp(7px, 0.85vw, 11px); line-height: 1.35; }
.tpl-cards div::before { content: ""; display: block; width: 22%; aspect-ratio: 1; border-radius: 50%; background: #c9c8d2; margin-bottom: 8%; }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.9); pointer-events: none; }
.compare .handle::after {
  content: "‹ ›"; position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; transform: translate(-50%, -50%); border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; letter-spacing: 2px; color: #fff; background: linear-gradient(135deg, var(--lila), var(--accent)); box-shadow: 0 10px 30px -6px rgba(var(--accent-rgb), 0.9);
}
.compare .lbl { position: absolute; top: 14px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; pointer-events: none; }
.compare .lbl.l { left: 14px; background: #fff; color: #333; }
.compare .lbl.r { right: 14px; background: rgba(7, 6, 13, 0.75); color: #fff; }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare input:focus-visible + .handle::after { outline: 3px solid #fff; outline-offset: 3px; }

/* --- what a Veertik web carries: big rows that light up -------------------------------------------- */
.pillars { list-style: none; border-top: 1px solid var(--faint); }
.pillars li { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px 48px; align-items: center; padding: clamp(22px, 3vw, 36px) 0; border-bottom: 1px solid var(--faint); position: relative; }
.pillars li::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: linear-gradient(90deg, var(--lila), var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform 0.6s cubic-bezier(.2, .8, .2, 1); }
.pillars li:hover::before { transform: scaleX(1); }
.pillars h3 { font-size: clamp(1.6rem, 3.6vw, 3rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; color: rgba(244, 241, 255, 0.2); transition: transform 0.4s ease; }
.pillars li:hover h3 { transform: translateX(10px); }
.pillars p { color: var(--muted); font-size: 1.02rem; }

/* --- the close: the projects drift behind the last question ------------------------------------------ */
.final.dw-final { position: relative; overflow: hidden; }
.drift { position: absolute; inset: 0; z-index: -1; display: grid; align-content: center; gap: 18px; opacity: 0.22; -webkit-mask: radial-gradient(ellipse at center, #000 20%, transparent 72%); mask: radial-gradient(ellipse at center, #000 20%, transparent 72%); }
.drift div { display: flex; gap: 18px; width: max-content; }
.drift img { width: 360px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; }
.final.dw-final h2 { font-size: clamp(3rem, 10vw, 9rem); line-height: 0.92; letter-spacing: -0.055em; }

/* --- responsive -------------------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .compare-wrap { grid-template-columns: 1fr; }
  .reel-track { flex-direction: column; width: auto; padding-bottom: 60px; gap: 72px; }
  .proj, .proj.phones { width: 100%; grid-template-columns: 1fr; }
  .pillars li { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 720px) {
  .dw-hero .copy { top: 96px; }
  .dw-hero .ctas .btn { flex: 1 1 100%; }
  .dw-hero .hint { display: none; }
  .laptop { width: 92vw; }
  .reel .head { padding-top: 84px; }
  .mini-phone { width: 42vw; }
  .drift img { width: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  .dw-hero { height: auto; min-height: 0; padding: 130px 0 80px; }
  .dw-hero .copy, .stage { position: relative; inset: auto; top: auto; }
  .stage { margin-top: 48px; }
  .manifesto .w { opacity: 1; }
  .pillars h3 { color: var(--ink); }
  .dw-hero .hint i::after { animation: none; }
}
@media (max-width: 720px) {
  .dw-hero .caption { bottom: calc(110px + env(safe-area-inset-bottom)); }
  .dw-hero .caption h2 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .duo { margin-bottom: 64px; }
}
.dw-hero h1.is-long { font-size: clamp(2.3rem, 5.6vw, 5.4rem); }
