/* Each studio's signature moment (moment-*.js), right under its opening. */
.m-web, .m-design, .m-video, .m-auto { position: relative; padding: 96px var(--s-pad) 110px; border-top: 1px solid var(--s-line); }
.m-head { max-width: 760px; margin-bottom: 48px; }

/* ---------- Websites: the resizable browser ---------- */
.mw-stage { position: relative; }
.mw-win { position: relative; width: var(--w, 100%); max-width: 100%; border-radius: 18px; background: var(--white); box-shadow: 0 30px 80px rgba(3, 26, 31, .14), 0 0 0 1px rgba(11, 22, 21, .08); }
.mw-win:not(.dragging) { transition: box-shadow .3s; }
.mw-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 18px 18px 0 0; background: var(--mist); }
.mw-dots { display: flex; gap: 6px; } .mw-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(11, 22, 21, .16); } .mw-dots i:first-child { background: var(--rasp); }
.mw-url { flex: 1; display: flex; justify-content: space-between; gap: 12px; min-width: 0; padding: 6px 14px; border-radius: 99px; background: var(--white); font-size: 13px; color: rgba(11, 22, 21, .6); white-space: nowrap; overflow: hidden; }
.mw-px { color: var(--teal-ink); font-variant-numeric: tabular-nums; }
.mw-site { container-type: inline-size; padding: 22px 28px 30px; overflow: hidden; border-radius: 0 0 18px 18px; color: var(--ink); }
.mw-nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.mw-logo { display: flex; align-items: center; gap: 8px; margin-right: auto; font-weight: 700; } .mw-logo i { width: 18px; height: 18px; border-radius: 6px; background: var(--rasp-grad); }
.mw-links { display: flex; gap: 22px; color: rgba(11, 22, 21, .65); }
.mw-cta { padding: 8px 16px; border-radius: 99px; background: var(--teal); font-weight: 600; font-size: 13px; }
.mw-burger { display: none; gap: 4px; } .mw-burger i { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); }
.mw-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; margin-top: 32px; }
.mw-h { font-family: var(--display); font-size: clamp(30px, 4.6cqw, 54px); line-height: 1; }
.mw-p { max-width: 36ch; margin-top: 14px; font-size: 15px; color: rgba(11, 22, 21, .66); }
.mw-btn { display: inline-flex; margin-top: 20px; padding: 11px 20px; border-radius: 99px; background: var(--ink); color: var(--white); font-weight: 600; font-size: 14px; }
.mw-img { aspect-ratio: 4 / 3; border-radius: 16px; background: radial-gradient(circle at 30% 30%, #bdf3ee, #00b8a9 55%, #00897e); }
.mw-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
.mw-cards > div { display: grid; gap: 4px; padding: 16px; border-radius: 14px; background: var(--mist); font-size: 14px; }
.mw-cards i { width: 30px; height: 30px; margin-bottom: 8px; border-radius: 9px; background: rgba(0, 184, 169, .2); }
.mw-cards > div:nth-child(2) i { background: rgba(242, 25, 94, .16); }
.mw-cards span { color: rgba(11, 22, 21, .6); }
@container (max-width: 760px) { .mw-hero { grid-template-columns: 1fr; } .mw-img { aspect-ratio: 16 / 9; order: -1; } .mw-cards { grid-template-columns: 1fr 1fr; } .mw-cards > div:last-child { grid-column: 1 / -1; } }
@container (max-width: 520px) { .mw-links, .mw-cta { display: none; } .mw-burger { display: grid; } .mw-cards { grid-template-columns: 1fr; } .mw-site { padding: 16px 18px 22px; } }
.mw-handle { position: absolute; top: 50%; right: -22px; width: 44px; height: 88px; transform: translateY(-50%); display: grid; place-items: center; border-radius: 99px; background: var(--ink); cursor: ew-resize; touch-action: none; box-shadow: 0 10px 30px rgba(3, 26, 31, .3); }
.mw-handle i { width: 4px; height: 32px; border-radius: 4px; background: var(--teal); box-shadow: -8px 0 0 rgba(255, 255, 255, .35), 8px 0 0 rgba(255, 255, 255, .35); }
.mw-handle:focus-visible { outline: 3px solid var(--rasp); outline-offset: 3px; }
@media (max-width: 760px) { .mw-handle { right: -14px; width: 34px; height: 72px; } .mw-stage { padding-right: 14px; } }

/* ---------- Design: the board ---------- */
.md-board { position: relative; display: grid; place-items: center; padding: 56px 24px; border-radius: 24px; background: color-mix(in srgb, var(--s-ink) 5%, transparent); overflow: hidden; }
.md-grid { position: absolute; inset: 56px max(24px, calc(50% - 300px)); display: grid; grid-template-columns: repeat(12, 1fr); gap: 10px; pointer-events: none; }
.md-grid i { background: rgba(242, 25, 94, .06); border-inline: 1px solid rgba(242, 25, 94, .12); }
.md-page { position: relative; width: min(560px, 100%); display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: auto auto auto 1fr auto; gap: 14px; padding: 26px; background: var(--white); box-shadow: 0 30px 70px rgba(3, 26, 31, .16); border-radius: 4px; color: var(--ink); }
.piece { position: relative; will-change: transform; transition: box-shadow .5s; }
.piece::after { content: ""; position: absolute; inset: -6px; border: 1.5px solid var(--rasp); border-radius: 6px; opacity: 0; pointer-events: none; }
.piece.landed:not(.still)::after { animation: snap .6s ease-out; }
@keyframes snap { 0% { opacity: 1; } 100% { opacity: 0; inset: -12px; } }
.piece.band { grid-column: 1 / -1; height: 14px; border-radius: 4px; background: var(--rasp-grad); }
.piece.logo { grid-column: 1 / 4; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.piece.logo i { width: 24px; height: 24px; border-radius: 7px; background: var(--ink); }
.piece.title { grid-column: 1 / -1; font-family: var(--display); font-size: clamp(30px, 4vw, 48px); line-height: .98; }
.piece.photo { grid-column: 1 / 5; min-height: 170px; border-radius: 4px; background: linear-gradient(135deg, #3d4a48, #0b1615); }
.piece.text { grid-column: 5 / -1; display: grid; align-content: start; gap: 9px; padding-top: 4px; }
.piece.text i { height: 8px; border-radius: 9px; background: rgba(11, 22, 21, .12); } .piece.text i:nth-child(2) { width: 80%; } .piece.text i:nth-child(4) { width: 60%; }
.piece.num { grid-column: 1 / 4; padding-top: 12px; border-top: 2px solid var(--ink); font-size: 13px; color: rgba(11, 22, 21, .6); }
.piece.num.b { grid-column: 4 / -1; }
.piece.num b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(30px, 3.4vw, 42px); line-height: 1; color: var(--rasp); }
@media (max-width: 760px) { .md-board { padding: 28px 12px; } .md-page { padding: 16px; gap: 10px; } .piece.photo { min-height: 90px; } }

/* ---------- Video: the edit suite ---------- */
.mv-suite { overflow: hidden; border-radius: 22px; background: #071f24; box-shadow: 0 40px 100px rgba(0, 0, 0, .35), 0 0 0 1px rgba(233, 248, 246, .08); }
.mv-mon { position: relative; aspect-ratio: 16 / 9; width: min(calc(100% - 36px), calc(62vh * 16 / 9)); margin: 18px auto 0; overflow: hidden; border-radius: 12px; background: #000; }
.mv-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.mv-cap { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); padding: 6px 14px; border-radius: 8px; background: rgba(0, 0, 0, .55); color: #fff; font-size: clamp(14px, 1.6vw, 20px); font-weight: 600; white-space: nowrap; }
.mv-tc { position: absolute; right: 14px; top: 12px; padding: 4px 8px; border-radius: 6px; background: rgba(0, 0, 0, .45); color: #e9f8f6; font-size: 12px; font-variant-numeric: tabular-nums; }
.mv-play { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; transform: translate(-50%, -50%); display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: 0 10px 40px rgba(0, 0, 0, .35); transition: opacity .3s, transform .3s var(--ease-out); }
.mv-play i { width: 0; height: 0; margin-left: 5px; border-left: 20px solid var(--ink); border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.mv-suite.playing .mv-play { opacity: 0; transform: translate(-50%, -50%) scale(.85); }
.mv-suite.playing .mv-mon:hover .mv-play { opacity: .9; }
.mv-suite.playing .mv-play i { width: 18px; height: 22px; margin: 0; border: 0; border-inline: 6px solid var(--ink); }
.mv-tl { position: relative; padding: 14px 18px 20px 58px; cursor: ew-resize; touch-action: none; user-select: none; }
.mv-ruler { position: relative; height: 18px; color: rgba(233, 248, 246, .45); font-size: 10px; }
.mv-ruler i { position: absolute; left: var(--x); top: 0; height: 6px; border-left: 1px solid rgba(233, 248, 246, .3); font-style: normal; padding-left: 4px; }
.mv-trk { position: relative; height: 34px; margin-top: 6px; }
.mv-trk small { position: absolute; left: -40px; top: 9px; font-size: 11px; color: rgba(233, 248, 246, .5); }
.mv-trk span { position: absolute; top: 0; bottom: 0; left: calc(var(--a) * 100%); width: calc((var(--b) - var(--a)) * 100% - 3px); display: flex; align-items: center; padding: 0 10px; border-radius: 7px; font-size: 12px; font-weight: 600; color: var(--deep); overflow: hidden; white-space: nowrap; transition: box-shadow .25s; }
.mv-trk.v .c0 { background: #2bd3c4; } .mv-trk.v .c1 { background: var(--teal); } .mv-trk.v .c2 { background: var(--rasp-hi); color: #fff; } .mv-trk.v .c3 { background: var(--rasp-lo); color: #fff; }
.mv-trk.v span.on { box-shadow: 0 0 0 2px #fff, 0 0 18px rgba(255, 255, 255, .35); }
.mv-trk.t { height: 18px; } .mv-trk.t small { top: 2px; } .mv-trk.t span { background: rgba(242, 25, 94, .75); border-radius: 5px; }
.mv-trk.a span { background: repeating-linear-gradient(90deg, rgba(233, 248, 246, .5) 0 2px, transparent 2px 5px); -webkit-mask: radial-gradient(ellipse 100% 70% at 50% 50%, #000 55%, transparent); mask: radial-gradient(ellipse 100% 70% at 50% 50%, #000 55%, transparent); }
.mv-ph { position: absolute; top: 10px; bottom: 14px; left: 0; width: 2px; margin-left: 58px; background: var(--rasp); box-shadow: 0 0 10px var(--rasp); pointer-events: none; }
.mv-ph::before { content: ""; position: absolute; top: -4px; left: -6px; width: 14px; height: 10px; border-radius: 3px; background: var(--rasp); }
.mv-scrub { position: absolute; left: 58px; bottom: 4px; width: calc(100% - 76px); height: 18px; margin: 0; opacity: 0; cursor: ew-resize; }
.mv-scrub:focus-visible { opacity: 1; accent-color: var(--rasp); }

/* ---------- Automations: the message on the wire ---------- */
.ma-run { --n: 0; position: relative; display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 48px; align-items: start; }
.ma-in { padding: 20px; border-radius: 20px; background: var(--white); box-shadow: 0 24px 60px rgba(3, 26, 31, .12), 0 0 0 1px rgba(11, 22, 21, .06); opacity: 0; transform: translateY(18px); transition: opacity .5s, transform .6s var(--ease-out); }
.ma-run.arrived .ma-in, .ma-run.still .ma-in { opacity: 1; transform: none; }
.ma-from { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.ma-av { grid-row: span 2; width: 38px; height: 38px; border-radius: 50%; background: var(--rasp-grad); }
.ma-from small { color: var(--teal-ink); font-size: 12px; }
.ma-msg { margin-top: 14px; padding: 12px 14px; border-radius: 16px 16px 16px 4px; background: var(--mist); font-size: 16px; }
.ma-wire { position: absolute; left: 300px; right: 0; top: 46px; height: 3px; border-radius: 3px; background: rgba(11, 22, 21, .1); }
.ma-wire::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: calc(48px * min(var(--n), 1) + (100% - 48px) * max(var(--n) - .5, 0) / 3); border-radius: 3px; background: var(--teal); box-shadow: 0 0 12px rgba(0, 184, 169, .6); transition: width 1s var(--ease-out); }
.ma-dot { position: absolute; top: 50%; left: calc(48px * min(var(--n), 1) + (100% - 48px) * max(var(--n) - .5, 0) / 3); width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 5px rgba(0, 184, 169, .25), 0 0 18px var(--teal); opacity: 0; transition: left 1s var(--ease-out), opacity .3s; }
.ma-run.arrived .ma-dot { opacity: 1; }
.ma-run.done .ma-dot { opacity: 0; transition: left 1s var(--ease-out), opacity .4s .6s; }
.ma-nodes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ma-node { position: relative; z-index: 1; padding: 20px; border-radius: 18px; background: var(--white); box-shadow: 0 0 0 1px rgba(11, 22, 21, .08); transition: box-shadow .4s, transform .4s var(--ease-out); }
.ma-node > b { display: block; margin-top: 14px; font-family: var(--display); font-weight: 400; font-size: 28px; }
.ma-led { display: block; width: 14px; height: 14px; border-radius: 50%; background: rgba(11, 22, 21, .14); transition: background-color .3s, box-shadow .3s; }
.ma-node.on { box-shadow: 0 0 0 2px var(--teal), 0 20px 50px rgba(0, 120, 110, .16); transform: translateY(-3px); }
.ma-node.on .ma-led { background: var(--teal); box-shadow: 0 0 0 5px rgba(0, 184, 169, .22), 0 0 14px var(--teal); }
.ma-out { margin-top: 14px; opacity: 0; transform: translateY(8px); transition: opacity .45s .15s, transform .5s .15s var(--ease-out); font-size: 14px; }
.ma-node.on .ma-out { opacity: 1; transform: none; }
.ma-slot { display: grid; padding: 12px 14px; border-radius: 12px; background: rgba(0, 184, 169, .12); }
.ma-slot small { color: var(--teal-ink); font-weight: 600; } .ma-slot b { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1; } .ma-slot span { color: rgba(11, 22, 21, .65); }
.ma-reply { padding: 10px 12px; border-radius: 14px 14px 4px 14px; background: rgba(0, 184, 169, .16); }
.ma-row { display: grid; grid-template-columns: repeat(2, auto); gap: 4px 10px; padding: 10px 12px; border-radius: 10px; background: var(--mist); font-variant-numeric: tabular-nums; }
.ok-t { color: var(--teal-ink); font-weight: 700; }
.ma-again { display: inline-flex; margin-top: 36px; padding: 14px 24px; border-radius: 99px; background: var(--ink); color: var(--white); font-weight: 600; transition: box-shadow .2s; }
.ma-again:hover { box-shadow: 0 10px 28px rgba(11, 22, 21, .25); }
@media (max-width: 900px) {
  .ma-run { grid-template-columns: 1fr; gap: 20px; }
  .ma-wire { display: none; }
  .ma-nodes { grid-template-columns: 1fr; }
  .mv-tl { padding-left: 46px; } .mv-trk small { left: -34px; } .mv-ph { margin-left: 46px; } .mv-scrub { left: 46px; width: calc(100% - 64px); }
  .mv-trk span { font-size: 0; padding: 0; }
}
