/* =============================================================
   Skyless — main stylesheet

   1  Design tokens          8  Services
   2  Base                   9  Why Skyless
   3  Layout + utilities    10  About
   4  Buttons               11  How it works
   5  Header + navigation   12  Selected work
   6  Hero + dashboard      13  Call to action
   7  Intro strip           14  Footer
                            15  Contact page
                            16  Motion
                            17  Responsive
                            18  Reduced motion
   ============================================================= */


/* 1  DESIGN TOKENS ------------------------------------------- */
:root {
  /* Colour */
  --navy-950: #061128;
  --navy-900: #0a1a3b;
  --navy-800: #0f2657;
  --royal: #1b4fd8;
  --royal-dark: #153fb0;
  --electric: #3b82f6;
  --cyan: #22d3ee;
  --sky: #e6f0ff;
  --mist: #f4f8fe;
  --line: #d9e3f4;
  --ink: #0a1a3b;
  --muted: #4b5c7d;

  /* Type */
  --font-display: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Shape + depth */
  --radius: 20px;
  --radius-lg: 32px;
  --shadow-sm: 0 1px 2px rgba(10, 26, 59, 0.05), 0 6px 16px -6px rgba(27, 79, 216, 0.1);
  --shadow-lg: 0 30px 60px -24px rgba(15, 38, 87, 0.4);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --header-h: 72px;
}


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

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

body {
  margin: 0;
  font: 400 1rem/1.65 var(--font-body);
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

h1, h2, h3, p, ul, ol {
  margin: 0;
}

ul, ol {
  padding: 0;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

.on-dark :focus-visible {
  outline-color: var(--cyan);
}


/* 3  LAYOUT + UTILITIES -------------------------------------- */
.container {
  width: min(100% - 2.5rem, 1180px);
  margin-inline: auto;
}

.section {
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
}

.section--mist {
  background: var(--mist);
}

.section__head {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section__title {
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.section__lead {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 1.075rem;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Hidden SVG sprite that holds every icon used on the page */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: var(--navy-900);
  color: #fff;
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: none;
}


/* 4  BUTTONS -------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.8rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 1rem/1.2 var(--font-body);
  text-align: center;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background-position 0.4s var(--ease), background-color 0.25s,
    border-color 0.25s, color 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--royal) 0%, #2b63ea 50%, var(--royal) 100%);
  background-size: 200% 100%;
  box-shadow: 0 10px 22px -8px rgba(27, 79, 216, 0.6);
}

.btn--primary:hover {
  background-position: 100% 0;
  box-shadow: 0 16px 30px -10px rgba(27, 79, 216, 0.7);
}

.btn--ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  border-color: #c5d3ec;
}

.btn--ghost:hover {
  color: var(--royal);
  border-color: var(--royal);
  box-shadow: 0 10px 22px -12px rgba(27, 79, 216, 0.5);
}

.btn--light {
  color: var(--navy-900);
  background: #fff;
  box-shadow: 0 12px 26px -10px rgba(0, 0, 0, 0.5);
}

.btn--light:hover {
  background: #eaf3ff;
}

.btn--outline-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.btn--sm {
  min-height: 42px;
  padding: 0.55rem 1.25rem;
  font-size: 0.95rem;
}


/* 5  HEADER + NAVIGATION ------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease), backdrop-filter 0.3s var(--ease),
    -webkit-backdrop-filter 0.3s var(--ease);
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 28px -14px rgba(10, 26, 59, 0.25);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--navy-900);
}

.brand__mark {
  width: 30px;
  height: 30px;
}

.brand__ring {
  fill: none;
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: round;
}

.brand__dot {
  fill: var(--electric);
}

.brand__name {
  font: 700 1.4rem/1 var(--font-display);
  letter-spacing: -0.04em;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav__list {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.nav__list a {
  display: block;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background-color 0.25s, color 0.25s;
}

.nav__list a:hover {
  background: rgba(27, 79, 216, 0.08);
  color: var(--royal);
}

.nav__list a[aria-current="page"] {
  color: var(--royal);
}

/* Hamburger button (only shown on small screens when JavaScript runs) */
.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--navy-900);
  cursor: pointer;
}

.nav__bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav__bars span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.nav__toggle[aria-expanded="true"] .nav__bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__bars span:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] .nav__bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}


/* 6  HERO + DASHBOARD ---------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem));
  padding-bottom: clamp(3.5rem, 8vw, 6.5rem);
  background:
    radial-gradient(60% 50% at 85% 15%, rgba(59, 130, 246, 0.16), transparent 70%),
    radial-gradient(45% 45% at 5% 95%, rgba(34, 211, 238, 0.12), transparent 70%),
    linear-gradient(180deg, #f5f9ff 0%, #fff 100%);
}

/* Faint dot grid, fading out towards the edges */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(27, 79, 216, 0.2) 1px, transparent 1.3px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(70% 65% at 72% 30%, #000, transparent 75%);
  mask-image: radial-gradient(70% 65% at 72% 30%, #000, transparent 75%);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.hero__title {
  font-size: clamp(2.1rem, 4vw + 0.2rem, 3.25rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hero__lead {
  max-width: 33rem;
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.1rem;
}

/* Dashboard illustration: built from HTML and CSS, no images */
.dash {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  padding: 1.75rem 0 clamp(2.5rem, 9vw, 4.5rem) 4%;
}

.dash__glow {
  position: absolute;
  inset: 10% 0 0 10%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(59, 130, 246, 0.4), transparent);
  filter: blur(28px);
}

.dash__window {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(27, 79, 216, 0.08);
}

.dash__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.dash__bar > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cbd9f1;
}

.dash__url {
  flex: 1;
  max-width: 210px;
  margin-left: 10px;
  padding: 4px 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--mist);
  color: var(--muted);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash__body {
  display: grid;
  gap: 18px;
  padding: 18px 18px 26px;
}

/* Small reusable "wireframe" pieces, shared with the work previews */
.mk-line {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: #d3e1f7;
}

.mk-line--strong {
  height: 12px;
  background: var(--navy-900);
}

.mk-w80 { width: 80%; }
.mk-w60 { width: 60%; }
.mk-w40 { width: 40%; }

.mk-btn {
  display: block;
  width: 34%;
  height: 16px;
  border-radius: 999px;
  background: var(--royal);
}

.mk-block {
  display: block;
  border-radius: 10px;
  background: linear-gradient(135deg, #c3d8ff, #7fb0ff);
}

.mk-block--dark {
  background: linear-gradient(135deg, var(--navy-800), var(--royal));
}

.mk-block--cyan {
  background: linear-gradient(135deg, #a5f3fc, #3b82f6);
}

.mk-col {
  display: grid;
  gap: 9px;
}

.mk-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mk-nav .mk-line {
  width: 28px;
}

.mk-nav .mk-btn {
  width: 52px;
  height: 14px;
  margin-left: auto;
}

.mk-logo {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--royal);
}

.mk-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: center;
}

.mk-hero .mk-block {
  height: 118px;
}

.mk-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mk-tiles span {
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--mist);
}

.dash__card {
  position: absolute;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 36px -14px rgba(15, 38, 87, 0.4);
}

.dash__card--growth {
  left: -2%;
  bottom: 0;
  width: 46%;
}

.dash__card--reach {
  right: -3%;
  bottom: 2%;
  width: 40%;
}

.dash__label {
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.3;
}

.dash__chart {
  width: 100%;
  height: 54px;
}

.dash__chart-fill {
  fill: url(#growth-fill);
}

.dash__chart-line {
  fill: none;
  stroke: var(--royal);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
}

.dash__bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 54px;
}

.dash__bars span {
  flex: 1;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--electric), var(--royal));
}

.dash__bars span:nth-child(1) { height: 32%; }
.dash__bars span:nth-child(2) { height: 48%; }
.dash__bars span:nth-child(3) { height: 40%; }
.dash__bars span:nth-child(4) { height: 68%; }
.dash__bars span:nth-child(5) { height: 92%; }

.dash__chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem 0.45rem 0.5rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 14px 30px -12px rgba(15, 38, 87, 0.45);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.dash__chip-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--sky);
  color: var(--royal);
  font-size: 0.7rem;
}

.dash__chip--lead {
  top: 0;
  right: -2%;
}

.dash__chip--live {
  top: 46%;
  right: -5%;
}

.dash__pulse {
  width: 9px;
  height: 9px;
  margin: 0 0.25rem 0 0.35rem;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.18);
}


/* 7  INTRO STRIP --------------------------------------------- */
.intro {
  padding-block: clamp(3rem, 6vw, 4.75rem);
  border-block: 1px solid var(--line);
  background: #fff;
}

.intro__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.intro__title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.intro__text {
  margin-top: 0.9rem;
  max-width: 30rem;
  color: var(--muted);
}

.intro__points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 2rem;
  list-style: none;
}

.intro__point {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.intro__icon,
.service__icon,
.why__icon {
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 14px;
  background: var(--sky);
  color: var(--royal);
}

.intro__icon {
  width: 42px;
  height: 42px;
}

.intro__point strong {
  display: block;
  font: 600 1.02rem/1.3 var(--font-display);
}

.intro__point span {
  color: var(--muted);
  font-size: 0.93rem;
}


/* 8  SERVICES ------------------------------------------------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  list-style: none;
}

.service {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}

.service:hover,
.service:focus-within {
  transform: translateY(-6px);
  border-color: rgba(59, 130, 246, 0.6);
  background-color: #f9fbff;
  box-shadow: 0 20px 40px -18px rgba(27, 79, 216, 0.4), 0 0 0 4px rgba(59, 130, 246, 0.08);
}

.service--wide {
  grid-column: span 2;
}

.service--feature {
  background-image: linear-gradient(135deg, var(--sky) 0%, rgba(255, 255, 255, 0) 65%);
}

.service__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 0.4rem;
}

.service__title {
  font-size: 1.2rem;
  font-weight: 600;
}

.service--wide .service__title {
  font-size: 1.45rem;
}

.service__text {
  max-width: 30rem;
  color: var(--muted);
}

.service__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.75rem;
  color: var(--royal);
  font-weight: 700;
  font-size: 0.95rem;
}

/* Stretch the link so the whole card is clickable */
.service__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.service__link:focus-visible {
  outline: none;
}

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

.service__link .icon {
  transition: transform 0.3s var(--ease);
}

.service:hover .service__link .icon,
.service:focus-within .service__link .icon {
  transform: translateX(5px);
}

/* Decorative wireframe on the featured card (hidden on small screens) */
.service__art {
  position: absolute;
  right: 2rem;
  bottom: 0;
  width: min(38%, 300px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: #fff;
  box-shadow: 0 -6px 30px -14px rgba(15, 38, 87, 0.3);
  transition: transform 0.4s var(--ease);
}

.service:hover .service__art {
  transform: translateY(-6px);
}

.service--feature .service__text,
.service--dark .service__text {
  max-width: min(21rem, 56%);
}

/* Dark card used once, for AI & Automation */
.service--dark {
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.08);
  background-color: var(--navy-900);
  background-image: radial-gradient(60% 90% at 100% 100%, rgba(34, 211, 238, 0.22), transparent 70%);
  color: #fff;
}

.service--dark:hover,
.service--dark:focus-within {
  border-color: rgba(34, 211, 238, 0.6);
  background-color: var(--navy-800);
  box-shadow: 0 20px 40px -18px rgba(6, 17, 40, 0.8), 0 0 0 4px rgba(34, 211, 238, 0.1);
}

.service--dark .service__icon {
  background: rgba(255, 255, 255, 0.1);
  color: var(--cyan);
}

.service--dark .service__text {
  color: rgba(255, 255, 255, 0.75);
}

.service--dark .service__link {
  color: #67e8f9;
}

.service__flow {
  position: absolute;
  top: 50%;
  right: 2.25rem;
  width: min(32%, 220px);
  fill: none;
  stroke: rgba(103, 232, 249, 0.5);
  stroke-width: 1.5;
  transform: translateY(-50%);
}

.service__flow circle {
  fill: var(--navy-900);
  stroke: #67e8f9;
  stroke-width: 2;
}

.service__flow .service__flow-core {
  fill: var(--cyan);
}

.service--dark .service__link:focus-visible::after {
  outline-color: var(--cyan);
}


/* 9  WHY SKYLESS --------------------------------------------- */
.why__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: start;
}

.why__intro {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}

.why__list {
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.why__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.25rem;
  padding-block: 1.9rem;
  border-top: 1px solid var(--line);
}

.why__icon {
  width: 46px;
  height: 46px;
}

.why__title {
  font-size: 1.2rem;
  font-weight: 600;
}

.why__text {
  margin-top: 0.4rem;
  color: var(--muted);
}


/* 10  ABOUT --------------------------------------------------- */
.about {
  background:
    radial-gradient(55% 70% at 100% 0%, rgba(59, 130, 246, 0.3), transparent 65%),
    var(--navy-900);
  color: #fff;
}

.about__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.about__text {
  max-width: 34rem;
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.78);
}

.about__text + .about__text {
  margin-top: 1rem;
}

.orbit {
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
}

.orbit__ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 1;
}

.orbit__ring--dashed {
  stroke-dasharray: 3 7;
}

.orbit__spoke {
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 1;
}

.orbit__core {
  fill: url(#orbit-core);
}

.orbit__chip {
  fill: #14306a;
  stroke: rgba(255, 255, 255, 0.3);
}

.orbit__label {
  fill: #fff;
  font: 600 14px var(--font-body);
  text-anchor: middle;
  dominant-baseline: central;
}

.orbit__label--core {
  font: 700 15px var(--font-display);
}


/* 11  HOW IT WORKS ------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  list-style: none;
}

.step {
  position: relative;
}

.step__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 2px solid var(--electric);
  border-radius: 50%;
  background: #fff;
  color: var(--royal);
  font: 600 1rem/1 var(--font-display);
}

.step:last-child .step__num {
  border-color: var(--royal);
  background: var(--royal);
  color: #fff;
}

/* Connector line to the next step */
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 27px;
  left: calc(56px + 0.5rem);
  right: -1rem;
  height: 2px;
  background: linear-gradient(90deg, var(--electric), rgba(59, 130, 246, 0.15));
}

.step__title {
  margin-top: 1.4rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.step__text {
  margin-top: 0.4rem;
  max-width: 17rem;
  color: var(--muted);
}


/* 12  SELECTED WORK ------------------------------------------ */
.work__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  list-style: none;
}

.project {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.project:hover,
.project:focus-within {
  transform: translateY(-6px);
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 20px 40px -18px rgba(27, 79, 216, 0.4);
}

.preview {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: linear-gradient(160deg, #dbe9ff 0%, #eef5ff 100%);
}

.preview__tag {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 1;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy-900);
  font-size: 0.75rem;
  font-weight: 700;
}

.preview__art {
  position: absolute;
  inset: 2.6rem 1.4rem 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: #fff;
  box-shadow: 0 -6px 30px -12px rgba(15, 38, 87, 0.3);
  transform-origin: 50% 100%;
  transition: transform 0.6s var(--ease);
}

.project:hover .preview__art {
  transform: scale(1.03);
}

.pv-bar {
  display: flex;
  gap: 5px;
  padding: 9px 11px;
  border-bottom: 1px solid var(--line);
}

.pv-bar span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #cbd9f1;
}

.pv-body {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
}

.pv-body--split {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
}

.pv-body--split .mk-block {
  height: 72px;
}

.pv-body--stack {
  grid-template-rows: 1fr auto;
}

.pv-body--stack .mk-block {
  min-height: 44px;
}

.pv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.pv-grid .mk-block {
  height: 72px;
}

.project__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1.5rem;
}

.project__category {
  color: var(--royal);
  font-size: 0.85rem;
  font-weight: 700;
}

.project__title {
  font-size: 1.25rem;
  font-weight: 600;
}

.project__text {
  margin-bottom: 0.75rem;
  color: var(--muted);
}

.project__body .btn {
  margin-top: auto;
}


/* 13  CALL TO ACTION ----------------------------------------- */
.cta {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.cta__panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1.5rem, 5vw, 4.5rem);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(50% 90% at 100% 0%, rgba(34, 211, 238, 0.28), transparent 60%),
    radial-gradient(60% 80% at 0% 100%, rgba(59, 130, 246, 0.35), transparent 60%),
    linear-gradient(135deg, var(--navy-900), var(--navy-800));
  color: #fff;
}

/* Two open rings echo the logo mark */
.cta__panel::before,
.cta__panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}

.cta__panel::before {
  top: -140px;
  right: -110px;
  width: 460px;
  height: 460px;
}

.cta__panel::after {
  top: -60px;
  right: -30px;
  width: 300px;
  height: 300px;
}

.cta__title {
  max-width: 40rem;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.cta__text {
  max-width: 32rem;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.075rem;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}


/* 14  FOOTER -------------------------------------------------- */
.site-footer {
  padding-top: clamp(3rem, 6vw, 4.5rem);
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.72);
}

.site-footer .brand {
  color: #fff;
}

.site-footer .brand__dot {
  fill: var(--cyan);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
}

.footer__about {
  max-width: 24rem;
  margin: 1.1rem 0 1.4rem;
  font-size: 0.95rem;
}

.footer__heading {
  margin-bottom: 1rem;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
}

.footer__list {
  display: grid;
  gap: 0.6rem;
  list-style: none;
  font-size: 0.95rem;
}

.footer__list a {
  transition: color 0.2s;
}

.footer__list a:hover {
  color: #fff;
}

.footer__bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
}

.social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  transition: transform 0.25s var(--ease), background-color 0.25s, border-color 0.25s, color 0.25s;
}

.social a:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
  background: rgba(34, 211, 238, 0.12);
  color: var(--cyan);
}


/* 15  CONTACT PAGE ------------------------------------------- */
.page-hero {
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem));
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(55% 90% at 90% 0%, rgba(59, 130, 246, 0.16), transparent 70%),
    linear-gradient(180deg, #f5f9ff 0%, #fff 100%);
}

.page-hero__title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.page-hero__lead {
  max-width: 36rem;
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
}

.section--tight {
  padding-block: clamp(2rem, 4vw, 3rem) clamp(4rem, 8vw, 6rem);
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.5rem;
  align-items: stretch;
}

.panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.panel--primary {
  background-image: linear-gradient(135deg, var(--sky) 0%, rgba(255, 255, 255, 0) 60%);
}

.panel__title {
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  font-weight: 700;
}

.panel__text {
  color: var(--muted);
}

.panel__note {
  color: var(--muted);
  font-size: 0.9rem;
}

.checklist {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 0.5rem;
  list-style: none;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
}

.checklist .icon {
  padding: 4px;
  border-radius: 50%;
  background: var(--royal);
  color: #fff;
  stroke-width: 2.6;
}

.flow {
  display: grid;
  gap: 1.4rem;
  list-style: none;
  counter-reset: flow;
}

.flow li {
  position: relative;
  padding-left: 3.4rem;
  counter-increment: flow;
}

.flow li::before {
  content: counter(flow);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid var(--electric);
  border-radius: 50%;
  color: var(--royal);
  font: 600 0.95rem/1 var(--font-display);
}

.flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 42px;
  bottom: -1.3rem;
  left: 18px;
  width: 2px;
  background: linear-gradient(var(--electric), rgba(59, 130, 246, 0.15));
}

.flow h3 {
  font-size: 1.05rem;
  font-weight: 600;
}

.flow p {
  margin-top: 0.25rem;
  color: var(--muted);
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  list-style: none;
}

.contact-link {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: 100%;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.contact-link:hover {
  transform: translateY(-5px);
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 20px 40px -18px rgba(27, 79, 216, 0.4);
}

.contact-link .icon {
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.6rem;
  padding: 0.65rem;
  border-radius: 12px;
  background: var(--sky);
  color: var(--royal);
}

.contact-link strong {
  font: 600 1.05rem/1.3 var(--font-display);
}

.contact-link span {
  color: var(--muted);
  font-size: 0.93rem;
}


/* 16  MOTION -------------------------------------------------- */
/* One orchestrated moment: the hero arrives in sequence on page load.
   "backwards" fill keeps hover transforms working after the animation. */
.hero__title,
.hero__lead,
.hero__actions,
.hero__visual,
.page-hero__title,
.page-hero__lead {
  animation: rise 0.8s var(--ease) backwards;
}

.hero__lead,
.page-hero__lead { animation-delay: 0.12s; }
.hero__actions { animation-delay: 0.24s; }
.hero__visual { animation-delay: 0.36s; }

.dash__chart-line {
  animation: draw 1.6s 0.9s var(--ease) forwards;
  stroke-dashoffset: 100;
}

.dash__card--growth { animation: float 8s ease-in-out infinite; }
.dash__card--reach { animation: float 9s -3s ease-in-out infinite; }
.dash__chip--lead { animation: float 7s -1.5s ease-in-out infinite; }
.dash__chip--live { animation: float 10s -5s ease-in-out infinite; }

/* Scroll reveal. Content stays visible if JavaScript is unavailable. */
.js .reveal {
  opacity: 0;
}

.js .reveal.is-visible {
  opacity: 1;
  animation: rise 0.7s var(--ease) backwards;
}

.js .reveal.is-visible:nth-child(2) { animation-delay: 0.08s; }
.js .reveal.is-visible:nth-child(3) { animation-delay: 0.16s; }
.js .reveal.is-visible:nth-child(4) { animation-delay: 0.24s; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

@keyframes float {
  50% {
    transform: translateY(-9px);
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}


/* 17  RESPONSIVE --------------------------------------------- */
@media (max-width: 1080px) {
  .contact-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .hero__inner,
  .intro__inner,
  .why__inner,
  .about__inner,
  .contact__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__copy {
    max-width: 38rem;
  }

  .dash {
    max-width: 480px;
  }

  .why__intro {
    position: static;
  }

  .services__grid,
  .work__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service--wide {
    grid-column: span 2;
  }

  /* Only the first wide card keeps its full width in the 2-column grid */
  .service--dark.service--wide {
    grid-column: auto;
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__brand {
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  /* Navigation becomes a dropdown panel */
  .nav {
    flex-wrap: wrap;
    gap: 0;
  }

  .nav__menu {
    order: 3;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    width: 100%;
    padding-bottom: 1rem;
  }

  .nav__list {
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
  }

  /* Without JavaScript the menu simply stays visible under the logo */
  html:not(.js) {
    --header-h: 12.5rem;
  }

  html:not(.js) .site-header {
    position: absolute;
  }

  .js .nav {
    flex-wrap: nowrap;
  }

  .js .nav__toggle {
    display: inline-flex;
  }

  .js .nav__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0.75rem 1.25rem 1.5rem;
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 24px 40px -20px rgba(10, 26, 59, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }

  .js .site-header.is-open .nav__menu {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .js .nav__list {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .nav__list a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding-inline: 0;
    font-size: 1.05rem;
  }

  .nav__menu .btn {
    width: 100%;
    min-height: 50px;
  }

  /* Steps stack into a vertical timeline */
  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .step {
    padding-left: 5rem;
  }

  .step__num {
    position: absolute;
    top: 0;
    left: 0;
  }

  .step:not(:last-child)::before {
    top: calc(56px + 0.5rem);
    bottom: calc(-2rem + 0.5rem);
    left: 27px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(var(--electric), rgba(59, 130, 246, 0.15));
  }

  .step__title {
    margin-top: 0.4rem;
  }
}

@media (max-width: 640px) {
  .services__grid,
  .work__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .service--wide,
  .service--dark.service--wide {
    grid-column: auto;
  }

  .intro__points {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__actions .btn,
  .cta__actions .btn,
  .panel .btn {
    width: 100%;
  }

  .service {
    padding: 1.5rem;
  }

  .service__art,
  .service__flow {
    display: none;
  }

  .service--feature .service__text,
  .service--dark .service__text {
    max-width: none;
  }

  .why__item {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.9rem;
  }

  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer__brand {
    grid-column: auto;
  }

  .contact-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .dash__card {
    padding: 0.6rem 0.7rem;
  }

  .dash__chip--live {
    display: none;
  }
}

@media (max-width: 380px) {
  .container {
    width: min(100% - 2rem, 1180px);
  }

  .brand__name {
    font-size: 1.25rem;
  }

  .dash__body {
    padding: 14px 14px 22px;
  }
}


/* 18  REDUCED MOTION ----------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .btn:hover,
  .service:hover,
  .project:hover,
  .contact-link:hover,
  .social a:hover {
    transform: none;
  }
}
