/* ============================================================
   LinLex LTD — Website Styles v2.0
   Brand: Navy #1B2A4A | Steel #4A7C9B | Amber #D4922A
   Fonts: Inter (heads) / Source Sans 3 (body)
   ============================================================ */

/* === LAYER ORDER === */
@layer reset, tokens, base, layout, nav, hero, sections, components, animations, utilities, responsive;

/* === TOKENS === */
@layer tokens {
  :root {
    /* Colours */
    --navy:          #1B2A4A;
    --navy-light:    #2C4066;
    --navy-dark:     #0F1A30;
    --navy-muted:    rgba(27, 42, 74, 0.85);
    --steel:         #4A7C9B;
    --steel-light:   #6A9DB8;
    --steel-dark:    #3A6280;
    --amber:         #D4922A;
    --amber-light:   #E8AD4A;
    --amber-dark:    #B07620;
    --white:         #FFFFFF;
    --off-white:     #F8F9FA;
    --neutral-100:   #E9ECEF;
    --neutral-200:   #DEE2E6;
    --neutral-400:   #ADB5BD;
    --neutral-500:   #6C757D;
    --neutral-700:   #495057;
    --neutral-900:   #212529;

    /* Typography */
    --font-head: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'Source Sans 3', 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

    /* Fluid type scale */
    --text-xs:   clamp(0.69rem, 0.66rem + 0.16vw, 0.75rem);
    --text-sm:   clamp(0.83rem, 0.78rem + 0.24vw, 0.875rem);
    --text-base: clamp(1rem, 0.95rem + 0.24vw, 1.0625rem);
    --text-lg:   clamp(1.125rem, 1.05rem + 0.38vw, 1.25rem);
    --text-xl:   clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
    --text-2xl:  clamp(1.5rem, 1.35rem + 0.75vw, 1.953rem);
    --text-3xl:  clamp(1.953rem, 1.7rem + 1.25vw, 2.441rem);
    --text-4xl:  clamp(2.441rem, 2rem + 2.2vw, 3.052rem);
    --text-5xl:  clamp(3rem, 2.4rem + 3vw, 4rem);

    /* Spacing */
    --sp-1:  0.25rem;
    --sp-2:  0.5rem;
    --sp-3:  0.75rem;
    --sp-4:  1rem;
    --sp-5:  1.25rem;
    --sp-6:  1.5rem;
    --sp-8:  2rem;
    --sp-10: 2.5rem;
    --sp-12: 3rem;
    --sp-16: 4rem;
    --sp-20: 5rem;
    --sp-24: 6rem;
    --sp-32: 8rem;

    /* Layout */
    --container: 1240px;
    --container-narrow: 800px;
    --container-xs: 640px;

    /* Border radius */
    --r-sm: 4px;
    --r-md: 8px;
    --r-lg: 16px;
    --r-xl: 24px;
    --r-full: 9999px;

    /* Shadows */
    --shadow-sm:  0 1px 3px rgba(0,0,0,0.10), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md:  0 4px 16px rgba(0,0,0,0.10), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg:  0 10px 40px rgba(0,0,0,0.14), 0 4px 8px rgba(0,0,0,0.06);
    --shadow-xl:  0 20px 60px rgba(0,0,0,0.18);
    --shadow-navy: 0 8px 32px rgba(27, 42, 74, 0.35);

    /* Easing */
    --ease:      cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out:  cubic-bezier(0, 0, 0.2, 1);
    --ease-in:   cubic-bezier(0.4, 0, 1, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Durations */
    --dur-100: 100ms;
    --dur-200: 200ms;
    --dur-300: 300ms;
    --dur-500: 500ms;
    --dur-700: 700ms;
  }
}

/* === RESET === */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
    -webkit-text-size-adjust: 100%;
  }
  body { line-height: 1.6; -webkit-font-smoothing: antialiased; }
  img, picture, video, canvas, svg { display: block; max-width: 100%; }
  input, button, textarea, select { font: inherit; }
  p, h1, h2, h3, h4 { overflow-wrap: break-word; }
  ul { list-style: none; }
  a { color: inherit; }
  button { cursor: pointer; border: none; background: none; }
}

/* === BASE === */
@layer base {
  html { font-size: 16px; }
  body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--neutral-700);
    background: var(--white);
  }
  h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    line-height: 1.2;
    color: var(--neutral-900);
  }
  a { text-decoration: none; transition: color var(--dur-200) var(--ease); }
  .skip-link {
    position: absolute;
    top: -9999px;
    left: var(--sp-4);
    background: var(--amber);
    color: var(--white);
    padding: var(--sp-2) var(--sp-4);
    border-radius: var(--r-md);
    font-weight: 600;
    z-index: 9999;
  }
  .skip-link:focus { top: var(--sp-4); }
}

/* === LAYOUT === */
@layer layout {
  .container {
    width: min(var(--container), 100% - var(--sp-8));
    margin-inline: auto;
  }
  .container--narrow {
    width: min(var(--container-narrow), 100% - var(--sp-8));
    margin-inline: auto;
  }
  .section {
    padding-block: var(--sp-24);
  }
  .section--sm { padding-block: var(--sp-16); }
  .section--lg { padding-block: var(--sp-32); }
  .section--dark  { background: var(--navy); }
  .section--navy  { background: var(--navy-dark); }
  .section--light { background: var(--off-white); }
  .section--white { background: var(--white); }
  .section--steel { background: var(--steel); }

  .eyebrow {
    display: inline-block;
    font-family: var(--font-head);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--amber);
    margin-block-end: var(--sp-4);
  }
  .eyebrow--light { color: var(--amber-light); }
  .eyebrow--steel { color: var(--steel-light); }

  .section-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--neutral-900);
    letter-spacing: -0.02em;
    margin-block-end: var(--sp-6);
  }
  .section-title--light { color: var(--white); }
  .section-title--amber { color: var(--amber); }

  .section-intro {
    font-size: var(--text-lg);
    color: var(--neutral-500);
    max-width: 680px;
    line-height: 1.7;
    margin-block-end: var(--sp-12);
  }
  .section-intro--light { color: rgba(255,255,255,0.75); }
  .section-header { margin-block-end: var(--sp-12); }
  .section-header--center { text-align: center; }
  .section-header--center .section-intro { margin-inline: auto; }
}

/* === BUTTONS === */
@layer components {
  .btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-family: var(--font-head);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 0.875rem 1.75rem;
    border-radius: var(--r-md);
    border: 2px solid transparent;
    transition: all var(--dur-200) var(--ease);
    white-space: nowrap;
    text-decoration: none;
    position: relative;
    overflow: hidden;
  }
  .btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.08);
    opacity: 0;
    transition: opacity var(--dur-200) var(--ease);
  }
  .btn:hover::after { opacity: 1; }

  .btn--primary {
    background: var(--amber);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(212, 146, 42, 0.35);
  }
  .btn--primary:hover {
    background: var(--amber-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(212, 146, 42, 0.45);
  }
  .btn--primary:active { transform: translateY(0); }

  .btn--outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
  }
  .btn--outline:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.08);
  }
  .btn--outline-navy {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
  }
  .btn--outline-navy:hover {
    background: var(--navy);
    color: var(--white);
  }

  .btn--lg { padding: 1.125rem 2.25rem; font-size: var(--text-base); }
  .btn--full { width: 100%; justify-content: center; }
  .btn--sm { padding: 0.625rem 1.25rem; font-size: var(--text-xs); }
}

/* === NAVIGATION === */
@layer nav {
  .nav {
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    z-index: 1000;
    padding-block: var(--sp-4);
    transition: background var(--dur-300) var(--ease),
                padding var(--dur-300) var(--ease),
                box-shadow var(--dur-300) var(--ease);
  }
  .nav--scrolled {
    background: rgba(15, 26, 48, 0.92);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    padding-block: var(--sp-3);
    box-shadow: 0 1px 0 rgba(255,255,255,0.07),
                0 4px 24px rgba(0,0,0,0.25);
  }
  .nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-8);
  }
  .nav__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }
  .nav__logo-img { height: 36px; width: auto; }
  .nav__logo-text {
    font-family: var(--font-head);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
  }
  .nav__logo-text span { color: var(--amber); }
  .nav__links {
    display: flex;
    align-items: center;
    gap: var(--sp-8);
  }
  .nav__link {
    font-family: var(--font-head);
    font-size: var(--text-sm);
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    transition: color var(--dur-200) var(--ease);
    position: relative;
  }
  .nav__link::after {
    content: '';
    position: absolute;
    inset-block-end: -3px;
    inset-inline-start: 0;
    width: 0;
    height: 2px;
    background: var(--amber);
    transition: width var(--dur-300) var(--ease-out);
  }
  .nav__link:hover { color: var(--white); }
  .nav__link:hover::after { width: 100%; }
  .nav__link--cta {
    background: var(--amber);
    color: var(--white);
    padding: 0.5rem 1.25rem;
    border-radius: var(--r-md);
    font-weight: 600;
  }
  .nav__link--cta::after { display: none; }
  .nav__link--cta:hover {
    background: var(--amber-dark);
    color: var(--white);
  }

  /* Mobile hamburger */
  .nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--sp-2);
    border-radius: var(--r-sm);
  }
  .nav__toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    transition: transform var(--dur-300) var(--ease), opacity var(--dur-200) var(--ease);
    transform-origin: center;
  }
  .nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* === HERO === */
@layer hero {
  .hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    background: var(--navy-dark);
    overflow: hidden;
    padding-block-start: 80px;
  }
  .hero__bg {
    position: absolute;
    inset: 0;
    background:
      linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
    z-index: 0;
  }
  .hero__mesh {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image:
      linear-gradient(rgba(74, 124, 155, 0.08) 1px, transparent 1px),
      linear-gradient(90deg, rgba(74, 124, 155, 0.08) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  }
  .hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 1;
    pointer-events: none;
  }
  .hero__orb--1 {
    width: 600px;
    height: 600px;
    background: rgba(74, 124, 155, 0.2);
    top: -200px;
    right: -100px;
  }
  .hero__orb--2 {
    width: 400px;
    height: 400px;
    background: rgba(212, 146, 42, 0.12);
    bottom: -100px;
    left: 10%;
  }
  .hero__content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-16);
    align-items: center;
    padding-block: var(--sp-16);
  }
  .hero__left { max-width: 620px; }
  .hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    background: rgba(212, 146, 42, 0.15);
    border: 1px solid rgba(212, 146, 42, 0.3);
    color: var(--amber-light);
    font-family: var(--font-head);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: var(--sp-2) var(--sp-4);
    border-radius: var(--r-full);
    margin-block-end: var(--sp-6);
  }
  .hero__badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--amber);
    animation: pulse-dot 2s ease-in-out infinite;
  }
  .hero__title {
    font-family: var(--font-head);
    font-size: var(--text-5xl);
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-block-end: var(--sp-6);
  }
  .hero__title em {
    font-style: normal;
    color: var(--amber);
  }
  .hero__sub {
    font-size: var(--text-lg);
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin-block-end: var(--sp-8);
    max-width: 500px;
  }
  .hero__actions {
    display: flex;
    gap: var(--sp-4);
    flex-wrap: wrap;
  }
  .hero__right {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
  }
  .hero__stat-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--r-lg);
    padding: var(--sp-6);
    backdrop-filter: blur(8px);
    transition: border-color var(--dur-300) var(--ease),
                background var(--dur-300) var(--ease);
  }
  .hero__stat-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(212, 146, 42, 0.3);
  }
  .hero__stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-4);
  }
  .hero__stat-num {
    font-family: var(--font-head);
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--amber);
    letter-spacing: -0.03em;
    line-height: 1;
    display: block;
    margin-block-end: var(--sp-1);
  }
  .hero__stat-label {
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.6);
    line-height: 1.4;
  }
  .hero__scroll-hint {
    position: absolute;
    bottom: var(--sp-8);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-2);
    color: rgba(255,255,255,0.4);
    font-size: var(--text-xs);
    font-family: var(--font-head);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
    animation: scroll-hint 2s ease-in-out infinite;
  }
}

/* === TRUST BAR === */
.trust-bar {
  background: var(--white);
  border-block: 1px solid var(--neutral-100);
  padding-block: var(--sp-6);
  overflow: hidden;
}
.trust-bar__label {
  font-family: var(--font-head);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neutral-400);
  text-align: center;
  margin-block-end: var(--sp-5);
}
.trust-bar__track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.trust-bar__track:hover { animation-play-state: paused; }
.trust-bar__set {
  display: flex;
  align-items: center;
  gap: var(--sp-12);
  padding-inline-end: var(--sp-12);
}
.trust-bar__item {
  font-family: var(--font-head);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--neutral-400);
  white-space: nowrap;
  transition: color var(--dur-200) var(--ease);
  letter-spacing: 0.02em;
}
.trust-bar__item:hover { color: var(--navy); }
.trust-bar__sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--neutral-200);
  flex-shrink: 0;
  display: inline-block;
}

/* === METRICS STRIP === */
.metrics {
  background: var(--navy);
  padding-block: var(--sp-16);
}
.metrics__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-8);
  text-align: center;
}
.metric__num {
  font-family: var(--font-head);
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--amber);
  letter-spacing: -0.03em;
  line-height: 1;
  display: block;
  margin-block-end: var(--sp-2);
}
.metric__label {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  line-height: 1.4;
}
.metric__divider {
  width: 1px;
  background: rgba(255,255,255,0.1);
  margin-inline: auto;
}

/* === PROBLEM SECTION === */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  margin-block-start: var(--sp-12);
}
.problem-card {
  background: var(--white);
  border: 1px solid var(--neutral-100);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  position: relative;
  overflow: hidden;
  transition: border-color var(--dur-300) var(--ease),
              box-shadow var(--dur-300) var(--ease),
              transform var(--dur-300) var(--ease-spring);
}
.problem-card::before {
  content: '';
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-300) var(--ease-out);
}
.problem-card:hover {
  border-color: var(--neutral-200);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.problem-card:hover::before { transform: scaleX(1); }
.problem-card__num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--amber);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-block-end: var(--sp-4);
}
.problem-card__icon {
  width: 48px;
  height: 48px;
  background: rgba(27, 42, 74, 0.06);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-block-end: var(--sp-5);
  color: var(--navy);
}
.problem-card__title {
  font-family: var(--font-head);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--neutral-900);
  margin-block-end: var(--sp-4);
  letter-spacing: -0.01em;
}
.problem-card__text {
  font-size: var(--text-base);
  color: var(--neutral-500);
  line-height: 1.7;
}

/* === SERVICES === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}
.service-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  transition: background var(--dur-300) var(--ease),
              border-color var(--dur-300) var(--ease),
              transform var(--dur-300) var(--ease-spring);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--amber), var(--steel));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-400) var(--ease-out);
}
.service-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-4px);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card--featured {
  background: rgba(212, 146, 42, 0.08);
  border-color: rgba(212, 146, 42, 0.25);
}
.service-card--featured::before {
  background: var(--amber);
}
.service-card__num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.1em;
}
.service-card__title {
  font-family: var(--font-head);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.service-card__sub {
  font-size: var(--text-sm);
  color: var(--amber-light);
  font-weight: 500;
}
.service-card__text {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  flex: 1;
}
.service-card__outcome {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  border-block-start: 1px solid rgba(255,255,255,0.08);
  padding-block-start: var(--sp-5);
  line-height: 1.6;
}
.service-card__outcome strong { color: var(--white); }
.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.service-card__tag {
  font-size: var(--text-xs);
  font-weight: 500;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-full);
  letter-spacing: 0.02em;
}

/* === PROCESS === */
.process-track {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: var(--sp-4);
  align-items: start;
  margin-block-start: var(--sp-12);
}
.process-step { text-align: center; }
.process-step__bubble {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-block-end: var(--sp-5);
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--amber);
  transition: all var(--dur-300) var(--ease-spring);
  position: relative;
  z-index: 1;
}
.process-step:hover .process-step__bubble {
  background: var(--amber);
  color: var(--white);
  transform: scale(1.1);
  box-shadow: 0 0 0 8px rgba(212, 146, 42, 0.15);
}
.process-connector {
  display: flex;
  align-items: flex-start;
  padding-block-start: 35px;
}
.process-connector__line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--amber), rgba(212, 146, 42, 0.3));
  position: relative;
}
.process-connector__arrow {
  width: 8px;
  height: 8px;
  border-top: 2px solid rgba(212, 146, 42, 0.3);
  border-right: 2px solid rgba(212, 146, 42, 0.3);
  transform: rotate(45deg) translateX(-3px);
}
.process-step__duration {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--amber);
  letter-spacing: 0.05em;
  margin-block-end: var(--sp-3);
}
.process-step__title {
  font-family: var(--font-head);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--neutral-900);
  margin-block-end: var(--sp-3);
}
.process-step__text {
  font-size: var(--text-sm);
  color: var(--neutral-500);
  line-height: 1.7;
  max-width: 280px;
  margin-inline: auto;
}

/* === CASE STUDIES === */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
}
.case-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--dur-300) var(--ease),
              box-shadow var(--dur-300) var(--ease);
}
.case-card:hover { border-color: rgba(212, 146, 42, 0.3); }
.case-card__header {
  padding: var(--sp-8) var(--sp-8) var(--sp-5);
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
}
.case-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: rgba(212, 146, 42, 0.12);
  border: 1px solid rgba(212, 146, 42, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--amber);
}
.case-card__meta { flex: 1; }
.case-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-block-end: var(--sp-3);
}
.case-card__tag {
  font-size: var(--text-xs);
  font-weight: 600;
  background: rgba(74, 124, 155, 0.15);
  color: var(--steel-light);
  padding: 2px var(--sp-3);
  border-radius: var(--r-full);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.case-card__title {
  font-family: var(--font-head);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.case-card__metrics {
  display: flex;
  gap: var(--sp-6);
  padding: var(--sp-4) var(--sp-8);
  border-block: 1px solid rgba(255,255,255,0.06);
}
.case-metric__val {
  font-family: var(--font-head);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--amber);
  display: block;
  line-height: 1;
  margin-block-end: 2px;
}
.case-metric__key {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
}
.case-card__body {
  padding: var(--sp-6) var(--sp-8) var(--sp-8);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
}
.case-block__label {
  font-family: var(--font-head);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel-light);
  margin-block-end: var(--sp-2);
}
.case-block__text {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}
/* Wide (3-col) variant for the full-width AstraZeneca card */
.case-card__body--wide { grid-template-columns: 1fr 1fr 1fr; }
.case-card__result--inline { grid-column: auto; }

.case-card__result {
  grid-column: 1 / -1;
  background: rgba(212, 146, 42, 0.08);
  border: 1px solid rgba(212, 146, 42, 0.15);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
}
.case-card__result .case-block__label { color: var(--amber-light); }
.case-card__result .case-block__text {
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

/* === DIFFERENTIATOR TABLE === */
.diff-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}
.diff-copy .section-title { max-width: 400px; }
.diff-copy p {
  color: var(--neutral-500);
  line-height: 1.7;
  margin-block-end: var(--sp-6);
}
.diff-table-wrap { overflow-x: auto; }
.diff-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.diff-table th,
.diff-table td {
  padding: var(--sp-4) var(--sp-5);
  text-align: left;
  border-block-end: 1px solid var(--neutral-100);
}
.diff-table thead th {
  font-family: var(--font-head);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neutral-500);
  padding-block: var(--sp-3);
}
.diff-table thead th:first-child { color: transparent; }
.diff-table th.col-linlex {
  color: var(--amber);
  background: rgba(212, 146, 42, 0.06);
  border-radius: var(--r-sm) var(--r-sm) 0 0;
}
.diff-table td { color: var(--neutral-700); }
.diff-table td:first-child {
  font-weight: 600;
  color: var(--neutral-900);
  white-space: nowrap;
}
.diff-table td.col-linlex {
  background: rgba(212, 146, 42, 0.04);
  color: var(--navy);
  font-weight: 600;
}
.diff-table tr:last-child td { border-block-end: none; }

/* === HOW WE WORK === */
.model-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}
.model-features {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  margin-block-start: var(--sp-8);
}
.model-feature {
  display: flex;
  gap: var(--sp-5);
  align-items: flex-start;
}
.model-feature__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: rgba(212, 146, 42, 0.12);
  border: 1px solid rgba(212, 146, 42, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--amber);
}
.model-feature__title {
  font-family: var(--font-head);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--white);
  margin-block-end: var(--sp-1);
}
.model-feature__text {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}
.model-visual {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
}
.model-visual__title {
  font-family: var(--font-head);
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  margin-block-end: var(--sp-8);
}
.model-tiers {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.model-tier {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
}
.model-tier--primary {
  background: rgba(212, 146, 42, 0.10);
  border-color: rgba(212, 146, 42, 0.25);
}
.model-tier__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}
.model-tier--primary .model-tier__dot { background: var(--amber); }
.model-tier__name {
  font-family: var(--font-head);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--white);
}
.model-tier__desc {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.45);
  margin-inline-start: auto;
}

/* === TEAM LAYOUT (CSS classes replacing inline grid styles) === */
.team-metrics-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  overflow: hidden;
  margin-block-end: 4rem;
}
.team-metric-cell {
  background: var(--navy);
  padding: 1.75rem 1.25rem;
  text-align: center;
}
.team-metric-cell--amber { background: rgba(212,146,42,0.10); }
.team-metric-val {
  font-family: var(--font-head);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--amber);
  display: block;
  line-height: 1;
  margin-block-end: 0.5rem;
}
.team-metric-label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
}
.team-body {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: start;
  margin-block-end: 4rem;
}

/* === TEAM (legacy classes kept for CSS specificity) === */
.founder-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--sp-16);
  align-items: start;
}
.founder-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-xl);
  overflow: hidden;
  position: sticky;
  top: 100px;
}
.founder-photo {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--navy-light) 0%, var(--steel-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.founder-photo__initials {
  font-family: var(--font-head);
  font-size: 5rem;
  font-weight: 700;
  color: rgba(255,255,255,0.2);
  letter-spacing: -0.05em;
}
.founder-photo__badge {
  position: absolute;
  bottom: var(--sp-4);
  left: var(--sp-4);
  background: var(--amber);
  color: var(--white);
  font-family: var(--font-head);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-md);
  letter-spacing: 0.02em;
}
.founder-card__body { padding: var(--sp-6); }
.founder-card__name {
  font-family: var(--font-head);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}
.founder-card__role {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  margin-block-end: var(--sp-5);
}
.founder-creds {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.founder-cred {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
}
.founder-cred__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}
.founder-bio { display: flex; flex-direction: column; gap: var(--sp-6); }
.founder-bio p {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
}
.founder-bio p:first-child {
  font-size: var(--text-xl);
  color: var(--white);
  font-weight: 500;
}
.founder-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  padding: var(--sp-6);
  background: rgba(212, 146, 42, 0.07);
  border: 1px solid rgba(212, 146, 42, 0.15);
  border-radius: var(--r-lg);
}
.founder-metric__val {
  font-family: var(--font-head);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--amber);
  letter-spacing: -0.02em;
  display: block;
}
.founder-metric__label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
}

/* === RESOURCES === */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
}
.resource-card {
  background: var(--white);
  border: 1px solid var(--neutral-100);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  transition: all var(--dur-300) var(--ease-spring);
  position: relative;
  overflow: hidden;
}
.resource-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27,42,74,0.02), transparent);
  pointer-events: none;
}
.resource-card:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.resource-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: rgba(27, 42, 74, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}
.resource-card__type {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--steel);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.resource-card__title {
  font-family: var(--font-head);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--neutral-900);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.resource-card__text {
  font-size: var(--text-sm);
  color: var(--neutral-500);
  line-height: 1.6;
  flex: 1;
}
.resource-card__action {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-head);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--navy);
  transition: gap var(--dur-200) var(--ease);
}
.resource-card:hover .resource-card__action { gap: var(--sp-3); }
.resource-card__action svg { transition: transform var(--dur-200) var(--ease); }
.resource-card:hover .resource-card__action svg { transform: translateX(3px); }

/* === GUARANTEE === */
.guarantee {
  text-align: center;
  max-width: 740px;
  margin-inline: auto;
}
.guarantee__title {
  font-family: var(--font-head);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-block-end: var(--sp-6);
}
.guarantee__title span { color: var(--amber); }
.guarantee__text {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-block-end: var(--sp-8);
}
.guarantee__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  text-align: left;
  margin-block-end: var(--sp-10);
}
.guarantee__item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}
.guarantee__check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(212, 146, 42, 0.15);
  border: 1px solid rgba(212, 146, 42, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--amber);
  margin-block-start: 1px;
}
.guarantee__footnote {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.4);
  margin-block-start: var(--sp-6);
}

/* === HEALTH CHECK === */
.healthcheck-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: start;
}
.hc-intro { position: sticky; top: 100px; }
.hc-intro__list {
  margin-block: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.hc-intro__item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--text-base);
  color: var(--neutral-700);
}
.hc-intro__item::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}
.hc-intro__scarcity {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--neutral-500);
  background: var(--neutral-100);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-full);
  margin-block-start: var(--sp-6);
}
.hc-intro__scarcity::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  animation: pulse-dot 2s infinite;
}

.quiz-shell {
  background: var(--white);
  border: 1px solid var(--neutral-100);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.quiz-shell__header {
  background: var(--navy);
  padding: var(--sp-5) var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.quiz-shell__title {
  font-family: var(--font-head);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--white);
}
.quiz-counter {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
}
.quiz-progress {
  height: 3px;
  background: var(--neutral-100);
}
.quiz-progress__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--amber), var(--amber-light));
  transition: width var(--dur-500) var(--ease-out);
  width: 0%;
}
.quiz-body { padding: var(--sp-8); }
.quiz-q { display: none; }
.quiz-q.active { display: block; }
.quiz-q__text {
  font-family: var(--font-head);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--neutral-900);
  line-height: 1.4;
  margin-block-end: var(--sp-6);
}
.quiz-options { display: flex; flex-direction: column; gap: var(--sp-3); }
.quiz-opt {
  display: block;
  width: 100%;
  text-align: left;
  padding: var(--sp-4) var(--sp-5);
  border: 1.5px solid var(--neutral-100);
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  color: var(--neutral-700);
  background: var(--white);
  transition: all var(--dur-200) var(--ease);
  line-height: 1.5;
  cursor: pointer;
}
.quiz-opt:hover {
  border-color: var(--amber);
  background: rgba(212, 146, 42, 0.04);
  color: var(--neutral-900);
  transform: translateX(4px);
}
.quiz-capture { display: none; padding: var(--sp-8); }
.quiz-capture__title {
  font-family: var(--font-head);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--neutral-900);
  margin-block-end: var(--sp-2);
}
.quiz-capture__text {
  font-size: var(--text-sm);
  color: var(--neutral-500);
  line-height: 1.6;
  margin-block-end: var(--sp-6);
}
.quiz-result { display: none; padding: var(--sp-8); }
.quiz-result__score {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-block-end: var(--sp-3);
}
.quiz-result__label {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--neutral-900);
  margin-block-end: var(--sp-4);
}
.quiz-result__text {
  font-size: var(--text-base);
  color: var(--neutral-500);
  line-height: 1.7;
  margin-block-end: var(--sp-6);
}
.quiz-result__cta { display: flex; gap: var(--sp-4); flex-wrap: wrap; }
.quiz-retake {
  font-size: var(--text-xs);
  color: var(--neutral-400);
  margin-block-start: var(--sp-4);
  display: block;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
}

/* === FAQ === */
.faq-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.faq-item {
  background: var(--white);
  border: 1px solid var(--neutral-100);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--dur-200) var(--ease);
}
.faq-item.open { border-color: var(--neutral-200); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-6);
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}
.faq-q__text {
  font-family: var(--font-head);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--neutral-900);
  line-height: 1.4;
}
.faq-q__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--neutral-200);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--dur-300) var(--ease);
  color: var(--neutral-500);
}
.faq-item.open .faq-q__icon {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  transform: rotate(45deg);
}
.faq-a {
  height: 0;
  overflow: hidden;
  transition: height var(--dur-300) var(--ease-out);
}
.faq-a__inner {
  padding: 0 var(--sp-6) var(--sp-6);
  font-size: var(--text-base);
  color: var(--neutral-500);
  line-height: 1.7;
}
.faq-a__inner a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.faq-a__inner a:hover { color: var(--amber); }

/* === CONTACT === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--sp-16);
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: var(--sp-8); }
.contact-info p {
  font-size: var(--text-lg);
  color: var(--neutral-500);
  line-height: 1.7;
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  font-size: var(--text-base);
  color: var(--neutral-700);
}
.contact-detail__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: rgba(27,42,74,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--navy);
}
.contact-detail a { color: var(--navy); font-weight: 500; }
.contact-detail a:hover { color: var(--amber); }
.contact-form {
  background: var(--white);
  border: 1px solid var(--neutral-100);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  box-shadow: var(--shadow-sm);
}
.form-group { display: flex; flex-direction: column; gap: var(--sp-2); margin-block-end: var(--sp-5); }
.form-group:last-of-type { margin-block-end: 0; }
.form-label {
  font-family: var(--font-head);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--neutral-700);
}
.form-input,
.form-textarea {
  padding: var(--sp-3) var(--sp-4);
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--neutral-900);
  background: var(--white);
  transition: border-color var(--dur-200) var(--ease),
              box-shadow var(--dur-200) var(--ease);
  width: 100%;
}
.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27,42,74,0.08);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-submit { margin-block-start: var(--sp-6); }

/* Contact form two-column name/org row */
.contact-name-org {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* === FOOTER === */
.footer {
  background: var(--navy-dark);
  color: var(--white);
  padding-block: var(--sp-16) var(--sp-8);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--sp-8);
  margin-block-end: var(--sp-12);
  padding-block-end: var(--sp-12);
  border-block-end: 1px solid rgba(255,255,255,0.08);
}
.footer__brand-logo img { height: 32px; width: auto; margin-block-end: var(--sp-4); }
.footer__tagline {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin-block-end: var(--sp-5);
}
.footer__social {
  display: flex;
  gap: var(--sp-3);
}
.footer__social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: all var(--dur-200) var(--ease);
}
.footer__social-link:hover {
  border-color: rgba(255,255,255,0.3);
  color: var(--white);
  background: rgba(255,255,255,0.06);
}
.footer__col-title {
  font-family: var(--font-head);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-block-end: var(--sp-5);
}
.footer__links { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer__link {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  transition: color var(--dur-200) var(--ease);
}
.footer__link:hover { color: var(--white); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.footer__legal {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
}
.footer__legal a { color: rgba(255,255,255,0.5); text-decoration: underline; }
.footer__legal a:hover { color: var(--white); }

/* === SCROLL REVEAL === */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-700) var(--ease-out),
              transform var(--dur-700) var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--delay-1 { transition-delay: 100ms; }
.reveal--delay-2 { transition-delay: 200ms; }
.reveal--delay-3 { transition-delay: 300ms; }
.reveal--delay-4 { transition-delay: 400ms; }
.reveal--from-left {
  transform: translateX(-24px);
}
.reveal--from-left.visible { transform: translateX(0); }
.reveal--from-right {
  transform: translateX(24px);
}
.reveal--from-right.visible { transform: translateX(0); }

/* === KEYFRAMES === */
@layer animations {
  @keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }
  @keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
  }
  @keyframes scroll-hint {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.5); opacity: 0.4; }
  }
  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
  }
}

/* === UTILITIES === */
@layer utilities {
  .hidden { display: none !important; }
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
  }
  .text-amber { color: var(--amber); }
  .text-steel { color: var(--steel-light); }
  .link {
    color: var(--navy);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--dur-200) var(--ease);
  }
  .link:hover { color: var(--amber); }
  .link--light {
    color: rgba(255,255,255,0.7);
    text-decoration: underline;
  }
  .link--light:hover { color: var(--white); }
}

/* === RESPONSIVE ===
   Plain media queries — NOT wrapped in @layer.
   Component styles above are unlayered, so layered rules can't override them.
   Source order (later = wins) does the job here instead.
*/

  /* ── Tablet wide (1100px) ── */
  @media (max-width: 1100px) {
    .hero__content { grid-template-columns: 1fr; }
    .hero__right { display: none; }
    .diff-wrap { grid-template-columns: 1fr; }
    .model-grid { grid-template-columns: 1fr; }
    .model-visual { display: none; }
    .founder-grid { grid-template-columns: 1fr; }
    .founder-card { position: static; }
    /* Team body collapses earlier on landscape tablet */
    .team-body { grid-template-columns: 1fr; gap: 2.5rem; }
    .team-metrics-strip { grid-template-columns: repeat(3, 1fr); }
  }

  /* ── Tablet narrow / large mobile (900px) ── */
  @media (max-width: 900px) {
    .proof-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .metrics__grid { grid-template-columns: repeat(2, 1fr); }
    .problem-grid { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .guarantee__list { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .healthcheck-wrap { grid-template-columns: 1fr; }
    .hc-intro { position: static; }
    .process-track { grid-template-columns: 1fr; }
    .process-connector { display: none; }
    /* resources-grid already 2-col on desktop; nothing to change at 900px */
    /* Case study wide body */
    .case-card__body--wide { grid-template-columns: 1fr 1fr; }
    .case-card__result--inline { grid-column: 1 / -1; }
    /* Case card metrics: allow flex-wrap on narrow viewport */
    .case-card__metrics { flex-wrap: wrap; gap: var(--sp-4); }
  }

  /* ── Mobile (640px) ── */
  @media (max-width: 640px) {
    /* Sections */
    .section { padding-block: var(--sp-16); }

    /* Nav */
    .nav__links { display: none; flex-direction: column; }
    .nav__links.open {
      display: flex;
      position: fixed;
      inset: 0;
      background: var(--navy-dark);
      align-items: center;
      justify-content: center;
      gap: var(--sp-8);
      z-index: 999;
    }
    .nav__link { font-size: var(--text-xl); color: var(--white); }
    .nav__link--cta { padding: 0.875rem 2rem; }
    .nav__toggle { display: flex; z-index: 1001; position: relative; }

    /* Hero */
    .hero__title { font-size: var(--text-4xl); }
    .hero__actions {
      flex-direction: column;
      align-items: stretch;
    }
    .hero__actions .btn { width: 100%; justify-content: center; text-align: center; }

    /* Metrics strip */
    .metrics__grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }
    .metric__num { font-size: var(--text-4xl); }

    /* Team */
    .team-metrics-strip { grid-template-columns: repeat(2, 1fr); }
    .team-metric-cell { padding: 1.25rem 0.875rem; }
    .team-metric-val { font-size: 1.75rem; }
    .team-body { gap: 2rem; }

    /* Case studies */
    .case-card__body { grid-template-columns: 1fr; }
    .case-card__body--wide { grid-template-columns: 1fr; }
    .case-card__result--inline { grid-column: 1 / -1; }
    .case-card__header { flex-direction: column; gap: var(--sp-3); }
    .case-card__metrics { flex-direction: column; gap: var(--sp-4); }

    /* Differentiator table — hide Big Consultancy + Bodyshop cols, keep label + LinLex */
    .diff-table th:nth-child(2),
    .diff-table td:nth-child(2),
    .diff-table th:nth-child(3),
    .diff-table td:nth-child(3) { display: none; }
    .diff-table { min-width: unset; width: 100%; }
    .diff-table-wrap { overflow: visible; }
    .diff-table td:first-child { white-space: normal; }
    .diff-table th.col-linlex,
    .diff-table td.col-linlex { font-size: var(--text-sm); padding: var(--sp-3) var(--sp-4); }

    /* Guarantee */
    .guarantee__title { font-size: var(--text-3xl); }

    /* Contact form */
    .contact-name-org { grid-template-columns: 1fr; }
    .contact-form { padding: var(--sp-6); }

    /* Footer */
    .footer__grid { grid-template-columns: 1fr; }
    .footer { padding-block: var(--sp-12) var(--sp-6); }

    /* Resources */
    .resources-grid { grid-template-columns: 1fr; }

    /* Legacy */
    .founder-metrics { grid-template-columns: 1fr; }

    /* Process — single-column, centred bubbles */
    .process-step__text { max-width: 100%; }
    .process-step__bubble { width: 60px; height: 60px; font-size: var(--text-base); }

    /* Quiz */
    .quiz-body { padding: var(--sp-6); }
    .quiz-capture,
    .quiz-result { padding: var(--sp-6); }
  }

  /* ── Small mobile (400px) ── */
  @media (max-width: 400px) {
    .hero__badge {
      font-size: 0.6rem;
      letter-spacing: 0.04em;
      padding: var(--sp-2) var(--sp-3);
    }
    .hero__title { font-size: var(--text-3xl); }
    .section-title { font-size: var(--text-2xl); }
    .team-metrics-strip { grid-template-columns: 1fr 1fr; }
    .team-metric-val { font-size: 1.5rem; }
    .service-card { padding: var(--sp-6); }
    .problem-card { padding: var(--sp-6); }
  }

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .trust-bar__track { animation: none; }
}
