@font-face {
  font-family: Inter;
  src: url("/fonts/inter-latin-v4.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Unbounded;
  src: url("/fonts/unbounded-latin-v9.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #070b12;
  --bg-elev: #101722;
  --bg-card: #121a26;
  --ink: #eef2f7;
  --muted: #9aa3b2;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #2ad4c9;
  --accent-hover: #5ee8de;
  --accent-ink: #061014;
  --accent-soft: rgba(42, 212, 201, 0.14);
  --glow: rgba(42, 212, 201, 0.28);
  --focus: #2ad4c9;
  --tile: #ffffff;
  --max: 70rem;
  --header: 4.35rem;
  --display: Unbounded, Inter, "Liberation Sans", "Segoe UI", system-ui, sans-serif;
  --radius: 0.85rem;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

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

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

@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;
  }
  .hero-bg video,
  .hero-video { display: none !important; }
  .hero-content { animation: none; }
}

body {
  margin: 0;
  font-family: Inter, "Liberation Sans", "Segoe UI", system-ui, sans-serif;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 90% -10%, rgba(42, 212, 201, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 20%, rgba(40, 80, 160, 0.14), transparent 50%),
    linear-gradient(180deg, #070b12 0%, #0a1018 40%, #070b12 100%);
  background-attachment: fixed;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01" 0, "cv11" 1;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-hover); }

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

.skip {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.6rem 1rem;
  border-radius: 0.35rem;
  font-weight: 600;
}
.skip:focus { top: 1rem; }

.wrap {
  width: min(calc(100% - 2.5rem), var(--max));
  margin-inline: auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: 1.08rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand svg { width: 1.85rem; height: 1.85rem; flex-shrink: 0; }

nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.15rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-primary {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.15rem;
  flex-wrap: wrap;
}
nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}
nav a:hover { color: var(--accent); }
nav .lang {
  color: var(--muted);
  padding-left: 0.85rem;
  border-left: 1px solid var(--line);
  font-weight: 600;
}
nav .lang[aria-current="page"] {
  color: var(--ink);
  pointer-events: none;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(38rem, 90svh);
  display: flex;
  align-items: flex-end;
  color: var(--ink);
  padding: 0;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img,
.hero-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  display: block;
}
.hero-bg video {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}
.hero-bg video.is-playing {
  opacity: 1;
  transition: opacity 1.25s ease;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(7, 11, 18, 0.28) 0%, rgba(7, 11, 18, 0.18) 32%, rgba(7, 11, 18, 0.78) 100%),
    linear-gradient(90deg, rgba(7, 11, 18, 0.62) 0%, rgba(7, 11, 18, 0.22) 50%, rgba(7, 11, 18, 0.10) 100%);
}
.hero-content {
  position: relative;
  z-index: 3;
  width: min(calc(100% - 2.5rem), var(--max));
  margin-inline: auto;
  padding: clamp(3.75rem, 11vw, 7.5rem) 0 clamp(3.25rem, 7vw, 5.75rem);
  animation: hero-in 0.95s ease-out both;
}
@keyframes hero-in {
  from { opacity: 0; transform: translateY(0.7rem); }
  to { opacity: 1; transform: none; }
}
.hero .kicker { color: var(--accent); }
.hero h1 { color: #fff; }
.hero .lede { color: #d5dbe4; text-shadow: 0 1px 16px rgba(7, 11, 18, 0.55); }
.hero .plain-link {
  color: #eef2f7;
  text-decoration-color: rgba(238, 242, 247, 0.4);
}
.hero .plain-link:hover { color: var(--accent-hover); }

/* 404 and other heros without a photo */
.hero:not(:has(.hero-bg)) {
  min-height: auto;
  align-items: center;
  padding: 5rem 0 4rem;
}
.hero:not(:has(.hero-bg)) .hero-content,
.hero:not(:has(.hero-bg)) > * {
  width: min(calc(100% - 2.5rem), var(--max));
  margin-inline: auto;
  padding: 0;
}

.kicker {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 1.2rem;
  font-family: var(--display);
  font-size: clamp(1.65rem, 4.5vw, 3.15rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  font-weight: 600;
  max-width: 18em;
  text-wrap: balance;
  filter: drop-shadow(0 2px 18px rgba(7, 11, 18, 0.55));
}
.accent-word {
  color: #7cf0e8;
  font-weight: 600;
}
.accent-word-ai {
  background: linear-gradient(115deg, #e7fffc 0%, #2ad4c9 42%, #7cf0e8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.lede {
  margin: 0 0 1.35rem;
  max-width: 40rem;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.55;
  color: var(--muted);
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.5rem;
  margin: 0 0 1.25rem;
}
.trust {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.28rem;
  margin: 0;
  padding: 0;
  max-width: 42rem;
  list-style: none;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #c8d0db;
  text-shadow: 0 1px 12px rgba(7, 11, 18, 0.5);
}
.trust li {
  margin: 0;
  padding-left: 0.95rem;
  position: relative;
}
.trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.85rem 1.35rem;
  border-radius: 0.55rem;
  border: 1px solid var(--accent);
  box-shadow: 0 0 0 0 var(--glow);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.btn:hover {
  background: var(--accent-hover);
  color: var(--accent-ink);
  box-shadow: 0 8px 28px var(--glow);
  transform: translateY(-1px);
}

.plain-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration-color: var(--line);
}
.plain-link:hover { color: var(--accent); }

section { padding: 4rem 0; }
section + section { border-top: 1px solid var(--line); }

.section-head {
  display: grid;
  grid-template-columns: minmax(10rem, 16rem) 1fr;
  gap: 1.25rem 2rem;
  margin-bottom: 2.25rem;
  align-items: baseline;
}
.section-head:not(:has(p)) {
  grid-template-columns: 1fr;
}


.section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  text-transform: none;
  color: var(--ink);
  line-height: 1.15;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 38rem;
}

.services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(42, 212, 201, 0.35);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(42, 212, 201, 0.12);
}
.card-media {
  background: #0a1018;
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: #0a1018;
}
.card-body { padding: 1.3rem 1.4rem 1.5rem; }
.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.card p { margin: 0; color: var(--muted); }

.jobs { display: grid; gap: 0; }

article.job {
  display: grid;
  grid-template-columns: minmax(7rem, 10rem) 1fr;
  gap: 0.35rem 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.job-meta {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 600;
  padding-top: 0.35rem;
}

.job h3 {
  margin: 0 0 0.15rem;
  font-size: 1.22rem;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.job .role {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 600;
}
.job p { margin: 0; color: var(--muted); }

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-areas:
    "copy visual"
    "facts visual";
  gap: 1.5rem 2.25rem;
  align-items: start;
}
.about-copy { grid-area: copy; }
.about-copy p { margin: 0 0 1rem; color: var(--muted); }
.about-copy p:last-child { margin-bottom: 0; }
.about-grid > .facts { grid-area: facts; }
.about-visual { grid-area: visual; margin: 0; }
.about-visual img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
  aspect-ratio: 4 / 5;
  object-position: 70% 50%;
  background: #0a1018;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.facts {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow);
}
.facts h3 {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.facts dl { margin: 0; }
.facts div { padding: 0.55rem 0; border-top: 1px solid var(--line); }
.facts div:first-of-type { border-top: 0; padding-top: 0; }
.facts dt {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.15rem;
}
.facts dd { margin: 0; font-weight: 600; }

.contact-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.contact-box:not(:has(> :nth-child(2))) {
  grid-template-columns: 1fr;
  max-width: 32rem;
}
.contact-box a {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-box a:hover {
  border-color: rgba(42, 212, 201, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4), 0 0 24px var(--glow);
  color: var(--ink);
}
.contact-box span {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
  font-weight: 700;
}
.contact-box strong {
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  font-weight: 700;
  word-break: break-word;
}

footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.6rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}
footer p { margin: 0; max-width: 40rem; }
footer .legal { line-height: 1.55; }

.logo-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.25rem, 1fr));
  gap: 0.85rem;
}
.logo-grid li {
  margin: 0;
  background: var(--tile);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.7rem;
  aspect-ratio: 9 / 5;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.logo-grid li:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4);
}
.logo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
}
.logo-grid .logo-name {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.job-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.15rem;
}
.job-logo {
  height: 2.6rem;
  width: auto;
  max-width: 7.25rem;
  object-fit: contain;
  flex-shrink: 0;
  filter: none;
  background: var(--tile);
  border-radius: 0.45rem;
  padding: 0.2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.job-meta .job-logo {
  height: 2.85rem;
  max-width: 8.5rem;
}
.job-head h3 { margin: 0 0 0.15rem; }

.projects-extra {
  margin-top: 2.25rem;
}
.projects-extra > h3 {
  margin: 0 0 0.85rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: none;
  color: var(--ink);
}

@media (min-width: 801px) and (max-width: 1099px) {
  .services {
    grid-template-columns: repeat(2, 1fr);
  }
  .services .card:last-child {
    grid-column: 1 / -1;
    max-width: calc((100% - 1.15rem) / 2);
    justify-self: center;
    width: 100%;
  }
}

@media (min-width: 1100px) {
  .services {
    grid-template-columns: repeat(6, 1fr);
  }
  .services .card {
    grid-column: span 2;
  }
  /* Fem kort: tre i första raden, två lika breda i andra */
  .services .card:nth-child(4):nth-last-child(2),
  .services .card:nth-child(5):nth-last-child(1) {
    grid-column: span 3;
  }
}

@media (max-width: 800px) {
  .wrap,
  .hero-content { width: min(calc(100% - 1.75rem), var(--max)); }
  .hero { min-height: min(30rem, 84svh); }
  .hero-bg video,
  .hero-video { display: none !important; }
  .about-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "visual"
      "facts";
  }
  .about-visual img { aspect-ratio: 16 / 10; object-position: 65% 50%; }
  .section-head,
  .about-grid,
  article.job,
  .services,
  .contact-box {
    grid-template-columns: 1fr;
  }
  .section-head { gap: 0.45rem; margin-bottom: 1.5rem; }
  article.job { gap: 0.2rem; padding: 1.25rem 0; }
  section { padding: 2.75rem 0; }
  header { height: auto; }
  :root { --header: auto; }
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 1rem;
    row-gap: 0.45rem;
    padding: 0.7rem 0 0.55rem;
  }
  nav { display: contents; }
  .nav-primary {
    grid-column: 1 / -1;
    grid-row: 2;
    gap: 0.15rem 1rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.15rem;
  }
  nav .lang {
    grid-column: 2;
    grid-row: 1;
    border-left: 0;
    padding-left: 0;
  }
  .logo-grid {
    grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
    gap: 0.6rem;
    margin-bottom: 1.6rem;
  }
  .job-head { gap: 0.7rem; }
}

@media (max-width: 520px) {
  nav a { font-size: 0.85rem; }
  .hero h1 {
    max-width: none;
    font-size: clamp(1.45rem, 6.8vw, 2.05rem);
  }
  .trust { font-size: 0.82rem; }
  .contact-box strong { font-size: 1.02rem; }
}

@media print {
  header { position: static; backdrop-filter: none; }
  body { background: #fff; color: #111; }
  .btn { border: 1px solid #111; color: #111; background: none; }
}
