/* Série 3 (31–70): forty places built like L'Atelier. One stylesheet for the chapters, the panels and their three
   calls to action, the pop-ups and their foot, on desktop and phone. */
html, body { overflow-x: clip; }
.gl { touch-action: pan-y; }
.hero { left: var(--gut); top: calc(92px + env(safe-area-inset-top, 0px)); max-width: 400px; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.in-ch .hero, .in-ch .time { opacity: 0; transform: translateY(-8px); pointer-events: none; }
.hero .h1 { font-size: clamp(34px, 4.2vw, 66px); }
.hero .lead { max-width: 34ch; }
.hero .scroll { margin-top: 18px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.time { left: 0; right: 0; margin: 0 auto; bottom: calc(60px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 8px; justify-items: center; width: min(360px, 60vw); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.time p { margin: 0; font-size: 12px; color: var(--fg); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.time .row { display: flex; align-items: center; gap: 10px; width: 100%; }
.time input { flex: 1; accent-color: #fff; }
.time button { height: 28px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.time button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.nav { right: var(--gut-r); top: 50%; transform: translateY(-50%); }
.nav div { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.nav button { display: flex; flex-direction: row-reverse; align-items: center; gap: 10px; height: 24px; padding: 0; font-size: 12px; font-weight: 500; letter-spacing: .02em; color: var(--mute); transition: color .25s; }
.nav button::before { content: ''; width: 14px; height: 1px; background: currentColor; transition: width .35s var(--ease); }
.nav button span { transition: opacity .3s var(--ease), transform .3s var(--ease); }
.in-ch .nav button span { opacity: 0; transform: translateX(6px); }
.in-ch .nav:hover button span, .in-ch .nav button[aria-current="true"] span { opacity: 1; transform: none; }
.nav button:hover, .nav button[aria-current="true"] { color: var(--fg); }
.nav button[aria-current="true"]::before { width: 28px; }
/* chapters: one per service, the place behind them */
.chapters { position: relative; z-index: 5; pointer-events: none; }
.chap { position: relative; height: 100vh; }
.ch__in { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; padding: 0 var(--gut); box-sizing: border-box; }
.ch__panel { pointer-events: auto; width: min(400px, 86vw); padding: 28px 28px 24px; border-radius: 22px; background: rgba(250, 250, 250, .95); color: #111; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.chap.is-on .ch__panel { opacity: 1; transform: none; }
.ch__panel p { margin: 0; }
.ch__k { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #6a6a6a; }
.ch__h { margin: 8px 0 12px; font-size: 32px; font-weight: 500; letter-spacing: -.035em; line-height: 1.04; }
.ch__d { font-size: 14px; line-height: 1.55; color: #333; }
.ch__act { margin-top: 18px; padding-top: 14px; border-top: 1px solid #e4e4e4; display: flex; gap: 6px; flex-wrap: nowrap; align-items: center; }
.ch__act > a, .ch__act > button { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid #111; font-size: 13px; font-weight: 500; color: #111; text-decoration: none; background: transparent; white-space: nowrap; }
.ch__act .primary { background: #111; color: #fff; }
.ch__top { display: block; margin: 12px 0 0; padding: 0; font-size: 12px; color: #6a6a6a; background: none; border: 0; }
.ch__top:hover { color: #111; }
/* the opening screen keeps the pair in the corner; in a chapter the panel carries all three */
.ctas { right: var(--gut-r); bottom: calc(60px + env(safe-area-inset-bottom, 0px)); display: flex; gap: 8px; transition: opacity .4s var(--ease); }
.in-ch .ctas { opacity: 0; pointer-events: none; }
.ctas a { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px; font-size: 13px; font-weight: 500; text-decoration: none; border: 1px solid rgba(255, 255, 255, .55); color: #fff; background: rgba(0, 0, 0, .28); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.ctas a.primary { background: #fff; color: #111; border-color: #fff; }
.tip { left: 0; top: 0; padding: 7px 12px; border-radius: 999px; background: rgba(250, 250, 250, .95); color: #111; font-size: 12px; font-weight: 500; opacity: 0; transition: opacity .18s; white-space: nowrap; will-change: transform; }
/* pop-ups: in front of everything, the × in the corner, the way out in a fixed foot */
.pop { position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; padding-bottom: 86px; box-sizing: border-box; opacity: 0; transition: opacity .32s var(--ease); }
.pop.on { opacity: 1; }
.pop[hidden] { display: none; }
.pop__bg { position: absolute; inset: 0; background: rgba(12, 12, 12, .62); backdrop-filter: blur(16px) saturate(.9); -webkit-backdrop-filter: blur(16px) saturate(.9); }
.pop__x { position: fixed; z-index: 3; top: calc(18px + env(safe-area-inset-top, 0px)); right: calc(18px + env(safe-area-inset-right, 0px)); width: 48px; height: 48px; border-radius: 50%; background: #fff; color: #111; font-size: 30px; line-height: 1; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.pop__x:hover { transform: scale(1.06); }
.pop__body { position: relative; z-index: 2; width: min(1100px, 94vw); max-height: calc(100vh - 120px); overflow: auto; padding: 18px 0 24px; color: #fff; text-align: center; transform: translateY(14px); transition: transform .4s var(--ease); scrollbar-width: none; }
.pop.on .pop__body { transform: none; }
.pop__head { margin-bottom: 8px; }
.pop__k { margin: 0; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.pop__head h3 { margin: 6px 0 0; font-size: clamp(24px, 3vw, 36px); font-weight: 500; letter-spacing: -.03em; }
.pop__acts { display: flex; justify-content: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.pop__acts button { display: inline-flex; align-items: center; height: 42px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .7); color: #fff; font-size: 14px; font-weight: 500; background: transparent; }
.pop__acts .primary { background: #fff; color: #111; border-color: #fff; }
.pop__foot { position: fixed; z-index: 3; left: 0; right: 0; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: center; pointer-events: none; transform: translateY(10px); transition: transform .4s var(--ease); }
.pop.on .pop__foot { transform: none; }
.pop__cta { display: flex; justify-content: center; gap: 10px; pointer-events: auto; }
.pop__cta a { display: inline-flex; align-items: center; height: 44px; padding: 0 22px; border-radius: 999px; font-size: 14px; font-weight: 500; text-decoration: none; color: #fff; border: 1px solid rgba(255, 255, 255, .7); background: rgba(18, 18, 18, .6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.pop__cta a.primary { background: #fff; color: #111; border-color: #fff; }
.pop__text, .pop__note { max-width: 46ch; margin: 12px auto 0; font-size: 14px; line-height: 1.55; color: rgba(255, 255, 255, .78); }
/* the wheel of folders: three in view, endless */
.wheel { position: relative; height: 300px; margin: 4px auto 0; touch-action: pan-y; user-select: none; -webkit-user-select: none; outline: none; cursor: grab; }
.wheel:active { cursor: grabbing; }
.wheel__stage { position: absolute; inset: 0; }
.wheel__item { position: absolute; left: 50%; top: 22px; width: 220px; padding: 0; transform-origin: 50% 100%; will-change: transform, opacity; }
.wheel__hint { position: absolute; left: 50%; bottom: -14px; width: 250px; transform: translateX(-50%) perspective(420px) rotateX(56deg); fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .95; pointer-events: none; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .35)); }
.wheel__arc { stroke-dasharray: 34 230; animation: arc 2.6s cubic-bezier(.45, 0, .2, 1) infinite; }
.wheel__head { opacity: .9; }
@keyframes arc { 0% { stroke-dashoffset: 250; } 100% { stroke-dashoffset: 0; } }
.fold { display: block; position: relative; width: 100%; aspect-ratio: 5 / 4; }
.fold__back { position: absolute; inset: 12px 0 0 0; border-radius: 6px 14px 14px 14px; background: #cfcfcf; }
.fold__tab { position: absolute; top: 0; left: 18px; width: 34%; height: 22px; border-radius: 9px 9px 0 0; background: #cfcfcf; }
.fold__cover { position: absolute; inset: 26px 0 0 0; display: grid; place-items: center; border-radius: 6px 14px 14px 14px; background: linear-gradient(180deg, #ffffff, #eeeeee); box-shadow: 0 20px 44px rgba(0, 0, 0, .42), inset 0 1px 0 #fff; transform: perspective(700px) rotateX(-7deg); transform-origin: 50% 100%; transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s; }
.fold__cover img { max-width: 68%; max-height: 50%; object-fit: contain; pointer-events: none; }
.wheel__item.is-pick .fold__cover { transform: perspective(700px) rotateX(-16deg); box-shadow: 0 0 0 2px #fff, 0 28px 60px rgba(0, 0, 0, .5); }
.spread__pages { display: flex; justify-content: center; gap: 12px; margin-top: 8px; }
.spread__pages figure { margin: 0; flex: 0 1 300px; height: min(30vh, 300px); padding: 12px; border-radius: 6px; background: #f7f7f7; box-shadow: 0 18px 50px rgba(0, 0, 0, .4); display: grid; place-items: center; }
.spread__pages img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.spread__cap { margin: 12px 0 0; font-size: 13px; color: rgba(255, 255, 255, .8); }
.browser { width: min(860px, 92vw); margin: 10px auto 0; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); text-align: left; }
.browser__bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: #efefef; border-bottom: 1px solid #ddd; }
.browser__bar i { width: 11px; height: 11px; border-radius: 50%; background: #d4d4d4; }
.browser__bar span { margin: 0 auto; padding: 3px 14px; border-radius: 6px; background: #e2e2e2; font-size: 12px; color: #333; }
.browser__page { height: min(30vh, 380px); overflow-y: auto; overscroll-behavior: contain; }
.browser__page img { display: block; width: 100%; height: auto; }
.browser__facts { margin: 0; padding: 10px 14px; font-size: 12px; color: #444; background: #fafafa; border-top: 1px solid #eee; }
.iphone { width: min(300px, 70vw, calc((100vh - 330px) * .479)); aspect-ratio: 71.9 / 150; margin: 10px auto 0; padding: 10px; border-radius: 48px; background: linear-gradient(145deg, #d9d9d9, #a9a9a9); box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 0 0 2px rgba(255, 255, 255, .4); }
.iphone__screen { position: relative; width: 100%; height: 100%; border-radius: 40px; overflow: hidden; background: #fff; }
.iphone__scroll { position: absolute; inset: 0; overflow-y: auto; padding: 11.2% 0 9.5%; scrollbar-width: none; overscroll-behavior: contain; }
.iphone__scroll::-webkit-scrollbar { display: none; }
.iphone__scroll canvas { display: block; width: 100%; height: auto; }
.iphone__screen > canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.iphone__island { position: absolute; top: 2.2%; left: 50%; width: 30%; height: 3.4%; transform: translateX(-50%); border-radius: 99px; background: #000; z-index: 3; }
.iphone__banner { position: absolute; z-index: 4; top: 1.5%; left: 2.6%; right: 2.6%; transform: translateY(-130%); transition: transform .5s cubic-bezier(.3, 1.4, .5, 1); }
.iphone__banner.in { transform: none; }
.iphone__banner canvas { display: block; width: 100%; height: auto; }
.iphone__heart { position: absolute; z-index: 5; font-size: 64px; color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, .35); transform: translate(-50%, -50%) scale(0); opacity: 0; pointer-events: none; }
.iphone__heart.go { animation: heart .9s ease-out; }
@keyframes heart { 0% { transform: translate(-50%, -50%) scale(.2); opacity: 0; } 25% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; } 60% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 100% { transform: translate(-50%, -60%) scale(.9); opacity: 0; } }
.cal { width: min(420px, 80vw, calc((100vh - 360px) * .753)); margin: 10px auto 0; border-radius: 6px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.cal canvas { display: block; width: 100%; height: auto; }
.pop__chips { display: flex; justify-content: center; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.pop__chips li { padding: 5px 10px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px; font-size: 12px; transition: background .3s, color .3s; }
.pop__chips li.on { background: #fff; color: #111; }
.spot { position: relative; width: min(560px, 84vw); margin: 10px auto 0; cursor: crosshair; --x: 50%; --y: 45%; }
.spot img { display: block; width: 100%; height: auto; border: 14px solid #111; box-sizing: border-box; background: #fff; }
.spot__dark { position: absolute; inset: 0; background: radial-gradient(circle at var(--x) var(--y), rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) 13%, rgba(0, 0, 0, .55) 24%, rgba(0, 0, 0, .86) 44%); transition: background .2s; }
.spot.locked .spot__dark { background: radial-gradient(ellipse 62% 56% at 50% 45%, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .7) 100%); }
/* looking through the camera: no backdrop, the place is the picture */
.pop.pop--lens { padding-bottom: 0; }
.pop--lens .pop__bg { background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.pop--lens .pop__body { width: 100vw; height: 100vh; max-height: none; padding: 0; overflow: hidden; }
.lens { position: absolute; inset: 0; font-variant-numeric: tabular-nums; }
.lens__frame { position: absolute; inset: 9vh 8vw; }
.lens__frame i { position: absolute; width: 34px; height: 34px; border: 2px solid rgba(255, 255, 255, .85); }
.lens__frame i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; } .lens__frame i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.lens__frame i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; } .lens__frame i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.lens__af { position: absolute; left: 50%; top: 50%; width: 70px; height: 70px; transform: translate(-50%, -50%); border: 2px solid rgba(255, 255, 255, .9); }
.lens__af.ok { border-color: #5cd65c; }
.lens__top, .lens__bottom { position: absolute; left: 10vw; right: 10vw; margin: 0; display: flex; gap: 22px; font-size: 14px; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.lens__top { top: calc(10vh + 10px); } .lens__bottom { bottom: calc(10vh + 10px); justify-content: center; }
.lens__ctl { position: absolute; right: 6vw; top: 50%; transform: translateY(-50%); display: grid; justify-items: center; gap: 10px; max-width: 160px; }
.lens__ctl small { font-size: 11px; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.lens__shutter { width: 74px; height: 74px; border-radius: 50%; border: 3px solid #fff; background: radial-gradient(circle, #f2f2f2 0 54%, rgba(0, 0, 0, .35) 55% 100%); touch-action: none; }
.lens__shutter:active { transform: scale(.94); }
.lens__flash { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; }
.lens__flash.go { animation: blackout .3s steps(1, end); }
@keyframes blackout { 0% { opacity: 1; } 35% { opacity: 0; } 100% { opacity: 0; } }
.popping .chapters, .popping .nav, .popping .ctas, .popping .hero, .popping .time { visibility: hidden; }
html.popping, html.popping body { overflow: hidden; }
.popping .hd, .popping .ft, .popping .tip { visibility: hidden; }
.popping .cur { visibility: visible; z-index: 60; }
@media (max-height: 760px) and (min-width: 901px) {
  .ch__panel { padding: 20px 22px 18px; }
  .ch__h { font-size: 26px; margin: 6px 0 8px; }
  .ch__d { font-size: 13px; }
  .ch__act { margin-top: 12px; padding-top: 10px; }
}
@media (max-width: 900px) {
  .lead, .time small, .nav { display: none; }
  .time { width: auto; margin: 0; left: var(--gut); right: var(--gut-r); bottom: calc(64px + env(safe-area-inset-bottom, 0px)); gap: 4px; justify-items: start; }
  .ch__in { align-items: flex-end; padding: 0 var(--gut-r) calc(56px + env(safe-area-inset-bottom, 0px)) var(--gut); }
  .ch__panel { width: auto; flex: 1; padding: 18px 18px 16px; }
  .ch__h { font-size: 24px; margin: 6px 0 8px; }
  .ch__d { font-size: 13px; }
  .ch__act { margin-top: 12px; padding-top: 10px; }
  .ch__act > a, .ch__act > button { height: 36px; padding: 0 10px; font-size: 12px; }
  .ctas { right: auto; left: var(--gut); bottom: calc(132px + env(safe-area-inset-bottom, 0px)); }
  .ctas a { height: 34px; padding: 0 14px; font-size: 12px; }
  .wheel { height: 250px; } .wheel__item { width: 170px; }
  .spread__pages { flex-direction: column; align-items: center; } .spread__pages figure { width: 80vw; flex: none; height: 30vh; }
  .lens__ctl { right: 50%; top: auto; bottom: 14vh; transform: translateX(50%); }
  .pop { padding-bottom: 76px; }
  .pop__cta a { height: 40px; padding: 0 16px; font-size: 13px; }
}
