/* Continuous city journey: only the scene edges fade. */
.origin.paper { background: #dcecf0; }
.origin-cloudscape { position:absolute; inset:0; z-index:-1; overflow:hidden; pointer-events:none; }
.origin-cloudscape .sky-cloud { opacity:1; filter:none; }
.origin-cloudscape .cloud-one { width:82%; left:-22%; top:-28%; animation-duration:32s; }
.origin-cloudscape .cloud-two { width:80%; right:-24%; top:-8%; animation-duration:43s; }
.origin-cloudscape .cloud-three { width:70%; left:24%; bottom:-35%; animation-duration:37s; }
.origin .origin-sky { background:transparent; }
.origin-sky .sky-cloud { display:none; }
.origin-wires,.origin-pigeon { z-index:1; }
#proyectos { position:relative; isolation:isolate; border-top:0; background:url('/art/new-york-skyline.png') center / cover no-repeat, #dcecf0; }
#proyectos::before { content:''; position:absolute; inset:0; z-index:-1; pointer-events:none; background:linear-gradient(#dcecf0,transparent 110px); }
#stack.toolkit { margin-top:0; }
#certificados { position:relative; isolation:isolate; background:url('/art/comic-shop-bg.png') center / cover no-repeat; }
.contact.contact-booth { position:relative; isolation:isolate; background:url('/art/london-street-bg.png') center / cover no-repeat; }
#certificados .section-heading,#certificados>.eyebrow,.contact-copy { background:none; border-radius:0; padding:0; text-shadow:0 1px 5px #fff8e9,0 0 18px #fff8e9; }
#certificados>.eyebrow { margin-bottom:20px; }
#certificados::before,.contact.contact-booth::before { content:''; position:absolute; inset:0; z-index:-1; pointer-events:none; }
#certificados::before { background:linear-gradient(#1b3671,transparent 85px,transparent calc(100% - 90px),#dcecf0); }
.contact.contact-booth::before { background:linear-gradient(#dcecf0,transparent 100px,transparent calc(100% - 70px),#162e5b); }
@media(max-width:750px) {
 .origin-cloudscape .cloud-one { width:160%; left:-65%; top:0; }
 .origin-cloudscape .cloud-two { width:170%; right:-80%; top:15%; }
 .origin-cloudscape .cloud-three { width:160%; left:-20%; bottom:-10%; }
 #certificados { background-position:center; }
 .contact.contact-booth { background-position:58% center; }
}
/* Let the same moving cloud cross the boundary into the city. */
.origin.paper { z-index:auto; isolation:isolate; overflow:visible; border-bottom:0; }
.origin-cloudscape {
 bottom:-190px;
 -webkit-mask-image:linear-gradient(#000 calc(100% - 130px),transparent);
 mask-image:linear-gradient(#000 calc(100% - 130px),transparent);
}
.origin-cloudscape .cloud-three { bottom:0; }
#proyectos { z-index:0; }
#proyectos::before { background:linear-gradient(#dcecf0 0%,#dcecf0e8 65px,#dcecf080 160px,transparent 320px); }
#proyectos .section-heading,#proyectos .tape-instruction { position:relative; z-index:2; }
@media(max-width:750px) {
 .origin-cloudscape { bottom:-125px; }
 .origin-cloudscape .cloud-three { bottom:0; }
 #proyectos::before { background:linear-gradient(#dcecf0,#dcecf0b3 100px,transparent 260px); }
}

/* Crisp lettering; localized contrast behind paragraphs, never a title glow. */
#certificados .section-heading,#certificados>.eyebrow,.contact-copy { text-shadow:none; }
.contact-copy>p:not(.eyebrow),#certificados .section-heading>p {
 font-size:clamp(17px,1.25vw,20px); line-height:1.65; font-weight:600; color:#101b2c;
 background:#fff5dfed; padding:5px 10px; width:fit-content;
 box-decoration-break:clone; -webkit-box-decoration-break:clone;
}
.contact-copy .eyebrow,.booth-hint { color:#101b2c; font-weight:700; font-size:12px; background:#fff5dfed; padding:5px 8px; width:fit-content; }
.booth-hint { margin-inline:auto; }

/* Carry the toolkit blue into the comic shop. */
#stack.toolkit { border-bottom:0; }
#certificados { border-top:0; }
#certificados::before {
 background:linear-gradient(#1b3671, transparent 125px, transparent calc(100% - 90px), #dcecf0);
}

/* Native scroll, with the portfolio's ink and gold palette. */
html {
 scrollbar-width:thin;
 scrollbar-color:#ffda43 #111b30;
}
@supports selector(::-webkit-scrollbar) {
 html { scrollbar-width:auto; scrollbar-color:auto; }
 html::-webkit-scrollbar { width:14px; height:14px; }
 html::-webkit-scrollbar-track { background:#111b30; }
 html::-webkit-scrollbar-thumb {
  background:repeating-linear-gradient(135deg,#ffda43 0 5px,#efbd32 5px 7px);
  border:2px solid #111b30;
  border-radius:3px;
  box-shadow:inset 0 0 0 1px #171714;
 }
 html::-webkit-scrollbar-thumb:hover { background:#ffe781; }
}
@media(forced-colors:active) {
 html { scrollbar-color:auto; }
}

/* Keep the scene blends continuous on both sides of the London street. */
.contact.contact-booth { border-block:0; }

/* Cloud layers stay behind the scene, with a clear sky between them. */
.origin.paper { background:#dcecf0; }
.origin-cloudscape { inset:0 0 -90px; z-index:-1; }
.origin-cloudscape .cloud-one { width:58%; left:-16%; top:2%; }
.origin-cloudscape .cloud-two { width:62%; right:-22%; top:24%; }
.origin-cloudscape .cloud-three { display:block; width:44%; left:-58%; top:auto; bottom:-100px; animation-duration:420s; animation-delay:-180s; }
.origin-cloudscape .sky-cloud { animation-name:cloud-one-way; animation-timing-function:linear; animation-iteration-count:infinite; animation-direction:normal; }
.origin-cloudscape .cloud-one { left:-12%; top:2%; animation-duration:360s; }
.origin-cloudscape .cloud-two { left:-45%; right:auto; top:auto; bottom:-40px; animation-duration:460s; animation-delay:-90s; }
.origin-cloudscape { inset:0 0 -190px; z-index:1; overflow:visible; -webkit-mask-image:linear-gradient(#000 70%,transparent 100%); mask-image:linear-gradient(#000 70%,transparent 100%); }
.origin.paper { position:relative; z-index:1; }
@keyframes cloud-one-way { from { transform:translateX(0); } to { transform:translateX(calc(100vw + 100%)); } }
@media(prefers-reduced-motion:reduce) { .origin-cloudscape .sky-cloud { animation:none; } }
.origin > .eyebrow,.origin > .origin-grid,.origin > .making { position:relative; z-index:2; }
#proyectos { padding-bottom:100px; border-bottom:0; }
#proyectos::after { content:''; position:absolute; inset:auto 0 0; height:100px; background:linear-gradient(transparent,#1b3671); pointer-events:none; z-index:-1; }
#stack.toolkit { margin-top:0; border-block:0; background-color:#1b3671; }
#certificados { border-block:0; }
.secret-identity { border-top:0; }
@media(max-width:750px) {
 .origin-cloudscape .cloud-one { width:100%; left:-35%; top:8%; }
 .origin-cloudscape .cloud-two { width:110%; left:-75%; right:auto; top:auto; bottom:-40px; }
 .origin-cloudscape .cloud-three { width:80%; left:-70%; bottom:-90px; }
}

/* Nubes con profundidad: una cercana (grande, nítida, más rápida) y una lejana (pequeña, suave, lenta). */
.origin-cloudscape {
  /* Ajustes rápidos */
  --front-width:62%;  --front-top:34%;  --front-speed:260s;  --front-delay:-90s;  --front-opacity:1;
  --back-width:42%;   --back-top:6%;    --back-speed:520s;   --back-delay:-300s;  --back-opacity:.6;  --back-blur:1.5px;

  inset:0; overflow:hidden; z-index:0;
  -webkit-mask-image:linear-gradient(#000 75%,transparent);
  mask-image:linear-gradient(#000 75%,transparent);
}
.origin-cloudscape .cloud-three { display:none; }

/* Lejana: detrás de la cercana, más pequeña, translúcida y con un leve desenfoque. */
.origin-cloudscape .cloud-two {
  z-index:0; width:var(--back-width); left:calc(var(--back-width) * -1); right:auto; top:var(--back-top); bottom:auto;
  opacity:var(--back-opacity); filter:blur(var(--back-blur));
  animation-duration:var(--back-speed); animation-delay:var(--back-delay);
}
/* Cercana: delante de la lejana, grande, nítida, con sombra suave y más rápida. */
.origin-cloudscape .cloud-one {
  z-index:1; width:var(--front-width); left:calc(var(--front-width) * -1); top:var(--front-top); bottom:auto;
  opacity:var(--front-opacity); filter:drop-shadow(0 16px 22px #6f93a533);
  animation-duration:var(--front-speed); animation-delay:var(--front-delay);
}
@media(max-width:750px) {
  .origin-cloudscape { --front-width:110%; --front-top:40%; --back-width:80%; --back-top:8%; }
}

/* The final skyline sits inside the scene and fades into its ground. */
.secret-identity .finale-skyline {
  background-image:linear-gradient(0deg,#09142bd9,#152e63a8),url('/art/city.webp');
  background-size:100% 100%,auto 94%;
  background-position:center,calc(100% - 4vw) bottom;
  background-repeat:no-repeat;
  opacity:1;
  -webkit-mask-image:linear-gradient(#000 0%,#000 76%,transparent 100%);
  mask-image:linear-gradient(#000 0%,#000 76%,transparent 100%);
}
@media(max-width:750px) {
  .secret-identity .finale-skyline {
    background-size:100% 100%,auto 62%;
    background-position:center,center bottom;
    -webkit-mask-image:linear-gradient(#000 0%,#000 87%,transparent 100%);
    mask-image:linear-gradient(#000 0%,#000 87%,transparent 100%);
  }
}

/* A street plaque suspended from the workshop by web strands. */
#proyectos { overflow:visible; }
#proyectos .section-heading>p { position:relative; z-index:2; box-sizing:border-box; max-width:350px; padding:20px 24px; border:3px solid #f5edda; border-radius:7px; background:linear-gradient(145deg,#27373d,#111c24); color:#fff4d4; box-shadow:0 0 0 2px #17262f,5px 7px 0 #17262f,0 14px 22px #15253535,inset 0 0 0 3px #101b23; font-size:14px; line-height:1.7; text-align:center; }
#proyectos .section-heading>p .tape-lead { display:inline-block; color:#ffda43; font-size:16px; font-weight:500; letter-spacing:.035em; }
#proyectos .section-heading>p::before,#proyectos .section-heading>p::after { content:''; position:absolute; top:7px; width:6px; height:6px; border-radius:50%; background:linear-gradient(135deg,#fff7dc,#849297); box-shadow:1px 1px 2px #000; }
#proyectos .section-heading>p::before { left:18px; }
#proyectos .section-heading>p::after { right:18px; }
.project-sign-web { position:absolute; overflow:visible; clip-path:inset(1px -40px -30px -40px); pointer-events:none; z-index:5; filter:drop-shadow(1px 2px 1px #263b4670); }
.project-sign-web .web-cord { stroke:#dce8e5; stroke-width:4; }
.project-sign-web .web-fibers { stroke:#fffdf2; stroke-width:.8; opacity:.9; }
.project-sign-web path { fill:none; stroke:#fff8e9; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
@media(max-width:750px) { #proyectos .section-heading>p { max-width:310px; padding:17px 20px; margin-top:32px; } }

/* Contact street signs: enamel panels mounted on a cast-metal post. */
#contacto .contact-copy { position:relative; isolation:isolate; padding:24px 8px 54px; max-width:560px; width:100%; box-sizing:border-box; }
#contacto .contact-copy::before { content:''; position:absolute; z-index:-1; top:0; bottom:-45px; left:24%; width:24px; border-radius:12px 12px 0 0; background:linear-gradient(90deg,#182126,#566364 32%,#303c3e 48%,#152025 80%); box-shadow:5px 0 8px #10182045,inset 2px 0 #a5b0a470; -webkit-mask-image:linear-gradient(#000 0,#000 calc(100% - 55px),transparent 100%); mask-image:linear-gradient(#000 0,#000 calc(100% - 55px),transparent 100%); }
#contacto .contact-copy::after { content:''; position:absolute; z-index:-1; left:calc(24% - 9px); top:3px; width:42px; height:15px; border-radius:50%; background:linear-gradient(#6a7775,#202b30); box-shadow:0 4px 0 #172126; }
#contacto .contact-copy .eyebrow { position:relative; margin:0 0 20px 18px; padding:10px 18px; background:#153e3b; color:#fff7df; border:2px solid #e7e3ce; border-radius:5px; box-shadow:3px 4px 0 #172628,0 8px 15px #15252630; letter-spacing:.13em; transform:rotate(-3deg); font-size:11px; }
#contacto .contact-copy h2 { position:relative; box-sizing:border-box; width:100%; margin:0 0 25px; padding:24px 22px 24px 38px; background:linear-gradient(165deg,#243239,#0d171d); color:#fff7df; border:3px solid #fff1d8; border-radius:9px; font-size:clamp(36px,4vw,58px); line-height:1.04; letter-spacing:0; text-shadow:none; transform:rotate(-3deg); box-shadow:5px 6px 0 #152126,0 15px 22px #15252645,inset 0 0 0 5px #101a20,inset 0 0 0 6px #7e8988; }
#contacto .contact-copy h2 em { color:#ffda43; }
#contacto .contact-copy h2::before,#contacto .contact-copy h2::after { content:''; position:absolute; left:13px; width:7px; height:7px; border-radius:50%; background:linear-gradient(135deg,#f5efdb,#748284); box-shadow:1px 1px 2px #000; }
#contacto .contact-copy h2::before { top:15px; }
#contacto .contact-copy h2::after { bottom:15px; }
#contacto .contact-copy>p:not(.eyebrow) { position:relative; box-sizing:border-box; max-width:94%; margin:0 0 14px 4%; padding:17px 22px; background:linear-gradient(140deg,#fff8e6,#e9e2cd); border:2px solid #223337; border-radius:5px; box-shadow:3px 4px 0 #233236,0 8px 12px #14232826,inset 0 0 0 4px #fff8e6,inset 0 0 0 5px #a5a99e; color:#17272d; font-size:clamp(15px,1.25vw,18px); line-height:1.55; font-weight:600; text-shadow:none; transform:rotate(1.5deg); }
#contacto .contact-copy>p:not(.eyebrow)+p { max-width:88%; margin-left:8%; transform:rotate(-1deg); }
#contacto .contact-direct.button { position:relative; margin:12px 0 0 5%; padding:17px 24px; background:#ffda43; color:#142126; border:2px solid #17272d; border-radius:5px; box-shadow:4px 5px 0 #17272d; transform:rotate(-2deg); transition:transform .2s,box-shadow .2s; }
#contacto .contact-direct.button:hover { transform:rotate(0) translateY(-2px); box-shadow:5px 7px 0 #17272d; }
#contacto .contact-direct.button:focus-visible { outline:3px solid #17272d; outline-offset:5px; }
@media(max-width:750px) {
 #contacto .contact-copy { max-width:480px; margin-inline:auto; padding:18px 5px 30px; }
 #contacto .contact-copy::before { bottom:-10px; }
 #contacto .contact-copy h2 { font-size:clamp(30px,8.5vw,46px); padding:22px 16px 22px 28px; }
 #contacto .contact-copy .eyebrow { font-size:9px; margin-left:8px; padding:9px 12px; }
 #contacto .contact-copy>p:not(.eyebrow) { font-size:15px; padding:15px 18px; }
}
@media(prefers-reduced-motion:reduce) { #contacto .contact-direct.button { transition:none; } }
