/* ==========================================================================
   Nolla Nolla — Managed Intelligence Provider
   Swiss editorial / engineering-manual aesthetic.
   Vanilla CSS, Grid + Flexbox, no frameworks.
   ========================================================================== */

:root {
  /* Approved palette */
  --color-blue-slate: #495867;
  --color-glaucous: #577399;
  --color-pale-sky: #bdd5ea;
  --color-ghost-white: #f7f7ff;
  --color-vibrant-coral: #fe5f55;

  /* Roles */
  --color-background: var(--color-ghost-white);
  --color-surface: #ffffff;
  --color-surface-soft: var(--color-pale-sky);
  --color-text: var(--color-blue-slate);
  --color-text-muted: var(--color-glaucous);
  --color-text-faint: #6a7682;
  --color-text-fainter: #8a95a3;
  --color-border: rgba(73, 88, 103, 0.22);
  --color-border-soft: rgba(73, 88, 103, 0.18);
  --color-on-sky: #3a4651;

  /* Accent — locked to Coral */
  --accent: var(--color-vibrant-coral);
  --accent-hover: #e64f46;

  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 66px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img { max-width: 100%; display: block; }

::selection { background: var(--accent); color: var(--color-ghost-white); }

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

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { border: 0; }
.section-bordered { border-top: 1px solid var(--color-border); }
.section .container,
.section-bordered .container {
  padding-top: clamp(56px, 8vw, 112px);
  padding-bottom: clamp(56px, 8vw, 112px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  padding: 15px 30px;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--color-ghost-white);
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-outline {
  background: transparent;
  color: var(--color-blue-slate);
  border: 1px solid var(--color-blue-slate);
}
.btn-outline:hover {
  background: var(--color-blue-slate);
  color: var(--color-ghost-white);
}

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 247, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--color-blue-slate);
  white-space: nowrap;
}
.wordmark .slash { color: var(--accent); }
.wordmark-lg { font-size: 22px; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 32px);
}

.nav-link {
  font-size: 15px;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color .2s ease;
}
.nav-link:hover { color: var(--color-blue-slate); }

.nav-cta {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--color-ghost-white);
  background: var(--accent);
  padding: 9px 18px;
  transition: background .2s ease;
}
.nav-cta:hover { background: var(--accent-hover); }

/* Hamburger — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-blue-slate);
  transition: transform .2s ease, opacity .2s ease;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(44px, 7vw, 96px) var(--gutter) clamp(56px, 8vw, 104px);
}
.hero-inner {
  margin-top: clamp(40px, 6vw, 72px);
  max-width: 760px;
}

.hero-title {
  font-size: clamp(40px, 6.4vw, 84px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.0;
  max-width: 15ch;
  color: var(--color-blue-slate);
}

.hero-lead {
  margin-top: clamp(28px, 4vw, 40px);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--color-blue-slate);
  max-width: 58ch;
}

.hero-sub {
  margin-top: 18px;
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: clamp(32px, 4vw, 44px);
}

/* ==========================================================================
   What is a MIP — Pale Sky band
   ========================================================================== */
.band-sky { background: var(--color-pale-sky); }
.band-sky .container {
  padding-top: clamp(56px, 8vw, 104px);
  padding-bottom: clamp(56px, 8vw, 104px);
}

.what-title {
  margin-bottom: clamp(28px, 4vw, 48px);
  font-size: clamp(26px, 3.4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.06;
  color: var(--color-on-sky);
  max-width: 20ch;
}
.what-grid {
  display: flex;
  gap: clamp(40px, 6vw, 80px);
  flex-wrap: wrap;
}
.what-lead {
  flex: 1 1 380px;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.55;
  color: var(--color-on-sky);
  max-width: 52ch;
}
.what-sub {
  flex: 1 1 380px;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.65;
  color: var(--color-on-sky);
  opacity: 0.85;
  max-width: 52ch;
}

/* ==========================================================================
   Section titles (shared)
   ========================================================================== */
.section-title {
  margin-bottom: clamp(28px, 4vw, 52px);
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.04;
  color: var(--color-blue-slate);
}
.section-title--tight { margin-bottom: clamp(24px, 3vw, 40px); }

/* ==========================================================================
   Services — cards
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
}
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  padding: clamp(26px, 2.6vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .2s ease, background .2s ease;
}
.card:hover {
  border-color: var(--accent);
  background: #fbfdff;
}
.card-title {
  font-size: clamp(20px, 1.9vw, 23px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--color-blue-slate);
}
.card-lead {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-text-muted);
}
.card-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-faint);
}

/* ==========================================================================
   Models & platforms
   ========================================================================== */
.models-intro {
  display: flex;
  gap: clamp(36px, 5vw, 72px);
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.pull-quote {
  flex: 1 1 340px;
  border-left: 3px solid var(--accent);
  padding-left: 22px;
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--color-blue-slate);
  max-width: 22ch;
}
.models-copy {
  flex: 1 1 340px;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.65;
  color: var(--color-text-muted);
  max-width: 54ch;
}

.grid-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 14px;
}
.grid-label + .chip-grid { margin-bottom: clamp(32px, 4vw, 48px); }
.chip-grid + .grid-label { margin-top: 0; }

.chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(10px, 1.2vw, 14px);
}
.chip {
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  padding: 18px 20px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-blue-slate);
}

/* ==========================================================================
   Process
   ========================================================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
}
.step {
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  padding: clamp(26px, 2.6vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.step-num {
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text-muted);
  line-height: 1;
}
.step-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-blue-slate);
}
.step-body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text-faint);
}

/* ==========================================================================
   Contact CTA — Blue Slate band
   ========================================================================== */
.band-slate {
  background: var(--color-blue-slate);
  color: var(--color-ghost-white);
}
.band-slate .container {
  padding-top: clamp(72px, 11vw, 144px);
  padding-bottom: clamp(72px, 11vw, 144px);
}
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(247, 247, 255, 0.65);
  margin-bottom: clamp(24px, 3vw, 40px);
}
.contact-title {
  font-size: clamp(36px, 6vw, 76px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.02;
  max-width: 15ch;
}
.contact-copy {
  margin-top: clamp(24px, 3vw, 36px);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: rgba(247, 247, 255, 0.78);
  max-width: 50ch;
}
.contact-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: clamp(32px, 4vw, 48px);
}
.contact-email {
  font-size: 15px;
  color: rgba(247, 247, 255, 0.9);
  text-decoration: none;
  border-bottom: 1px solid rgba(247, 247, 255, 0.4);
  padding-bottom: 3px;
  transition: color .2s ease, border-color .2s ease;
}
.contact-email:hover {
  color: var(--color-ghost-white);
  border-color: var(--color-ghost-white);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-ghost-white);
}
.footer-inner {
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: clamp(28px, 4vw, 40px);
  display: flex;
  gap: clamp(32px, 6vw, 80px);
  flex-wrap: wrap;
  justify-content: space-between;
}
.footer-brand { flex: 1 1 280px; min-width: 240px; }
.footer-tag {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 8px;
}
.footer-loc {
  font-size: 13px;
  color: var(--color-text-faint);
  margin-top: 4px;
}
.footer-cols {
  flex: 0 1 auto;
  display: flex;
  gap: clamp(32px, 5vw, 72px);
  flex-wrap: wrap;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-heading {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}
.footer-link {
  font-size: 15px;
  color: var(--color-blue-slate);
  text-decoration: none;
  transition: color .2s ease;
}
.footer-link:hover { color: var(--accent); }
.footer-text { font-size: 15px; color: var(--color-text-faint); }
.footer-note { font-size: 12px; color: var(--color-text-fainter); }

.footer-base {
  padding-bottom: clamp(28px, 4vw, 48px);
  font-size: 13px;
  color: var(--color-text-muted);
}
.footer-base .slash { color: var(--accent); }

/* ==========================================================================
   Reveal-on-scroll (progressive enhancement; JS adds .is-visible)
   ========================================================================== */
.js [data-fade] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s ease;
}
.js [data-fade].is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Responsive — mobile nav
   ========================================================================== */
@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-ghost-white);
    border-bottom: 1px solid var(--color-border);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav-menu.is-open { display: flex; }

  .nav-link {
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border-soft);
    font-size: 17px;
  }
  .nav-cta {
    margin-top: 16px;
    text-align: center;
    justify-content: center;
    padding: 14px 18px;
    font-size: 15px;
  }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
  .js [data-fade] {
    opacity: 1;
    transform: none;
  }
}
