/* Gastronova Day – V5 (loaded only by day-nagomi.html V5). Four annotations; everything else is V4.
   Without JS / with reduced motion every part is complete and static. */

/* ---------------------------------------------------------------- 2 · hero emblem: real models in the circle */
.ng-page .em{align-content:center;gap:0}
.ng-page .em .em-disc{position:relative;width:74%;aspect-ratio:1;border-radius:50%;overflow:hidden;background:#101412;box-shadow:0 30px 90px rgba(0,0,0,.45),0 0 0 1px rgba(255,216,41,.35);isolation:isolate}
.ng-page .em-slide{position:absolute;inset:0;margin:0;opacity:0;visibility:hidden}
.ng-page .em-slide.is-on{opacity:1;visibility:visible}
.ng-page .em-bg{position:absolute;inset:-12%;width:124%;height:124%;object-fit:cover;filter:blur(18px) brightness(.5) saturate(.9);transform:scale(1.05)}
/* the photo keeps its own 3:2 proportions – nothing is stretched or spun */
.ng-page .em-img{position:absolute;left:50%;top:50%;width:112%;height:auto;aspect-ratio:3/2;object-fit:cover;transform:translate(-50%,-50%)}
.ng-page .em-date{position:absolute;right:2%;bottom:14%;z-index:3;display:grid;place-items:center;width:32%;aspect-ratio:1;margin:0;border-radius:50%;background:var(--ng-y);color:#141a16;font-size:13px;font-weight:700;text-align:center;line-height:1.2;box-shadow:0 12px 40px rgba(0,0,0,.35),0 0 60px rgba(255,216,41,.3)}
.ng-page .em-date b{display:block;font-size:clamp(24px,2.3vw,34px);letter-spacing:-.04em;line-height:1}
.ng-page .em > i:nth-of-type(2){inset:6%;border-style:dashed;border-color:rgba(243,241,234,.18);background:none}
.ng-page .em-ui{display:none}
.ng-page .em-static{position:absolute;left:0;right:0;bottom:-6px;display:flex;justify-content:center;gap:8px;margin:0;padding:0;list-style:none;font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#c9cfc7}
.ng-page .em-static li+li::before{content:"·";margin-right:8px;color:var(--ng-y)}
html.em-js .ng-page .em-static{display:none}
/* V4 styles every span inside .ng-emblem as the yellow date disc – undo that for the V5 controls */
.ng-page .em .em-ui span{position:static;display:inline;width:auto;aspect-ratio:auto;border-radius:0;background:none;box-shadow:none;color:inherit;font:inherit;place-items:initial}
html.em-js .ng-page .em-ui{position:absolute;left:-30px;right:-30px;top:100%;margin-top:10px;display:flex;flex-direction:column;align-items:center;gap:10px}
.ng-page .em-label{margin:0;text-align:center;font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:#aeb6ac}
.ng-page .em-label b{color:#fff;letter-spacing:.08em}
.ng-page .em-row{display:flex;align-items:center;gap:10px}
.ng-page .em-pick{display:flex;gap:4px;padding:3px;border-radius:999px;background:rgba(243,241,234,.08);border:1px solid rgba(243,241,234,.14)}
.ng-page .em-pick button,.ng-page .em-pause{min-height:44px;min-width:44px;border:0;border-radius:999px;background:transparent;color:#dfe4dc;font:700 13px Manrope,Arial,sans-serif;padding:0 14px;cursor:pointer}
.ng-page .em-pick button[aria-pressed=true]{background:var(--ng-y);color:#141a16}
.ng-page .em-pause{width:44px;padding:0;display:grid;place-items:center;border:1px solid rgba(243,241,234,.25)}
.ng-page .em .em-pause span{display:block;width:12px;height:14px;border-left:4px solid #fff;border-right:4px solid #fff}
.ng-page .em .em-pause[aria-pressed=true] span{width:0;height:0;border:0;border-left:13px solid #fff;border-top:8px solid transparent;border-bottom:8px solid transparent;margin-left:4px}
.ng-page .em-pick button:focus-visible,.ng-page .em-pause:focus-visible{outline:3px solid var(--ng-y);outline-offset:2px}
.ng-page .em.is-paused > i:first-of-type{animation-play-state:paused}
@media (prefers-reduced-motion:no-preference){
  /* crossfade with a short arc: the incoming photo swings in along the circle, the outgoing one swings out */
  html.em-js .ng-page .em-slide{transition:opacity .9s ease,visibility 0s linear .9s}
  html.em-js .ng-page .em-slide.is-on{transition:opacity .9s ease,visibility 0s}
  html.em-js .ng-page .em-slide .em-img{transition:transform 1.1s cubic-bezier(.2,.7,.1,1)}
  html.em-js .ng-page .em-slide:not(.is-on) .em-img{transform:translate(-50%,-50%) rotate(-7deg) translateX(9%)}
  html.em-js .ng-page .em-slide.is-out .em-img{transform:translate(-50%,-50%) rotate(7deg) translateX(-9%)}
}
@media (prefers-reduced-motion:reduce){.ng-page .em-pause{display:none!important}}
/* V4 hides the emblem below 1100 px – V5 shows a compact row there: circle left, model + picker right (~150 px) */
@media (max-width:1100px){
  .ng-page .ng-emblem.em{display:grid;grid-template-columns:128px minmax(0,1fr);align-items:center;gap:0 16px;width:100%;max-width:520px;aspect-ratio:auto;margin:22px 0 4px;justify-self:start}
  .ng-page .em > i{display:none}
  .ng-page .em .em-disc{width:128px;grid-row:1/3}
  .ng-page .em-date{position:static;grid-column:2;display:inline-flex;align-items:baseline;gap:8px;justify-self:start;width:auto;aspect-ratio:auto;padding:6px 12px;border-radius:999px;font-size:12px;margin:0 0 8px;box-shadow:none}
  .ng-page .em-date b{display:inline;font-size:16px}
  html.em-js .ng-page .em-ui{position:static;margin:0;align-items:flex-start;gap:8px}
  .ng-page .em-label{text-align:left;font-size:11px}
  .ng-page .em-row{flex-wrap:wrap;gap:6px}
  .ng-page .em-pick{flex-wrap:wrap}
  .ng-page .em-pick button{padding:0 10px;font-size:12px}
  .ng-page .em-static{position:static;grid-column:2;justify-content:flex-start;flex-wrap:wrap}
  html.em-js .ng-page .em-ui{grid-column:2}
  .ng-page .em-pause{position:absolute;left:-6px;top:-6px;z-index:4;background:rgba(16,20,18,.85)}
}
@media (max-width:380px){
  .ng-page .ng-emblem.em{grid-template-columns:104px minmax(0,1fr);gap:0 12px}
  .ng-page .em .em-disc{width:104px}
  .ng-page .em-pick{gap:2px}
  .ng-page .em-pick button{padding:0 8px;font-size:11.5px}
}


/* ---------------------------------------------------------------- 3 · gallery: one exterior + one interior */
.ng-page .gv{margin-top:clamp(56px,7vw,96px);scroll-margin-top:96px}
.ng-page .gv-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px 24px;margin-bottom:20px}
.ng-page .gv-head h3{margin:0;font-size:clamp(26px,2.6vw,38px);letter-spacing:-.035em;font-weight:500;color:#141a16}
.ng-page .gv-switch{display:none;gap:4px;padding:4px;border-radius:999px;background:rgba(255,255,255,.7);border:1px solid rgba(20,26,22,.1)}
.ng-page .gv-switch button{min-height:44px;padding:0 22px;border-radius:999px;border:0;background:transparent;font:700 15px Manrope,Arial,sans-serif;color:#2a312c;cursor:pointer;transition:background-color .3s ease,color .3s ease}
.ng-page .gv-switch button[aria-pressed=true]{background:#141a16;color:#fff}
.ng-page .gv-switch button:focus-visible{outline:3px solid #141a16;outline-offset:3px}
/* static: the two views side by side (stacked on phones) */
.ng-page .gv-stage{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ng-page .gv-view{position:relative;margin:0;border-radius:22px;overflow:hidden;background:#101412;aspect-ratio:16/9}
.ng-page .gv-view a{display:block;height:100%}
.ng-page .gv-view img{display:block;width:100%;height:100%;object-fit:cover}
.ng-page .gv-int img{object-position:50% 45%}
.ng-page .gv-view figcaption{position:absolute;left:14px;bottom:14px;right:14px;display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;font-size:14px;color:#fff;text-shadow:0 1px 10px rgba(0,0,0,.6)}
.ng-page .gv-view figcaption b{padding:6px 12px;border-radius:999px;background:var(--ng-y);color:#141a16;font-size:13px;letter-spacing:.08em;text-transform:uppercase;text-shadow:none}
.ng-page .gv-hint{display:none}
.ng-page .gv-cta{display:flex;flex-wrap:wrap;align-items:center;gap:12px 22px;margin-top:22px}
.ng-page .gv-cta .np-link{color:#141a16}
/* with JS + motion: one stage, the interior wipes in over the exterior as you scroll (no pinning) */
html.gv-js .ng-page .gv-switch{display:flex}
html.gv-js .ng-page .gv-stage{display:block;position:relative;border-radius:24px;overflow:hidden;aspect-ratio:16/9;background:#101412;--p:0}
html.gv-js .ng-page .gv-view{position:absolute;inset:0;border-radius:0;aspect-ratio:auto}
html.gv-js .ng-page .gv-ext img{transform:scale(calc(1 + var(--p) * .06));transform-origin:62% 50%}
html.gv-js .ng-page .gv-int{-webkit-mask-image:linear-gradient(100deg,#000 calc(var(--p) * 140% - 22%),transparent calc(var(--p) * 140% - 2%));mask-image:linear-gradient(100deg,#000 calc(var(--p) * 140% - 22%),transparent calc(var(--p) * 140% - 2%))}
html.gv-js .ng-page .gv-int img{transform:scale(calc(1.08 - var(--p) * .08))}
html.gv-js .ng-page .gv-ext figcaption{opacity:calc(1 - var(--p) * 2.2)}
html.gv-js .ng-page .gv-int figcaption{opacity:calc(var(--p) * 2.2 - 1.2)}
html.gv-js .ng-page .gv-hint{display:block;position:absolute;right:14px;top:14px;margin:0;padding:6px 12px;border-radius:999px;background:rgba(16,20,18,.55);color:#e6ebe4;font-size:12px;font-weight:700;letter-spacing:.04em;opacity:calc(1 - var(--p) * 3);pointer-events:none}
@media (max-width:760px){
  .ng-page .gv-stage{grid-template-columns:1fr}
  .ng-page .gv-head{align-items:flex-start}
  html.gv-js .ng-page .gv-switch{width:100%}
  .ng-page .gv-switch button{flex:1}
  html.gv-js .ng-page .gv-stage{aspect-ratio:4/3;border-radius:18px}
  .ng-page .gv-ext img{object-position:44% 50%}
  .ng-page .gv-view figcaption{font-size:13px}
  html.gv-js .ng-page .gv-hint{display:none}
}

/* ---------------------------------------------------------------- 4 · offer: premium sequence (facts unchanged) */
/* layout fix for every mode: the 10 % sits above the heading, the heading gets the full column (no cramped wrap) */
.ng-page .dn-offer .offer .in>div:first-child>div:first-of-type{display:block!important}
.ng-page .dn-offer .offer .pct{display:inline-block;margin:6px 0 10px;line-height:.9}
.ng-page .dn-offer .offer .in>div:first-child h3{max-width:20ch;font-size:clamp(28px,3vw,42px);line-height:1.08;letter-spacing:-.02em}
.ng-page .dn-offer .offer .in>div:first-child h3+p{max-width:52ch}
.ng-page .dn-offer .tmini{position:relative;padding-left:22px}
.ng-page .dn-offer .tmini::before,.ng-page .dn-offer .tmini::after{content:"";position:absolute;left:5px;top:14px;bottom:14px;width:2px;border-radius:2px;background:rgba(243,241,234,.14)}
.ng-page .dn-offer .tmini::after{background:var(--ng-y,#ffd829);transform-origin:top;transform:scaleY(var(--tl,1))}
.ng-page .dn-offer .tmini li{position:relative}
.ng-page .dn-offer .tmini li::before{content:"";position:absolute;left:-21px;top:17px;width:10px;height:10px;border-radius:50%;background:#0e0f11;border:2px solid var(--ng-y,#ffd829)}
@media (prefers-reduced-motion:no-preference){
  html.of-js .ng-page .dn-offer .obg img{transform:translate3d(0,var(--oy,0px),0) scale(1.08);transition:transform .2s linear;will-change:transform}
  html.of-js .ng-page .dn-offer .pct{clip-path:inset(0 100% 0 0);transform:translateY(8px);transition:clip-path 1.1s cubic-bezier(.2,.7,.1,1),transform 1.1s cubic-bezier(.2,.7,.1,1)}
  html.of-js .ng-page .dn-offer .is-in .pct{clip-path:inset(0 0 0 0);transform:none}
  html.of-js .ng-page .dn-offer .pct{background:linear-gradient(100deg,var(--brand,#ffc400) 40%,#fff6c2 50%,var(--brand,#ffc400) 60%) 0 0/250% 100%;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
  html.of-js .ng-page .dn-offer .is-in .pct{animation:of-shine 1.6s .9s ease-out 1 both}
  html.of-js .ng-page .dn-offer .in>div:first-child>*{opacity:0;transform:translateY(16px);transition:opacity .7s ease,transform .8s cubic-bezier(.2,.7,.1,1)}
  html.of-js .ng-page .dn-offer .is-in .in>div:first-child>*{opacity:1;transform:none}
  html.of-js .ng-page .dn-offer .is-in .in>div:first-child>*:nth-child(2){transition-delay:.12s}
  html.of-js .ng-page .dn-offer .is-in .in>div:first-child>*:nth-child(3){transition-delay:.35s}
  html.of-js .ng-page .dn-offer .is-in .in>div:first-child>*:nth-child(4){transition-delay:.5s}
  html.of-js .ng-page .dn-offer .tmini li{transition:opacity .5s ease,color .5s ease}
  html.of-js .ng-page .dn-offer .tmini li:not(.on){opacity:.55}
  html.of-js .ng-page .dn-offer .tmini li::before{transition:background-color .4s ease,box-shadow .4s ease}
  html.of-js .ng-page .dn-offer .tmini li.on::before{background:var(--ng-y,#ffd829);box-shadow:0 0 16px rgba(255,216,41,.6)}
}
@keyframes of-shine{from{background-position:100% 0}to{background-position:0 0}}

/* ---------------------------------------------------------------- 1 · capsule in short landscape (phones on their side):
   V4 already overlapped the headline, the disclosure and the buttons there – keep the (now complete) trailer readable */
@media (orientation:landscape) and (max-height:560px) and (min-width:760px){
  .ng-story.is-film .ng-says{top:74px}
  .ng-story.is-film .ng-says li{font-size:20px;max-width:40ch}
  .ng-story.is-film .ng-reveal figcaption{top:calc(var(--cy,58%) + var(--ch,0px)/2 + 6px);font-size:10.5px;line-height:1.3;padding:3px 12px;max-width:86%}
  .ng-story.is-film .ng-stage-cta{bottom:8px}
  .ng-story.is-film .ng-stage-cta a{min-height:44px;padding-top:0;padding-bottom:0;font-size:13px}
}
