﻿/* ==========================================================================
   SCALE-UP LTD  -  Global Stylesheet
   Design tokens, base styles, components, page sections, utilities.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette (derived from logo) */
  --navy-950: #081430;
  --navy-900: #0c1d44;
  --navy-800: #122a5e;
  --blue-700: #1a46b8;
  --blue-600: #2058d6;
  --blue-500: #2f6fe4;
  --sky-500: #2ea3e6;
  --sky-100: #e3f2fc;
  --blue-50: #eef3fc;

  /* Neutrals */
  --white: #ffffff;
  --gray-50: #f6f8fb;
  --gray-100: #eef1f6;
  --gray-200: #e2e7f0;
  --gray-400: #94a0b8;
  --gray-500: #64748b;
  --gray-600: #4b5872;
  --ink: #0e1b3a;

  /* Semantic */
  --bg: var(--white);
  --surface: var(--gray-50);
  --border: var(--gray-200);
  --text: #33405c;
  --text-muted: var(--gray-500);
  --heading: var(--ink);
  --primary: var(--blue-600);
  --primary-hover: var(--blue-700);
  --accent: var(--sky-500);
  --danger: #dc2626;
  --success: #15803d;

  /* Typography */
  --font-heading: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Shape & elevation */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(14, 27, 58, 0.05), 0 2px 8px rgba(14, 27, 58, 0.04);
  --shadow-md: 0 4px 12px rgba(14, 27, 58, 0.06), 0 12px 32px rgba(14, 27, 58, 0.08);
  --shadow-lg: 0 8px 24px rgba(14, 27, 58, 0.1), 0 24px 64px rgba(14, 27, 58, 0.12);

  /* Layout */
  --container: 1160px;
  --header-h: 60px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 220ms;
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  /* The off-canvas drawer sits translated beyond the right edge;
     without this the document gains a horizontal scrollbar on mobile. */
  overflow-x: hidden;
}

img,
svg,
iframe {
  max-width: 100%;
  display: block;
}

img {
  height: auto;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--heading);
  line-height: 1.18;
  margin: 0 0 0.6em;
  letter-spacing: -0.015em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 5.4vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); }
h3 { font-size: clamp(1rem, 1.8vw, 1.2rem); }
h4 { font-size: 1.08rem; }

p {
  margin: 0 0 1.1em;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

a:hover {
  color: var(--primary-hover);
}

ul, ol {
  padding-left: 1.3em;
  margin: 0 0 1.1em;
}

strong {
  color: var(--heading);
  font-weight: 600;
}

::selection {
  background: var(--blue-600);
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--sky-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 2000;
  background: var(--navy-900);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
  color: #fff;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.section {
  padding-block: clamp(40px, 5.5vw, 70px);
}

.section--alt {
  background: var(--surface);
}

.section--tight {
  padding-block: clamp(32px, 4.5vw, 52px);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(24px, 3.5vw, 40px);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.section-head--center .eyebrow::after {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.lead {
  font-size: 1.08rem;
  color: var(--text-muted);
}

.grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform var(--dur) var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(32, 88, 214, 0.32);
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(26, 70, 184, 0.38);
}

.btn-outline {
  background: transparent;
  color: var(--heading);
  border-color: var(--gray-200);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-light {
  background: #fff;
  color: var(--navy-900);
}

.btn-light:hover {
  background: var(--sky-100);
  color: var(--navy-900);
  transform: translateY(-2px);
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.site-header.is-scrolled {
  border-color: var(--border);
  box-shadow: 0 4px 20px rgba(14, 27, 58, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.brand img {
  height: 56px;
  width: auto;
}

.nav-desktop {
  display: none;
}

.nav-desktop ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-desktop a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--heading);
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--primary);
  background: var(--blue-50);
}

.nav-desktop a svg {
  width: 14px;
  height: 14px;
  transition: transform var(--dur) var(--ease);
}

/* Services dropdown */
.has-submenu {
  position: relative;
}

.submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 300px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
    visibility var(--dur);
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.has-submenu:hover > a svg,
.has-submenu:focus-within > a svg {
  transform: rotate(180deg);
}

.submenu a {
  display: block;
  width: 100%;
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem;
  font-weight: 600;
}

.submenu a span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 1px;
}

.header-cta {
  display: none;
}

/* Mobile nav toggle */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  color: var(--heading);
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }

/* Mobile drawer */
.nav-mobile {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 990;
  background: #fff;
  padding: 12px 20px 40px;
  overflow-y: auto;
  transform: translateX(105%);
  visibility: hidden;
  transition: transform 280ms var(--ease), visibility 0s 280ms;
}

.nav-mobile.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 280ms var(--ease), visibility 0s;
}

.nav-mobile ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-mobile > ul > li {
  border-bottom: 1px solid var(--gray-100);
}

.nav-mobile a,
.nav-mobile .subtoggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 4px;
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--heading);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.nav-mobile a[aria-current="page"] {
  color: var(--primary);
}

.nav-mobile .subtoggle svg {
  width: 18px;
  height: 18px;
  transition: transform var(--dur) var(--ease);
}

.nav-mobile .subtoggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.nav-mobile .sublist {
  display: none;
  padding: 0 0 10px 14px;
}

.nav-mobile .sublist.is-open {
  display: block;
}

.nav-mobile .sublist a {
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.65rem 4px;
  color: var(--text);
}

.nav-mobile .drawer-cta {
  margin-top: 22px;
}

body.nav-locked {
  overflow: hidden;
}

@media (min-width: 1024px) {
  .nav-desktop { display: block; }
  .header-cta { display: inline-flex; min-height: 44px; padding: 0.6rem 1.3rem; }
  .nav-toggle, .nav-mobile { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 0;
  pointer-events: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(50px, 8vw, 110px);
  max-width: 600px;
}

.hero .eyebrow {
  color: #1976d2;
}

.hero h1 {
  color: #fff;
  margin-bottom: 0.4em;
  font-size: clamp(1.4rem, 3.2vw, 2.2rem);
}

.hero h1 .accent {
  color: var(--sky-500);
}

.hero .lead {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(0.8rem, 1.1vw, 0.95rem);
  max-width: 600px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 15px;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 14px;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
}

.hero-note li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-note svg {
  width: 16px;
  height: 16px;
  color: var(--sky-500);
  flex: none;
}

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  color: #fff;
  background: linear-gradient(118deg, var(--navy-950) 0%, var(--navy-800) 60%, #16408f 100%);
  overflow: hidden;
}

.page-hero .hero-inner {
  padding-block: clamp(64px, 8vw, 104px);
}

.page-hero h1 {
  color: #fff;
}

.page-hero .lead {
  color: rgba(255, 255, 255, 0.82);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  font-size: 0.85rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.4);
}

.breadcrumb [aria-current] {
  color: var(--sky-500);
  font-weight: 600;
}

/* ---------- Team Hero (unique design) ---------- */
.team-hero {
  background: linear-gradient(135deg, var(--blue-50) 0%, #f0f7ff 100%);
  padding-block: clamp(50px, 7vw, 90px);
  position: relative;
  overflow: hidden;
}

.team-hero::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(46, 163, 230, 0.1), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.breadcrumb-nav {
  position: relative;
  z-index: 1;
  margin-bottom: 36px;
}

.breadcrumb-nav .breadcrumb {
  margin: 0;
}

.breadcrumb-nav .breadcrumb a {
  color: var(--text);
}

.breadcrumb-nav .breadcrumb li + li::before {
  color: var(--gray-400);
}

.breadcrumb-nav [aria-current] {
  color: var(--primary);
}

.team-hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  position: relative;
  z-index: 1;
}

.team-hero-text h1 {
  color: var(--heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 0.8em;
}

.team-hero-text .lead {
  color: var(--text);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  margin-bottom: 2.4em;
  line-height: 1.6;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.hero-stat {
  padding: 20px;
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  text-align: center;
  box-shadow: 0 2px 8px rgba(14, 27, 58, 0.04);
}

.hero-stat-value {
  display: block;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-heading);
  margin-bottom: 6px;
}

.hero-stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.team-hero-founders {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.founder-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(14, 27, 58, 0.08);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  border: 1px solid var(--border);
}

.founder-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(14, 27, 58, 0.14);
}

.founder-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.founder-info {
  padding: 20px;
  text-align: center;
}

.founder-info h3 {
  font-size: 1.1rem;
  margin: 0 0 6px;
  color: var(--heading);
}

.founder-info span {
  display: block;
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
}

@media (max-width: 820px) {
  .team-hero-content {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .hero-stat {
    padding: 14px;
  }

  .hero-stat-value {
    font-size: 1.3rem;
  }

  .team-hero-founders {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .team-hero-founders {
    grid-template-columns: 1fr;
  }
}

/* ---------- Stats ---------- */
.stats-band {
  position: relative;
  z-index: 2;
  margin-top: clamp(-56px, -5vw, -40px);
}

.stats-card {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(18px, 3vw, 30px);
}

@media (min-width: 860px) {
  .stats-card { grid-template-columns: repeat(4, 1fr); }
}

.stat {
  text-align: center;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 32px);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

a.card {
  display: block;
  color: inherit;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: #cdd9f2;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-50), var(--sky-100));
  color: var(--primary);
  margin-bottom: 18px;
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card h3 {
  margin-bottom: 0.4em;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
}

.card-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--dur) var(--ease);
}

.card:hover .card-link svg,
.card-link:hover svg {
  transform: translateX(4px);
}

/* Feature list card (why choose us) */
.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--primary);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3em;
}

.feature p {
  font-size: 0.93rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Media split sections ---------- */
.split {
  display: grid;
  gap: clamp(20px, 3.5vw, 45px);
  align-items: center;
}

@media (min-width: 920px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--media-right .split-media { order: 2; }
}

.split-media {
  position: relative;
}

.split-media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.split-media .media-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 12px 18px;
}

.media-badge .stat-value {
  font-size: 1.5rem;
}

.media-badge .stat-label {
  margin: 0;
  font-size: 0.78rem;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 1.4em 0 0;
  display: grid;
  gap: 12px;
}

.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.checklist svg {
  flex: none;
  width: 21px;
  height: 21px;
  color: var(--primary);
  margin-top: 2px;
}

.checklist strong {
  display: block;
}

.checklist span {
  color: var(--text-muted);
  font-size: 0.93rem;
}

/* ---------- Project cards ---------- */
.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.project-card .thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--gray-100);
}

.project-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease);
}

.project-card:hover .thumb img {
  transform: scale(1.05);
}

.project-card .badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
}

.project-card .body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 24px 24px;
}

.project-card h3 {
  font-size: 1.12rem;
  margin-bottom: 0.35em;
}

.project-card h3 a {
  color: inherit;
}

.project-card h3 a:hover {
  color: var(--primary);
}

.project-card .meta {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge--direct {
  background: var(--navy-900);
  color: #fff;
}

.badge--supervised {
  background: #fff;
  color: var(--navy-900);
  border: 1px solid var(--border);
}

/* Filters */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.filter-btn {
  min-height: 44px;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--heading);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ---------- Client logos ---------- */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 720px) {
  .logo-grid { grid-template-columns: repeat(4, 1fr); }
}

.logo-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.logo-chip:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.logo-chip .mono {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--navy-800), var(--blue-600));
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.logo-chip .name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--heading);
  line-height: 1.25;
}

.logo-chip .scope {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ---------- Testimonials ---------- */
.testi-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(88%, 460px);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 20px;
  scrollbar-width: none;
}

.testi-track::-webkit-scrollbar {
  display: none;
}

.testi-card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 30px;
}

.testi-card .quote-mark {
  width: 34px;
  height: 34px;
  color: var(--sky-500);
  margin-bottom: 14px;
}

.testi-card blockquote {
  margin: 0 0 20px;
  font-size: 1rem;
  color: var(--heading);
}

.testi-card figcaption {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.testi-card .avatar {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
}

.testi-card .who strong {
  display: block;
  font-size: 0.92rem;
}

.testi-card .who span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.testi-nav {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.testi-nav button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--heading);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur) var(--ease);
}

.testi-nav button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.testi-nav svg {
  width: 20px;
  height: 20px;
}

/* ---------- Team ---------- */
.team-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 36px);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.team-card .portrait {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--navy-800), var(--blue-500));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.team-card .portrait-img {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  object-fit: cover;
  margin-bottom: 20px;
  display: block;
}

.team-card .role {
  display: inline-block;
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 14px;
}

.team-card ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.team-card li {
  display: flex;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.team-card li svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--sky-500);
  margin-top: 3px;
}

/* ---------- Process steps ---------- */
.steps {
  counter-reset: step;
  display: grid;
  gap: 18px;
}

@media (min-width: 880px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps--3 { grid-template-columns: repeat(3, 1fr); }
}

.step {
  counter-increment: step;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  position: relative;
}

.step::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--sky-500);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.step h3 {
  font-size: 1.02rem;
  margin-bottom: 0.4em;
}

.step p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- FAQ (native details) ---------- */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 780px;
  margin-inline: auto;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: box-shadow var(--dur) var(--ease);
}

.faq-item[open] {
  box-shadow: var(--shadow-sm);
  border-color: #cdd9f2;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--heading);
  font-size: 0.98rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--primary);
  transition: transform var(--dur) var(--ease);
}

.faq-item[open] summary svg {
  transform: rotate(45deg);
}

.faq-item .answer {
  padding: 0 22px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-item .answer p:last-child {
  margin-bottom: 0;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(118deg, var(--navy-950), var(--blue-700));
  border-radius: var(--radius-lg);
  color: #fff;
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
}

.cta-band::before {
  content: "";
  position: absolute;
  left: -120px;
  bottom: -160px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 163, 230, 0.3), transparent 68%);
}

.cta-band h2 {
  color: #fff;
  max-width: 620px;
  margin-inline: auto;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  margin-inline: auto;
}

.cta-band .hero-actions {
  justify-content: center;
}

/* ---------- Service detail layout ---------- */
.service-layout {
  display: grid;
  gap: clamp(32px, 5vw, 56px);
}

@media (min-width: 1024px) {
  .service-layout {
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: start;
  }
}

.service-aside {
  display: grid;
  gap: 20px;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.aside-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.aside-card h3 {
  font-size: 1rem;
  margin-bottom: 14px;
}

.aside-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.aside-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.aside-nav a:hover {
  background: var(--blue-50);
  color: var(--primary);
}

.aside-nav a[aria-current="page"] {
  background: var(--primary);
  color: #fff;
}

.aside-card--cta {
  background: linear-gradient(135deg, var(--navy-900), var(--blue-700));
  border: none;
  color: #fff;
}

.aside-card--cta h3 {
  color: #fff;
}

.aside-card--cta p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.aside-card--cta .btn {
  width: 100%;
}

.service-figure img {
  width: 100%;
  aspect-ratio: 16 / 8.5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pill-row li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 18px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--heading);
}

.pill-row svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: clamp(30px, 5vw, 56px);
}

@media (min-width: 980px) {
  .contact-grid {
    grid-template-columns: 380px minmax(0, 1fr);
    align-items: start;
  }
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-100);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-item .feature-icon {
  width: 48px;
  height: 48px;
}

.contact-item h3 {
  font-size: 0.98rem;
  margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
  font-size: 0.95rem;
  margin: 0;
  color: var(--text-muted);
  display: block;
}

.contact-item a:hover {
  color: var(--primary);
}

/* Form */
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(26px, 4vw, 44px);
}

.form-grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
}

.field label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 7px;
}

.field .req {
  color: var(--danger);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  font: inherit;
  color: var(--heading);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(32, 88, 214, 0.12);
}

.field.has-error input,
.field.has-error textarea,
.field.has-error select {
  border-color: var(--danger);
}

.field .error-msg {
  display: none;
  font-size: 0.82rem;
  color: var(--danger);
  margin-top: 6px;
}

.field.has-error .error-msg {
  display: block;
}

.field .hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.form-status {
  display: none;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
}

.form-status.is-success {
  display: block;
  background: #ecfdf3;
  border: 1px solid #b5e3c4;
  color: var(--success);
}

.map-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.map-frame iframe {
  width: 100%;
  height: 400px;
  border: 0;
}

/* ---------- Values ---------- */
.value-card {
  border-left: 3px solid var(--sky-500);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ---------- Legal / article pages ---------- */
.article {
  max-width: 760px;
  margin-inline: auto;
}

.article h2 {
  font-size: 1.4rem;
  margin-top: 2.2em;
}

.article h2:first-of-type {
  margin-top: 0;
}

.article ul li {
  margin-bottom: 0.45em;
}

.article .updated {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 2.2em;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (min-width: 760px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  transition: transform 400ms var(--ease), box-shadow var(--dur) var(--ease);
}

.gallery-grid img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

/* Detail spec list */
.spec-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.93rem;
}

.spec-list li:last-child {
  border-bottom: none;
}

.spec-list .k {
  color: var(--text-muted);
  flex: none;
}

.spec-list .v {
  font-weight: 600;
  color: var(--heading);
  text-align: right;
}

/* ---------- 404 ---------- */
.error-page {
  text-align: center;
  padding-block: clamp(80px, 14vw, 160px);
}

.error-code {
  font-family: var(--font-heading);
  font-size: clamp(5rem, 16vw, 9rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(118deg, var(--navy-900), var(--sky-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.72);
  margin-top: clamp(64px, 9vw, 110px);
}

.footer-main {
  display: grid;
  gap: 38px;
  padding-block: clamp(48px, 7vw, 72px);
}

@media (min-width: 760px) {
  .footer-main { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 1024px) {
  .footer-main { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
}

.footer-brand img {
  height: 52px;
  width: auto;
  background: #fff;
  border-radius: 12px;
  padding: 6px 12px;
  margin-bottom: 18px;
}

.footer-brand p {
  font-size: 0.92rem;
  max-width: 320px;
}

.site-footer h3 {
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: var(--sky-500);
}

.footer-contact li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 0.92rem;
}

.footer-contact svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--sky-500);
  margin-top: 3px;
}

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  transition: all var(--dur) var(--ease);
}

.social-row a:hover {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: #fff;
  transform: translateY(-3px);
}

.social-row svg {
  width: 19px;
  height: 19px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
}

.footer-bottom ul {
  display: flex;
  gap: 22px;
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 650ms var(--ease), transform 650ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.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;
}
