:root {
  --grey: #a49c8c;
  --grey-filter: sepia(0.3) saturate(1.4) brightness(0.99);
  --ink: #0d0d0d;
  --stone: #e4e2de;
  --paper: #f1f0ec;
  --rule: #b9b6b0;
  --rule-dark: #5b5a57;
  --rouge: #8e0f14;
  --white: #ffffff;
  --kma: #ff7a4d;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: 64px;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--grey);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

:where(h1, h2, h3, p, ol, ul, figure, blockquote) {
  margin: 0;
  padding: 0;
}

:where(ol, ul) {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

:focus-visible {
  outline: 2px solid var(--rouge);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.only-mobile {
  display: none;
}

.egg-mask {
  -webkit-mask: radial-gradient(closest-side, #000 72%, transparent 100%);
  mask: radial-gradient(closest-side, #000 72%, transparent 100%);
  filter: var(--grey-filter) brightness(var(--lift, 1));
}

.h-xl {
  font-size: 92px;
  line-height: 0.9;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font: 700 17px var(--font);
  cursor: pointer;
}

.btn:hover {
  background: var(--rouge);
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.btn-light {
  background: var(--paper);
  color: var(--ink);
}

@media (max-width: 899px) {
  :root {
    --gutter: 16px;
  }

  .only-desktop {
    display: none;
  }

  .only-mobile {
    display: inline;
  }

  .h-xl {
    font-size: 56px;
  }

  .btn {
    font-size: 16px;
    padding: 0 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 22px 32px;
  font-size: 15px;
  pointer-events: none;
  transition:
    color 0.3s ease,
    transform 0.45s cubic-bezier(0.36, 0, 0.3, 1);
}

.site-header a {
  pointer-events: auto;
}

.site-brand {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav .is-strong {
  font-weight: 700;
}

.site-header.is-inverse {
  color: var(--paper);
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

@media (max-width: 899px) {
  .site-header,
  .site-header.is-hidden {
    transform: none;
  }

  .site-header {
    position: absolute;
    z-index: 5;
    padding: 16px;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    font-size: 14px;
  }

  .site-nav .is-strong {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}

.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: radial-gradient(42% 62% at 50% 43%, rgb(255 250 240 / 0.16), rgb(255 250 240 / 0));
}

.hero-mark {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5.2vw;
  text-align: center;
  font-size: 23.5vw;
  line-height: 1;
  white-space: nowrap;
  --tracking: -0.055em;
}

.hero-letter {
  display: inline-block;
  vertical-align: top;
  width: calc(var(--w) * 1em + var(--tracking));
  height: 1em;
  transform-origin: 50% 92%;
}

.hero-letter:hover {
  animation: letter-wobble 1.6s cubic-bezier(0.36, 0, 0.3, 1);
}

.hero-glyph {
  display: block;
  width: calc(var(--w) * 1em);
  height: 1em;
  overflow: visible;
  fill: currentColor;
  transform-origin: 50% 92%;
  animation: letter-rise 1.6s cubic-bezier(0.36, 0, 0.3, 1) calc(0.15s + var(--i) * 0.07s) both;
}

.hero-egg {
  position: absolute;
  left: 50%;
  top: 6vh;
  height: 74vh;
  aspect-ratio: 2 / 3;
  transform: translateX(-50%);
}

.hero-shadow {
  position: absolute;
  left: 0;
  right: 0;
  top: 80.5%;
  height: 11%;
  pointer-events: none;
  animation: intro-shadow 3.2s cubic-bezier(0.36, 0, 0.3, 1) 0.4s both;
}

.hero-shadow::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(22% 22% at 50% 50%, rgb(13 13 13 / 0.6), rgb(13 13 13 / 0)),
    radial-gradient(46% 50% at 50% 50%, rgb(13 13 13 / 0.32), rgb(13 13 13 / 0.12) 55%, rgb(13 13 13 / 0));
  transform: translateX(calc(var(--t, 0) * 0.5236%))
    scaleX(calc(1 + max(var(--t, 0), -1 * var(--t, 0)) * 0.006));
}

.hero-intro {
  width: 100%;
  height: 100%;
  transform-origin: 50% 66%;
  animation: intro-wobble 3.2s cubic-bezier(0.36, 0, 0.3, 1) 0.4s both;
}

.culbuto {
  width: 100%;
  height: 100%;
  transform-origin: 50% 66%;
  transform: translateX(calc(var(--t, 0) * 0.5236%)) rotate(calc(var(--t, 0) * 1deg));
  cursor: grab;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.culbuto:active {
  cursor: grabbing;
}

.culbuto:focus-visible {
  outline: none;
  filter: drop-shadow(0 0 2px var(--rouge)) drop-shadow(0 0 1px var(--rouge));
}

.culbuto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  filter: var(--grey-filter);
  -webkit-mask: url(/images/misirizzi-01-noir-mask.svg) 0 0 / 100% 100% no-repeat;
  mask: url(/images/misirizzi-01-noir-mask.svg) 0 0 / 100% 100% no-repeat;
}

.hero-def {
  position: absolute;
  left: 32px;
  top: 30vh;
  width: 260px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  font-size: 14px;
  line-height: 1.5;
}

.hero-hint {
  position: absolute;
  right: 32px;
  top: 30vh;
  width: 240px;
  font-size: 14px;
  line-height: 1.5;
  text-align: right;
}

.hero-tilt {
  position: absolute;
  left: 50%;
  top: calc(100% - 222px);
  padding: 6px 8px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  transform: translateX(-50%);
  cursor: pointer;
}

.hero-film {
  position: absolute;
  right: 32px;
  top: calc(30vh + 90px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.hero-film figcaption {
  font-size: 12px;
}

.film {
  width: 170px;
  aspect-ratio: 126 / 70;
  background: url(/images/sequence.webp) 0 0 / 100% 2400% no-repeat;
  animation: film 2.4s steps(1, end) infinite;
}

@keyframes intro-wobble {
  0% { transform: translateX(11.519%) rotate(22deg); }
  16% { transform: translateX(-7.33%) rotate(-14deg); }
  32% { transform: translateX(4.712%) rotate(9deg); }
  48% { transform: translateX(-2.618%) rotate(-5deg); }
  64% { transform: translateX(1.571%) rotate(3deg); }
  80% { transform: translateX(-0.524%) rotate(-1deg); }
  100% { transform: translateX(0) rotate(0); }
}

@keyframes intro-shadow {
  0% { transform: translateX(11.519%) scaleX(1.132); }
  16% { transform: translateX(-7.33%) scaleX(1.084); }
  32% { transform: translateX(4.712%) scaleX(1.054); }
  48% { transform: translateX(-2.618%) scaleX(1.03); }
  64% { transform: translateX(1.571%) scaleX(1.018); }
  80% { transform: translateX(-0.524%) scaleX(1.006); }
  100% { transform: translateX(0) scaleX(1); }
}

@keyframes letter-rise {
  0% { transform: translateY(105%) rotate(calc(var(--d) * -14deg)); }
  30% { transform: translateY(0) rotate(calc(var(--d) * 10deg)); }
  48% { transform: translateY(0) rotate(calc(var(--d) * -6deg)); }
  66% { transform: translateY(0) rotate(calc(var(--d) * 3.5deg)); }
  84% { transform: translateY(0) rotate(calc(var(--d) * -1.5deg)); }
  100% { transform: translateY(0) rotate(0deg); }
}

@keyframes letter-wobble {
  0% { transform: rotate(0); }
  12% { transform: rotate(16deg); }
  30% { transform: rotate(-11deg); }
  48% { transform: rotate(7deg); }
  66% { transform: rotate(-4deg); }
  84% { transform: rotate(2deg); }
  100% { transform: rotate(0); }
}

@keyframes film {
  0% { background-position: 0 0; }
  4.1667% { background-position: 0 4.3478%; }
  8.3333% { background-position: 0 8.6957%; }
  12.5% { background-position: 0 13.0435%; }
  16.6667% { background-position: 0 17.3913%; }
  20.8333% { background-position: 0 21.7391%; }
  25% { background-position: 0 26.087%; }
  29.1667% { background-position: 0 30.4348%; }
  33.3333% { background-position: 0 34.7826%; }
  37.5% { background-position: 0 39.1304%; }
  41.6667% { background-position: 0 43.4783%; }
  45.8333% { background-position: 0 47.8261%; }
  50% { background-position: 0 52.1739%; }
  54.1667% { background-position: 0 56.5217%; }
  58.3333% { background-position: 0 60.8696%; }
  62.5% { background-position: 0 65.2174%; }
  66.6667% { background-position: 0 69.5652%; }
  70.8333% { background-position: 0 73.913%; }
  75% { background-position: 0 78.2609%; }
  79.1667% { background-position: 0 82.6087%; }
  83.3333% { background-position: 0 86.9565%; }
  87.5% { background-position: 0 91.3043%; }
  91.6667% { background-position: 0 95.6522%; }
  95.8333% { background-position: 0 100%; }
}

@media (max-width: 1180px) {
  .hero-def,
  .hero-hint {
    width: 200px;
  }
}

@media (max-width: 899px) {
  .hero {
    height: max(640px, 100svh);
    background: radial-gradient(60% 50% at 50% 38%, rgb(255 250 240 / 0.16), rgb(255 250 240 / 0));
  }

  .hero-mark {
    bottom: -3.6vw;
    --tracking: -0.06em;
  }

  .hero-egg {
    top: 70px;
    height: calc(100% - 324px);
  }

  .hero-intro,
  .hero-shadow {
    animation-duration: 3s;
  }

  .hero-def,
  .hero-film {
    display: none;
  }

  .hero-hint {
    left: 16px;
    right: 16px;
    top: calc(100% - 254px);
    width: auto;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-intro,
  .hero-shadow,
  .hero-glyph,
  .hero-letter:hover,
  .film {
    animation: none;
  }
}

.collection {
  position: relative;
  background: var(--grey);
}

.collection-intro {
  display: none;
}

.collection-stage {
  height: 100vh;
  min-height: 640px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
}

.collection-track {
  display: flex;
  height: 100%;
  width: max-content;
}

.piece {
  position: relative;
  width: 62vw;
  min-width: 680px;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: center;
  gap: 24px;
  padding: 90px 48px 48px 64px;
  scroll-snap-align: start;
}

.piece-visual {
  position: relative;
  height: 78vh;
  display: flex;
  justify-content: center;
}

.piece-num {
  position: absolute;
  left: 0;
  top: -10px;
  font-size: 200px;
  line-height: 0.8;
  font-weight: 700;
  letter-spacing: -0.06em;
}

.piece-num.is-accent {
  color: var(--rouge);
}

.piece-egg {
  position: relative;
  height: 100%;
  width: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transform-origin: 50% 86%;
}

.piece-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.piece-title {
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.piece-title-num {
  display: none;
}

.piece-spec {
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-line;
}

.piece-note {
  font-size: 13px;
  line-height: 1.5;
}

@media (min-width: 900px) {
  .motion-ok .collection {
    height: 600vh;
  }

  .motion-ok .collection-stage {
    position: sticky;
    top: 0;
    overflow: hidden;
    scroll-snap-type: none;
  }
}

@media (max-width: 899px) {
  .collection {
    display: flex;
    flex-direction: column;
    gap: 56px;
    padding-block: 48px;
    padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px));
  }

  .collection-intro {
    display: block;
    font-size: 20px;
    line-height: 1.4;
  }

  .collection-stage {
    height: auto;
    min-height: 0;
    overflow: visible;
    scroll-snap-type: none;
  }

  .collection-track {
    flex-direction: column;
    gap: 56px;
    width: auto;
    height: auto;
  }

  .piece {
    width: auto;
    min-width: 0;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 0;
  }

  .piece.is-desktop-only {
    display: none;
  }

  .piece-visual {
    height: auto;
  }

  .piece-num,
  .piece-note {
    display: none;
  }

  .piece-egg {
    width: 240px;
    height: 360px;
  }

  .piece-text {
    align-items: center;
    gap: 12px;
  }

  .piece-title {
    font-size: 30px;
  }

  .piece-title-num {
    display: inline;
  }

  .piece-spec {
    font-size: 13px;
    text-align: center;
  }
}

.mode {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: center;
  padding: 120px var(--gutter);
  background: var(--stone);
}

.mode-text {
  grid-column: 1 / span 5;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.steps {
  border-top: 2px solid var(--ink);
  font-size: 19px;
}

.steps li {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.steps b {
  flex: 0 0 24px;
}

.mode-figure {
  grid-column: 7 / span 6;
  padding: 28px;
  background: var(--white);
}

.mode-figure img {
  width: 100%;
  height: auto;
}

.ailleurs {
  padding: 120px var(--gutter);
  background: var(--grey);
}

.ailleurs-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 96px 24px;
  align-items: end;
  margin-top: 72px;
}

.ailleurs-item {
  grid-column: var(--start) / span var(--span);
  transform-origin: 50% 100%;
}

.ailleurs-item img {
  width: 100%;
  height: auto;
  background: var(--stone);
}

.ailleurs-item figcaption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
}

.textes {
  display: flex;
  flex-direction: column;
  gap: 80px;
  padding: 140px var(--gutter);
  background: var(--ink);
  color: var(--paper);
}

.textes-quote {
  max-width: 1180px;
  font-size: 104px;
  line-height: 0.92;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.textes-cta {
  display: none;
}

.textes-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--rule-dark);
  font-size: 16px;
  line-height: 1.55;
}

.texte {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.texte-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.commander {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  padding: 120px var(--gutter) 0;
  background: var(--grey);
}

.commander-intro {
  grid-column: 1 / span 5;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.commander-intro p {
  max-width: 420px;
  font-size: 18px;
  line-height: 1.5;
}

.commander-intro img {
  width: 220px;
  height: auto;
}

.order {
  grid-column: 7 / span 6;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 24px;
  align-content: start;
}

.order .is-wide {
  grid-column: 1 / span 2;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  font-size: 13px;
}

.field input {
  width: 100%;
  min-height: 44px;
  padding: 4px 0;
  border: 0;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 400 22px var(--font);
}

.field input::placeholder {
  color: var(--rule-dark);
  opacity: 0.6;
}

.field input:focus {
  outline: none;
  border-color: var(--rouge);
}

.check {
  display: flex;
  align-items: center;
  align-self: end;
  gap: 10px;
  min-height: 44px;
  font-size: 14px;
}

.check input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--ink);
}

.order-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 8px;
  font-size: 14px;
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 40px;
  padding: 60px var(--gutter) 48px;
  background: var(--grey);
}

.site-footer-row {
  align-self: stretch;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--ink);
  font-size: 13px;
}

.site-credit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.kma-logo {
  height: 13px;
  width: auto;
  transition: transform 0.4s cubic-bezier(0.36, 0, 0.3, 1);
}

.kma-logo-letters {
  fill: currentColor;
}

.kma-logo-shard {
  fill: var(--kma);
}

.site-credit:hover .kma-logo {
  transform: translateX(3px);
}

@media (max-width: 1100px) {
  .textes-quote {
    font-size: 84px;
  }
}

@media (max-width: 899px) {
  .mode,
  .ailleurs,
  .textes,
  .commander,
  .site-footer {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }

  .mode {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding-block: 64px;
  }

  .mode-text,
  .mode-figure,
  .commander-intro,
  .order {
    grid-column: 1 / -1;
  }

  .steps {
    font-size: 17px;
  }

  .mode-figure {
    padding: 16px;
  }

  .ailleurs {
    padding-block: 64px;
  }

  .ailleurs-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    margin-top: 40px;
  }

  .ailleurs-item {
    grid-column: 1 / -1;
  }

  .textes {
    gap: 40px;
    padding-block: 48px 64px;
  }

  .textes-quote {
    font-size: 52px;
    line-height: 0.9;
  }

  .textes-cta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    font-size: 15px;
    line-height: 1.5;
  }

  .textes-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .texte-title {
    font-size: 22px;
  }

  .commander {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding-top: 64px;
  }

  .commander-intro p {
    font-size: 16px;
  }

  .commander-intro img {
    width: 160px;
  }

  .order {
    gap: 20px 16px;
  }

  .field input {
    font-size: 20px;
  }

  .check {
    grid-column: 1 / span 2;
  }

  .site-footer {
    align-items: flex-start;
    gap: 28px;
    padding-block: 40px 40px;
  }

  .site-footer-row {
    flex-direction: column;
    gap: 6px;
  }
}
