/* Caroline M. — phones and tablets (below 1024px). Desktop is untouched: every rule here sits in the media query.
   The page reads downwards; each repeated set (worlds, campaigns, films, identities, services, chapters, cards) is a
   native horizontal carousel instead: swipe, snap, dots underneath, the next slide peeking in. js/mobile.js adds
   the dots and the few reactions (campaign paint, depth, the film that plays, the card that turns).
   Images sit on crisp colour plates cut to their own edges: no feathered masks. */

@media (min-width: 1024px) { .mc-dots { display: none; } }

@media (max-width: 1023px) {
  /* ---------- the carousel ---------- */
  .mc { --mc-w: min(82vw, 520px); --mc-gap: 14px; --mc-pad: calc((100vw - var(--mc-w)) / 2);
    display: flex !important; gap: var(--mc-gap); overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--mc-pad); padding-inline: var(--mc-pad);
    scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .mc::-webkit-scrollbar { display: none; }
  .mc:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
  /* bleed to the screen edges from inside a padded wrapper */
  .wrap > .mc, .wrap .mc.bleed { width: 100vw; margin-left: calc(50% - 50vw); }
  .mc-dots { display: flex; justify-content: center; gap: 0; margin: 10px 0 0; }
  .mc-dot { width: 26px; height: 28px; padding: 0; border: 0; background: none; color: inherit; display: grid; place-items: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .mc-dot::before { content: ""; width: 6px; height: 6px; border-radius: 3px; background: currentColor; opacity: .26; transition: width .35s cubic-bezier(.22, .8, .24, 1), opacity .35s; }
  .mc-dot[aria-current]::before { width: 18px; opacity: .8; }
  .mc-dot:focus-visible { outline: 2px solid currentColor; outline-offset: -4px; border-radius: 8px; }

  /* no repeated "start a project" panels: the floating button is always there */
  .rooms__end, .rooms__out, .rooms__skip { display: none !important; }

  /* ---------- worlds: four doors, one swipe ---------- */
  .worlds--mobile { padding: 4px 0 40px; }
  .worlds--mobile .wrap.mc { max-width: none; }
  .worlds--mobile .world, .worlds--mobile .world + .world { flex: 0 0 var(--mc-w); scroll-snap-align: center; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 12px; margin: 0; padding: 0; }
  .worlds--mobile .world--flip .world__art { order: 0; }
  .worlds--mobile .world__art { position: relative; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; display: grid;
    background: radial-gradient(90% 80% at 50% 35%, #fbece6, #f3d3cc 70%, #ecc4bf); }
  .worlds--mobile .world__art > span { display: contents; }
  .worlds--mobile .world__art img { width: 100%; height: 100%; object-fit: cover; filter: none; animation: none; -webkit-mask-image: none; mask-image: none; }
  .worlds--mobile .world:last-child .world__art img { object-fit: contain; padding: 4% 3%; }
  .worlds--mobile .world:hover .world__art img { transform: none; }
  .worlds--mobile .world__text { gap: 8px; padding-inline: 4px; }
  .worlds--mobile .num { font-size: 15px; }
  .worlds--mobile .world__title { font-size: clamp(36px, 10.5vw, 56px); }
  .worlds--mobile .world__desc { font-size: 12px; }
  .worlds--mobile .world__more { font-size: 14.5px; line-height: 1.5; }
  .worlds--mobile .arrow-link { font-size: 12.5px; }

  /* ---------- the work: a reel of campaign rooms, each in its own paint ---------- */
  #work { background: var(--rbg); color: var(--rink); padding: 34px 0 30px; overflow: hidden; }
  #work .rooms__track { --mc-w: min(84vw, 540px); --mc-gap: 0px; align-items: stretch; padding-block: 0; }
  #work .rooms__intro { flex: 0 0 var(--mc-w); scroll-snap-align: center; align-content: center; gap: 14px; padding: 0 6% 0 2px; background: none; color: inherit; }
  #work .rooms__h { font-size: clamp(64px, 20vw, 120px); line-height: .86; }
  #work .rooms__lead { font-size: 15px; max-width: 24ch; }
  #work .rooms__intro::after { content: "Swipe \2192"; font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; opacity: .7; }
  #work .room { --ad: max(var(--d, 0), calc(var(--d, 0) * -1)); flex: 0 0 var(--mc-w); scroll-snap-align: center; position: relative; display: grid; align-content: start; gap: 12px;
    padding: 0 3%; background: none; color: inherit; overflow: visible; }
  #work .room__ghost { display: block; position: absolute; z-index: 0; top: 0; left: -6%; margin: 0; white-space: nowrap; pointer-events: none;
    font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(96px, 30vw, 180px); line-height: .82; letter-spacing: -.03em;
    color: color-mix(in srgb, currentColor 13%, transparent); transform: translateX(calc(var(--d, 0) * 42%)); }
  #work .room__frame { position: relative; z-index: 1; justify-self: end; width: auto; height: min(40svh, 350px); aspect-ratio: 4 / 5; margin-top: clamp(40px, 12vw, 64px); border-radius: 3px;
    box-shadow: 0 34px 44px -28px rgba(40, 8, 14, .5); transform: translateX(calc(var(--d, 0) * -14%)) scale(calc(1 - var(--ad) * .08)); transform-origin: 50% 60%; }
  #work .room--wide .room__frame { justify-self: stretch; width: 100%; height: auto; aspect-ratio: 16 / 10; margin-top: clamp(64px, 20vw, 120px); }
  #work .room__label { position: relative; z-index: 1; gap: 4px; transform: translateX(calc(var(--d, 0) * -6%)); }
  #work .room__n { margin: 0; font-size: 15px; }
  #work .room__kind { font-size: 11px; }
  #work .room__title { font-size: clamp(36px, 10.5vw, 56px); margin: 2px 0 0; }
  #work .room__tag { font-size: clamp(17px, 4.6vw, 22px); }
  #work .room__line { display: none; }
  #work .room__go { margin-top: 4px; padding: 10px 0; font-size: 12px; }
  #work .room[style*="--room-x"] .room__go { color: inherit; }
  #work .mc-dots { margin-top: 18px; }

  /* ---------- films: the main film, then the rest to swipe through ---------- */
  #films { padding-block: 56px; }
  .films__grid { gap: 22px; }

  /* ---------- brand identity: the three identities to swipe ---------- */
  #identity { padding-block: 56px; }
  .brandband__row { --mc-w: min(70vw, 420px); grid-template-columns: none; }
  .brandband__item { flex: 0 0 var(--mc-w); scroll-snap-align: center; }

  /* ---------- services: three painted panels in a row ---------- */
  #services { --rbg: transparent; background: linear-gradient(#f4ead9, #f4ddd3); padding-bottom: 44px; }
  #services .rooms__track { grid-template-columns: minmax(0, 1fr); }
  #services .rooms__intro { padding: 52px var(--pad) 22px; gap: 12px; background: none; }
  #services .rooms__h { font-size: clamp(40px, 11vw, 72px); white-space: normal; max-width: 100%; }
  #services .rooms__lead { font-size: 15px; }
  .svcs__mural { background: none; padding: 0; }
  .svcs__stack { --mc-w: min(80vw, 480px); }
  .svcs__stack img { flex: 0 0 var(--mc-w); width: var(--mc-w); height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 42% 50%; scroll-snap-align: center;
    border-radius: 18px; box-shadow: 0 26px 40px -26px rgba(74, 10, 23, .45); }
  .svcs__mural .mc-dots { color: var(--wine); }

  /* ---------- about: the outfits as a character reel ---------- */
  #about { padding-block: 56px 48px; }
  .about__story { gap: 20px; }
  .about__head h2 { font-size: clamp(40px, 11vw, 64px); }
  .about__chaps { --mc-w: min(78vw, 440px); width: 100vw; margin-left: calc(50% - 50vw); align-items: stretch; padding-block: 4px; }
  .about__chaps .chap, .about__chaps .chap:first-child { flex: 0 0 var(--mc-w); scroll-snap-align: center; display: flex; flex-direction: column; gap: 10px;
    min-height: 0; max-width: none; padding: 0; border: 0; }
  .chap p { font-size: 15px; line-height: 1.5; }
  .chap__n { font-size: 21px; }
  .chap__click { font-size: 19px; }
  /* the plate: an arched niche the figure stands in; the frame's own edge is where any cut falls, so nothing is feathered */
  .about__chaps .chap > .chap__pic, .about__chaps .chap > .chap__pics { display: block; position: relative; flex: 0 0 auto; width: 100%; height: min(44svh, 380px); margin: 0 0 6px;
    border-radius: 999px 999px 16px 16px; overflow: hidden; -webkit-mask-image: none; mask-image: none; filter: none;
    background: radial-gradient(90% 70% at 50% 30%, #fff5f1, #f6dcd8 62%, #eec8c6); }
  .about__chaps .chap > .chap__pic { object-fit: cover; object-position: 50% 0; }
  .about__chaps .chap__pics .chap__pic { display: block; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; max-width: none; object-fit: cover; object-position: 50% 0;
    -webkit-mask-image: none; mask-image: none; filter: none; }
  .about__chaps .chap__pics--crew .chap__pic--little { inset: auto auto 0 2%; width: auto; height: 50%; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(74, 10, 23, .2)); }
  .about__chaps .chap[data-chap="4"] .chap__pics .chap__pic { object-fit: contain; object-position: 50% 100%; padding-top: 6%; }
  .about .chap__pics .about__fig--black { display: none; }
  .about[data-look="black"] .chap__pics .about__fig--pink { display: none; }
  .about[data-look="black"] .chap__pics .about__fig--black { display: block; }
  .about[data-look="black"] .about__chaps .chap > .chap__pic, .about[data-look="black"] .about__chaps .chap > .chap__pics { background: radial-gradient(90% 70% at 50% 30%, #4a3639, #33252a 62%, #2a1d1f); }
  .about__end { margin-top: 10px; }

  /* ---------- how it works: the four cupcakes at a glance ---------- */
  #process .rooms__track { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px 14px; padding: 0 var(--pad) 48px; }
  #process .rooms__intro { grid-column: 1 / -1; padding: 52px 0 4px; gap: 10px; background: none; }
  #process .rooms__h { font-size: clamp(40px, 11vw, 64px); }
  #process .room--cake { grid-template-columns: minmax(0, 1fr); grid-template-areas: none; background: none; padding: 0; gap: 8px; color: var(--wine); overflow: visible; align-content: start; }
  #process .room--cake > * { grid-column: auto; grid-row: auto; }
  .room--cake .room__frame { aspect-ratio: 1; width: 100%; max-width: none; border-radius: 16px; box-shadow: 0 18px 28px -20px rgba(74, 10, 23, .42); }
  .room--cake .room__frame picture { display: block; width: 100%; height: 100%; }
  .room--cake .room__frame img { width: 100%; height: 100%; object-fit: cover; }
  .room--cake .room__label { gap: 2px; }
  .room--cake .room__n { margin: 0; font-size: 12.5px; }
  .room--cake .room__n span { font-size: 1.35em; }
  .room--cake .room__title { font-size: clamp(22px, 6.2vw, 32px); margin: 0; }
  .room--cake .room__line { margin: 2px 0 0; font-size: 13px; line-height: 1.45; }

  /* ---------- rights: the deck, swiped ---------- */
  .deck .deck__viewport.mc { display: block !important; padding: clamp(22px, 5vw, 40px) 0 6px; scroll-padding-inline: 0; }
  .deck .mc-dots { color: var(--wine); position: relative; z-index: 3; }
  .deck__satin--bottom { margin-top: 0; }

  /* ---------- contact: the banner keeps a hard edge ---------- */
  .contact-banner img { -webkit-mask-image: none; mask-image: none; }
}

/* small phones */
@media (max-width: 360px) {
  .mc { --mc-w: 84vw; }
  .room--cake .room__line { font-size: 12px; }
  #process .rooms__track { gap: 18px 10px; }
}
/* tablets: two worlds and two films in view */
@media (min-width: 700px) and (max-width: 1023px) {
  .worlds--mobile .wrap { --mc-w: 44vw; }
  .about__chaps { --mc-w: 40vw; }
  #process .rooms__track { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) and (max-width: 1023px) {
  .mc { scroll-behavior: auto; }
  #work .room__ghost, #work .room__frame, #work .room__label { transform: none; }
}

/* How it works on phones and tablets: one scene at a time */
@media (max-width: 1023px) {
  .how { padding: 56px 0 60px; }
  .how__steps { --mc-w: min(86vw, 460px); max-width: none; margin-top: 30px; }
  .how__step { flex: 0 0 var(--mc-w); scroll-snap-stop: always; }
  .how__girl { height: min(78vw, 380px); }
  .how__line { font-size: 18px; }
  .how .mc-dots { margin-top: 18px; }
}
@media (min-width: 700px) and (max-width: 1023px) { .how__steps { --mc-w: min(56vw, 460px); } }

/* Rights on phones and tablets: the Films carousel, with cards. Each one comes forward on its cover, turns over in the
   middle, waits to be read, then the next one comes (js/mobile.js builds it from the deck's own cards). */
@media (max-width: 1023px) {
  .deck--spin .deck__viewport { display: none; }
  .spin { --w: min(64vw, 340px); position: relative; margin-top: 34px; }
  .spin__stage { position: relative; height: calc(var(--w) * 4 / 3); perspective: 1600px; perspective-origin: 50% 40%; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
  .spin__item { --d: 0; --ad: 0; position: absolute; left: 50%; top: 0; width: var(--w); aspect-ratio: 3 / 4; margin-left: calc(var(--w) / -2); transform-style: preserve-3d; cursor: pointer;
    transform: translateX(calc(var(--d) * 58%)) translateZ(calc(var(--ad) * -260px)) rotateY(calc(var(--d) * -34deg)); z-index: calc(10 - var(--ad)); transition: transform .9s cubic-bezier(.22, .8, .2, 1); }
  .deck--spin:not(.is-live) .spin__item { opacity: 0; transform: translateX(calc(var(--d) * 58%)) translateY(40px) translateZ(-420px) rotateY(calc(var(--d) * -34deg)); }
  .spin__flip { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 1.2s cubic-bezier(.3, .7, .2, 1); }
  .spin__item.is-open .spin__flip { transform: rotateY(180deg); }
  .spin__face { position: absolute; inset: 0; border-radius: 18px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; flex-direction: column; justify-content: center; padding: 0 9%;
    box-shadow: 0 30px 50px -30px rgba(74, 10, 23, .45); filter: saturate(calc(1 - var(--ad) * .2)) brightness(calc(1 - var(--ad) * .1)); transition: filter .9s; }
  .spin__face::before { content: ""; position: absolute; inset: 9px; border: 1px solid rgba(195, 18, 45, .28); border-radius: 12px; pointer-events: none; }
  .spin__cover { background: radial-gradient(120% 90% at 30% 20%, #fbe0df, #f4c3c6 60%, #e8a2ab); color: #8f0b22; align-items: center; text-align: center; }
  .spin__mark { position: absolute; top: 18px; left: 0; right: 0; font: italic 500 13px/1 var(--serif); letter-spacing: .14em; color: #c3122d; }
  .spin__shout { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 9vw, 42px); line-height: 1.06; letter-spacing: -.005em; text-wrap: balance; }
  .spin__shout span { display: block; font-style: italic; color: #c3122d; }
  .spin__num { position: absolute; bottom: 16px; left: 0; right: 0; font-size: 11px; font-weight: 500; letter-spacing: .22em; opacity: .7; }
  .spin__inside { transform: rotateY(180deg); background: #f6f8e6; color: var(--wine); text-align: left; }
  .spin__n { font-size: 12px; font-weight: 500; letter-spacing: .22em; color: #c3122d; }
  .spin__title { margin: 10px 0 14px; font-family: var(--serif); font-style: normal; font-weight: 600; font-size: clamp(26px, 7.6vw, 34px); line-height: 1.08; }
  .spin__text { margin: 0; font-size: clamp(16px, 4.5vw, 18px); line-height: 1.5; }
  .spin__nav { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 26px; }
  .spin__btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(74, 10, 23, .25); background: transparent; color: var(--wine); display: grid; place-items: center; padding: 0; cursor: pointer; }
  .spin__btn svg { width: 20px; height: 20px; }
  .spin__btn:active { transform: scale(.94); }
  .spin__btn .i-play { display: none; }
  .spin__btn[aria-pressed="true"] .i-play { display: block; }
  .spin__btn[aria-pressed="true"] .i-pause { display: none; }
  .spin__count { margin: 12px 0 0; text-align: center; font-size: 12px; font-weight: 500; letter-spacing: .18em; }
  .spin__bar { width: 120px; height: 2px; margin: 14px auto 0; background: rgba(74, 10, 23, .14); border-radius: 2px; overflow: hidden; }
  .spin__bar i { display: block; height: 100%; width: 0; background: #c3122d; }
}
@media (min-width: 700px) and (max-width: 1023px) { .spin { --w: min(40vw, 340px); } }
@media (prefers-reduced-motion: reduce) { .spin__item, .spin__flip, .spin__face { transition: none !important; } }

/* About on phones (2026-12-05 night): no arched niche. The outfits float on the section's own paint, whole, head to toe. */
@media (max-width: 1023px) {
  .about__chaps .chap > .chap__pic, .about__chaps .chap > .chap__pics,
  .about[data-look="black"] .about__chaps .chap > .chap__pic, .about[data-look="black"] .about__chaps .chap > .chap__pics {
    background: none; border-radius: 0; overflow: visible; height: min(52svh, 440px); }
  .about__chaps .chap > .chap__pic, .about__chaps .chap__pics .chap__pic { object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 16px 18px rgba(74, 10, 23, .18)); }
  .about__chaps .chap[data-chap="4"] .chap__pics .chap__pic { padding-top: 0; }
}

/* campaigns on phones: the wide-screen frame reveal (clip-path, js/motion.js) never crops a slide here; VANTA, WOW Mousse and ATHARA hang like the rest */
@media (max-width: 1023px) { #work .room__frame { clip-path: none !important; } }

/* phones, late: no floating Start a project pill (every section already ends with one), powdery pistachio paint */
@media (max-width: 1023px) {
  .mcta { display: none !important; }
  .spin__inside { background: #f7f8ee; }
  .deck--spin .deck__stage { padding-top: 64px; }
}

/* Work on phones, late: every campaign hangs the same way. Centred picture, one size, soft corners; the oversized name
   belongs to its own slide and only shows on the one in the middle, so names never run into each other. */
@media (max-width: 1023px) {
  #work .rooms__track { --mc-gap: 20px; }
  #work .room { overflow: hidden; padding: 0 3% 34px; }
  #work .room__ghost { left: 0; transform: none; opacity: max(0, calc(1 - var(--ad, 0) * 1.6)); transition: opacity .2s linear; }
  #work .room__frame, #work .room--flip .room__frame, #work .room--side .room__frame, #work .room--title .room__frame {
    justify-self: center; width: auto; height: min(46svh, 400px); aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden;
    transform: scale(calc(1 - var(--ad, 0) * .06)); }
  #work .room--wide .room__frame { justify-self: stretch; width: 100%; height: auto; aspect-ratio: 16 / 10; }
  #work .room__frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
  #work .room__label { transform: none; }
  #work .room__title { font-size: clamp(32px, 9vw, 52px); overflow-wrap: anywhere; }
}

/* 2026-12-05 night */
@media (max-width: 1023px) {
  .spin__inside { background: #f8f6ea; }
  /* Work: no oversized names behind the pictures */
  #work .room__ghost { display: none !important; }
  /* contact: a short call with room to breathe under the picture */
  .contact__head { margin-top: 28px; margin-bottom: 36px; }
  .contact__head h2 { font-size: clamp(40px, 12vw, 58px); line-height: 1; }
}
/* About, regenerate: she passes through the in-between look (pink and black) on phones too */
.about .chap__pics .about__fig--morph { display: none; }
.about[data-morph] .chap__pics .chap__pic { display: none; }
.about[data-morph] .chap__pics .about__fig--morph { display: block; }
@media (max-width: 1023px) {
  /* the contact picture melts into the page at the bottom instead of a straight cut */
  .contact-banner img { -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
}
