/* Millit — petrol & powder-blue palette, tied to the logo mark */

:root {
  --petrol: #0e2d38;
  --ink: #0a1a21;
  --accent: #54c3d6;
  --brand: #14808f;
  --rule: #e0a33c;
  --footer-bg: #0a171c;
  --text: #1c2a30;
  --muted: #5c6b72;
  --line: #e2e8ea;
  --max: 1024px;
  --pad: clamp(28px, 6vw, 40px);
}

.hero .eyebrow {
  color: var(--accent);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body,
html {
  overflow-x: hidden;
  overflow-x: clip;
}

main {
  flex: 1;
}

footer {
  margin-top: auto;
}

::selection {
  background: var(--accent);
  color: var(--ink);
}
::-moz-selection {
  background: var(--accent);
  color: var(--ink);
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

a:focus-visible,
.pill:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

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

h1,
h2,
h3,
h4 {
  font-family: 'Inter', sans-serif;
  margin: 0;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.08;
}

h3 {
  font-size: 20px;
}

p {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.55;
  margin: 0;
  max-width: 760px;
}

@media screen and (min-width: 500px) {
  h3 {
    font-size: 24px;
  }
  p {
    font-size: 21px;
  }
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

hr.rule {
  margin: 0 0 22px;
  border: none;
  width: 56px;
  height: 4px;
  border-radius: 999px;
  background: var(--rule);
  display: block;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Pill button (fill-sweep) ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  background-image: linear-gradient(90deg, var(--accent) 0 50%, #fff 50% 100%);
  background-size: 200% 100%;
  background-position: 100% 0;
  transition: background-position 0.45s ease;
}

.pill .arrow {
  transition: transform 0.3s ease;
}

.pill:hover,
.pill:active {
  background-position: 0 0;
}

.pill:hover .arrow,
.pill:focus-visible .arrow {
  transform: translateX(4px);
}

/* ---------- Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 45, 56, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}

.nav-logo img {
  width: 122px;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.nav-links a:hover {
  color: #fff;
  border-bottom-color: #fff;
}

@media screen and (max-width: 620px) {
  .nav-links {
    gap: 18px;
  }
  .nav-links a {
    font-size: 13px;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--petrol);
  color: #fff;
  padding: clamp(72px, 11vw, 116px) 0 clamp(84px, 12vw, 124px);
}

.hero h1 {
  color: #fff;
  font-size: clamp(44px, 11vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 800;
  max-width: 14ch;
}

.hero .lead {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 300;
  max-width: 620px;
}

.hero-cta {
  margin-top: 40px;
}

.error-page {
  display: flex;
  align-items: center;
  min-height: 100vh;
}

/* ---------- Section base ---------- */
.section {
  padding: clamp(70px, 10vw, 120px) 0;
  scroll-margin-top: 84px;
}

.section.alt {
  background: #f4f8f9;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section h2 + .body {
  margin-top: 28px;
}

.section-intro {
  margin-top: 24px;
  max-width: 640px;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 300;
  line-height: 1.5;
  color: var(--muted);
}

.body p + p {
  margin-top: 20px;
}

.body p {
  color: var(--text);
}

/* ---------- Services grid ---------- */
.grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.card {
  background: #fff;
  padding: 36px clamp(24px, 4vw, 40px);
}

.card h3 {
  margin-bottom: 12px;
  font-size: clamp(22px, 2.2vw, 26px);
}

.card p {
  font-size: 17px;
  color: var(--muted);
  max-width: 100%;
}

@media screen and (min-width: 720px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Uppdrag / engagements ---------- */
.engagements {
  margin-top: 48px;
  border-top: 1px solid var(--line);
}

.eng {
  display: grid;
  grid-template-columns: 1fr;
  align-items: baseline;
  gap: 4px 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

@media screen and (min-width: 620px) {
  .eng {
    grid-template-columns: 1fr 220px;
  }
}

.eng .eng-client {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.eng .eng-role {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ---------- Tech marquee ---------- */
.marquee {
  margin-top: 64px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 12%,
    #000 88%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 12%,
    #000 88%,
    transparent 100%
  );
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track {
  animation-play-state: paused;
}

.marquee-track span {
  padding: 0 26px;
  font-size: clamp(18px, 2.4vw, 30px);
  font-weight: 600;
  color: #aec0c6;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .marquee-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
  }
  .marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .pill {
    transition: none;
  }
}

/* ---------- Contact ---------- */
.contact {
  background: var(--petrol);
  color: #fff;
}

.contact h2 {
  color: #fff;
  font-size: clamp(40px, 8vw, 76px);
}

.contact .lead {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 300;
  max-width: 540px;
}

.contact-cta {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 32px;
}

.contact-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
}

.contact-secondary a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 1px;
  transition: border-color 0.15s ease;
}

.contact-secondary a:hover {
  border-bottom-color: #fff;
}

.contact-secondary .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: #8b9298;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 44px 0;
}

.footer-logo img {
  width: 110px;
  opacity: 0.55;
  transition: opacity 0.2s ease;
}

.footer-logo:hover img {
  opacity: 0.85;
}

.footer-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: clamp(14px, 2.2vw, 16px);
}

.footer-info a {
  color: #aeb4ba;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-info a:hover {
  color: #fff;
}

.footer-info .sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #44474c;
}

.footer-info .copy {
  color: #828990;
}

@media screen and (max-width: 620px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
}
