:root[data-motion-preference] {
  --passage-ease: cubic-bezier(.48,.04,.21,1);
  --reload-paper: url('images/texture-reload-1120.webp');
  --reload-ink: url('images/texture-encre-1120.webp');
}

.studio-motion {
  --bg: #100e1a;
  --header: #13101d;
  --surface: #1b182a;
  --surface-raised: #251f3a;
  --ink: #f9f6ee;
  --muted: #d0c9da;
  --accent: #d9fa85;
  --accent-hover: #efffb3;
  --secondary-accent: #ad98ff;
  --button-text: #151b10;
  --line: #49405d;
  --line-strong: #897db0;
  --button-radius: .4rem;
  --radius: .75rem;
  --studio-header-height: 4.75rem;
  --motion-ease: cubic-bezier(.22,.68,.25,1);
  background: #f6f3f9;
}

.studio-motion main { background: var(--bg); }
.studio-motion [hidden] { display: none !important; }
.studio-motion .skip-link { z-index: 30; }
.studio-motion .site-header {
  --ink: #201831;
  --muted: #5a5066;
  --accent: #6337a5;
  --line: #c5b9d4;
  position: sticky;
  top: 0;
  z-index: 10;
  padding-block: .55rem .5rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  pointer-events: none;
}

.studio-motion .header-grid {
  min-height: 4.1rem;
  padding-inline: clamp(.65rem,2vw,1.35rem);
  border: 1px solid #d9cfe5;
  border-radius: .65rem;
  background: #faf7fdf7;
  box-shadow: 0 .45rem 1.65rem #271c451b;
  pointer-events: auto;
}

.studio-motion .brand { gap: .5rem; }
.studio-motion .brand-name { letter-spacing: -.075em; text-transform: lowercase; }
.studio-motion .brand-mark { position: relative; width: 1.07em; height: 1.07em; border-radius: .22em; background: #dcf986; transform: none; clip-path: none; }
.studio-motion .brand-mark::before { position: absolute; inset: .23em; border: .065em solid #251742; border-right-color: transparent; border-radius: 50%; transform: rotate(-35deg); content: ''; }
.studio-motion .brand-mark::after { position: absolute; top: .19em; right: .2em; width: 0; height: 0; border-top: .095em solid transparent; border-bottom: .095em solid transparent; border-left: .16em solid #251742; transform: rotate(42deg); content: ''; }
.studio-motion .main-nav { gap: .1rem clamp(.85rem, 2.6vw, 2.4rem); }
.header-actions { display: flex; align-items: center; justify-self: end; gap: .55rem; }
.studio-motion .header-cta { background: #241935; color: #faf6ff; border-color: transparent; }

.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 2.75rem;
  padding: .3rem .42rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: .79rem;
  font-weight: 700;
}

.motion-toggle span { width: .52rem; height: .52rem; border: 1px solid currentColor; border-radius: 100%; }
.motion-toggle[aria-pressed="true"] span { background: var(--accent); color: var(--accent); }
.studio-progress { position: absolute; inset: auto 4vw 0; height: 2px; background: linear-gradient(90deg, #9270d6, #cbef62); transform: scaleX(var(--reading-progress,0)); transform-origin: left; pointer-events: none; }
.studio-motion #contenu, .studio-motion main section[id], .offer-panel[id] { scroll-margin-top: calc(var(--studio-header-height) + .5rem); }

.motion-hero {
  --ink: #241a31;
  --muted: #4f445c;
  --accent: #5d3297;
  --line-strong: #88749e;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #f5f1fa;
  color: var(--ink);
}

.hero-glow {
  position: absolute;
  z-index: -3;
  inset: -8% -4% -12%;
  background: #f4eff8;
  transform: translate3d(0,var(--hero-bg-y,0px),0);
}

.hero-glow::before {
  position: absolute;
  inset: 0;
  background: var(--reload-paper) 68% 56% / cover no-repeat;
  content: '';
}

.hero-glow::after {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg,#7456b126 0 1px, transparent 1px 5.5rem), repeating-linear-gradient(0deg,#7456b126 0 1px, transparent 1px 5.5rem);
  mask-image: radial-gradient(ellipse at 76% 58%, #000, transparent 48%);
  transform: rotate(-12deg) scale(1.11);
  content: '';
}

.motion-hero-grid {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(37rem, 81svh, 53rem);
  padding-block: 1.25rem 3rem;
}

.motion-hero-copy { position: relative; z-index: 1; width: min(69%, 51rem); transform: translate3d(0,var(--hero-copy-y,0px),0); }
.motion-hero-copy h1 { margin-top: .9rem; font: 680 clamp(3.75rem,8.35vw,8.6rem)/.91 var(--grotesque); letter-spacing: -.077em; }
.hero-line { display: block; padding-block: .035em .12em; overflow: clip; }
.hero-line > span { display: block; }
.hero-line.hero-highlight { color: var(--accent); }
.motion-hero-copy .hero-lead { margin-top: 1rem; max-width: 41ch; }
.motion-hero-copy .button-row { margin-top: 1.55rem; }
.motion-hero-copy .button-primary { background: #ddf67d; color: #211932; }
.motion-hero-copy .button-secondary { --overlay-base: #fbf5fbb0; --overlay-line: #8b76a6; }
.motion-hero-visual { position: absolute; z-index: -1; inset: -3% -2% 7% 47%; display: grid; place-items: center; }
.studio-scroll-ready .motion-hero-visual::before {
  position: absolute;
  inset: 52% -14% 15% -7%;
  border-top: 2px solid #d8ec8f;
  border-bottom: 1px solid #ad8dd4;
  border-radius: 65% 40% 53% 46% / 76% 52% 58% 55%;
  background: linear-gradient(116deg,#fcf8ff77,#9c76c24d 88%), var(--reload-paper) 67% 61% / cover;
  mask-image: linear-gradient(100deg,transparent,#000 20% 81%,transparent);
  opacity: var(--hero-sweep-opacity,.48);
  transform: translate3d(var(--hero-sweep-x,0px),var(--hero-sweep-y,0px),0) rotate(calc(-14deg + var(--hero-sweep-turn,0deg)));
  pointer-events: none;
  content: '';
}
.hero-prism { position: relative; display: grid; width: min(94%, 39rem); height: 100%; place-items: center; transform: translate3d(var(--hero-art-x,0px),var(--hero-art-y,0px),0) rotate(var(--hero-tilt,0deg)) scale(var(--hero-art-scale,1)); }
.hero-prism img { width: 100%; height: 100%; max-height: min(71svh,48rem); object-fit: contain; filter: drop-shadow(0 2rem 2rem #2e1a5260); }
.hero-orbit { position: absolute; inset: 24% 3% 16% 7%; border: 1px solid #9f78d47a; border-radius: 50%; transform: translate3d(0,var(--hero-orbit-y,0px),0) rotate(calc(-27deg + var(--hero-orbit-turn,0deg))) scaleY(.63); }
.hero-orbit::after { position: absolute; inset: 10%; border: 1px solid #a480d454; border-radius: inherit; content: ''; }

@keyframes reload-intro-mark {
  0% { transform: translate3d(-.18em,.12em,0) rotate(-55deg) scale(.48); opacity: 0; }
  68% { transform: rotate(7deg) scale(1.05); opacity: 1; }
  100% { transform: none; opacity: 1; }
}

@keyframes reload-intro-wordmark {
  from { clip-path: inset(-.18em 100% -.18em -.1em); transform: translate3d(-.36em,0,0); opacity: .15; }
  to { clip-path: inset(-.18em -.1em -.18em -.1em); transform: none; opacity: 1; }
}

@keyframes reload-intro-title {
  from { transform: translate3d(0,104%,0) skewY(4deg); opacity: .32; }
  to { transform: none; opacity: 1; }
}

@keyframes reload-intro-caption {
  from { transform: translate3d(0,.6rem,0); opacity: .48; }
  to { transform: none; opacity: 1; }
}

@keyframes reload-intro-paper {
  0% { translate: -18% 46%; scale: .58 1; opacity: 0; }
  57% { opacity: var(--hero-sweep-opacity,.48); }
  100% { translate: 0 0; scale: 1; opacity: var(--hero-sweep-opacity,.48); }
}

@keyframes reload-intro-prism {
  0% {
    clip-path: polygon(-17% 115%,116% 74%,116% 123%,-17% 123%);
    transform: translate3d(-2rem,2.9rem,0) rotate(-8deg) scale(.92);
    opacity: .12;
  }
  61% { opacity: 1; }
  100% {
    clip-path: polygon(-17% -13%,116% -13%,116% 123%,-17% 123%);
    transform: none;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .studio-intro { --intro-start: 0ms; }
  .studio-intro-after-passage { --intro-start: 310ms; }
  .studio-intro .site-header .brand-mark { animation: reload-intro-mark .55s var(--passage-ease) var(--intro-start) both; }
  .studio-intro .site-header .brand-name { animation: reload-intro-wordmark .56s var(--motion-ease) calc(var(--intro-start) + 60ms) both; }
  .studio-intro .hero-line > span { transform-origin: left bottom; animation: reload-intro-title .64s var(--passage-ease) calc(var(--intro-start) + 105ms) both; }
  .studio-intro .hero-highlight > span { animation-delay: calc(var(--intro-start) + 195ms); }
  .studio-intro .motion-hero-copy .eyebrow { animation: reload-intro-caption .49s var(--motion-ease) calc(var(--intro-start) + 105ms) both; }
  .studio-intro .hero-lead { animation: reload-intro-caption .46s var(--motion-ease) calc(var(--intro-start) + 320ms) both; }
  .studio-intro .motion-hero-visual::before { animation: reload-intro-paper .81s var(--passage-ease) calc(var(--intro-start) + 105ms) both; }
  .studio-intro .hero-prism img { animation: reload-intro-prism .78s var(--passage-ease) calc(var(--intro-start) + 200ms) both; }
}

/* The leading edge of each surface rises into the previous scene. */
.story-scene { position: relative; isolation: isolate; }
.story-scene::before {
  position: absolute;
  z-index: -1;
  inset: auto 0 calc(100% - 1px);
  height: var(--scene-edge-height,clamp(1.55rem,5.2vw,4rem));
  border-top: 2px solid var(--scene-edge-line);
  border-radius: var(--scene-edge-curve, 62% 22% 0 0 / 100% 64% 0 0);
  background: var(--scene-edge-color);
  transform: scaleY(var(--scene-edge-rise,.34));
  transform-origin: bottom;
  pointer-events: none;
  content: '';
}

.motion-heading h2, .motion-end h2 { max-width: 16ch; margin-top: .55rem; font: 780 clamp(2.75rem,6.6vw,6.4rem)/.9 var(--grotesque); letter-spacing: -.075em; text-wrap: balance; }
.motion-offers {
  --ink: #f7f2f9;
  --muted: #dfd5e9;
  --accent: #def58c;
  --line: #645381;
  --scene-edge-color: #21162f;
  --scene-edge-line: #d7f486;
  padding-block: clamp(3.7rem,8.2vw,8rem);
  border-bottom: 1px solid var(--line);
  background: #21162f;
  color: var(--ink);
}

.studio-scroll-ready .motion-hero + .motion-offers {
  --scene-edge-height: clamp(2.65rem,8.1vw,7rem);
  --scene-edge-curve: 54% 49% 0 0 / 62% 100% 0 0;
  --scene-edge-color: linear-gradient(0deg,#21162f 5%,#21162f30 100%), var(--reload-ink) 69% 49% / cover;
}

.offer-ambience { position: absolute; z-index: -2; inset: 0; overflow: hidden; pointer-events: none; }
.offer-ambience::before {
  position: absolute;
  inset: -3.4rem 0;
  background: url('images/texture-encre-1120.webp') 76% center / cover;
  transform: translate3d(0,var(--offer-texture-y,0px),0);
  content: '';
}
.offer-ambience::after { position: absolute; inset: 0; background: linear-gradient(125deg,#21162ff5 23%,#21162fd7 58%,#21162f87); content: ''; }
.motion-offers .motion-heading { margin-bottom: clamp(1.6rem,4.2vw,3.6rem); }
.motion-offers .motion-heading h2 { max-width: 14ch; }
.offer-layout { display: grid; grid-template-columns: minmax(0,1fr); gap: clamp(1.45rem,5vw,4.65rem); }
.offer-flow { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.2rem; }
.offer-panel { position: relative; min-width: 0; padding: 1.25rem 1.1rem 1rem 0; border-top: 1px solid var(--line); }
.offer-panel h3 { font: 740 clamp(1.55rem,3.3vw,3.2rem)/1 var(--grotesque); letter-spacing: -.06em; }
.offer-panel p { max-width: 29ch; margin: .82rem 0 .5rem; color: var(--muted); font-size: clamp(1rem,1.35vw,1.15rem); line-height: 1.57; }
.offer-panel .text-link { font-size: .96rem; }
.offer-inline-art { position: relative; margin-top: 1rem; overflow: hidden; aspect-ratio: 1.58; min-height: 9.2rem; border: 1px solid #9a83b784; border-radius: .7rem; background: radial-gradient(ellipse at 60% 18%,#594978,#241933 78%); }
.offer-inline-figure { position: absolute; inset: -.8rem 0; transform: translate3d(0,var(--inline-art-y,0px),0); }
.offer-inline-art .stage-search { inset: 17% 9% auto; gap: .55rem; min-height: 2.45rem; padding: .42rem .72rem; font-size: .82rem; }
.offer-inline-art .stage-result { inset: 45% 9% auto 12%; gap: .24rem; padding: .55rem .65rem; }
.offer-inline-art .stage-result b { font-size: 1.02rem; }
.offer-inline-art .stage-result span, .offer-inline-art .stage-link { display: none; }
.offer-inline-art .stage-before { padding: .48rem; }
.offer-aside { display: none; min-width: 0; }
.studio-sticky .offer-layout { grid-template-columns: minmax(0,.78fr) minmax(0,1.22fr); }
.studio-sticky .offer-flow { display: block; }
.studio-sticky .offer-panel { display: flex; flex-direction: column; justify-content: center; min-height: clamp(16.5rem,39vh,24rem); padding: 1.15rem 1.6rem .9rem 1rem; }
.studio-sticky .offer-panel .text-link { align-self: flex-start; }
.studio-sticky .offer-inline-art { display: none; }
.studio-sticky .offer-panel[data-active]::before { position: absolute; inset: 15% auto 15% 0; width: 2px; background: var(--accent); content: ''; }
.studio-sticky .offer-aside { display: block; }
.offer-stick { position: sticky; top: calc(var(--studio-header-height) + clamp(1rem,3vh,3rem)); }
.offer-picker { display: flex; justify-content: space-between; gap: .4rem; padding: .45rem; margin-bottom: .65rem; border: 1px solid #9a83b7; border-radius: .5rem; background: #241936; }
.offer-picker a { display: inline-flex; align-items: center; justify-content: center; flex: 1 1 auto; padding: .4rem .56rem; min-height: 2.55rem; border-radius: .28rem; color: #f5edf8; font-weight: 700; font-size: .91rem; text-decoration: none; }
.offer-picker a[aria-current] { background: var(--atelier-paper); color: var(--atelier-ink); }
.offer-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.45;
  max-height: 30rem;
  border: 1px solid #afa1c3;
  border-radius: .85rem;
  background: radial-gradient(ellipse at 60% 18%, #5a4b80, #211a32 73%);
  color: #f8f2fe;
  isolation: isolate;
  transition: background-color .4s;
}

.offer-visual { position: absolute; inset: 0 0 2.8rem; opacity: 0; transform: translate3d(2%,5%,0) scale(.96); transition: opacity .34s var(--motion-ease),transform .6s var(--motion-ease); }
.offer-stage[data-active="0"] .offer-visual-creation,
.offer-stage[data-active="1"] .offer-visual-refonte,
.offer-stage[data-active="2"] .offer-visual-seo { opacity: 1; transform: translate3d(0,0,0) scale(1); }
.offer-stage[data-scroll-blend] .offer-visual {
  opacity: var(--offer-mix,0);
  transform: translate3d(var(--offer-plane-x,0px),var(--offer-plane-y,0px),0) scale(var(--offer-plane-scale,1));
  transition: none;
}

.offer-stage[data-scroll-blend] .stage-browser, .offer-stage[data-scroll-blend] .stage-result { translate: 0 calc(var(--offer-art-depth,0) * -16px); }
.offer-stage[data-scroll-blend] .stage-phone, .offer-stage[data-scroll-blend] .stage-before, .offer-stage[data-scroll-blend] .stage-search { translate: calc(var(--offer-art-depth,0) * 18px) calc(var(--offer-art-depth,0) * 22px); }
.offer-stage-footer { position: absolute; inset: auto 0 0; display: flex; align-items: center; justify-content: space-between; gap: .65rem; min-height: 2.8rem; padding: .45rem .75rem; border-top: 1px solid #dcd4e333; background: #191326; font-size: .85rem; }
.offer-stage-footer span:first-child { font-weight: 700; color: #ddf681; }
.stage-browser, .stage-phone, .stage-before { position: absolute; overflow: hidden; box-shadow: 0 1rem 2.1rem #130c24a0; border: 1px solid #c4afdc8f; }
.stage-browser { border-radius: .65rem; background: #21182d; }
.stage-browser img, .stage-phone img { height: 100%; object-fit: cover; }
.stage-browser img { height: calc(100% - 1.15rem); }
.stage-chrome { display: block; height: 1.15rem; border-bottom: 1px solid #9b82b16b; background: radial-gradient(circle at .6rem 50%, #e7f98e 0 2px, transparent 3px), radial-gradient(circle at 1.15rem 50%, #bea9ff 0 2px, transparent 3px), radial-gradient(circle at 1.7rem 50%, #a086bf 0 2px, transparent 3px); }
.stage-browser-creation { inset: 12% 14% 10% 10%; transform: rotate(-4deg); }
.stage-phone { inset: 30% 10% 6% auto; width: 22%; border-radius: .85rem; border-width: 4px; border-color: #2a2339; background: #251733; transform: rotate(9deg); }
.stage-phone img { object-position: 43%; }
.stage-before { inset: 20% 50% 22% 12%; border-radius: .65rem; transform: rotate(-8deg); background: #31283f; padding: .8rem; }
.stage-before i { display: block; width: 68%; height: .55rem; margin-top: .64rem; background: #735e8d; border-radius: .12rem; }
.stage-before i:nth-child(odd) { width: 42%; }
.stage-browser-refonte { inset: 12% 9% 10% 32%; transform: rotate(4deg); }
.stage-browser-refonte b { position: absolute; right: .55rem; bottom: .55rem; padding: .4rem .64rem; border-radius: .3rem; background: #1b1126; }
.stage-search, .stage-result, .stage-link { position: absolute; border: 1px solid #b5a0d5; box-shadow: 0 .9rem 1.5rem #130b2090; background: #211835; }
.stage-search { inset: 12% 15% auto 12%; display: flex; align-items: center; gap: .85rem; min-height: 3.2rem; padding: .6rem .85rem; border-radius: 2rem; }
.search-symbol { width: .9rem; height: .9rem; flex: 0 0 auto; border: 1px solid #e1fa81; border-radius: 50%; position: relative; }
.search-symbol::after { position: absolute; right: -.34rem; bottom: -.19rem; width: .43rem; height: 1px; transform: rotate(45deg); background: #e1fa81; content: ''; }
.stage-result { inset: 39% 9% auto 18%; display: grid; gap: .36rem; padding: clamp(.65rem,2vw,1.2rem); border-radius: .55rem; font-size: .92rem; }
.stage-result b { color: #e4f99f; font: 740 clamp(1.1rem,2.2vw,1.8rem)/1.1 var(--grotesque); }
.stage-result span { color: #e5d9f5; }
.stage-link { inset: auto 9% 10% auto; display: flex; align-items: center; gap: .5rem; padding: .55rem .7rem; border-radius: .4rem; }
.stage-link span { width: .45rem; height: .45rem; border-radius: 100%; background: #d9f285; }

.motion-work {
  --ink: #251c33;
  --muted: #4f435a;
  --accent: #6138a0;
  --button-text: #fff;
  --line: #cabcd5;
  --line-strong: #987fb1;
  --scene-edge-color: linear-gradient(102deg,#f7f2f7,#e8dcf8);
  --scene-edge-line: #c7adeb;
  --scene-edge-curve: 32% 65% 0 0 / 70% 100% 0 0;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at 82% 12%,#e5d9f8,transparent 59%), #f7f2f7;
  color: var(--ink);
}
.work-pin { padding-block: clamp(2.8rem,5.7vh,4.3rem) clamp(2.5rem,4.5vh,4rem); }
.work-heading { display: flex; justify-content: space-between; align-items: end; gap: .85rem 1.6rem; margin-bottom: clamp(1.2rem,3.7vh,2.3rem); }
.work-heading .motion-heading h2 { max-width: 18ch; }
.work-controls { display: flex; flex: 0 0 auto; gap: .43rem; }
.work-arrow { width: 2.85rem; height: 2.85rem; border: 1px solid var(--line-strong); border-radius: 50%; background: #faf6fc; color: var(--ink); font-size: 1.35rem; line-height: 1; transition: background-color .2s,color .2s,border-color .2s; }
.work-arrow[aria-disabled="false"]:is(:focus-visible, :active, [data-reload-press]) { background: var(--accent); color: var(--button-text); border-color: var(--accent); }
.work-arrow[aria-disabled="true"] { opacity: .45; cursor: default; }
.work-track { position: relative; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(.75rem,2vw,1.4rem); }
.work-track .project-link { background: #fffcff; }
.work-track .project-copy { min-height: 5.2rem; }
.work-track .project-copy h3 { margin: 0; font: 730 clamp(1.26rem,2.9vw,2.05rem)/1.1 var(--grotesque); letter-spacing: -.04em; }
.work-track .project-copy p { font-size: .96rem; line-height: 1.45; }
.work-track .project-media { aspect-ratio: 1.86; }
.studio-scroll-ready .work-track .project-media img { translate: var(--art-x,0px) var(--art-y,0px); scale: 1.15; }
.work-track .project-link:focus-visible { outline-offset: -4px; outline-width: 3px; }
.work-footer { display: flex; justify-content: space-between; align-items: center; gap: .8rem 1.25rem; flex-wrap: wrap; margin-top: .77rem; }
.work-progress { flex: 1 1 9rem; align-self: center; max-width: 22rem; height: 2px; background: #756690; }
.work-progress span { display: block; width: 100%; height: 100%; transform: scaleX(var(--work-indicator,.12)); transform-origin: left; background: var(--accent); }
.motion-work[data-work-mode="scroll"] .work-pin { position: sticky; top: var(--studio-header-height); }
.motion-work[data-work-mode="scroll"] .work-window { overflow: clip; }
.motion-work[data-work-mode] .work-track { display: flex; width: max-content; }
.motion-work[data-work-mode] .project-card { flex: 0 0 auto; width: min(70vw,58rem); }
.motion-work[data-work-mode="scroll"] .project-media { aspect-ratio: auto; height: clamp(13.5rem,38vh,25rem); }
.motion-work[data-work-mode="swipe"] .work-window { overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #8979ac transparent; }
.motion-work[data-work-mode="swipe"] .work-track { padding-bottom: .4rem; }
.motion-work[data-work-mode="swipe"] .project-card { width: min(78vw,45rem); scroll-snap-align: start; }

.motion-method {
  --scene-edge-color: linear-gradient(108deg,#2d223f,#211a33);
  --scene-edge-line: #8772a9;
  --scene-edge-height: clamp(1.05rem,3.45vw,2.15rem);
  padding-block: clamp(3.5rem,8vw,7rem);
  background: radial-gradient(ellipse at 16% 30%,#35294b,transparent 70%),#211a33;
  border-bottom: 1px solid var(--line);
}
.method-scene { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(1.5rem,5vw,4.7rem); }
.method-aside { align-self: start; min-width: 0; }
.method-aside .motion-heading h2 { max-width: 15ch; font-size: clamp(2.4rem,4.9vw,4.8rem); }
.method-visual { margin-top: 1.25rem; overflow: hidden; max-height: 20rem; aspect-ratio: 1.75; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.studio-artwork { position: relative; isolation: isolate; height: 100%; overflow: hidden; background: #271b3f; }
.studio-artwork img { height: 100%; object-fit: cover; object-position: 67% 48%; }
.studio-artwork-lines {
  position: absolute;
  inset: 20% 19% 27% 28%;
  transform: skewY(-12deg) rotate(-6deg);
  border: 1px solid #e4d4ffb0;
  border-radius: .5rem;
  background: linear-gradient(128deg, #ddd1ff20, #1a112945);
  box-shadow: 0 1rem 2rem #1a1037b3;
}

.studio-artwork-lines::before, .studio-artwork-lines::after {
  position: absolute;
  border: 1px solid #e4d4ff91;
  border-radius: inherit;
  content: '';
}

.studio-artwork-lines::before { inset: -15% 13% 15% -13%; }
.studio-artwork-lines::after { inset: 15% -13% -15% 13%; border-color: #daf884c4; }
.studio-scroll-ready .motion-method .studio-artwork img { translate: 0 var(--method-ink-y,0px); scale: 1.26; }
.studio-scroll-ready .motion-method .studio-artwork-lines { transform: translate3d(0,var(--method-outline-y,0px),0) skewY(-12deg) rotate(calc(-6deg + var(--method-turn,0deg))); }
.method-cards { display: grid; gap: .9rem; margin: 0; padding: 0; list-style: none; }
.method-card { --step: 0; padding: clamp(1.25rem,3vw,2.4rem); border: 1px solid #8875a9; border-radius: var(--radius); background: #312645; }
.method-card[data-step="1"] { --step: 1; background: #292b43; }
.method-card[data-step="2"] { --step: 2; background: #282f3b; }
.method-card-header { display: flex; align-items: baseline; gap: .65rem; }
.method-order { color: var(--accent); font-size: .9rem; font-weight: 700; }
.method-card h3 { font: 740 clamp(1.65rem,3.7vw,3.35rem)/.98 var(--grotesque); letter-spacing: -.06em; }
.method-card p { max-width: 35ch; margin-top: .85rem; color: var(--muted); line-height: 1.6; }
.method-card .method-output { font-weight: 700; color: var(--accent); }
.studio-sticky .method-aside { position: sticky; top: calc(var(--studio-header-height) + 2.4rem); }
.studio-sticky .method-cards { padding-bottom: min(29vh,16rem); }
.studio-sticky .method-card { position: sticky; top: calc(var(--studio-header-height) + 2.4rem + var(--step) * 2.75rem); box-shadow: 0 -.4rem 1.1rem #120c2144; }

.motion-end { --scene-edge-color: #171223; --scene-edge-line: #d3ee86; --scene-edge-curve: 29% 69% 0 0 / 61% 100% 0 0; display: grid; align-items: center; min-height: clamp(30rem,63vh,40rem); padding-block: 3.2rem; border-bottom: 1px solid var(--line); background: #171223; }
.motion-end-media { position: absolute; z-index: -2; inset: 0; overflow: hidden; }
.motion-end-texture { position: absolute; inset: -13% 0; transform: translate3d(0,var(--outro-y,0px),0); }
.motion-end-media img { height: 100%; object-fit: cover; object-position: center 58%; }
.motion-end-media::after { position: absolute; inset: 0; background: linear-gradient(90deg,#19112bef 0%,#1b142abd 38%,#1b142a10 85%); content: ''; }
.motion-end-contour { position: absolute; inset: 19% 13% 23% 55%; border: 1px solid #efe1ff9e; border-radius: 2rem 2.5rem 1.2rem 2rem; transform: translate3d(0,var(--outro-outline-y,0px),0) rotate(calc(-16deg + var(--outro-turn,0deg))) skewY(-8deg); }
.motion-end-contour::before, .motion-end-contour::after { position: absolute; border: 1px solid #dfd1f286; border-radius: inherit; content: ''; }
.motion-end-contour::before { inset: 8% -8% -8% 8%; }
.motion-end-contour::after { inset: -8% 8% 8% -8%; border-color: #def885a8; }
.motion-end h2 { max-width: 16ch; }
.motion-end-copy > p:not(.eyebrow) { max-width: 37ch; margin-top: .95rem; color: var(--muted); line-height: 1.6; font-size: clamp(1rem,1.5vw,1.2rem); }
.motion-end-copy .button { margin-top: 1.4rem; }
.studio-motion .contact-page { background: radial-gradient(ellipse at 81% 7%,#3a2b55,transparent 63%),var(--bg); }
.studio-motion .sub-hero, .studio-motion .faq-section {
  --ink: #261b34;
  --muted: #51445d;
  --accent: #60339e;
  --button-text: #fff;
  --accent-hover: #4c277f;
  --line: #c7b6d6;
  background: radial-gradient(ellipse at 84% 8%,#e7dbf8,transparent 65%), #f8f4fa;
  color: var(--ink);
}

.studio-motion .sub-hero .feature-panel { --ink: #f8f3ff; --muted: #dcd1e9; color: var(--ink); }
.story-scene.faq-section { --scene-edge-color: #f8f4fa; --scene-edge-line: #cdb5e9; --scene-edge-curve: 38% 61% 0 0 / 55% 100% 0 0; }

.reload-inner .sub-hero-reload, .reload-inner .contact-page { position: relative; isolation: isolate; overflow: hidden; }
.reload-inner .sub-hero-reload { padding-bottom: clamp(3.6rem,8vw,7.5rem); }
.inner-ambience { position: absolute; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; }
.inner-ambience::before { position: absolute; inset: -15% 0; background: url('images/texture-reload-1120.webp') 69% 57% / cover; opacity: .76; content: ''; }
.contact-page .inner-ambience::before { background-image: url('images/texture-encre-1120.webp'); background-position: 68% 58%; opacity: .43; }
.contact-page .inner-ambience::after { position: absolute; inset: 0; background: linear-gradient(103deg,#160f21da,#160f2199 47%,#1d152831); content: ''; }
.studio-scroll-ready .inner-ambience::before { transform: translate3d(0,var(--layer-shift-y,0px),0); }

.scroll-art { overflow: hidden; }
.studio-scroll-ready .scroll-art > img, .studio-scroll-ready .scroll-art .studio-artwork img { translate: var(--layer-shift-x,0px) var(--layer-shift-y,0px); scale: 1.2; }
.studio-scroll-ready .scroll-art .studio-artwork-lines { translate: var(--layer-shift-x,0px) calc(-1.35 * var(--layer-shift-y,0px)); rotate: var(--layer-turn,0deg); }
.textured-feature { position: relative; isolation: isolate; overflow: hidden; }
.textured-feature::before { position: absolute; z-index: -1; inset: -15% 0; background: url('images/texture-encre-640.webp') 70% center / cover; opacity: .23; content: ''; }
.studio-scroll-ready .textured-feature::before { transform: translate3d(0,var(--layer-shift-y,0px),0); }
.contact-art { max-width: 28rem; max-height: 15rem; margin-top: 1.7rem; aspect-ratio: 1.85; border: 1px solid var(--line-strong); border-radius: var(--radius); }

.poster-pair { position: relative; overflow: hidden; aspect-ratio: 1.4; border: 1px solid #c4b1d8; border-radius: var(--radius); background: #e7dbf3 url('images/texture-reload-640.webp') 69% center / cover; }
.poster-plane { position: absolute; width: 49%; height: 64%; overflow: hidden; border: clamp(.18rem,.6vw,.42rem) solid #f9f3ff; border-radius: .32rem; box-shadow: 0 1rem 2rem #38205550; }
.poster-plane img { height: 100%; object-fit: cover; }
.poster-plane-1 { z-index: 1; top: 15%; left: 10%; transform: rotate(-11deg); }
.poster-plane-2 { top: 20%; right: 9%; transform: rotate(10deg); }
.studio-scroll-ready .poster-plane-1 { transform: translate3d(var(--layer-shift-x,0px),var(--layer-shift-y,0px),0) rotate(calc(-11deg + var(--layer-turn,0deg))); }
.studio-scroll-ready .poster-plane-2 { transform: translate3d(calc(-1.2 * var(--layer-shift-x,0px)),calc(-1.34 * var(--layer-shift-y,0px)),0) rotate(calc(10deg - var(--layer-turn,0deg))); }

.reload-inner .story-scene { --scene-edge-height: clamp(1.15rem,4.4vw,3.1rem); }
.reload-inner .story-scene.detail-section { --scene-edge-color: #1b182a; --scene-edge-line: #967cb7; border-top: 0; }
.reload-inner .story-scene.project-brief { --scene-edge-color: #241933; --scene-edge-line: #cbe884; border-top: 0; background: radial-gradient(ellipse at 13% 15%,#352647,transparent 67%),#241933; }
.reload-inner .story-scene.example-section,
.reload-inner .story-scene.related-section,
.reload-inner .project-brief + .story-scene.detail-section {
  --ink: #241a32;
  --muted: #504360;
  --accent: #63379f;
  --line: #cbb9dc;
  --scene-edge-color: linear-gradient(105deg,#f2edf6,#e5d8f5);
  --scene-edge-line: #b496d8;
  --scene-edge-curve: 35% 61% 0 0 / 63% 100% 0 0;
  border-top: 0;
  background: radial-gradient(ellipse at 87% 18%,#e5d8f5,transparent 69%),#f2edf6;
  color: var(--ink);
}

.reload-inner .story-scene.faq-section {
  --ink: #f8f2fb;
  --muted: #dfd0e9;
  --accent: #dbf586;
  --line: #695780;
  --scene-edge-color: #21172f;
  --scene-edge-line: #9676b6;
  padding-block: clamp(3.5rem,7vw,6rem);
  background: radial-gradient(ellipse at 78% 15%,#322444,transparent 68%),#21172f;
  color: var(--ink);
}

.reload-inner .motion-work + .motion-end { --scene-edge-height: clamp(.95rem,3vw,2.05rem); }
.site-footer.story-scene { --scene-edge-color: var(--header); --scene-edge-line: #786394; --scene-edge-height: clamp(1rem,3.4vw,2.15rem); }

.chapter-dock {
  --dock-bg: #21192f;
  position: fixed;
  z-index: 9;
  right: max(1rem, calc((100vw - 80rem) / 2));
  bottom: max(1rem, env(safe-area-inset-bottom));
  min-width: 10.3rem;
  color: #fbf6ff;
}

.chapter-dock > summary {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .45rem .65rem;
  min-height: 3.2rem;
  border: 1px solid #9b85b7;
  border-radius: .52rem;
  box-shadow: 0 .55rem 1.65rem #170f2e42;
  background: var(--dock-bg);
  list-style: none;
}

.chapter-dock > summary::-webkit-details-marker { display: none; }
.chapter-mark { position: relative; flex: 0 0 1.8rem; width: 1.8rem; height: 1.8rem; border-radius: .28rem; background: #d8f582; }
.chapter-mark::before { position: absolute; inset: .45rem .48rem; border-block: 1px solid #261a39; background: linear-gradient(#261a39,#261a39) center / 100% 1px no-repeat; content: ''; }
.chapter-summary { display: grid; min-width: 0; gap: .08rem; line-height: 1.08; }
.chapter-summary > span { color: #dbd0ea; font-size: .67rem; font-weight: 600; }
.chapter-summary strong { font-size: .86rem; }
.chapter-chevron { margin-left: auto; color: #e5f6a5; font-size: 1.15rem; }
.chapter-dock[open] .chapter-chevron { transform: rotate(180deg); }
.chapter-links { display: grid; position: absolute; bottom: calc(100% + .5rem); right: 0; min-width: max(100%,11rem); padding: .32rem; border: 1px solid #9b85b7; border-radius: .52rem; background: var(--dock-bg); box-shadow: 0 .65rem 1.75rem #170f2e4a; }
.chapter-dock:not([open]) .chapter-links { display: none; }
.chapter-links a { display: flex; align-items: center; min-height: 2.75rem; border-radius: .25rem; padding-inline: .65rem; font-size: .9rem; font-weight: 700; text-decoration: none; }
.chapter-links a[aria-current] { background: var(--atelier-paper); color: var(--atelier-ink); }

@keyframes studio-section-in {
  from { transform: translate3d(0,1.45rem,0); opacity: .84; }
  to { transform: translate3d(0,0,0); opacity: 1; }
}

.studio-motion .revealed { animation: studio-section-in .62s var(--motion-ease) both; animation-delay: var(--studio-reveal-delay,0ms); }

@keyframes reload-passage-cover {
  from { transform: translate3d(0,104%,0); }
  to { transform: translate3d(0,0,0); }
}

@keyframes reload-passage-open {
  from { transform: translate3d(0,0,0); }
  to { transform: translate3d(0,-104%,0); }
}

@media (prefers-reduced-motion: no-preference) {
  .studio-motion .site-header { view-transition-name: studio-header; }
  ::view-transition-old(root) { animation-duration: .24s; }
  ::view-transition-new(root) { animation-duration: .32s; }
  ::view-transition-group(studio-header) { animation-duration: .28s; }

  html[data-reload-passage] {
    --passage-back: #3f2b59;
    --passage-front: #241735;
    --passage-wash: #2316318c;
    --passage-edge: #d8f582;
    --passage-texture: var(--reload-ink);
  }

  html:is([data-reload-destination="accueil"],
          [data-reload-destination="realisations"],
          [data-reload-destination="atelier-ceramique"],
          [data-reload-destination="maison-hotes"]) {
    --passage-back: #aa90cc;
    --passage-front: #eee6f7;
    --passage-wash: #f8f2fb73;
    --passage-edge: #815ab0;
    --passage-texture: var(--reload-paper);
  }

  html[data-reload-destination="accueil"] {
    --passage-front: #f5f1fa;
    --passage-edge: #d9fa85;
  }

  html[data-reload-destination="contact"] {
    --passage-back: #584475;
    --passage-front: #1a1128;
    --passage-wash: #170f26b0;
    --passage-edge: #e5f9a2;
  }

  html[data-reload-passage]:not(.studio-still)::before,
  html[data-reload-passage]:not(.studio-still)::after {
    position: fixed;
    z-index: 1000;
    inset: -12vh 0 -13vh;
    border-top: 2px solid var(--passage-edge);
    border-bottom: 1px solid var(--passage-edge);
    border-radius: 62% 33% 47% 58% / 8vh 7vh 7vh 8vh;
    background: var(--passage-back);
    pointer-events: none;
    content: '';
  }

  html[data-reload-passage]:not(.studio-still)::after {
    z-index: 1001;
    border-radius: 44% 59% 62% 33% / 7vh 8vh 8vh 6vh;
    background: linear-gradient(110deg,var(--passage-wash),transparent 85%), var(--passage-texture) center / cover no-repeat, var(--passage-front);
    box-shadow: 0 0 2.4rem #1c12272c;
  }

  html[data-reload-passage="cover"]:not(.studio-still)::before { animation: reload-passage-cover .32s var(--passage-ease) both; }
  html[data-reload-passage="cover"]:not(.studio-still)::after { animation: reload-passage-cover .34s var(--passage-ease) .045s both; }
  html[data-reload-passage="opening"]:not(.studio-still)::before { animation: reload-passage-open .48s var(--passage-ease) .035s both; }
  html[data-reload-passage="opening"]:not(.studio-still)::after { animation: reload-passage-open .44s var(--passage-ease) both; }

  /* Release the destination even if its startup is interrupted. */
  html[data-reload-passage="waiting"]:not(.studio-still)::before { animation: reload-passage-open .49s var(--passage-ease) 1s both; }
  html[data-reload-passage="waiting"]:not(.studio-still)::after { animation: reload-passage-open .45s var(--passage-ease) .96s both; }
}

@media (max-width: 940px) {
  .motion-hero-grid { min-height: clamp(32rem,76svh,43rem); }
  .motion-hero-copy { width: min(69%,42rem); }
  .motion-hero-copy h1 { font-size: clamp(3.25rem,8.6vw,5.55rem); }
  .work-heading { align-items: end; }
}

@media (max-width: 700px) {
  .studio-motion { --studio-header-height: 6.4rem; }
  .studio-motion .main-nav { justify-content: space-between; }
  .studio-motion .header-grid { padding-top: .3rem; }
  .header-actions { gap: .3rem; }
  .motion-toggle { gap: .25rem; padding-inline: .22rem; font-size: .75rem; }
  .motion-hero-grid { min-height: 0; padding-block: 2.4rem 1.1rem; }
  .hero-glow::before { background-position: 62% center; }
  .inner-ambience::before { background-image: url('images/texture-reload-640.webp'); }
  .contact-page .inner-ambience::before { background-image: url('images/texture-encre-640.webp'); }
  .contact-art { display: none; }
  .motion-hero-copy { width: 100%; }
  .motion-hero-copy h1 { margin-top: .7rem; font-size: clamp(2.95rem,12.6vw,5.9rem); }
  .motion-hero-copy .hero-lead { margin-top: .65rem; }
  .motion-hero-copy .button-row { margin-top: 1.16rem; }
  .motion-hero-visual { position: relative; inset: auto; min-height: 16rem; height: min(80vw,26rem); }
  .studio-scroll-ready .motion-hero-visual::before { inset: 44% -14% 12% -11%; }
  .hero-prism { width: min(100%,25rem); min-height: 0; }
  .hero-prism img { position: absolute; inset: 0; max-height: none; }
  .hero-orbit { inset: 15% 7% 16%; }
  .offer-flow, .work-track, .method-scene { grid-template-columns: minmax(0,1fr); }
  .offer-panel { padding-bottom: .3rem; }
  .motion-heading h2, .motion-end h2 { font-size: clamp(2.6rem,11.6vw,4.4rem); }
  .work-heading { flex-wrap: wrap; }
  .work-arrow { width: 2.75rem; height: 2.75rem; }
  .motion-work[data-work-mode="swipe"] .project-card { width: min(82vw,34rem); }
  .work-track .project-copy { padding: .75rem .9rem; }
  .method-visual { max-height: 16rem; }
  .motion-end-media img { object-position: 62% center; }
  .motion-end-media::after { background: linear-gradient(90deg,#19112bf5,#1b142aa8 75%); }
  .motion-end-contour { inset: 26% 7% 24% 57%; }
  .chapter-dock { min-width: 0; }
  .chapter-dock > summary { min-height: 2.82rem; padding: .35rem .48rem; gap: .45rem; }
  .chapter-summary > span { font-size: .62rem; }
  .chapter-summary strong { font-size: .79rem; }

  :root[data-motion-preference] {
    --reload-ink: url('images/texture-encre-640.webp');
    --reload-paper: url('images/texture-reload-640.webp');
  }
}

@media (max-width: 355px) {
  .studio-motion .brand { gap: .38rem; font-size: 1.4rem; }
  .studio-motion .header-cta { gap: .4rem; padding-inline: .48rem; }
  .motion-toggle { padding-inline: 0; font-size: .71rem; }
}

.studio-still, .studio-still body { scroll-behavior: auto !important; }
.studio-still .studio-motion *, .studio-still .studio-motion *::before, .studio-still .studio-motion *::after { animation: none !important; transition: none !important; }
.studio-still::view-transition-group(*), .studio-still::view-transition-new(*), .studio-still::view-transition-old(*) { animation: none !important; }

@media (prefers-reduced-motion: reduce) {
  .hero-glow, .hero-prism, .motion-hero-copy, .motion-end-texture { transform: none !important; }
  .studio-progress { display: none; }
}

/* Each active control borrows its ink from the surface it is printed on. */
.studio-motion :where(a[href], button, summary) {
  --interaction-open: 0;
  --interaction-down: 0;
  -webkit-tap-highlight-color: color-mix(in srgb, currentColor 14%, transparent);
}
.studio-motion :where(a[href], button:enabled:not([aria-disabled="true"]), summary):is(:focus-visible, :active, [data-reload-press]) {
  --interaction-open: 1;
}
.studio-motion :where(a[href], button:enabled:not([aria-disabled="true"]), summary):is(:active, [data-reload-press="held"]) {
  --interaction-down: 1;
}
@media (hover: hover) and (pointer: fine) {
  .studio-motion :where(a[href], button:enabled:not([aria-disabled="true"]), summary):hover { --interaction-open: 1; }
  .work-arrow[aria-disabled="false"]:hover { background: var(--accent); color: var(--button-text); border-color: var(--accent); }
}

.studio-motion .button-primary:hover:not(:disabled) { transform: none; }
.studio-motion :is(.project-link, .example-image) img { transform: none; }
.studio-motion :where(.main-nav a, .breadcrumb a, .site-footer nav a, .button-primary, .header-cta, .example-image) { position: relative; }
.studio-motion :where(.main-nav a, .breadcrumb a, .site-footer nav a)::after,
.studio-motion :where(.button-primary, .header-cta)::after,
.studio-motion :where(.project-media, .example-image)::after {
  position: absolute;
  inset: auto 0 .24rem;
  height: 2px;
  background: currentColor;
  opacity: var(--interaction-open);
  transform: scaleX(var(--interaction-open));
  transform-origin: var(--press-origin, left) center;
  pointer-events: none;
  content: '';
}
.studio-motion :where(.main-nav a, .breadcrumb a, .site-footer nav a)::after {
  clip-path: polygon(0 35%, 45% 0, 85% 20%, 100% 50%, 98% 87%, 34% 89%, 0 100%);
}
.studio-motion :where(.button-primary, .header-cta)::after {
  inset-inline: .38rem;
  inset-block-end: .18rem;
  opacity: calc(.7 * var(--interaction-open));
}
.studio-motion :where(.project-media, .example-image)::after {
  inset: auto 0 0;
  height: 3px;
  background: var(--atelier-red);
}
.studio-motion .project-tag { z-index: 2; }
.studio-motion .example-image:focus-visible { outline-offset: -4px; }
.studio-motion .text-link {
  text-decoration-thickness: calc(1px + 1px * var(--interaction-open));
}
.studio-motion .project-copy :is(h2, h3) {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .17em;
  text-decoration-color: color-mix(in srgb, currentColor calc(100% * var(--interaction-open)), transparent);
}

@media (prefers-reduced-motion: no-preference) {
  html:not(.studio-still) .studio-motion :where(.main-nav a, .breadcrumb a, .site-footer nav a, .button-primary, .header-cta, .project-media, .example-image)::after {
    transition: transform .23s var(--motion-ease), opacity .16s ease-out;
  }
  html:not(.studio-still) .studio-motion .brand-mark {
    rotate: calc(-5deg * var(--interaction-open));
    scale: calc(1 - .035 * var(--interaction-down));
    transition: rotate .22s var(--motion-ease), scale .14s ease-out;
  }
  html:not(.studio-still) .studio-motion :where(.button:not(:disabled), .header-cta, .work-arrow[aria-disabled="false"], .motion-toggle, .chapter-dock > summary) {
    translate: 0 calc(-1px * var(--interaction-open) + 2px * var(--interaction-down));
    transition: translate .17s var(--motion-ease), background-color .17s, color .17s, border-color .17s;
  }
  html:not(.studio-still) .studio-motion :where(.text-link, .project-link) .arrow {
    translate: calc(.16rem * var(--interaction-open)) 0;
    transition: translate .2s var(--motion-ease);
  }
  html:not(.studio-still) .studio-motion :is(.project-link, .example-image) img {
    transform: translate3d(calc(var(--card-x, 0px) * .25), calc(var(--card-y, 0px) * .25), 0) scale(calc(1 + .025 * var(--interaction-open) - .012 * var(--interaction-down)));
    transition: transform .28s var(--motion-ease);
  }
  html:not(.studio-still) .studio-motion .project-copy :is(h2, h3) { transition: text-decoration-color .18s ease-out; }
  html:not(.studio-still) .studio-motion .chapter-chevron { transition: transform .22s var(--motion-ease); }
}
