:root[data-motion-preference] {
  color-scheme: light;
  --grain: url("images/grain-atelier.png");
  --reload-paper: var(--grain);
  --reload-ink: var(--grain);
  --passage-ease: cubic-bezier(.57,.04,.17,1);
}

.studio-motion {
  --bg: #f7f1e5;
  --header: #211e28;
  --accent: #a83321;
  --accent-hover: #872919;
  --button-text: #fff9ed;
  --button-radius: .23rem;
  --radius: .2rem;
  --motion-ease: cubic-bezier(.19,.76,.2,1);
  background: var(--atelier-paper);
}

.studio-motion .site-header {
  --ink: #211e28;
  --muted: #534c4b;
  --accent: #a6301c;
  padding-block: 0;
  background: var(--grain), #f7f1e5;
  border-bottom: 1px solid #39312b55;
}
.studio-motion .header-grid {
  min-height: 4.65rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.studio-motion .brand { gap: .45rem; font-size: clamp(1.85rem,2.6vw,2.45rem); }
.studio-motion .brand-name { font-weight: 800; }
.studio-motion .brand-mark {
  width: .84em;
  height: .89em;
  overflow: hidden;
  border-radius: 0;
  background: #c3432e;
  clip-path: polygon(22% 0,86% 0,69% 25%,100% 25%,77% 58%,92% 58%,44% 100%,18% 100%,39% 65%,0 65%,19% 37%,4% 37%);
}
.studio-motion .brand-mark::before, .studio-motion .brand-mark::after { display: none; }
.studio-motion .header-cta, .studio-motion .motion-hero .button-primary {
  border: 1px solid #211e28;
  background: #211e28;
  color: #fff8e8;
}
.studio-motion .header-cta { padding-inline: 1.15rem; }
.studio-motion .header-cta:is(:focus-visible, :active, [data-reload-press], [aria-current]),
.studio-motion .motion-hero .button-primary:is(:focus-visible, :active, [data-reload-press]) {
  background: #a33a28;
  color: #fff8e8;
}
.studio-motion .motion-toggle:is(:focus-visible, :active, [data-reload-press]) { color: var(--accent); }
.studio-motion .button .arrow, .studio-motion .header-cta .arrow { display: none; }
.studio-motion .button, .studio-motion .header-cta { border-radius: var(--button-radius); }
.studio-motion .studio-progress { inset-inline: 0; bottom: -1px; background: #bd422c; }
.studio-motion :is(.site-header,.motion-hero) :focus-visible { outline-color: #263f93; }
.studio-motion .skip-link { background: #211e28; color: #fff9e9; }
.studio-motion .skip-link:focus-visible { outline-color: #304faa; }

.studio-motion .motion-hero {
  --ink: #211e28;
  --muted: #46413d;
  --accent: #9d3423;
  --button-text: #fff8e8;
  background: var(--grain), #f7f1e5;
  border-bottom: 1px solid #45382b44;
}
.studio-motion .hero-glow {
  inset: 0;
  background: radial-gradient(ellipse at 74% 63%,#edc49729,transparent 54%);
}
.studio-motion .hero-glow::before, .studio-motion .hero-glow::after,
.studio-motion .motion-hero-visual::before { content: none; }
.studio-motion .motion-hero-grid {
  grid-template-columns: minmax(0,1fr) minmax(0,.97fr);
  column-gap: .5rem;
  min-height: clamp(35rem,75svh,50rem);
  padding-block: clamp(2.8rem,6.8vh,5.2rem);
}
.studio-motion .motion-hero-copy { width: 100%; }
.studio-motion .motion-hero-copy .eyebrow {
  gap: .58rem;
  font-size: clamp(.73rem,.92vw,.84rem);
  letter-spacing: .09em;
  color: #51473f;
}
.studio-motion .motion-hero-copy .eyebrow::before { content: none; }
.atelier-imprint { width: 1.55rem; height: .58rem; background: repeating-linear-gradient(116deg,transparent 0 2px,#ad3d29 2px 4px,transparent 4px 6px); }
.studio-motion .motion-hero-copy h1 {
  margin-top: clamp(1.2rem,2.25vw,2rem);
  font: 760 clamp(3.3rem,7.2vw,7.65rem)/.94 var(--grotesque);
  letter-spacing: -.081em;
}
.studio-motion .hero-line { width: max-content; max-width: 100%; padding: 0 .075em .08em 0; }
.studio-motion .hero-highlight {
  position: relative;
  color: #a33b2b;
  padding: 0 .13em .12em .018em;
  margin-top: -.06em;
  font: italic 400 1.13em/.98 Georgia, 'Times New Roman', serif;
  letter-spacing: -.083em;
}
.studio-motion .hero-highlight::after {
  position: absolute;
  inset: auto 9% 2% 4%;
  height: .082em;
  background: currentColor;
  clip-path: polygon(0 49%,15% 27%,43% 3%,68% 6%,89% 21%,100% 52%,71% 44%,46% 48%,20% 68%,1% 91%);
  opacity: .85;
  transform-origin: left;
  content: '';
}
.studio-motion .motion-hero-copy .hero-lead {
  max-width: 40ch;
  margin-top: clamp(1.25rem,2vw,1.8rem);
  font-size: clamp(1rem,1.36vw,1.2rem);
  line-height: 1.56;
  color: #4b433e;
}
.hero-lead strong { color: #211e28; font-weight: 700; }
.studio-motion .motion-hero-copy .button-row { margin-top: 1.6rem; column-gap: 1.2rem; }
.studio-motion .motion-hero .button-primary { padding-inline: 1.3rem; }
.studio-motion .motion-hero .button-secondary {
  min-height: 2.8rem;
  padding-inline: .12rem;
  background: transparent;
  border-color: transparent;
  color: #252540;
  text-decoration: underline;
  text-decoration-color: #61595b;
  text-underline-offset: .32em;
}
.studio-motion .motion-hero .button-secondary:is(:focus-visible, :active, [data-reload-press]) {
  color: var(--accent);
  text-decoration-color: currentColor;
  text-decoration-thickness: 2px;
}
@media (hover: hover) and (pointer: fine) {
  .studio-motion .header-cta:hover, .studio-motion .motion-hero .button-primary:hover {
    background: #a33a28;
    color: #fff8e8;
  }
  .studio-motion .motion-toggle:hover { color: var(--accent); }
  .studio-motion .motion-hero .button-secondary:hover {
    color: var(--accent);
    text-decoration-color: currentColor;
    text-decoration-thickness: 2px;
  }
}
.studio-motion .motion-hero-visual {
  position: relative;
  z-index: 0;
  inset: auto;
  width: 115%;
  margin-left: -6%;
  height: auto;
  min-height: 0;
  transform: translate3d(var(--hero-art-x,0px),var(--hero-art-y,0px),0);
}
.studio-motion .site-footer {
  --header: #211e28;
  --ink: #faf3e8;
  --muted: #dbd1c6;
  --line: #6f6462;
  --accent: #ffd2af;
  --scene-edge-color: #211e28;
  --scene-edge-line: #6f6462;
  border-top: 1px solid #655c59;
  background: var(--grain), var(--header);
  color: var(--ink);
}
.studio-motion .site-footer .brand-mark { background: #ef805d; }
.method-visual { display: none; }
.method-inline-art { overflow: hidden; aspect-ratio: 2.3; max-height: 15rem; margin-top: 1rem; border: 1px solid #544c40; }
.studio-sticky .method-visual { display: block; }
.studio-sticky .method-inline-art { display: none; }

/* The page turns like an irregular edge cut from two sheets of coloured paper. */
@media (prefers-reduced-motion: no-preference) {
  html[data-reload-passage] {
    --passage-back: #b8412a;
    --passage-front: #282431;
    --passage-edge: #ca6953;
  }
  html[data-reload-passage]:is([data-reload-destination="accueil"],[data-reload-destination="realisations"],[data-reload-destination="atelier-ceramique"],[data-reload-destination="maison-hotes"]) {
    --passage-back: #344b99;
    --passage-front: #eee5d4;
    --passage-edge: #473e3c;
  }
  html[data-reload-passage]:not(.studio-still)::before, html[data-reload-passage]:not(.studio-still)::after {
    clip-path: polygon(0 1.5%,17% 1%,37% 2%,58% 0,78% 1%,100% .4%,100% 98%,84% 99%,73% 98.4%,47% 100%,23% 98.8%,0 99.6%);
    border: 0;
    border-radius: 0;
  }
  html[data-reload-passage]:not(.studio-still)::after {
    background: var(--grain), var(--passage-front);
    box-shadow: none;
  }
  .studio-intro .hero-highlight::after {
    animation: atelier-underline .55s var(--motion-ease) calc(var(--intro-start,0ms) + 355ms) both;
  }
}
@keyframes atelier-underline { from { scale: 0 1; } to { scale: 1 1; } }

@media (max-width: 999px) {
  .studio-motion .motion-hero-grid { min-height: clamp(32rem,67svh,41rem); }
  .studio-motion .motion-hero-copy h1 { font-size: clamp(3.1rem,7.1vw,4.55rem); }
  .studio-motion .motion-hero-copy .button-row { gap: .3rem .8rem; }
}
@media (max-width: 700px) {
  .studio-motion .header-grid { min-height: 0; padding-block: .25rem .1rem; }
  .studio-motion .brand { font-size: 1.8rem; }
  .studio-motion .header-cta { padding-inline: .75rem; }
  .studio-motion .motion-hero-grid {
    grid-template-columns: minmax(0,1fr);
    min-height: 0;
    padding-block: clamp(1.7rem,7vw,3.2rem) .9rem;
  }
  .studio-motion .motion-hero-copy h1 { font-size: clamp(3.25rem,12.65vw,5.7rem); }
  .studio-motion .motion-hero-copy .hero-lead { margin-top: .9rem; font-size: 1rem; }
  .studio-motion .motion-hero-copy .button-row { margin-top: 1rem; column-gap: .85rem; }
  .studio-motion .motion-hero .button { font-size: .89rem; }
  .studio-motion .motion-hero .button-primary { min-height: 2.85rem; padding-inline: .85rem; }
  .studio-motion .motion-hero-visual { justify-self: center; width: min(101%,32rem); margin: .75rem 0 0; }
}
@media (max-width: 360px) {
  .studio-motion .main-nav { column-gap: .3rem; }
  .studio-motion .motion-hero .button { font-size: .84rem; }
  .studio-motion .motion-hero-copy .button-row { column-gap: .55rem; }
}
@media (prefers-reduced-motion: reduce) {
  .studio-motion .motion-hero-visual { transform: none; }
}
