/* ==========================================================================
   MOMENTYX — assets/css/styles.css
   Hand-written, no frameworks, no external dependencies, no build step.
   Mobile-first. Australian business site.

   CONTENTS
   01. Design tokens
   02. Reset & base
   03. Accessibility utilities
   04. Layout primitives
   05. Typography helpers
   06. Buttons & arrow links
   07. Site header & navigation
   08. Device mockups (desktop 1800x1125 / mobile 750x1200)
   09. Screenshot loading & fallback states
   10. Hero
   11. Approach strip
   12. Work / concept projects
   13. CTA band
   14. Service cards
   15. Process
   16. Pricing
   17. Clarity grid
   18. FAQ
   19. Final CTA
   20. Site footer
   21. Motion choreography (reveal + stagger)
   22. Reduced motion & forced colours
   23. Print
   ========================================================================== */


/* ==========================================================================
   01. DESIGN TOKENS
   ========================================================================== */

:root {
  /* --- Colour: ivory / ink / cobalt --- */
  --ivory:        #fbfaf7;
  --ivory-deep:   #f4f2ec;
  --ivory-warm:   #f7f4ed;
  --paper:        #ffffff;

  --ink:          #12141a;
  --ink-soft:     #2b2f3a;
  --muted:        #5c626f;
  --muted-light:  #7c8290;

  --line:         #e4e0d6;
  --line-strong:  #cdc7b8;

  --cobalt:       #1f4bd8;
  --cobalt-dark:  #163bad;
  --cobalt-deep:  #102b7d;
  --cobalt-tint:  #eef1fd;
  --cobalt-line:  #c7d2f7;

  --focus:        #0b2ea8;

  /* --- Shadows --- */
  --shadow-xs: 0 1px 2px rgba(18, 20, 26, 0.04);
  --shadow-sm: 0 2px 6px rgba(18, 20, 26, 0.06);
  --shadow-md: 0 10px 24px -8px rgba(18, 20, 26, 0.14), 0 2px 6px rgba(18, 20, 26, 0.05);
  --shadow-lg: 0 26px 54px -18px rgba(18, 20, 26, 0.28), 0 6px 16px rgba(18, 20, 26, 0.07);
  --shadow-xl: 0 44px 90px -30px rgba(16, 43, 125, 0.32), 0 12px 28px rgba(18, 20, 26, 0.09);

  /* --- Radii --- */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-pill: 999px;

  /* --- Type --- */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans", sans-serif,
               "Apple Color Emoji", "Segoe UI Emoji";
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --fs-eyebrow: 0.75rem;
  --fs-micro:   0.8125rem;
  --fs-small:   0.9375rem;
  --fs-body:    clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --fs-lead:    clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  --fs-h4:      clamp(1.0625rem, 1.02rem + 0.2vw, 1.1875rem);
  --fs-h3:      clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --fs-h2:      clamp(1.6rem, 1.35rem + 1.3vw, 2.5rem);
  --fs-h1:      clamp(2.1rem, 1.55rem + 3.2vw, 4.25rem);
  --fs-figure:  clamp(2rem, 1.7rem + 1.4vw, 2.75rem);

  --lh-tight:   1.08;
  --lh-snug:    1.25;
  --lh-normal:  1.55;
  --lh-relaxed: 1.68;

  /* --- Spacing --- */
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  20px;
  --s-6:  24px;
  --s-7:  32px;
  --s-8:  40px;
  --s-9:  48px;
  --s-10: 64px;
  --s-11: 80px;
  --s-12: 104px;

  --gutter: 20px;
  --wrap-max: 1240px;
  --wrap-narrow: 760px;

  --section-y: clamp(56px, 7vw, 120px);

  /* --- Motion --- */
  --ease-out:  cubic-bezier(0.16, 0.84, 0.44, 1);
  --ease-soft: cubic-bezier(0.32, 0.72, 0.28, 1);
  --t-fast: 140ms;
  --t-mid:  240ms;
  --t-slow: 620ms;

  --header-h: 62px;
}

@media (min-width: 600px) {
  :root { --gutter: 28px; }
}

@media (min-width: 900px) {
  :root { --gutter: 40px; --header-h: 74px; }
}


/* ==========================================================================
   02. RESET & BASE
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background-color: var(--ivory);
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

/* Scroll lock while the mobile menu is open (set by main.js) */
body.is-locked {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 640;
  letter-spacing: -0.018em;
  line-height: var(--lh-snug);
  text-wrap: balance;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

a {
  color: var(--cobalt-dark);
  text-decoration-color: rgba(31, 75, 216, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color var(--t-fast) linear,
              text-decoration-color var(--t-fast) linear;
}
a:hover { color: var(--cobalt-deep); text-decoration-color: currentColor; }

strong, b { font-weight: 650; color: var(--ink); }

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

img { height: auto; border-style: none; }

button {
  font: inherit;
  color: inherit;
  margin: 0;
  cursor: pointer;
  background: none;
  border: 0;
}

figure { margin: 0; }

summary { cursor: pointer; }

::selection {
  background: var(--cobalt);
  color: #fff;
}

/* Baseline focus for browsers without :focus-visible, then refined below */
:focus { outline: 3px solid var(--focus); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}


/* ==========================================================================
   03. ACCESSIBILITY UTILITIES
   ========================================================================== */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 999;
  transform: translate(-50%, -140%);
  padding: 12px 20px;
  background: var(--ink);
  color: #fff;
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--r-md) var(--r-md);
  box-shadow: var(--shadow-md);
  transition: transform var(--t-mid) var(--ease-out);
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translate(-50%, 0);
  color: #fff;
  outline: 3px solid var(--cobalt);
  outline-offset: 2px;
}


/* ==========================================================================
   04. LAYOUT PRIMITIVES
   ========================================================================== */

.wrap {
  width: 100%;
  max-width: var(--wrap-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: calc(var(--wrap-narrow) + (var(--gutter) * 2)); }

.section {
  padding-block: var(--section-y);
}

.section--work {
  background: linear-gradient(180deg, var(--ivory) 0%, var(--ivory-warm) 100%);
  border-block: 1px solid var(--line);
}

.section--process { background: var(--ivory-deep); border-block: 1px solid var(--line); }

.section--clarity { background: var(--paper); border-block: 1px solid var(--line); }

.section--faq { background: var(--ivory); }

.section__head {
  max-width: 62ch;
  margin-bottom: clamp(32px, 4vw, 60px);
}

.section__title {
  font-size: var(--fs-h2);
  margin-bottom: 0.5em;
}

.section__intro {
  font-size: var(--fs-lead);
  color: var(--muted);
  line-height: var(--lh-normal);
  max-width: 58ch;
}

.section__footnote {
  margin-top: clamp(28px, 4vw, 48px);
  font-size: var(--fs-micro);
  color: var(--muted-light);
  line-height: var(--lh-normal);
  max-width: 70ch;
}


/* ==========================================================================
   05. TYPOGRAPHY HELPERS
   ========================================================================== */

.eyebrow {
  margin: 0 0 var(--s-4);
  font-size: var(--fs-eyebrow);
  font-weight: 660;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--cobalt);
}

.tag {
  display: inline-block;
  margin: 0 0 var(--s-3);
  padding: 5px 11px;
  background: var(--cobalt-tint);
  border: 1px solid var(--cobalt-line);
  border-radius: var(--r-pill);
  font-size: 0.6875rem;
  font-weight: 640;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cobalt-deep);
  line-height: 1.4;
}


/* ==========================================================================
   06. BUTTONS & ARROW LINKS
   ========================================================================== */

.btn {
  --btn-pad-y: 14px;
  --btn-pad-x: 24px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-size: var(--fs-small);
  font-weight: 640;
  letter-spacing: -0.005em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--t-mid) var(--ease-soft),
              border-color var(--t-mid) var(--ease-soft),
              color var(--t-mid) var(--ease-soft),
              box-shadow var(--t-mid) var(--ease-soft),
              transform var(--t-mid) var(--ease-soft);
}

.btn__arrow {
  display: inline-block;
  font-size: 1.05em;
  line-height: 1;
  transition: transform var(--t-mid) var(--ease-out);
}

.btn--primary {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: #fff;
  box-shadow: 0 6px 18px -8px rgba(31, 75, 216, 0.55);
}
.btn--primary:hover {
  background: var(--cobalt-dark);
  border-color: var(--cobalt-dark);
  color: #fff;
  box-shadow: 0 12px 26px -10px rgba(31, 75, 216, 0.6);
  transform: translateY(-1px);
}
.btn--primary:active {
  background: var(--cobalt-deep);
  transform: translateY(0);
  box-shadow: 0 4px 12px -8px rgba(31, 75, 216, 0.6);
}
.btn--primary:hover .btn__arrow { transform: translateX(4px); }

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--ghost:hover {
  background: var(--paper);
  border-color: var(--ink);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.btn--ghost:active { transform: translateY(0); box-shadow: none; }
.btn--ghost:hover .btn__arrow { transform: translateY(3px); }

.btn--compact {
  --btn-pad-y: 10px;
  --btn-pad-x: 16px;
  font-size: var(--fs-micro);
}

.btn--large {
  --btn-pad-y: 17px;
  --btn-pad-x: 30px;
  font-size: 1rem;
}

.btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* Inline arrow link */
.link-arrow {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: var(--fs-small);
  font-weight: 640;
  color: var(--cobalt-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--cobalt-line);
  padding-bottom: 2px;
  transition: color var(--t-fast) linear,
              border-color var(--t-fast) linear;
}
.link-arrow__icon {
  display: inline-block;
  transition: transform var(--t-mid) var(--ease-out);
}
.link-arrow:hover {
  color: var(--cobalt-deep);
  border-color: var(--cobalt);
}
.link-arrow:hover .link-arrow__icon { transform: translateX(4px); }
.link-arrow:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }


/* ==========================================================================
   07. SITE HEADER & NAVIGATION
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 247, 0.86);
  border-bottom: 1px solid transparent;
  transition: background-color var(--t-mid) linear,
              border-color var(--t-mid) linear,
              box-shadow var(--t-mid) linear;
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header {
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
  }
}

/* .is-stuck applied by main.js once scrolled */
.site-header.is-stuck {
  background: rgba(251, 250, 247, 0.95);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 12px rgba(18, 20, 26, 0.05);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: var(--header-h);
}

/* --- Brand --- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cobalt);
  text-decoration: none;
  flex: 0 0 auto;
}
.brand__mark {
  display: block;
  width: 30px;
  height: 30px;
  transition: transform var(--t-mid) var(--ease-out);
}
.brand__mark svg { width: 100%; height: 100%; }
.brand__word {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.022em;
  color: var(--ink);
}
.brand:hover .brand__mark { transform: translateY(-1px) rotate(-3deg); }
.brand:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }

@media (min-width: 900px) {
  .brand__mark { width: 34px; height: 34px; }
  .brand__word { font-size: 1.1875rem; }
}

/* --- Mobile toggle --- */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--paper);
  font-size: var(--fs-micro);
  font-weight: 640;
  color: var(--ink);
  transition: border-color var(--t-fast) linear,
              box-shadow var(--t-fast) linear;
}
.nav-toggle:hover { border-color: var(--ink); box-shadow: var(--shadow-sm); }
.nav-toggle:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
  flex: 0 0 auto;
}
.nav-toggle__bars span {
  position: absolute;
  left: 0;
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--t-mid) var(--ease-out),
              opacity var(--t-fast) linear,
              top var(--t-mid) var(--ease-out);
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 5px; }
.nav-toggle__bars span:nth-child(3) { top: 10px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  top: 5px; transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
  opacity: 0; transform: scaleX(0.2);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
  top: 5px; transform: rotate(-45deg);
}

/* --- Mobile panel --- */
.primary-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
  padding: var(--s-7) var(--gutter) var(--s-10);
  background: var(--ivory);
  border-top: 1px solid var(--line);
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity var(--t-mid) var(--ease-out),
              transform var(--t-mid) var(--ease-out),
              visibility var(--t-mid) linear;
}

.primary-nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

/* No-JS safety: nav is reachable if scripts fail */
html:not(.js) .primary-nav {
  position: static;
  inset: auto;
  visibility: visible;
  opacity: 1;
  transform: none;
  overflow: visible;
}
html:not(.js) .nav-toggle { display: none; }

.primary-nav__list {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}

.primary-nav__link {
  position: relative;
  display: block;
  padding: 13px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: color var(--t-fast) linear,
              padding-left var(--t-mid) var(--ease-out);
}
.primary-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: var(--cobalt);
  transition: width var(--t-mid) var(--ease-out);
}
.primary-nav__link:hover { color: var(--cobalt); padding-left: 6px; }
.primary-nav__link:hover::after { width: 34px; }
.primary-nav__link:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Future active-page state (set per page with aria-current="page") */
.primary-nav__link[aria-current="page"] { color: var(--cobalt); }
.primary-nav__link[aria-current="page"]::after { width: 100%; }

.primary-nav__cta { align-self: flex-start; }

/* --- Desktop nav --- */
@media (min-width: 900px) {
  .nav-toggle { display: none; }

  .primary-nav {
    position: static;
    inset: auto;
    z-index: auto;
    flex-direction: row;
    align-items: center;
    gap: var(--s-7);
    padding: 0;
    background: none;
    border-top: 0;
    overflow: visible;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .primary-nav__list {
    flex-direction: row;
    align-items: center;
    gap: var(--s-6);
  }

  .primary-nav__link {
    padding: 6px 0;
    border-bottom: 0;
    font-size: var(--fs-small);
    font-weight: 560;
    color: var(--ink-soft);
  }
  .primary-nav__link:hover { padding-left: 0; }
  .primary-nav__link::after { bottom: 0; height: 2px; }
  .primary-nav__link:hover::after { width: 100%; }

  .primary-nav__cta { align-self: center; }
}


/* ==========================================================================
   08. DEVICE MOCKUPS
   Desktop screenshots: 1800 x 1125  (ratio 1.6)
   Mobile screenshots:   750 x 1200  (ratio 0.625)
   ========================================================================== */

.device {
  position: relative;
  display: block;
  background: var(--paper);
  transition: transform var(--t-slow) var(--ease-soft),
              box-shadow var(--t-slow) var(--ease-soft);
}

.device img {
  display: block;
  width: 100%;
  height: auto;
}

/* --- Desktop frame: browser chrome drawn in CSS --- */
.device--desktop {
  --chrome-h: 22px;
  width: 100%;
  padding-top: var(--chrome-h);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.device--desktop::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: var(--chrome-h);
  background: linear-gradient(180deg, #f6f4ef 0%, #eceae3 100%);
  border-bottom: 1px solid var(--line);
}

/* Three window dots */
.device--desktop::after {
  content: "";
  position: absolute;
  top: calc(var(--chrome-h) / 2 - 3px);
  left: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d6d1c6;
  box-shadow: 10px 0 0 #d6d1c6, 20px 0 0 #d6d1c6;
}

.device--desktop img {
  aspect-ratio: 1800 / 1125;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top center;
}

@media (min-width: 700px) {
  .device--desktop { --chrome-h: 28px; border-radius: var(--r-lg); }
  .device--desktop::after {
    left: 14px;
    width: 8px; height: 8px;
    top: calc(var(--chrome-h) / 2 - 4px);
    box-shadow: 13px 0 0 #d6d1c6, 26px 0 0 #d6d1c6;
  }
}

/* --- Mobile frame: overlaps the desktop frame --- */
.device--mobile {
  position: absolute;
  right: -4px;
  bottom: -10%;
  z-index: 2;
  width: 30%;
  max-width: 190px;
  padding: 5px;
  background: #16181f;
  border-radius: 14px;
  box-shadow: var(--shadow-xl);
}

.device--mobile img {
  aspect-ratio: 750 / 1200;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top center;
  border-radius: 9px;
  background: var(--paper);
}

@media (min-width: 700px) {
  .device--mobile {
    width: 26%;
    max-width: 220px;
    padding: 6px;
    border-radius: 18px;
  }
  .device--mobile img { border-radius: 13px; }
}

@media (min-width: 1100px) {
  .device--mobile { right: -18px; max-width: 240px; }
}

/* --- Depth on intent (pointer devices only; JS adds .has-depth) --- */
@media (hover: hover) and (pointer: fine) {
  .work-card:hover .device--desktop,
  .work-card:focus-within .device--desktop {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
  }
  .work-card:hover .device--mobile,
  .work-card:focus-within .device--mobile {
    transform: translate(-6px, -3px);
  }
}


/* ==========================================================================
   09. SCREENSHOT LOADING & FALLBACK STATES
   State classes are applied by main.js: .is-loading / .is-loaded / .is-error
   No inline JavaScript anywhere.
   ========================================================================== */

[data-media] { position: relative; }

/* Shimmer placeholder while the WebP is in flight */
[data-media].is-loading img { opacity: 0; }

[data-media].is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: var(--ivory-deep);
  background-image: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.72) 50%,
    rgba(255, 255, 255, 0) 80%
  );
  background-size: 220% 100%;
  background-repeat: no-repeat;
  animation: mx-shimmer 1.5s linear infinite;
}

.device--desktop.is-loading::after { top: var(--chrome-h); }

@keyframes mx-shimmer {
  0%   { background-position: -120% 0; }
  100% { background-position: 220% 0; }
}

/* Successful load: fade the screenshot in */
[data-media] img {
  transition: opacity var(--t-slow) var(--ease-out);
}
[data-media].is-loaded img { opacity: 1; }

/* Error / missing file: styled cobalt panel carrying the project label */
[data-media].is-error img { display: none; }

[data-media].is-error {
  display: flex;
  align-items: center;
  justify-content: center;
}

.device--desktop.is-error {
  aspect-ratio: 1800 / 1125;
  background: linear-gradient(155deg, var(--cobalt-tint) 0%, #dfe6fb 55%, #d3ddf9 100%);
}

.device--mobile.is-error {
  aspect-ratio: 750 / 1200;
  background: #16181f;
}

[data-media].is-error::after {
  content: attr(data-media-label) " · Screenshot pending";
  display: block;
  max-width: 88%;
  padding: 0 6px;
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.5;
  text-align: center;
  color: var(--cobalt-deep);
}

.device--mobile.is-error::after {
  font-size: 0.5625rem;
  letter-spacing: 0.06em;
  color: #cfd8f5;
}


/* ==========================================================================
   10. HERO
   ========================================================================== */

.hero {
  position: relative;
  padding-block: clamp(40px, 6vw, 84px) clamp(64px, 9vw, 132px);
  background:
    radial-gradient(120% 90% at 12% -10%, rgba(31, 75, 216, 0.07) 0%, rgba(31, 75, 216, 0) 58%),
    linear-gradient(180deg, var(--ivory) 0%, var(--ivory-warm) 100%);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(48px, 8vw, 72px);
  align-items: center;
}

.hero__copy { max-width: 40rem; }

.hero__title {
  font-size: var(--fs-h1);
  font-weight: 680;
  line-height: var(--lh-tight);
  letter-spacing: -0.032em;
  margin-bottom: clamp(20px, 2.5vw, 28px);
}

.hero__line { display: block; }

.hero__line--accent {
  color: var(--cobalt);
}

.hero__lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-normal);
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: clamp(28px, 3.5vw, 38px);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-bottom: clamp(32px, 4vw, 44px);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  font-size: var(--fs-micro);
  color: var(--muted);
  line-height: 1.5;
}
.hero__meta li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero__meta li::before {
  content: "";
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cobalt);
}

/* --- Hero stage / spotlight --- */
.hero__stage {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin-inline: auto;
  /* Reserve height: desktop frame ratio plus room for the overhanging phone */
  aspect-ratio: 1800 / 1300;
}

.stage-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 900ms var(--ease-soft),
              transform 900ms var(--ease-soft);
  pointer-events: none;
}

.stage-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

/* The desktop frame sits at the top of each slide so the phone can overhang */
.stage-slide .device--desktop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.stage-slide .device--mobile {
  bottom: 0;
  right: 0;
}

@media (min-width: 1000px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
    gap: clamp(40px, 4vw, 72px);
  }
  .hero__stage { max-width: none; }
  .stage-slide .device--mobile { right: -20px; }
}

@media (min-width: 1200px) {
  .hero__stage {
    /* Let the composition breathe past the grid edge on wide screens */
    margin-right: calc(var(--gutter) * -0.5);
  }
}


/* ==========================================================================
   11. APPROACH STRIP
   ========================================================================== */

.strip {
  padding-block: clamp(40px, 5vw, 68px);
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.strip__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7) var(--s-8);
}

.strip__item {
  padding-top: var(--s-4);
  border-top: 2px solid var(--ink);
}

.strip__heading {
  font-size: var(--fs-h4);
  font-weight: 640;
  margin-bottom: 0.5em;
}

.strip__item p {
  font-size: var(--fs-small);
  color: var(--muted);
  line-height: var(--lh-normal);
}

@media (min-width: 620px) {
  .strip__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1040px) {
  .strip__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}


/* ==========================================================================
   12. WORK / CONCEPT PROJECTS
   ========================================================================== */

.work-list {
  display: grid;
  gap: clamp(56px, 8vw, 108px);
}

.work-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 56px);
  align-items: center;
}

.work-card__media {
  position: relative;
  /* Room for the overhanging phone mockup */
  padding-bottom: 8%;
}

.work-card__body { max-width: 46rem; }

.work-card__title {
  font-size: var(--fs-h3);
  margin-bottom: 0.55em;
  letter-spacing: -0.024em;
}

.work-card__note {
  color: var(--muted);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--s-5);
  max-width: 52ch;
}

.work-card__facts {
  display: grid;
  gap: var(--s-2);
  margin-bottom: var(--s-6);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--line);
}
.work-card__facts li {
  position: relative;
  padding-left: 22px;
  font-size: var(--fs-small);
  color: var(--ink-soft);
  line-height: 1.5;
}
.work-card__facts li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border: 2px solid var(--cobalt);
  border-radius: 50%;
}

@media (min-width: 900px) {
  .work-card {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    gap: clamp(40px, 5vw, 76px);
  }
  .work-card__media { grid-column: 1; grid-row: 1; }
  .work-card__body  { grid-column: 2; grid-row: 1; }

  .work-card--reverse .work-card__media { grid-column: 2; }
  .work-card--reverse .work-card__body  { grid-column: 1; }

  /* Reversed rows hang the phone on the left for visual variety */
  .work-card--reverse .device--mobile {
    right: auto;
    left: -14px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .work-card--reverse:hover .device--mobile,
  .work-card--reverse:focus-within .device--mobile {
    transform: translate(6px, -3px);
  }
}


/* ==========================================================================
   13. CTA BAND
   ========================================================================== */

.cta-band {
  padding-block: clamp(44px, 6vw, 76px);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
}

.cta-band__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-6);
}

.cta-band__copy { max-width: 54ch; }

.cta-band__title {
  color: #fff;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
  margin-bottom: 0.5em;
}

.cta-band__copy p {
  color: rgba(255, 255, 255, 0.76);
  font-size: var(--fs-small);
  line-height: var(--lh-normal);
}

.cta-band .btn--primary {
  background: #fff;
  border-color: #fff;
  color: var(--cobalt-deep);
  box-shadow: none;
  flex: 0 0 auto;
}
.cta-band .btn--primary:hover {
  background: var(--cobalt-tint);
  border-color: var(--cobalt-tint);
  color: var(--cobalt-deep);
  box-shadow: 0 12px 26px -12px rgba(0, 0, 0, 0.5);
}
.cta-band .btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

@media (min-width: 820px) {
  .cta-band__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-9);
  }
}


/* ==========================================================================
   14. SERVICE CARDS
   ========================================================================== */

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 34px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
  transition: transform var(--t-mid) var(--ease-soft),
              box-shadow var(--t-mid) var(--ease-soft),
              border-color var(--t-mid) var(--ease-soft);
}

.service-card::before {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  margin-bottom: var(--s-5);
  background: var(--cobalt);
  border-radius: 2px;
  transition: width var(--t-mid) var(--ease-out);
}

.service-card:hover,
.service-card:focus-within {
  transform: translateY(-3px);
  border-color: var(--cobalt-line);
  box-shadow: var(--shadow-md);
}
.service-card:hover::before,
.service-card:focus-within::before { width: 54px; }

.service-card__title {
  font-size: var(--fs-h4);
  margin-bottom: 0.5em;
}

.service-card__lead {
  font-size: var(--fs-small);
  color: var(--muted);
  line-height: var(--lh-normal);
  margin-bottom: var(--s-5);
}

.service-card__list {
  display: grid;
  gap: 7px;
  margin-bottom: var(--s-5);
}
.service-card__list li {
  position: relative;
  padding-left: 18px;
  font-size: var(--fs-micro);
  color: var(--ink-soft);
  line-height: 1.5;
}
.service-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 8px;
  height: 2px;
  background: var(--cobalt);
  border-radius: 1px;
}

.service-card__price {
  margin-bottom: var(--s-3);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  font-size: var(--fs-micro);
  font-weight: 650;
  color: var(--ink);
}

.service-card__caveat {
  margin-bottom: var(--s-4);
  font-size: 0.75rem;
  color: var(--muted-light);
  line-height: 1.55;
}

.service-card .link-arrow {
  margin-top: auto;
  align-self: flex-start;
}

.service-card--custom {
  background: linear-gradient(170deg, var(--cobalt-tint) 0%, var(--paper) 62%);
  border-color: var(--cobalt-line);
}

@media (min-width: 640px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1080px) {
  .service-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--s-6);
  }
}


/* ==========================================================================
   15. PROCESS
   ========================================================================== */

.process {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 4vw, 48px);
  counter-reset: none;
}

/* The connector line draws itself when scrolled into view (.is-drawn via JS) */
.process__line {
  position: absolute;
  left: 17px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--cobalt-line);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 1200ms var(--ease-soft);
}
.process__line.is-drawn { transform: scaleY(1); }

/* Without JS the line is simply present */
html:not(.js) .process__line { transform: scaleY(1); }

.process__step {
  position: relative;
  padding-left: 56px;
}

.process__num {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--paper);
  border: 2px solid var(--cobalt);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--cobalt-deep);
  letter-spacing: 0;
}

.process__title {
  font-size: var(--fs-h4);
  margin-bottom: 0.45em;
  padding-top: 5px;
}

.process__step p {
  font-size: var(--fs-small);
  color: var(--muted);
  line-height: var(--lh-relaxed);
  max-width: 48ch;
}

@media (min-width: 860px) {
  .process {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s-9);
  }

  .process__line {
    left: 18px;
    right: 18px;
    top: 17px;
    bottom: auto;
    width: auto;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 1200ms var(--ease-soft);
  }
  .process__line.is-drawn { transform: scaleX(1); }
  html:not(.js) .process__line { transform: scaleX(1); }

  .process__step { padding-left: 0; padding-top: 56px; }
  .process__title { padding-top: 0; }
}


/* ==========================================================================
   16. PRICING
   ========================================================================== */

.price-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 32px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
  transition: transform var(--t-mid) var(--ease-soft),
              box-shadow var(--t-mid) var(--ease-soft),
              border-color var(--t-mid) var(--ease-soft);
}

.price-card:hover {
  transform: translateY(-3px);
  border-color: var(--cobalt-line);
  box-shadow: var(--shadow-md);
}

.price-card__name {
  font-size: var(--fs-eyebrow);
  font-weight: 680;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin-bottom: var(--s-4);
}

.price-card__figure {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: var(--s-4);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--line);
}

.price-card__amount {
  font-size: var(--fs-figure);
  font-weight: 690;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.price-card__unit {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-light);
  letter-spacing: 0.02em;
}

.price-card__for {
  font-size: var(--fs-micro);
  color: var(--muted);
  line-height: var(--lh-normal);
  margin-bottom: var(--s-5);
}

.price-card__list { display: grid; gap: 8px; }

.price-card__list li {
  position: relative;
  padding-left: 22px;
  font-size: var(--fs-micro);
  color: var(--ink-soft);
  line-height: 1.5;
}
.price-card__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--cobalt);
  border-bottom: 2px solid var(--cobalt);
  transform: rotate(-45deg);
}

@media (min-width: 620px) {
  .price-grid--build { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1080px) {
  .price-grid--build {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--s-5);
  }
}

/* --- Pricing notes --- */
.pricing-notes {
  display: grid;
  gap: var(--s-4);
  margin-top: clamp(28px, 4vw, 44px);
  padding: clamp(20px, 3vw, 30px);
  background: var(--ivory-deep);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.pricing-notes__item {
  margin: 0;
  font-size: var(--fs-micro);
  color: var(--muted);
  line-height: var(--lh-normal);
  max-width: 78ch;
}

.pricing-notes__item strong { color: var(--ink); }

.pricing-notes__item--exclusions {
  padding-top: var(--s-4);
  border-top: 1px solid var(--line-strong);
  color: var(--muted-light);
}

/* --- Post-pricing CTA --- */
.pricing-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-5);
  margin-top: clamp(28px, 4vw, 44px);
  padding: clamp(24px, 3.5vw, 36px);
  background: var(--paper);
  border: 1px solid var(--cobalt-line);
  border-left: 3px solid var(--cobalt);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.pricing-cta__text {
  margin: 0;
  font-size: var(--fs-lead);
  font-weight: 560;
  color: var(--ink);
  line-height: var(--lh-normal);
  letter-spacing: -0.012em;
  max-width: 54ch;
}

@media (min-width: 860px) {
  .pricing-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-8);
  }
  .pricing-cta .btn { flex: 0 0 auto; }
}

.section--pricing .section__footnote { margin-top: var(--s-7); }


/* ==========================================================================
   17. CLARITY GRID
   ========================================================================== */

.clarity-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7) var(--s-8);
}

.clarity-item {
  padding-left: var(--s-5);
  border-left: 2px solid var(--cobalt-line);
  transition: border-color var(--t-mid) linear;
}
.clarity-item:hover { border-left-color: var(--cobalt); }

.clarity-item__title {
  font-size: var(--fs-h4);
  margin-bottom: 0.5em;
}

.clarity-item p {
  font-size: var(--fs-small);
  color: var(--muted);
  line-height: var(--lh-relaxed);
  max-width: 46ch;
}

@media (min-width: 700px) {
  .clarity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1080px) {
  .clarity-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}


/* ==========================================================================
   18. FAQ
   ========================================================================== */

.faq {
  display: grid;
  gap: var(--s-3);
}

.faq__item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color var(--t-mid) linear,
              box-shadow var(--t-mid) linear;
}

.faq__item:hover { border-color: var(--line-strong); }

.faq__item[open] {
  border-color: var(--cobalt-line);
  box-shadow: var(--shadow-sm);
}

.faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-5);
  font-size: var(--fs-h4);
  font-weight: 620;
  color: var(--ink);
  letter-spacing: -0.012em;
  line-height: 1.4;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ""; }

.faq__q:hover { color: var(--cobalt-dark); }

.faq__q:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: -2px;
  border-radius: var(--r-md);
}

/* Plus / minus icon */
.faq__icon {
  position: relative;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border: 1px solid var(--cobalt-line);
  border-radius: 50%;
  background: var(--cobalt-tint);
  transition: background-color var(--t-mid) linear,
              border-color var(--t-mid) linear,
              transform var(--t-mid) var(--ease-out);
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--cobalt-deep);
  border-radius: 1px;
  transition: transform var(--t-mid) var(--ease-out),
              opacity var(--t-fast) linear;
}
.faq__icon::before {
  width: 10px; height: 2px;
  transform: translate(-50%, -50%);
}
.faq__icon::after {
  width: 2px; height: 10px;
  transform: translate(-50%, -50%);
}

.faq__q:hover .faq__icon { background: var(--paper); border-color: var(--cobalt); }

.faq__item[open] .faq__icon { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { opacity: 0; transform: translate(-50%, -50%) scaleY(0); }

.faq__a {
  padding: 0 var(--s-5) var(--s-5);
}

.faq__a p {
  font-size: var(--fs-small);
  color: var(--muted);
  line-height: var(--lh-relaxed);
  max-width: 68ch;
}

/* Gentle open animation for the answer panel */
.js .faq__item[open] .faq__a {
  animation: mx-faq-open 320ms var(--ease-out) both;
}

@keyframes mx-faq-open {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (min-width: 620px) {
  .faq__q { padding: var(--s-6); }
  .faq__a { padding: 0 var(--s-6) var(--s-6); }
}


/* ==========================================================================
   19. FINAL CTA
   ========================================================================== */

.final-cta {
  padding-block: clamp(56px, 8vw, 112px);
  background:
    radial-gradient(90% 120% at 82% 8%, rgba(31, 75, 216, 0.28) 0%, rgba(31, 75, 216, 0) 60%),
    linear-gradient(165deg, var(--cobalt-deep) 0%, #0c1f5c 100%);
  color: rgba(255, 255, 255, 0.8);
}

.final-cta__inner {
  max-width: 62ch;
}

.final-cta__title {
  color: #fff;
  font-size: var(--fs-h2);
  letter-spacing: -0.028em;
  margin-bottom: 0.55em;
}

.final-cta__lead {
  font-size: var(--fs-lead);
  color: rgba(255, 255, 255, 0.78);
  line-height: var(--lh-normal);
  margin-bottom: clamp(28px, 3.5vw, 38px);
}

.final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-bottom: clamp(32px, 4vw, 44px);
}

.final-cta .btn--primary {
  background: #fff;
  border-color: #fff;
  color: var(--cobalt-deep);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.55);
}
.final-cta .btn--primary:hover {
  background: var(--cobalt-tint);
  border-color: var(--cobalt-tint);
  color: var(--cobalt-deep);
}

.final-cta .btn--ghost {
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
  background: transparent;
}
.final-cta .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
  box-shadow: none;
}

.final-cta .btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.final-cta__contact {
  display: grid;
  gap: var(--s-4);
  padding-top: var(--s-6);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.final-cta__contact li {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.final-cta__contact-label {
  font-size: 0.6875rem;
  font-weight: 660;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.final-cta__contact a {
  font-size: var(--fs-small);
  font-weight: 600;
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  word-break: break-word;
}
.final-cta__contact a:hover {
  color: #fff;
  text-decoration-color: #fff;
}
.final-cta__contact a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

@media (min-width: 620px) {
  .final-cta__contact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-6);
    max-width: 34rem;
  }
}


/* ==========================================================================
   20. SITE FOOTER
   ========================================================================== */

.site-footer {
  padding-block: clamp(44px, 6vw, 72px) var(--s-8);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.66);
  font-size: var(--fs-micro);
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-8);
  padding-bottom: var(--s-8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.brand--footer { margin-bottom: var(--s-4); }
.brand--footer .brand__word { color: #fff; }

.site-footer__blurb {
  max-width: 40ch;
  color: rgba(255, 255, 255, 0.62);
  line-height: var(--lh-normal);
}

.site-footer__heading {
  margin-bottom: var(--s-4);
  font-size: 0.6875rem;
  font-weight: 660;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.44);
}

.site-footer__nav ul,
.site-footer__contact ul {
  display: grid;
  gap: 11px;
}

.site-footer__nav li,
.site-footer__contact li {
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.6);
}

.site-footer__nav a,
.site-footer__contact a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  word-break: break-word;
  transition: color var(--t-fast) linear,
              border-color var(--t-fast) linear;
}
.site-footer__nav a:hover,
.site-footer__contact a:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.55);
}
.site-footer__nav a:focus-visible,
.site-footer__contact a:focus-visible,
.brand--footer:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.site-footer__bottom {
  display: grid;
  gap: var(--s-3);
  padding-top: var(--s-6);
}

.site-footer__legal {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.6;
  max-width: 76ch;
}

@media (min-width: 620px) {
  .site-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (min-width: 1000px) {
  .site-footer__top {
    grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr));
    gap: var(--s-7);
  }
  .site-footer__brand { grid-column: auto; }
  .site-footer__bottom {
    grid-template-columns: auto 1fr;
    align-items: baseline;
    gap: var(--s-8);
  }
}


/* ==========================================================================
   21. MOTION CHOREOGRAPHY
   All motion is gated behind html.js so the page is fully visible
   if JavaScript fails or is disabled.
   ========================================================================== */

/* --- Scroll reveal --- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease-out),
              transform 700ms var(--ease-out);
  will-change: opacity, transform;
}

.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* Staggered children inside revealed grids */
.js .strip__item[data-reveal]:nth-child(2),
.js .clarity-item[data-reveal]:nth-child(2),
.js .service-card[data-reveal]:nth-child(2),
.js .price-card[data-reveal]:nth-child(2) { transition-delay: 70ms; }

.js .strip__item[data-reveal]:nth-child(3),
.js .clarity-item[data-reveal]:nth-child(3),
.js .service-card[data-reveal]:nth-child(3),
.js .price-card[data-reveal]:nth-child(3) { transition-delay: 140ms; }

.js .strip__item[data-reveal]:nth-child(4),
.js .clarity-item[data-reveal]:nth-child(4),
.js .service-card[data-reveal]:nth-child(4),
.js .price-card[data-reveal]:nth-child(4) { transition-delay: 210ms; }

.js .clarity-item[data-reveal]:nth-child(5) { transition-delay: 280ms; }
.js .clarity-item[data-reveal]:nth-child(6) { transition-delay: 350ms; }

.js .process__step[data-reveal]:nth-child(2) { transition-delay: 120ms; }
.js .process__step[data-reveal]:nth-child(3) { transition-delay: 240ms; }

.js .faq__item[data-reveal]:nth-child(2) { transition-delay: 60ms; }
.js .faq__item[data-reveal]:nth-child(3) { transition-delay: 120ms; }
.js .faq__item[data-reveal]:nth-child(4) { transition-delay: 180ms; }

/* --- Hero entrance stagger (60ms cadence) --- */
.js .hero [data-stagger] {
  opacity: 0;
  animation: mx-rise 760ms var(--ease-out) both;
}

.js .hero [data-stagger="0"] { animation-delay:  60ms; }
.js .hero [data-stagger="1"] { animation-delay: 120ms; }
.js .hero [data-stagger="2"] { animation-delay: 180ms; }
.js .hero [data-stagger="3"] { animation-delay: 240ms; }
.js .hero [data-stagger="4"] { animation-delay: 320ms; }
.js .hero [data-stagger="5"] { animation-delay: 400ms; }
.js .hero [data-stagger="6"] { animation-delay: 470ms; }

@keyframes mx-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero stage fades up as a single composition */
.js .hero__stage {
  animation: mx-stage-in 1000ms var(--ease-soft) 300ms both;
}

@keyframes mx-stage-in {
  from { opacity: 0; transform: translateY(24px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* --- Pointer depth (capped travel, fine pointers only) --- */
@media (hover: hover) and (pointer: fine) {
  .hero__stage {
    --mx-tilt-x: 0px;
    --mx-tilt-y: 0px;
  }
  .hero__stage .device--desktop {
    transform: translate3d(var(--mx-tilt-x), var(--mx-tilt-y), 0);
  }
  .hero__stage .device--mobile {
    transform: translate3d(calc(var(--mx-tilt-x) * 1.6), calc(var(--mx-tilt-y) * 1.6), 0);
  }
}


/* ==========================================================================
   22. REDUCED MOTION & FORCED COLOURS
   ========================================================================== */

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

  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  /* Everything renders at its final state immediately */
  .js [data-reveal],
  .js [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
  }

  .js .hero [data-stagger] { opacity: 1; animation: none; }
  .js .hero__stage { opacity: 1; animation: none; transform: none; }

  .process__line,
  .process__line.is-drawn { transform: none; }

  /* Only the active project is shown; no rotation, no cross-fade */
  .stage-slide { transform: none; }
  .stage-slide.is-active { transform: none; }

  [data-media].is-loading::after { animation: none; background-image: none; }

  .btn:hover,
  .btn--primary:hover,
  .btn--ghost:hover,
  .service-card:hover,
  .price-card:hover,
  .work-card:hover .device--desktop,
  .work-card:focus-within .device--desktop { transform: none; }

  .btn:hover .btn__arrow,
  .link-arrow:hover .link-arrow__icon { transform: none; }

  .hero__stage .device--desktop,
  .hero__stage .device--mobile { transform: none; }
}

@media (prefers-contrast: more) {
  :root {
    --muted: #3e434f;
    --muted-light: #4a4f5b;
    --line: #b9b3a5;
    --line-strong: #8d8878;
  }
  .service-card,
  .price-card,
  .faq__item { border-width: 2px; }
}

@media (forced-colors: active) {
  .btn,
  .service-card,
  .price-card,
  .faq__item,
  .device--desktop,
  .nav-toggle {
    border: 1px solid ButtonBorder;
  }
  .btn--primary { forced-color-adjust: none; }
  .device--desktop::before,
  .device--desktop::after,
  [data-media].is-loading::after { display: none; }
  .strip__item { border-top-color: CanvasText; }
  :focus-visible { outline: 3px solid Highlight; }
}


/* ==========================================================================
   23. PRINT
   ========================================================================== */

@media print {
  @page { margin: 16mm; }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
    line-height: 1.5;
  }

  .site-header,
  .nav-toggle,
  .primary-nav,
  .skip-link,
  .hero__stage,
  .cta-band .btn,
  .final-cta__actions,
  .pricing-cta .btn { display: none !important; }

  .hero,
  .strip,
  .section,
  .cta-band,
  .final-cta,
  .site-footer {
    padding-block: 12pt;
    background: #fff !important;
    color: #000 !important;
    border: 0;
  }

  .cta-band__title,
  .final-cta__title,
  .final-cta__lead,
  .cta-band__copy p,
  .site-footer__legal,
  .site-footer__blurb,
  .site-footer__nav li,
  .site-footer__contact li,
  .site-footer__nav a,
  .site-footer__contact a,
  .brand--footer .brand__word,
  .final-cta__contact a,
  .final-cta__contact-label { color: #000 !important; }

  .service-card,
  .price-card,
  .faq__item,
  .pricing-notes,
  .pricing-cta {
    border: 1px solid #999;
    box-shadow: none;
    break-inside: avoid;
  }

  .work-card,
  .process__step,
  .clarity-item { break-inside: avoid; }

  .faq__a { display: block !important; }

  [data-reveal],
  [data-stagger] { opacity: 1 !important; transform: none !important; animation: none !important; }

  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
  a[href^="mailto:"]::after,
  a[href^="tel:"]::after { content: ""; }
}
