/* La transformación Cervélo vive dentro de su ficha; ningún selector altera otras piezas. */
#cervelo-experience {
  position: relative;
  min-height: 100svh;
  background: var(--black);
}
.ce-title-row {
  position: absolute;
  z-index: 4;
  top: 132px;
  left: 0;
  right: 0;
  margin: 0;
  padding: 0 var(--gutter);
  align-items: flex-start;
}
.ce-title-row h1 { font-size: clamp(40px, 4.8vw, 72px); }
.ce-stage {
  position: relative;
  height: 100svh;
  min-height: 650px;
  overflow: clip;
  isolation: isolate;
}
.ce-bike {
  position: absolute;
  width: min(1000px, 96vw);
  aspect-ratio: 1;
  left: 50%;
  top: 51%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
}
.ce-state { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.ce-state:not(.ce-state--factory) { visibility: hidden; }
.ce-identity-focus { position: absolute; inset: 0; z-index: 3; pointer-events: none; visibility: hidden; }
.ce-identity-object {
  position: absolute;
  left: 50%;
  top: 48%;
  width: min(clamp(150px, 14vw, 180px), 20.045svh);
  aspect-ratio: 85.539062 / 226.167969;
  transform: translate(-50%, -50%);
  transform-origin: center;
}
.ce-plaque { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; filter: brightness(2.4) drop-shadow(0 20px 24px rgba(0,0,0,.5)); }
.ce-identity-object canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#cervelo-experience[data-mode="scroll"] .ce-identity-object[data-renderer="webgl"] .ce-plaque { visibility: hidden; }
.ce-copy {
  position: absolute;
  z-index: 5;
  left: var(--gutter);
  top: 145px;
  display: grid;
  width: 300px;
  max-width: calc(100% - 2 * var(--gutter));
  padding-block: 6px;
  overflow: clip;
  overflow-clip-margin: 4px;
  pointer-events: none;
}
.ce-chapter { grid-area: 1 / 1; align-self: start; opacity: 0; visibility: hidden; }
.ce-chapter h2 { margin: 0; font-size: clamp(24px, 2.1vw, 32px); font-weight: 400; line-height: 1.15; letter-spacing: -.025em; text-wrap: balance; }
.ce-chapter p { max-width: 35ch; margin-top: 12px; color: var(--muted); font-size: 17px; line-height: 1.55; text-wrap: pretty; }
.ce-error { position: absolute; z-index: 6; left: var(--gutter); right: var(--gutter); bottom: 34px; max-width: 50ch; color: var(--muted); font-size: 16px; line-height: 1.55; }
.ce-static-list { display: none; }
.ce-visual-note { padding: 18px var(--gutter) var(--piece-space); color: var(--muted); font-size: 13px; line-height: 1.55; }

#cervelo-experience[data-enhanced="true"] .ce-state,
#cervelo-experience[data-enhanced="true"] .ce-chapter { visibility: visible; }
#cervelo-experience[data-mode="scroll"] { height: 500svh; min-height: calc(5 * 650px); }
#cervelo-experience[data-mode="scroll"] .ce-stage { position: sticky; top: 0; }
#cervelo-experience[data-mode="scroll"] .ce-visual-note { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: 22px; transform: translateY(100%); }
#cervelo-experience[data-mode="scroll"] + .piece-detail-pair { padding-top: var(--piece-space); }
#cervelo-experience[data-mode="static"] { min-height: 0; }
#cervelo-experience[data-mode="static"] .ce-title-row { position: relative; top: auto; padding: 138px var(--gutter) 36px; }
#cervelo-experience[data-mode="static"] .ce-stage { display: none; }
#cervelo-experience[data-mode="static"] .ce-static-list { display: grid; gap: clamp(36px, 5vw, 72px); padding: 0 var(--gutter); }
.ce-static-step { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; gap: clamp(30px, 5vw, 80px); margin: 0; }
.ce-static-step > img { display: block; width: 100%; height: auto; max-height: 62svh; object-fit: contain; }
.ce-static-step figcaption { max-width: 38ch; }
.ce-static-step .ce-static-title { margin: 0; color: var(--paper); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.15; font-weight: 400; letter-spacing: -.025em; text-wrap: balance; }
.ce-static-description { margin-top: 14px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.ce-static-step--identity > img { width: min(180px, 60%); max-height: 450px; justify-self: center; filter: brightness(2.4); }

@media (min-width: 1500px) { .ce-bike { width: 1120px; } .ce-copy { top: 160px; } }
@media (max-width: 1050px) {
  .ce-bike { width: min(94vw, 76svh); top: 43%; }
  .ce-copy { top: auto; bottom: 78px; width: 360px; }
}
@media (max-width: 760px) {
  .ce-title-row { top: 115px; gap: 20px; padding-bottom: 0; }
  .ce-title-row h1 { font-size: clamp(38px, 8.4vw, 54px); }
  #cervelo-experience[data-mode="static"] .ce-title-row { padding-top: 118px; }
  .ce-static-step { grid-template-columns: 1fr; gap: 20px; }
  .ce-static-step figcaption { max-width: 40ch; }
  .ce-static-step > img { max-height: 55svh; }
  .ce-static-step--identity > img { width: min(145px, 50%); max-height: 360px; }
}
@media (max-width: 600px) {
  .ce-stage { min-height: 620px; }
  .ce-bike { top: 44%; width: 98vw; }
  .ce-identity-object { top: 45%; width: min(130px, 15.885svh); }
  .ce-copy { bottom: 80px; width: 34ch; }
  .ce-chapter h2 { font-size: 24px; }
  .ce-chapter p { max-width: 32ch; margin-top: 10px; font-size: 16px; line-height: 1.5; }
  #cervelo-experience[data-mode="scroll"] { height: 480svh; min-height: calc(5 * 620px); }
  .ce-visual-note { font-size: 12px; }
}
@media (max-width: 360px) { .ce-chapter h2 { font-size: 23px; } .ce-chapter p { font-size: 15px; } .ce-static-description { font-size: 16px; } }
@media (max-height: 740px) and (min-width: 601px) {
  .ce-bike { width: min(850px, 90vw); top: 51%; }
  .ce-copy { top: 126px; bottom: auto; width: 280px; }
  .ce-chapter h2 { font-size: 26px; }
  .ce-chapter p { font-size: 16px; margin-top: 10px; }
  .ce-identity-object { width: min(clamp(150px, 14vw, 180px), 18.9105svh); }
}
@media (max-height: 740px) and (min-width: 601px) and (max-width: 1050px) {
  .ce-bike { width: min(88vw, 73svh); top: 43%; }
  .ce-copy { top: auto; bottom: 54px; width: 330px; }
}
@media (max-height: 740px) and (max-width: 600px) {
  .ce-bike { top: 42%; }
  .ce-copy { bottom: 62px; }
  .ce-chapter h2 { font-size: 23px; }
  .ce-chapter p { font-size: 15px; }
  .ce-identity-object { top: 43%; width: min(130px, 13.6155svh); }
}

/* En horizontal compacto, la copia y la bicicleta comparten el viewport. */
@media (max-height: 540px) and (min-width: 601px) {
  .ce-stage { min-height: 0; }
  #cervelo-experience[data-mode="scroll"] { min-height: 500svh; }
  .ce-bike { left: 67%; top: 52%; width: min(53vw, 95svh); }
  .ce-copy { top: 112px; bottom: auto; width: min(280px, 33vw); }
  .ce-chapter h2 { font-size: 23px; }
  .ce-chapter p { font-size: 15px; line-height: 1.5; }
  .ce-identity-object { left: 67%; top: 50%; }
}
