/* ============================================================================
   MakeNest Digital: premium layer.
   ============================================================================

   This file is linked on every page AFTER the inline stylesheet and after
   theme.css, so it can restyle without editing 29 pages and without fighting
   the theme variables the panel already controls.

   Rules of the house, in order of importance:
     1. Nothing here is needed for the page to work. Strip this file and every
        page still reads and navigates exactly as before.
     2. No new network requests: no fonts, no images, no scripts. Everything is
        drawn with CSS. The one exception is the hero picture, which is an <img>
        already on the page so it can be preloaded and sized.
     3. Design tokens only. Colours come from --navy, --teal, --coral and the
        rest, so a palette change in the panel changes this layer too.
     4. Motion is opt-in by media query. A visitor who asks their device for less
        motion gets a static page, not a slower one.
     5. Layout is mobile-first where it matters: the phone is fixed here, not
        patched afterwards.
   ========================================================================= */

:root {
  /* Spacing scale, so sections breathe by a number instead of by guesswork. */
  --mn-space: 72px;
  --mn-space-sm: 48px;
  /* Depth. Two shadows, one tight and one wide: a single blur always looks flat. */
  --mn-lift-1: 0 1px 2px rgba(5, 43, 82, .06), 0 8px 24px -12px rgba(5, 43, 82, .18);
  --mn-lift-2: 0 2px 4px rgba(5, 43, 82, .07), 0 22px 48px -20px rgba(5, 43, 82, .30);
  --mn-rim: 1px solid rgba(255, 255, 255, .10);
  --mn-radius: 18px;
}

/* Balanced density: the page the panel builds is 1060px, which reads cramped
   against a 1920px screen. 1160px with the same 20px gutters keeps lines short
   enough to read (about 78 characters) and gives cards room to sit in a row. */
.wrap { max-width: 1160px; }

/* ---------------------------------------------------------------- rhythm */

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

section { padding: var(--mn-space) 0; }
section + section { padding-top: var(--mn-space-sm); }

/* A faint grid on the cream background gives the eye something to follow on a
   tall page, and reads as paper rather than flat colour. Two gradients, no image. */
body {
  background-image:
    radial-gradient(1200px 600px at 50% -10%, rgba(0, 206, 194, .05), transparent 70%),
    linear-gradient(rgba(5, 43, 82, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 43, 82, .028) 1px, transparent 1px);
  background-size: 100% 100%, 44px 44px, 44px 44px;
  background-position: 0 0, -1px -1px, -1px -1px;
}

/* Section headings get a short accent rule, which is what separates a "premium"
   layout from a stack of paragraphs. It is a pseudo element, so no markup. */
section > .wrap > h2:first-child,
section > .wrap > div > h2:first-child {
  position: relative;
  padding-top: 18px;
}
section > .wrap > h2:first-child::before,
section > .wrap > div > h2:first-child::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 44px; height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--teal), var(--coral));
}

/* ------------------------------------------------------------------- hero */

.hero {
  /* The picture is an <img>, so it can be preloaded and given real dimensions.
     Everything below it is unchanged: the scrim, the content column, the CTAs. */
  position: relative;
  isolation: isolate;
  padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 84px);
  background: #052b52;
}

.hero .mn-hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 50%;
  z-index: -2;
  /* No transition, no transform: this is the LCP element. Moving it costs paint. */
}

/* Two gradients doing two jobs: the left-to-right one keeps the headline
   readable over the bright ribbons, the bottom one fades the picture into the
   page instead of cutting it off in a hard line. */
.hero .hero-scrim {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(4, 24, 44, .94) 0%, rgba(4, 24, 44, .80) 42%,
                    rgba(4, 24, 44, .42) 68%, rgba(4, 24, 44, .20) 100%),
    linear-gradient(180deg, rgba(4, 24, 44, .55) 0%, rgba(4, 24, 44, 0) 30%,
                    rgba(4, 24, 44, .55) 100%);
  opacity: 1 !important;   /* the inline opacity is for the old gradient */
}

/* The old dark placeholder behind the picture, when no hero image is set. */
.hero .hero-media {
  background-image: none !important;
  background: radial-gradient(900px 500px at 78% 40%, rgba(0, 206, 194, .22), transparent 65%),
              linear-gradient(160deg, var(--navy), #041f3c);
  z-index: -2;
}

.hero h1 { text-wrap: balance; letter-spacing: -1.2px; }
.hero .lede { font-size: clamp(1rem, 1.9vw, 1.12rem); }

/* The answer block sits on the picture, so it needs its own surface. */
.hero .answer {
  background: rgba(255, 255, 255, .96);
  border: var(--mn-rim);
  border-left: 5px solid var(--teal);
  border-radius: 16px;
  box-shadow: var(--mn-lift-2);
  backdrop-filter: blur(6px);
}

/* The three figures under the CTAs. */
.trust b { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ scroll reveal */

/* Sections rise into place as they arrive. The stylesheet's own .reveal runs on
   page load; this runs on approach, which is what makes a long page feel alive
   rather than animated. The class is added by JavaScript, so with no script the
   content is simply visible: nothing is ever hidden by CSS alone. */
@media (prefers-reduced-motion: no-preference) {
  .mn-in { opacity: 0; transform: translateY(22px); }
  .mn-in.mn-seen {
    opacity: 1;
    transform: none;
    transition: opacity .62s cubic-bezier(.22, .61, .36, 1),
                transform .62s cubic-bezier(.22, .61, .36, 1);
  }
}

/* ------------------------------------------------------------------ cards */

.card, .post-card, .facts, .service, .svc, .qa {
  border-radius: var(--mn-radius);
  box-shadow: var(--mn-lift-1);
  transition: transform .28s cubic-bezier(.2, .7, .2, 1),
              box-shadow .28s cubic-bezier(.2, .7, .2, 1),
              border-color .28s ease;
  will-change: transform;
}

.card:hover, .post-card:hover, .service:hover, .qa:hover {
  transform: translateY(-4px);
  box-shadow: var(--mn-lift-2);
  border-color: rgba(0, 206, 194, .35);
}

/* A hairline highlight along the top edge of a card: the "glass sheet" cue that
   makes a flat white box read as a physical panel. */
.card { position: relative; }
.card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  border-radius: var(--mn-radius) var(--mn-radius) 0 0;
  background: linear-gradient(90deg, transparent, rgba(0, 206, 194, .55), transparent);
  opacity: 0;
  transition: opacity .28s ease;
  pointer-events: none;
}
.card:hover::after { opacity: 1; }

/* ---------------------------------------------------- 3D showpiece (CSS only) */

.mn-show-3d {
  --r: 14deg;
  position: relative;
  border-radius: 22px;
  padding: 14px;
  background: linear-gradient(150deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .75), 0 2px 0 rgba(255, 255, 255, .12) inset;
  transform: perspective(1400px) rotateY(calc(var(--r) * -1)) rotateX(calc(var(--r) * .45));
  transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}

.mn-show-3d:hover { transform: perspective(1400px) rotateY(-3deg) rotateX(1.5deg) translateY(-6px); }

/* The showpiece is centred against the artwork, because the headline's height
   changes with the copy and a top-aligned mockup would drift. */
.mn-hero-show { align-self: center; }

.mn-show-3d .mn-screen {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  transform: translateZ(28px);
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .55);
}

/* The screen contents are drawn, not an image: a browser bar, a hero band, a
   three-up grid and a chart. It is a mockup of this site's own layout, so it
   cannot go stale or pretend to be a client's site. */
.mn-screen { display: block; }
.mn-screen-bar {
  display: flex; gap: 6px; align-items: center;
  padding: 9px 12px; background: #eef3f8; border-bottom: 1px solid #dde6ef;
}
.mn-screen-bar i { width: 8px; height: 8px; border-radius: 50%; background: #c8d5e2; display: block; }
.mn-screen-bar i:first-child { background: #ff6f5e; }
.mn-screen-bar i:nth-child(2) { background: #ffc14d; }
.mn-screen-bar i:nth-child(3) { background: #4bd0a0; }
.mn-screen-bar span {
  margin-left: 8px; flex: 1; height: 10px; border-radius: 5px; background: #fff;
  border: 1px solid #dde6ef;
}
.mn-screen-hero {
  height: 92px;
  background: linear-gradient(120deg, var(--navy), #0a3c6e 55%, #0e5a63);
  position: relative;
  overflow: hidden;
}
.mn-screen-hero::after {
  content: ""; position: absolute; right: -30px; top: -40px;
  width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(0, 206, 194, .85), rgba(0, 206, 194, 0) 70%);
}
.mn-screen-hero b {
  position: absolute; left: 14px; top: 28px;
  width: 46%; height: 9px; border-radius: 5px; background: rgba(255, 255, 255, .92);
  box-shadow: 0 16px 0 -3px rgba(255, 255, 255, .55);
}
.mn-screen-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px; }
.mn-screen-row s {
  display: block; height: 54px; border-radius: 8px; background: #f2f6fa;
  border: 1px solid #e3ebf3; text-decoration: none;
}
.mn-screen-row s:nth-child(2) { background: #fff; box-shadow: 0 6px 14px -8px rgba(5, 43, 82, .35); }
.mn-screen-chart { display: flex; align-items: flex-end; gap: 5px; height: 44px; padding: 0 12px 14px; }
.mn-screen-chart u {
  display: block; flex: 1; border-radius: 4px 4px 0 0; text-decoration: none;
  background: linear-gradient(180deg, var(--teal), rgba(0, 206, 194, .35));
}
.mn-screen-chart u:nth-child(1) { height: 30%; }
.mn-screen-chart u:nth-child(2) { height: 48%; }
.mn-screen-chart u:nth-child(3) { height: 40%; }
.mn-screen-chart u:nth-child(4) { height: 66%; }
.mn-screen-chart u:nth-child(5) { height: 58%; }
.mn-screen-chart u:nth-child(6) { height: 84%; }
.mn-screen-chart u:nth-child(7) { height: 100%; background: linear-gradient(180deg, var(--coral), rgba(254, 95, 66, .35)); }

/* The hero two-column arrangement, only when the markup carries the showpiece. */
.hero .mn-hero-grid { display: grid; grid-template-columns: 1fr; gap: 34px; align-items: center; }
.hero .mn-hero-show { display: none; }

/* -------------------------------------------------------------- the ticker */

.mn-tickerbar {
  /* Positioned, so it paints above the hero picture and the scrim, which are
     stacked with negative z-index. Without this the open menu panel and the
     ticker fight over the same space and the ticker wins. */
  position: relative;
  z-index: 5;
  overflow: hidden;
  background: linear-gradient(90deg, var(--navy), #0a3c6e 40%, var(--navy));
  border-top: 1px solid rgba(255, 255, 255, .08);
  border-bottom: 1px solid rgba(0, 0, 0, .25);
  /* Items fade at both ends instead of being sliced by the viewport edge, which
     is what makes a marquee read as intentional rather than clipped. */
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.mn-tickerbar .track {
  display: flex;
  width: max-content;
  /* The stop is a partial step, not zero: starting the loop mid-item means the
     first thing a visitor sees is not a word cut in half at the left edge.
     -50% is one full copy of the list, so the loop stays seamless. */
  animation: mn-ticker-scroll 42s linear infinite;
  animation-delay: -8s;
}
.mn-tickerbar:hover .track,
.mn-tickerbar:focus-within .track { animation-play-state: paused; }
.mn-tickerbar .track > * { flex: 0 0 auto; }
.mn-tickerbar span {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px;
  font-size: .86rem; font-weight: 600; letter-spacing: .2px;
  color: #d8ecf7; white-space: nowrap;
}
.mn-tickerbar span::after {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--teal); opacity: .85;
}
.mn-tickerbar a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .3); }
@keyframes mn-ticker-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* --------------------------------------------------------------- showreel */

.mn-reel { display: grid; grid-template-columns: 1fr; gap: 18px; }
.mn-reel-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 210px;
  padding: 20px;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  box-shadow: var(--mn-lift-2);
  isolation: isolate;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease;
}
.mn-reel-card:hover { transform: translateY(-5px); box-shadow: 0 34px 60px -28px rgba(5, 43, 82, .55); }
/* Each card is a drawn scene, not a screenshot, so nothing here claims to be a
   client's website. Widths and colours come from the theme tokens. */
.mn-reel-card::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(150deg, var(--navy), #093a63 60%, #0d5460);
}
.mn-reel-card::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(320px 220px at 82% 18%, rgba(0, 206, 194, .55), transparent 70%),
    linear-gradient(180deg, rgba(4, 24, 44, 0) 30%, rgba(4, 24, 44, .88) 100%);
}
.mn-reel-card:nth-child(2)::before { background: linear-gradient(150deg, #0a3c6e, #12545e 60%, #0d5460); }
.mn-reel-card:nth-child(3)::before { background: linear-gradient(150deg, #0b2b52, #123c5f 55%, #6b3a34); }
.mn-reel-card:nth-child(3)::after {
  background:
    radial-gradient(320px 220px at 82% 18%, rgba(254, 95, 66, .45), transparent 70%),
    linear-gradient(180deg, rgba(4, 24, 44, 0) 30%, rgba(4, 24, 44, .88) 100%);
}
.mn-reel-card h3 {
  margin: 0 0 4px;
  font-size: 1.16rem;
  letter-spacing: -.2px;
  color: #fff;
}
.mn-reel-card p { margin: 0; color: #cfe3f1; font-size: .92rem; }
.mn-reel-card .go {
  position: absolute; top: 16px; right: 16px;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .3);
  font-size: .9rem;
  transition: background .25s ease, transform .25s ease;
}
.mn-reel-card:hover .go { background: var(--teal); color: #04202b; transform: rotate(45deg); }

/* --------------------------------------------- work previews (real screenshots) */

/* Seven in-house sites, three to a row, in one grid, with the rate card as the
   eighth cell spanning two columns so the last row is complete. Three earlier
   versions of this block were wrong in ways worth recording, because each looked
   fine in a screenshot of a single card and ragged on the page:

     1. unequal columns (1.22fr vs 1fr) with a different aspect ratio on the
        "wide" card made one picture 417px tall and its neighbour 430px;
     2. a taller caption ("PDF and image compression" wraps where the others fit
        on one line) made the whole row 241px against 218px;
     3. giving the picture an aspect ratio made every picture's height follow the
        column width, so on a phone each card grew to 205px tall. A capped height
        is what actually makes them small.

   The rule the block follows now: three cards per row at every width, one
   picture height at every width, one caption height, and no card can make its
   row taller than its neighbours. */

.mn-reel { display: block; }

/* Three per row, done with flexbox rather than CSS grid, and that is deliberate.
   This block was written with `display: grid` and `grid-template-columns:
   repeat(3, ...)`; the owner's preview pane rendered the same markup as seven
   stacked cards, which is what a grid does when the engine running it does not
   support grid: it falls back to a block container and the cards stack. Flexbox
   has been universally supported for far longer, and a percentage basis gives an
   exact third of the row without relying on grid at all.

   --mn-reel-gap is the single source of the gutter, so the third-width sum and
   the actual gap can never drift apart. */
.mn-reel-more {
  --mn-reel-gap: 12px;
  --mn-reel-third: calc((100% - (2 * var(--mn-reel-gap))) / 3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--mn-reel-gap);
  align-items: stretch;
}
.mn-reel-more > .mn-reel-card {
  flex: 0 0 var(--mn-reel-third);
  width: var(--mn-reel-third);
  max-width: var(--mn-reel-third);
  box-sizing: border-box;
}

/* A preview card: a short screenshot, then a caption band. Small on purpose:
   seven of them should read as a strip of work, not as seven homepages. */
.mn-reel-card.mn-shot,
.mn-reel-card.mn-reel-price {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--mn-lift-1);
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease;
}
.mn-reel-card.mn-shot {
  background: #0b2b52;
}
.mn-reel-card.mn-shot:hover,
.mn-reel-card.mn-reel-price:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 36px -24px rgba(5, 43, 82, .46);
}
.mn-reel-card.mn-shot::before,
.mn-reel-card.mn-shot::after,
.mn-reel-card.mn-reel-price::before,
.mn-reel-card.mn-reel-price::after { content: none; }

/* THE SIZE FIX. The picture is capped by height, not driven by an aspect ratio.
   `object-fit: cover` fills the box, so the card is exactly this tall at every
   width instead of growing with the column. 150px on a desktop is roughly the
   top third of a page, which is all a preview needs to be recognisable. */
.mn-reel-card.mn-shot img {
  display: block;
  width: 100%;
  height: 118px;
  object-fit: cover;
  object-position: top center;
  background: #071f38;
  border-radius: 0;
  transition: transform .5s cubic-bezier(.22, .61, .36, 1);
}
.mn-reel-card.mn-shot:hover img { transform: scale(1.04); }

/* The caption band is one fixed height with one line of title and one of
   description. Fixed, not a minimum: a caption that wraps is clipped with an
   ellipsis rather than being allowed to make its card taller than the two beside
   it, which was the raggedness the owner reported. */
.mn-reel-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1px;
  height: 50px;
  padding: 7px 10px 8px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(4, 24, 44, .96), rgba(4, 24, 44, .99));
  border-top: 1px solid rgba(255, 255, 255, .10);
}
.mn-reel-card.mn-shot h3,
.mn-reel-card.mn-reel-price h3 {
  margin: 0;
  font-size: .86rem;
  line-height: 1.25;
  letter-spacing: -.2px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mn-reel-card.mn-shot p,
.mn-reel-card.mn-reel-price p {
  margin: 0;
  color: #b6cfe2;
  font-size: .74rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* The arrow badge is smaller too, so it does not dominate a small screenshot. */
.mn-reel-card.mn-shot .go,
.mn-reel-card.mn-reel-price .go {
  top: 7px; right: 7px;
  width: 22px; height: 22px;
  font-size: .7rem;
  background: rgba(6, 22, 40, .74);
  border-color: rgba(255, 255, 255, .34);
  backdrop-filter: blur(6px);
}
.mn-reel-card.mn-shot:hover .go { background: var(--teal); border-color: var(--teal); }

/* The rate card is a drawn panel, not a screenshot: a soft gradient sweep stands
   in for the picture so the card is the same height as its neighbours, and the
   text sits under it in the same caption band as the sites. */
.mn-reel-card.mn-reel-price {
  background: linear-gradient(120deg, #0b2b52 0%, #0d4a6b 55%, #0f6b7a 100%);
  border: 1px solid rgba(255, 255, 255, .10);
}
/* Two thirds plus the gutter it swallows, so it fills the last row exactly
   alongside the seventh site. Grid would say `span 2`; this says the same thing
   in a way every engine understands. */
.mn-reel-more > .mn-reel-card.mn-reel-price {
  flex: 0 0 calc((2 * var(--mn-reel-third)) + var(--mn-reel-gap));
  width: calc((2 * var(--mn-reel-third)) + var(--mn-reel-gap));
  max-width: calc((2 * var(--mn-reel-third)) + var(--mn-reel-gap));
}
/* The sweep is the whole panel rather than a band above the text: the card is two
   columns wide and the same height as its neighbours, so the copy is centred in
   it. Text is allowed to wrap here, unlike the one-line captions on the sites. */
.mn-reel-card.mn-reel-price .mn-reel-art { display: none; }
.mn-reel-card.mn-reel-price {
  justify-content: center;
  padding: 0 18px;
  background:
    radial-gradient(120% 150% at 10% 0%, rgba(56, 189, 194, .30), transparent 60%),
    radial-gradient(90% 130% at 90% 100%, rgba(127, 168, 211, .28), transparent 62%),
    linear-gradient(120deg, #0b2b52 0%, #0d4a6b 55%, #0f6b7a 100%);
}
.mn-reel-card.mn-reel-price h3 {
  white-space: normal; font-size: 1.02rem; line-height: 1.25; color: #fff;
}
.mn-reel-card.mn-reel-price p {
  white-space: normal; margin-top: 2px; font-size: .78rem; color: #cfe6f2;
}

/* Narrow screens. Three columns still, because that is the layout asked for, so
   the type and the picture step down instead of the column count. */
@media (max-width: 860px) {
  .mn-reel-card.mn-shot img { height: 96px; }
  .mn-reel-card.mn-shot h3,
  .mn-reel-card.mn-reel-price h3 { font-size: .76rem; }
  .mn-reel-card.mn-shot p,
  .mn-reel-card.mn-reel-price p { font-size: .68rem; }
  .mn-reel-body { height: 44px; padding: 6px 9px 7px; }
}
@media (max-width: 520px) {
  .mn-reel-more { --mn-reel-gap: 8px; }
  .mn-reel-card.mn-shot img { height: 76px; }
  /* A third of a phone is 111px, and "vadattupara.online" is 18 characters. The
     name is what identifies the card, so the name stays whole and the one-line
     description gives up its space instead of the name being ellipsed. */
  .mn-reel-card.mn-shot h3,
  .mn-reel-card.mn-reel-price h3 {
    font-size: .62rem; letter-spacing: -.3px;
    white-space: normal;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
    line-clamp: 2; overflow: hidden; text-overflow: clip;
  }
  .mn-reel-card.mn-shot p,
  .mn-reel-card.mn-reel-price p { display: none; }
  .mn-reel-body { height: 30px; padding: 5px 7px 6px; justify-content: center; }
  .mn-reel-card.mn-shot .go,
  .mn-reel-card.mn-reel-price .go { width: 18px; height: 18px; font-size: .6rem; top: 5px; right: 5px; }
}
@media (max-width: 400px) {
  .mn-reel-card.mn-shot img { height: 62px; }
  .mn-reel-card.mn-shot h3,
  .mn-reel-card.mn-reel-price h3 { font-size: .58rem; }
  .mn-reel-body { height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .mn-reel-card.mn-shot, .mn-reel-card.mn-shot img { transition: none !important; }
  .mn-reel-card.mn-shot:hover { transform: none; }
  .mn-reel-card.mn-shot:hover img { transform: none; }
}

/* ------------------------------------------------------------ logo & reviews */

.mn-strip { margin: 0; }
.mn-strip-inner {
  display: flex; gap: 18px; align-items: center;
  padding: 18px 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.mn-strip-inner img { max-height: 40px; width: auto; opacity: .75; filter: grayscale(1); transition: opacity .25s, filter .25s; }
.mn-strip-inner img:hover { opacity: 1; filter: none; }
.mn-strip-note { font-size: .82rem; color: var(--mut); }

/* ------------------------------------------------------- readable at any size */

/* Two real defects found by measuring rendered text rather than reading CSS:
   the currency label in the price table renders at 11.5px, and the "Recommended"
   ribbon and the "Request a quote" link in the service grid at 11.5 and 11.8px.
   Under 12px is unreadable on a phone in daylight, so they get a floor. */
.tscroll span,
.recb,
.recb span,
.svctime a { font-size: 12.5px; }

/* Body links inside running text were a 15 to 19px tall target on a phone: one
   line of text and no padding. Padding gives a 40px target without changing how
   the line looks. Inline links keep their flow; block quote links do not. */
.prose p a, .prose li a, .card p a, .qa p a, .muted a, .post-card .meta a,
.facts dd a, .breadcrumb a, footer a {
  display: inline-block;
  padding: 6px 0;
}
/* Not the tab row: those are buttons that already have their own padding, and
   giving them more would turn one row into three lines on a phone. */
.tabs a, .tab, .tscroll a, .badge { padding-top: 0; padding-bottom: 0; }

/* Breadcrumb and footer links are small on purpose, but they still need to be
   tappable on a phone. */
.breadcrumb a { display: inline-block; padding: 4px 0; }

/* Nothing in the interface should sit below 12px once rendered. */
@media (max-width: 560px) {
  .badge, .recb, .tscroll span { font-size: 12px; }
}

/* ------------------------------------------- logo wall and review strip (panel) */

/* These two blocks are written by the panel's effects engine when the owner
   switches them on, and they ship empty: no logos, no reviews, nothing. They are
   styled here so that when real content is added they look like the rest of the
   page instead of like a plugin. */

.mn-wall {
  position: relative;
  margin: 0;
  padding: 26px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.28));
  /* The wall fades at both ends so a row of logos does not look cut off where
     the strip meets the page edge. */
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.mn-wall-track { gap: 44px; animation-duration: 44s; }
.mn-wall-cell { display: flex; align-items: center; height: 52px; }
.mn-wall-cell img { max-height: 42px; opacity: .72; filter: grayscale(1) contrast(1.05); }
.mn-wall:hover .mn-wall-cell img, .mn-wall:focus-within .mn-wall-cell img { opacity: 1; filter: grayscale(.15); }

.mn-reviews { margin: 0; padding: 8px 0 4px; }
.mn-reviews-track { gap: 20px; animation-duration: 64s; }
.mn-review {
  width: 340px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--mn-radius);
  box-shadow: var(--mn-lift-1);
  padding: 22px 24px 20px;
}
.mn-review p { font-size: 1rem; line-height: 1.6; color: #25384b; }
.mn-review figcaption { margin-top: 14px; }
.mn-stars { display: block; color: #d8961b; letter-spacing: 2px; font-size: .95rem; }

/* The panel's own ticker, when the owner switches effects on, is the same strip
   as the built-in one: one look, whichever way it was turned on. */
.mn-ticker {
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.10);
  z-index: 5;
}
.mn-ticker-track span { font-size: .86rem; font-weight: 600; letter-spacing: .2px; padding: 12px 18px; }
.mn-ticker .mn-dot { opacity: .45; padding: 0 2px; }

/* Both strips are decoration on a page that has to stay fast: they stop for a
   visitor who asked for less motion, and they scroll by hand instead. */
@media (prefers-reduced-motion: reduce) {
  .mn-wall-track, .mn-reviews-track { animation: none; overflow-x: auto; }
}

/* ------------------------------------------------------------- focus, a11y */

:where(a, button, summary, input, textarea, select):focus-visible {
  outline: 3px solid rgba(0, 206, 194, .65);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Buttons: a small press and a sheen, nothing else. */
.btn { transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -12px rgba(5, 43, 82, .55); }
.btn:active { transform: translateY(0); }

/* ================================================================= MOBILE */

/* The phone header is the biggest single usability problem on the site: at
   390px the bar wraps to a second row with the CTA, the nav wraps to a third,
   and the whole thing is 229px tall, 27% of the screen, before any content.
   Fixed below: one compact bar, brand left, one action right, and a menu.

   The breakpoint is 1099px, not 860px. Measured: between 861 and 1099 the full
   nav needs about 458px but only has 435px, so it wrapped onto a second row and
   the header grew to 109px for no benefit. That whole band now gets the same
   compact menu as a phone; from 1100px up the full nav fits on one row. */
@media (max-width: 1099px) {

  .bar {
    flex-wrap: nowrap !important;
    gap: 10px;
    padding: 10px 14px !important;
    min-height: 60px;
  }

  .logo img { width: 32px; height: 32px; }
  .logo span { font-size: .92rem; line-height: 1.1; white-space: nowrap; }
  .logo small { display: none; }        /* the tagline is unreadable at this size */

  /* The nav becomes a panel that the menu button opens. No script: a checkbox
     and the :checked state do it, so it still works if JavaScript never runs. */
  nav {
    order: 0 !important;
    width: 100% !important;
    overflow: visible !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 0 !important;
    padding: 6px 0 10px !important;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(5, 43, 82, .45);
    white-space: normal !important;
    max-height: 0;
    overflow: hidden !important;
    opacity: 0;
    visibility: hidden;
    transition: max-height .32s cubic-bezier(.2, .7, .2, 1), opacity .24s ease;
    z-index: 60;
  }

  .mn-menu-toggle:checked ~ nav {
    max-height: 70vh;
    opacity: 1;
    visibility: visible;
    overflow-y: auto !important;
  }

  nav a {
    font-size: 1rem !important;
    font-weight: 700;
    color: var(--ink) !important;
    padding: 13px 18px !important;
    border-bottom: 1px solid #eef2f7;
    display: block;
    text-decoration: none;
  }
  nav a:last-child { border-bottom: 0; }
  nav a[aria-current="page"] { color: var(--teal-d) !important; background: #f2fbf9; }

  header { position: relative; z-index: 100; }
  header .bar { position: relative; }

  /* The menu button itself. */
  .mn-menu-btn {
    order: 2;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .mn-menu-btn span,
  .mn-menu-btn span::before,
  .mn-menu-btn span::after {
    display: block;
    width: 20px; height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .28s ease, opacity .2s ease;
  }
  .mn-menu-btn span { position: relative; }
  .mn-menu-btn span::before,
  .mn-menu-btn span::after { content: ""; position: absolute; left: 0; }
  .mn-menu-btn span::before { top: -6px; }
  .mn-menu-btn span::after { top: 6px; }
  .mn-menu-toggle:checked ~ .mn-menu-btn span { background: transparent; }
  .mn-menu-toggle:checked ~ .mn-menu-btn span::before { transform: translateY(6px) rotate(45deg); }
  .mn-menu-toggle:checked ~ .mn-menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

  .hcta { order: 3; margin-left: 0 !important; }
  .hcta .btn { padding: 11px 15px; font-size: .88rem; white-space: nowrap; }
  /* The phone keeps WhatsApp in the bar (it is the faster route in India) and
     puts Call at the foot of the menu panel, where it has room for the number. */
  .hcta .btn-o { display: none !important; }
  .mn-menu-call {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 10px 14px 4px;
    padding: 14px 16px !important;
    border: 1px solid var(--navy) !important;
    border-radius: 12px;
    background: var(--navy);
    color: #fff !important;
    font-weight: 700 !important;
    text-align: center;
  }

  /* Hero: a portrait crop, the headline first, the picture behind it. */
  .hero { padding: 34px 0 40px; }
  /* The portrait crop keeps its subject low and right; a centred crop of a tall
     hero shows mostly empty field. */
  .hero .mn-hero-art { object-position: 72% 62%; }
  .hero h1 { font-size: clamp(1.72rem, 7.4vw, 2.3rem); letter-spacing: -.7px; }
  .hero .lede { font-size: 1rem; }
  .hero .answer { padding: 14px 16px; }
  .trust { gap: 14px 22px; margin-top: 22px; padding-top: 18px; }

  section { padding: var(--mn-space-sm) 0; }
  .mn-reel-card { min-height: 180px; }
}

/* Phones: one column everywhere, and cards stop animating on tap. */
@media (max-width: 560px) {
  .grid, .split { grid-template-columns: 1fr !important; }
  .card:hover, .post-card:hover, .service:hover, .qa:hover { transform: none; box-shadow: var(--mn-lift-1); }
  .mn-tickerbar span { font-size: .8rem; padding: 10px 14px; }
  .btn { width: auto; }
  /* Long words in headings are the usual cause of horizontal scroll. */
  h1, h2, h3 { overflow-wrap: anywhere; }
}

/* Tablet and up: the showpiece appears beside the headline, and the call row
   (a phone-only convenience) is not shown at all. */
@media (min-width: 1100px) {
  .mn-menu-call { display: none !important; }
  .hero .mn-hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(28px, 4vw, 56px); }
  .hero .mn-hero-show { display: grid; place-items: center; }
  .hero .mn-hero-copy { padding: clamp(26px, 3vw, 44px) 0; }
  .mn-show-3d { --r: 14deg; width: 100%; max-width: 520px; }
  .mn-reel:not([data-mn-work-previews]) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mn-reel[data-mn-work-previews] { display: block; }
.mn-reel[data-mn-work-previews] > div + div { margin-top: 12px; }

  /* Full bleed: the copy stays in the column, the picture runs off both sides.
     Absolute positioning rather than a bleed margin, so no width ever grows a
     horizontal scrollbar. 50% of the viewport less half the column is the edge. */
  .hero.has-media { overflow: clip; }
  .hero.has-media .wrap { position: static; }
  .hero.has-media .mn-hero-grid { position: relative; }
  .hero.has-media .mn-hero-copy { position: relative; z-index: 1; }
  .hero.has-media .mn-hero-art,
  .hero.has-media .hero-scrim {
    left: calc(50% - 50vw);
    right: calc(50% - 50vw);
    width: auto;
  }
}

/* Reduced motion: everything still there, nothing moves. */
@media (prefers-reduced-motion: reduce) {
  .mn-tickerbar .track { animation: none; }
  .card, .post-card, .service, .qa, .mn-reel-card, .btn, .mn-show-3d {
    transition: none !important;
  }
  .card:hover, .post-card:hover, .service:hover, .qa:hover,
  .mn-reel-card:hover, .btn:hover { transform: none !important; }
  .mn-show-3d { transform: none !important; }
  * { scroll-behavior: auto !important; }
}

/* Print: the page as a document, no pictures, no chrome. */
@media print {
  .hero .mn-hero-art, .mn-tickerbar, header .hcta, .mn-menu-btn { display: none !important; }
  body { background: #fff; }
}

/* ============================================================================
   Round 4: phone ergonomics and typography
   ----------------------------------------------------------------------------
   Measured on a 390px phone before this block: eight links with a hit area
   under 32px tall, and seventeen pieces of text under 12px, including the work
   card descriptions at 10.88px and the logo tagline at 9.6px. Those are the two
   things that make a site feel cheap on a phone, so they are fixed here rather
   than being pushed around by individual pages.
   ========================================================================== */

/* Apple and Google both put the minimum comfortable touch target at about 44px.
   A link inside a paragraph cannot be 44px tall without wrecking the line, so
   inline links get a 1.6 line-height and 8px of vertical padding instead, which
   gives a 40px-tall touch zone while keeping the text flow intact. */
@media (max-width: 860px) {
  .prose a:not(.btn), .answer a:not(.btn), .qa .a a:not(.btn) {
    padding: 6px 0;
    line-height: 1.7;
    display: inline-block;
  }
  .prose a:not(.btn) { display: inline; padding: 0; line-height: inherit; }

  /* Navigation and footer links: a real 44px row, spaced apart so a thumb does
     not land on the wrong one. */
  footer a, .mn-menu a, .breadcrumb a {
    display: inline-block;
    min-height: 44px;
    line-height: 44px;
  }
  footer a { min-height: 40px; line-height: 40px; }

  /* Small text has a floor of 12px, and body copy 16px, which is also the size
     below which iOS zooms a page on focus. */
  .mn-strip-note, .post-meta, .fact-cap, .updated { font-size: .8rem; }
}

@media (max-width: 560px) {
  /* The header was costing 96px of a 844px screen before the hero even started.
     The tagline goes (the brand name is enough on a phone) and the logo is
     capped, which returns about 26px of reading area. */
  header small { display: none; }
  header .brand img, header a > img { max-height: 34px; width: auto; }
  header { --mn-head-pad: 10px 0; }
  header .wrap { padding-top: 8px; padding-bottom: 8px; }
  .hcta .btn { padding: 9px 13px; font-size: .82rem; }

  /* Hero: the eyebrow line was wrapping onto two lines and taking 46px. Smaller,
     tighter, one line. */
  .hero .eyebrow, .eyebrow { font-size: .68rem; letter-spacing: .06em; line-height: 1.4; }

  /* Card and list text never drops below 12px. */
  .mn-reel-card.mn-shot p, .mn-reel-card.mn-reel-price p { font-size: .72rem; }
  .mn-reel-card.mn-shot h3, .mn-reel-card.mn-reel-price h3 { font-size: .72rem; }
}

/* Landscape phones and short laptops: the hero must not fill the screen, or the
   first scroll does nothing but reveal the fold. */
@media (max-height: 520px) {
  .hero { padding-top: 12px !important; padding-bottom: 12px !important; }
  .hero .answer { display: none; }
}

/* Second pass on the same measurements: the last inline links living in the
   ".updated" note and the section eyebrows. A link inside a sentence gets a
   40px touch zone via padding, and any eyebrow has a 12px floor. */
@media (max-width: 860px) {
  .updated a, .answer em a, .post-meta a { display: inline-block; padding: 9px 0; }
  .eyebrow { font-size: .75rem !important; }
}

/* A global floor rather than a per-breakpoint patch. Every piece of body copy
   sits at 12px or above at every width; the 11.84px card descriptions and the
   9.6px logo tagline were the last two under it. The arrow glyphs inside the
   card badges are icons, not copy, so they are exempt on purpose. */
.mn-reel-card.mn-shot p, .mn-reel-card.mn-reel-price p { font-size: max(.75rem, 12px); }
header small { font-size: 12px; }
@media (max-width: 860px) {
  .mn-reel-card.mn-shot p, .mn-reel-card.mn-reel-price p { font-size: max(.72rem, 12px); }
}

/* Inline links that live inside a sentence, at every width: a 32px touch zone
   without breaking the text flow. These were the last three links under 32px. */
.updated a, .post-meta a, .answer em a { display: inline-block; padding: 8px 0; }

/* ============================================================================
   Round 5: craft pass
   ----------------------------------------------------------------------------
   The things that separate a designed site from a generated one, in the order a
   visitor notices them: type that scales with the screen instead of snapping,
   a visible keyboard focus ring, cards that respond to touch without sticking,
   and spacing that keeps a steady rhythm down the page.
   ========================================================================== */

/* 1. Fluid type. Sizes were set at a handful of breakpoints, so text jumped at
   560px and 860px. clamp() makes one continuous scale from 360 to 1600. */
:root {
  --mn-step--1: clamp(0.82rem, 0.78rem + 0.18vw, 0.90rem);
  --mn-step-0:  clamp(0.95rem, 0.90rem + 0.24vw, 1.06rem);
  --mn-step-1:  clamp(1.10rem, 1.02rem + 0.38vw, 1.32rem);
  --mn-step-2:  clamp(1.28rem, 1.14rem + 0.68vw, 1.68rem);
  --mn-step-3:  clamp(1.52rem, 1.28rem + 1.10vw, 2.20rem);
  --mn-step-4:  clamp(1.85rem, 1.44rem + 1.55vw, 2.85rem);
  --mn-step-5:  clamp(2.10rem, 1.55rem + 2.20vw, 3.42rem);
}

.hero h1, .hero-title { font-size: var(--mn-step-5); line-height: 1.06; letter-spacing: -0.022em; }
h2, .section-title { font-size: var(--mn-step-3); line-height: 1.16; letter-spacing: -0.014em; }
h3 { font-size: var(--mn-step-1); line-height: 1.28; }
.lede { font-size: var(--mn-step-0); line-height: 1.62; }
body, .prose p, .prose li { font-size: var(--mn-step-0); }
.eyebrow, .lbl { font-size: var(--mn-step--1); }

/* 2. A focus ring you can actually see. The theme sets outline:none on links in
   places, which leaves keyboard users with no idea where they are. :focus-visible
   only shows it for keyboard input, so a mouse click stays clean. */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 6px;
}
/* On the navy hero and footer a teal ring can vanish, so those get cream. */
.hero a:focus-visible, footer a:focus-visible, header a:focus-visible {
  outline-color: #ffd7a8;
}

/* 3. Touch: hover effects should not stay stuck on after a tap. Wrapping every
   hover in (hover: hover) means a phone never applies a desktop state. */
@media (hover: none) {
  .card:hover, .post-card:hover, .service:hover, .qa:hover,
  .mn-reel-card.mn-shot:hover, .mn-reel-card.mn-reel-price:hover {
    transform: none !important;
    box-shadow: var(--mn-lift-1);
  }
  .mn-reel-card.mn-shot:hover img { transform: none; }
}

/* 4. Vertical rhythm. Section padding came from two different tokens, so the
   gaps between sections alternated. One scale, driven by viewport width. */
:root {
  --mn-rhythm: clamp(40px, 5.2vw, 76px);
  --mn-rhythm-sm: clamp(26px, 3.2vw, 46px);
}
section { padding: var(--mn-rhythm) 0; }
section + section { padding-top: 0; }          /* adjacent sections do not double up */

/* 5. Reading measure. Long lines are the most common readability fault on a wide
   screen: at 1440 a paragraph was running the full container. */
.prose p, .prose li, .answer p, .qa .a { max-width: 68ch; }
.hero .lede { max-width: 60ch; }

/* 6. Numbers in tables and prices line up. */
.price, td, .fact-value, .amt { font-variant-numeric: tabular-nums; }

/* 7. Images fade in rather than popping, and never shift the layout. */
img[width][height] { height: auto; }
.post-card .thumb img, .mn-reel-card.mn-shot img { background: #071f38; }

/* 8. The skip link is the first thing a keyboard user meets; make it a real
   button when focused rather than a stray line of text. */
.skip:focus {
  position: fixed; top: 10px; left: 10px; z-index: 999;
  padding: 12px 20px; border-radius: 10px;
  background: #fff; color: var(--navy);
  font-weight: 700; box-shadow: var(--mn-lift-2);
}

/* ============================================================================
   Round 6: the last measured faults
   ========================================================================== */

/* A 320px screen is still a real device (iPhone SE first gen, Galaxy Y, and the
   small Android browsers common in India). Measured there, the header did not
   fit: the wordmark plus the WhatsApp button needed 341px, so the page scrolled
   sideways by 21px. The brand shrinks before the button does, because the button
   is the thing a thumb is aiming for. */
@media (max-width: 360px) {
  header .logo span, .logo span { font-size: .82rem; }
  header .logo img, .logo img { width: 26px; height: 26px; }
  .hcta .btn, header .btn { padding: 8px 10px; font-size: .76rem; }
  .bar { padding: 8px 10px !important; gap: 6px; }
  .mn-menu-btn { width: 38px; height: 38px; }
}

/* Jump links at the top of the services and pricing pages ("Websites & web
   apps", "Add-ons", "Bundles") were 15px tall, so on a phone they are a row of
   hard-to-hit words. They become chips with a real 40px target. */
@media (hover: none), (max-width: 1099px) {
  .anchors a, .jump a, .pill-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    text-decoration: none;
  }
  .anchors a[aria-current] { border-color: var(--teal); color: var(--teal-d); }
}

/* Links inside a bulleted list: 32px of touch zone without disturbing the list. */
@media (hover: none), (max-width: 1099px) {
  .callout li a, .split p a, .prose li > a { display: inline-block; padding: 7px 0; }
}
