/* /manarstudios: Getsal's page for Manar Studios, rewritten 2026-10-06 around
   Faris's text. Getsal's layout and type, Manar's colours (navy #01123A,
   blue #0A62F5, cyan #00D8F4). Motion: bouncing dots in the hero (after the
   Framer BouncingDots), a story that darkens word by word, and small product
   mock-ups that play their work in sequence (manar.js). Every animation moves
   only transform and opacity so it stays smooth. */

.ms-page { --navy: #01123A; --blue: #0A62F5; --cyan: #00D8F4; --mist: #eef2fb; }
.ms { max-width: 1180px; margin: 0 auto; }
.ms .two { font-size: clamp(30px, 3.4vw, 50px); letter-spacing: -0.04em; line-height: 1.06; }

/* Hero */
.ms-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 6vw, 96px); align-items: center; min-height: calc(100vh - var(--nav) - 160px); }
.ms-hero-copy { display: grid; gap: 26px; justify-items: start; }
.ms-mark { width: 52px; height: 52px; }
.ms-lede { max-width: 520px; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; letter-spacing: -0.015em; color: var(--ink-2); }
.ms-stage { display: grid; place-items: center; aspect-ratio: 5 / 4; border-radius: 28px; background: var(--mist); box-shadow: inset 0 0 0 1px rgba(1, 18, 58, .05); }

/* Bouncing dots (hero) */
.bdots { --size: 34px; --lift: 96px; --gap: 22px; display: flex; align-items: flex-end; gap: var(--gap); height: calc(var(--lift) + var(--size) + 40px); }
.bd { position: relative; width: var(--size); height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.bd-dot {
  position: relative; z-index: 1; width: var(--size); height: var(--size); border-radius: 50%; margin-bottom: 14px;
  background: linear-gradient(140deg, var(--cyan), var(--blue));
  box-shadow: 0 0 22px rgba(10, 98, 245, .4);
  transform-origin: 50% 100%; animation: bdbounce 1.4s cubic-bezier(.45, .05, .55, .95) infinite; animation-delay: calc(var(--i) * .15s);
}
.bd-dot::after { content: ""; position: absolute; left: 22%; top: 18%; width: 24%; height: 24%; border-radius: 50%; background: rgba(255, 255, 255, .8); }
.bd-shadow {
  position: absolute; bottom: 8px; left: 50%; width: var(--size); height: 7px; margin-left: calc(var(--size) / -2); border-radius: 50%;
  background: rgba(1, 18, 58, .2); filter: blur(2px); animation: bdshadow 1.4s cubic-bezier(.45, .05, .55, .95) infinite; animation-delay: calc(var(--i) * .15s);
}
@keyframes bdbounce {
  0%, 100% { transform: translateY(0) scale(1.3, .7); }
  12% { transform: translateY(calc(var(--lift) * -.22)) scale(.95, 1.06); }
  50% { transform: translateY(calc(var(--lift) * -1)) scale(.92, 1.08); }
  88% { transform: translateY(calc(var(--lift) * -.22)) scale(1, 1); }
}
@keyframes bdshadow { 0%, 100% { transform: scale(1.15); opacity: .5; } 50% { transform: scale(.45); opacity: .15; } }

/* Story: darkens word by word as it scrolls past */
.ms-story { max-width: 760px; margin: clamp(96px, 16vh, 180px) auto 0; display: grid; gap: 1em; }
.story-text { font-size: clamp(22px, 2.3vw, 32px); letter-spacing: -0.03em; line-height: 1.3; }
.wd { color: #bcc1cf; transition: color .35s ease; }
.wd.on { color: var(--navy); }

/* What it builds: rows with product mock-ups */
.ms-products { margin-top: clamp(110px, 16vh, 190px); }
.ms-rows { margin-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--rule); }
.ms-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: center;
  padding: clamp(28px, 4vw, 48px) 0; border-bottom: 1px solid var(--rule);
}
.ms-row h3 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 400; letter-spacing: -0.035em; line-height: 1.15; color: var(--ink); }
.ms-row p { margin-top: 10px; max-width: 440px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.ms-tile { display: grid; place-items: center; min-height: 240px; padding: 28px; border-radius: 24px; background: var(--mist); }

.mk { width: min(100%, 340px); padding: 16px; border-radius: 18px; background: #fff; box-shadow: 0 1px 0 rgba(1, 18, 58, .04), 0 18px 40px -24px rgba(1, 18, 58, .35); color: var(--navy); font-size: 13px; }
.mk .av { display: block; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(140deg, #cfe9ff, #b9c8f5); flex: none; }
.mk .ok { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--blue); flex: none; }
.mk .ok svg { width: 10px; height: 9px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.mk-follow { display: grid; gap: 10px; }
.mk-follow .fr { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: #f6f8fd; }
.mk-follow .fr span { display: grid; gap: 1px; flex: 1; }
.mk-follow b { font-weight: 700; }
.mk-follow small { font-size: 11px; color: #7c869f; }

.mk-cal .days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 8px; font-size: 11px; color: #7c869f; text-align: center; }
.mk-cal .slots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.mk-cal .slot { position: relative; display: block; height: 24px; border-radius: 6px; background: #eef1f8; overflow: hidden; }
.mk-cal .slot.bk::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(140deg, var(--cyan), var(--blue)); transform-origin: left; }

.mk-route { display: grid; gap: 10px; }
.mk-route .lead { display: grid; grid-template-columns: 10px auto 1fr 26px 20px; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #f6f8fd; }
.mk-route .lead.old { opacity: .5; }
.mk-route .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); }
.mk-route b { font-weight: 700; }
.mk-route .to { display: block; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--cyan), var(--blue)); transform-origin: left; }
.mk-route .av.on { box-shadow: 0 0 0 3px rgba(0, 216, 244, .35); }
.mk-route .lead:first-child { grid-template-columns: 10px auto 1fr 26px 20px; }

/* Principles */
.ms-rules { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; margin-top: clamp(110px, 16vh, 190px); }
.ms-rule-list { border-top: 1px solid var(--rule); }
.ms-rule-list > div { padding: 24px 0; border-bottom: 1px solid var(--rule); }
.ms-rule-list h3 { font-size: clamp(18px, 1.6vw, 21px); font-weight: 700; letter-spacing: -0.02em; }
.ms-rule-list p { margin-top: 8px; max-width: 520px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }

/* First release: the voice receptionist */
.ms-first { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 96px); align-items: center; margin-top: clamp(110px, 16vh, 190px); }
.ms-first-copy { display: grid; gap: 22px; }
.ms-first-copy p { max-width: 480px; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; color: var(--ink-2); }
.ms-call {
  justify-self: center; width: min(100%, 400px); padding: 20px; border-radius: 26px; background: var(--navy); color: #fff;
  box-shadow: 0 30px 60px -30px rgba(1, 18, 58, .6);
}
.call-top { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.ring { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--cyan); flex: none; }
.ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--cyan); animation: ringpulse 1.8s ease-out infinite; }
.ring svg { position: relative; width: 20px; height: 20px; fill: var(--navy); }
@keyframes ringpulse { from { transform: scale(1); opacity: .55; } to { transform: scale(1.9); opacity: 0; } }
.call-state { display: grid; font-size: 15px; }
.call-state b { grid-area: 1 / 1; font-weight: 700; transition: opacity .4s ease, transform .4s ease; }
.call-state .s2 { color: var(--cyan); }
.bubbles { display: grid; gap: 8px; padding: 16px 0; }
.bb { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.4; }
.bb.them { justify-self: start; background: rgba(255, 255, 255, .08); border-bottom-left-radius: 6px; }
.bb.us { justify-self: end; background: var(--blue); border-bottom-right-radius: 6px; }
.booked { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(0, 216, 244, .12); font-size: 14px; font-weight: 700; color: var(--cyan); }
.booked .ok { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--cyan); flex: none; }
.booked .ok svg { width: 10px; height: 9px; fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Sequenced mock-ups: hidden until manar.js plays them (shown as-is without JS or with reduced motion) */
.seq .sq { opacity: 0; transform: translateY(8px); transition: opacity .45s ease, transform .55s cubic-bezier(.2, .8, .2, 1); }
.seq .sq.show { opacity: 1; transform: none; }
.seq .ok.sq, .seq .av.sq { transform: scale(.3); }
.seq .ok.sq.show, .seq .av.sq.show { transform: scale(1); transition: opacity .3s ease, transform .45s cubic-bezier(.3, 1.5, .5, 1); }
.seq .slot.bk.sq { opacity: 1; transform: none; }
.seq .slot.bk.sq::after { transform: scaleX(0); transition: transform .55s cubic-bezier(.2, .8, .2, 1); }
.seq .slot.bk.sq.show::after { transform: scaleX(1); }
.seq .to.sq { opacity: 1; transform: scaleX(0); }
.seq .to.sq.show { transform: scaleX(1); }
.seq .call-state .s1 { opacity: 1; }
.seq .call-state:has(.s2.show) .s1 { opacity: 0; transform: translateY(-6px); }
.seq .call-state .s2.sq.show { transition-delay: .3s; }
.seq .call-state .s1 { transition-duration: .25s; }

/* The way out: one wide, solid bar. A navy panel sweeps across on hover and the
   Manar mark's cells spread; only transform and colour change, so it stays smooth. */
.ms-go {
  position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px;
  margin-top: clamp(110px, 16vh, 190px); padding: clamp(30px, 4.4vw, 56px) clamp(24px, 4.4vw, 60px); min-height: clamp(150px, 17vw, 230px);
  border-radius: 34px; background: var(--mist); color: var(--navy); text-decoration: none;
}
.ms-go-fill {
  position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, var(--navy) 0%, #03266e 60%, var(--blue) 100%);
  transform: scaleX(0); transform-origin: left; transition: transform .75s cubic-bezier(.7, 0, .2, 1); will-change: transform;
}
.ms-go-text { font-size: clamp(30px, 5.6vw, 86px); font-weight: 400; letter-spacing: -0.05em; line-height: 1; transition: color .45s ease .1s; }
.ms-go-side { display: grid; justify-items: end; gap: 18px; }
.ms-go-url { font-size: 14px; color: #5b6685; transition: color .45s ease .1s; }
.ms-go-mark { display: grid; grid-template-columns: repeat(3, 16px); grid-template-rows: repeat(3, 16px); }
.ms-go-mark i { display: block; transition: transform .6s cubic-bezier(.3, 1.4, .5, 1), background-color .4s ease; }
.ms-go-mark i:nth-child(1) { grid-area: 1 / 2; background: var(--cyan); }
.ms-go-mark i:nth-child(2) { grid-area: 1 / 3; background: var(--blue); }
.ms-go-mark i:nth-child(3) { grid-area: 2 / 1; background: var(--blue); }
.ms-go-mark i:nth-child(4) { grid-area: 2 / 2; background: var(--navy); }
.ms-go-mark i:nth-child(5) { grid-area: 2 / 3; background: var(--cyan); }
.ms-go-mark i:nth-child(6) { grid-area: 3 / 1 / 4 / 3; background: var(--blue); }
.ms-go:hover .ms-go-fill, .ms-go:focus-visible .ms-go-fill { transform: scaleX(1); }
.ms-go:hover .ms-go-text, .ms-go:focus-visible .ms-go-text { color: #fff; }
.ms-go:hover .ms-go-url, .ms-go:focus-visible .ms-go-url { color: rgba(255, 255, 255, .7); }
.ms-go:hover .ms-go-mark i:nth-child(1) { transform: translate(-3px, -6px); }
.ms-go:hover .ms-go-mark i:nth-child(2) { transform: translate(6px, -6px); }
.ms-go:hover .ms-go-mark i:nth-child(3) { transform: translate(-6px, 0); }
.ms-go:hover .ms-go-mark i:nth-child(4) { transform: rotate(90deg) scale(1.1); background: #fff; }
.ms-go:hover .ms-go-mark i:nth-child(5) { transform: translate(6px, 0); }
.ms-go:hover .ms-go-mark i:nth-child(6) { transform: translate(-3px, 6px); }
.ms-go:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }

.rv { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.rv.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .ms-hero, .ms-row, .ms-rules, .ms-first { grid-template-columns: 1fr; }
  .ms-hero { min-height: 0; }
  .ms-stage { aspect-ratio: 16 / 10; }
  .ms-go { grid-template-columns: 1fr; }
  .ms-go-side { justify-items: start; grid-auto-flow: column; align-items: center; }
}
@media (max-width: 560px) {
  .bdots { --size: 26px; --lift: 64px; --gap: 16px; }
  .ms-tile { padding: 18px; min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .bd-dot, .bd-shadow, .ring::before { animation: none; }
  .bd-dot { transform: none; }
  .rv { opacity: 1; transform: none; transition: none; }
  .wd { transition: none; }
  .ms-go-fill, .ms-go-mark i, .ms-go-text { transition: none; }
}
