/* Reference fidelity: editorial peek carousel + non-overlaid flip affordance. */

/* The editorial story reads like a single three-scene interactive presentation. */
#editorial[data-editorial-story]{
  --es-ink:#19392b;
  --es-muted:#66776a;
  --es-rule:#d7ddd1;
  background:#f3f4ed;
  overflow:clip;
}
#editorial .es-heading{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  column-gap:24px;
  row-gap:20px;
  align-items:start;
  margin-bottom:36px;
}
#editorial .es-heading .eyebrow{
  grid-column:1;
  grid-row:1;
  font-size:12px;
  letter-spacing:.14em;
  line-height:1.5;
  font-weight:550;
}
#editorial .es-heading-progress{
  grid-column:2;
  grid-row:1;
  font-size:14px;
  line-height:1.5;
  color:#657568;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
#editorial .es-heading h2{
  grid-column:1/-1;
  grid-row:2;
  max-width:1100px;
  font-size:clamp(44px,5.8vw,82px);
  line-height:1.02;
  font-weight:580;
  letter-spacing:-.05em;
}
#editorial .es-heading h2 em{
  color:#19392b;
  font-family:var(--serif,Georgia,serif);
  font-weight:400;
  letter-spacing:-.046em;
}
#editorial .es-heading>p{
  grid-column:1/-1;
  grid-row:3;
  font-size:clamp(16px,1.65vw,20px);
  line-height:1.5;
  max-width:none;
  margin:0;
}
#editorial .es-workbench{border:0}
#editorial .es-panel{padding:12px 0 0}
#editorial .es-stage{
  width:min(100%,860px);
  padding:18px 0 12px;
  touch-action:pan-y;
  user-select:none;
  -webkit-user-select:none;
  overflow:visible;
}
#editorial .es-stage:before{display:none}
#editorial .es-stage>.es-device{
  position:relative;
  z-index:3;
  filter:drop-shadow(0 15px 20px #1425191b);
}
#editorial .es-peek{
  --peek-shift:clamp(212px,32vw,335px);
  position:absolute;
  top:50%;
  left:50%;
  z-index:1;
  display:block;
  width:clamp(200px,66%,304px);
  aspect-ratio:435/907;
  transform:translate(-50%,-50%) translateX(var(--side-offset)) scale(.96);
  margin:0;
  padding:0;
  border:0;
  border-radius:clamp(27px,6vw,48px);
  background:transparent;
  cursor:pointer;
  opacity:.77;
  transition:opacity 350ms ease,filter 350ms ease,transform 520ms cubic-bezier(.22,.8,.22,1);
  -webkit-tap-highlight-color:transparent;
}
#editorial .es-peek--left{--side-offset:calc(var(--peek-shift) * -1)}
#editorial .es-peek--right{--side-offset:var(--peek-shift)}
#editorial .es-peek:hover{opacity:.94;filter:saturate(1.1)}
#editorial .es-peek:focus-visible{outline:3px solid #4169a2;outline-offset:6px;opacity:1}
#editorial .es-peek-bezel{
  position:absolute;
  inset:0;
  display:block;
  border-radius:inherit;
  padding:8px;
  overflow:hidden;
  background:linear-gradient(135deg,#e7e8e5 0%,#919994 30%,#e2e4e1 58%,#8d958e 100%);
  box-shadow:0 15px 30px #2c3c3042,inset 0 0 0 2px #929a94;
}
#editorial .es-peek-screen{
  position:relative;
  display:flex;
  width:100%;
  height:100%;
  flex-direction:column;
  overflow:hidden;
  border-radius:clamp(22px,5.2vw,40px);
  background:#f4f4ed;
  color:#486151;
  text-align:left;
}
#editorial .es-peek-clock{
  display:flex;
  justify-content:space-between;
  padding:6% 9% 0;
  font:600 11px/1.3 var(--sans,Inter,Arial,sans-serif);
  color:#b3beb0;
}
#editorial .es-peek-step{
  display:block;
  margin:11% 8% 0;
  font:600 clamp(9px,1vw,12px)/1.5 var(--sans,Inter,Arial,sans-serif);
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#74897b;
}
#editorial .es-peek-title{
  display:block;
  min-height:22%;
  padding:7% 8% 4%;
  font:500 clamp(18px,2.2vw,27px)/1.12 var(--sans,Inter,Arial,sans-serif);
  letter-spacing:-.055em;
  overflow-wrap:break-word;
}
#editorial .es-peek-photo{
  display:block;
  flex:1;
  min-height:0;
  overflow:hidden;
  background:#c8d4c8;
}
#editorial .es-peek-photo img{
  display:block;
  pointer-events:none;
  user-select:none;
  -webkit-user-drag:none;
  width:100%;
  height:100%;
  object-fit:cover;
  filter:saturate(.68) contrast(.9);
  opacity:.78;
}
#editorial .es-peek-description{
  display:block;
  min-height:15%;
  padding:7% 8% 5%;
  font:400 clamp(12px,1.05vw,15px)/1.35 var(--sans,Inter,Arial,sans-serif);
  color:#748678;
  background:#faf9f3;
}
#editorial .es-swipe-nav{
  width:min(100%,660px);
  margin:0 auto;
  grid-template-columns:54px minmax(0,1fr) 54px;
  column-gap:24px;
  padding:16px 0 4px;
}
#editorial .es-swipe-nav button{
  width:52px;height:52px;border:1px solid #c8d1c5;background:#fbfcf7;
  color:#1d412d;
}
#editorial .es-swipe-nav button:not(:disabled):hover{background:#e7ede4}
#editorial .es-swipe-count{font-size:13px;font-weight:550;color:#385b43}
#editorial .es-swipe-dots{gap:12px}
#editorial .es-swipe-dots span{width:9px;height:9px;background:#d3d9cd}
#editorial .es-swipe-dots span.is-current{background:#244c33}
#editorial .es-swipe-hint{font-size:13px;color:#788779}
#editorial .es-swipe-hint span{font-size:14px;padding:0 3px}
#editorial .es-tabs{
  border-color:#d9dfd6;
  width:min(100%,440px);
  margin:0 auto 6px;
}
#editorial .es-tabs button{
  justify-content:center;
  min-height:46px;
  padding:10px 12px;
  font-size:13px;
  color:#677b6c;
}
#editorial .es-tabs button>span{font-size:15px;color:#859587}
#editorial .es-tabs button strong{font-size:13px;font-weight:600}
#editorial .es-tabs button[aria-selected=true]{background:#e8eee5;color:#274f33}
#editorial .es-tabs button:before{height:2px}
@media(min-width:900px){
  #editorial .es-stage{margin-bottom:2px}
  #editorial .es-tabs{margin-bottom:14px}
}
@media(max-width:700px){
  #editorial[data-editorial-story]{padding-top:64px}
  #editorial .es-heading{gap:14px;margin-bottom:28px}
  #editorial .es-heading .eyebrow{font-size:10px;max-width:29ch;line-height:1.5}
  #editorial .es-heading-progress{font-size:12px}
  #editorial .es-heading h2{font-size:clamp(35px,8.3vw,55px);line-height:1.07;letter-spacing:-.054em}
  #editorial .es-heading>p{font-size:15px}
  #editorial .es-panel{padding-top:18px}
  #editorial .es-stage{padding-block:10px 6px}
  #editorial .es-peek{--peek-shift:clamp(195px,56vw,225px);width:71%}
  #editorial .es-peek-title{font-size:clamp(15px,4vw,22px);min-height:25%}
  #editorial .es-peek-step{font-size:9px}
  #editorial .es-peek-description{font-size:10px}
  #editorial .es-tabs{width:100%;border-top:1px solid #e1e5de;margin:0 auto}
  #editorial .es-tabs button{min-height:46px;padding:8px 4px;gap:0}
  #editorial .es-tabs button>span{display:none}
  #editorial .es-tabs button strong{font-size:12px}
  #editorial .es-swipe-nav{grid-template-columns:48px minmax(0,1fr) 48px;gap:10px;padding-top:12px}
  #editorial .es-swipe-nav button{width:48px;height:48px}
  #editorial .es-swipe-hint{font-size:12px}
}

/* The existing third project remains a live flip card, not a flat screenshot. */
#trabalhos .rg-gallery .work-smiile{
  position:relative;
  border-color:#d4ded1;
  background:#fbfcf7;
}
/* Folded outer corner is decorative, never blocks a tap on the card. */
#trabalhos .rg-gallery .work-smiile::after{
  content:"";
  position:absolute;
  right:0;
  top:0;
  z-index:5;
  width:clamp(40px,7vw,66px);
  height:clamp(40px,7vw,66px);
  background:linear-gradient(225deg,#e5ece3 0%,#fffefa 49%,#cdd6ca 50%,transparent 51%);
  clip-path:polygon(0 0,100% 0,100% 100%);
  filter:drop-shadow(-2px 2px 4px #203a2b3b);
  border-radius:0 12px 0 0;
  pointer-events:none;
}
#trabalhos .rg-gallery .work-smiile .rg-card-stage{box-shadow:0 10px 28px #1e3f2b14}
#trabalhos .rg-gallery .rg-card-interaction-hint{
  position:absolute;
  z-index:3;
  top:clamp(12px,3vw,22px);
  right:clamp(10px,3vw,20px);
  display:block;
  width:33%;
  max-width:116px;
  padding:5px 7px;
  border-radius:6px;
  /* Opaque plate: every line keeps 5.4:1 whether it falls on the art's light band or on the photo. */
  background:#f7f4e9;
  color:#4f6a58;
  font:500 12px/1.35 var(--sans,Inter,Arial,sans-serif);
  text-align:right;
  pointer-events:none;
  text-wrap:balance;
  opacity:1;
  transition:opacity .3s ease;
}
#trabalhos .rg-gallery .rg-card-stage[data-face="back"] .rg-card-interaction-hint{
  opacity:0;
}
#trabalhos .rg-gallery .work-smiile .rg-flip:focus-visible{
  opacity:1;
}
#trabalhos .rg-gallery .work-smiile .rg-card-front img{
  -webkit-user-drag:none;
}
#laboratorio .sp-campaign-face-front::after{
  content:"";
  position:absolute;
  top:0;right:0;
  width:44px;height:44px;
  background:linear-gradient(225deg,#e7eee4 0%,#fffefa 48%,transparent 51%);
  clip-path:polygon(0 0,100% 0,100% 100%);
  pointer-events:none;
}
@media(max-width:420px){
  #trabalhos .rg-gallery .rg-card-interaction-hint{
    width:44%;
    max-width:130px;
    top:11px;right:11px;
  }
}
@media(prefers-reduced-motion:reduce){
  #editorial .es-peek,#trabalhos .rg-gallery .rg-card-interaction-hint{transition:none!important}
}
body.is-paused #editorial .es-peek,
body.is-paused #trabalhos .rg-gallery .rg-card-interaction-hint{transition:none!important}
