:root {
  --bg: #090c11;
  --panel: #10151d;
  --panel-2: #151c26;
  --text: #f4f6f9;
  --muted: #a7b0bd;
  --line: rgba(255, 255, 255, .14);
  --accent: #3b95ea;
  --gutter: clamp(20px, 7vw, 120px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 Montserrat, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 30;
  background: #fff; color: #000; padding: 8px 14px; border-radius: 4px;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter); }

/* Meny */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; padding: 0 var(--gutter);
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(9, 12, 17, .92);
  backdrop-filter: blur(10px);
  border-color: var(--line);
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 30px; width: auto; }
.brand .brand-name { height: 12px; }
.nav nav { display: flex; gap: 38px; }
.nav nav a {
  position: relative; padding: 6px 0;
  font-size: 14px; font-weight: 500; color: #e7ebf0; transition: color .2s;
}
.nav nav a:hover, .nav nav a.active { color: var(--accent); }
.menu-btn {
  display: none; width: 44px; height: 44px; padding: 0;
  background: none; border: 0; cursor: pointer; position: relative;
}
.menu-btn span {
  position: absolute; left: 10px; right: 10px; height: 2px; background: #fff;
  transition: transform .25s, top .25s;
}
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 26px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* Hero */
.wf-hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; overflow: hidden; background: var(--bg);
}
.scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.screen-logo { animation: screenOn 1.4s .2s ease-out both; }
@keyframes screenOn { from { opacity: 0; } to { opacity: 1; } }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(9, 12, 17, .82) 0%, rgba(9, 12, 17, .4) 34%, transparent 52%);
}
.hero-text { position: relative; padding: 0 var(--gutter); max-width: 760px; }
h1 { line-height: 1; letter-spacing: -.01em; }
h1 span { display: block; font-size: clamp(32px, 3.5vw, 54px); font-weight: 300; margin-bottom: 8px; }
h1 strong { display: block; font-size: clamp(62px, 8vw, 124px); font-weight: 800; }
.tagline {
  max-width: 470px; margin-top: 22px;
  font-size: clamp(17px, 1.45vw, 21px); line-height: 1.45; font-weight: 400;
}
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.pill {
  display: inline-block; padding: 11px 30px;
  border: 1.5px solid #fff; border-radius: 999px; background: transparent;
  color: #fff; font: 500 15px/1.3 Montserrat, "Segoe UI", Arial, sans-serif;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.pill:hover { background: #fff; color: #090c11; }
.pill.solid { background: var(--accent); border-color: var(--accent); color: #05101c; font-weight: 600; }
.pill.solid:hover { background: #fff; border-color: #fff; }

/* Rubriker */
h2 {
  display: inline-block; position: relative; padding-bottom: 7px; margin-bottom: 26px;
  font-size: 19px; line-height: 1.3; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
h2::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--accent);
}
h3 { font-size: 16px; line-height: 1.35; font-weight: 600; }
.lead { font-size: clamp(22px, 2.3vw, 32px); line-height: 1.25; font-weight: 600; margin-bottom: 22px; }

/* Om oss */
.about {
  position: relative; display: flex; align-items: center; overflow: hidden;
  min-height: 92vh; padding: 120px 0;
  background: radial-gradient(70% 90% at 82% 50%, #18283c 0%, var(--bg) 66%);
}
.about-mark {
  position: absolute; right: -7vw; top: 50%; transform: translateY(-50%);
  width: min(66vw, 1040px); height: auto; opacity: .16;
  -webkit-mask-image: linear-gradient(100deg, transparent 2%, #000 58%);
  mask-image: linear-gradient(100deg, transparent 2%, #000 58%);
}
.about-text { position: relative; }
.about-text > * { max-width: 600px; }
.about-text p:not(.lead):not(.note) { color: #ccd3dc; margin-bottom: 16px; font-size: 17px; }
.note {
  display: flex; align-items: center; gap: 14px; margin-top: 44px;
  font-size: 15px; font-weight: 500;
}
.note i { display: block; width: 32px; height: 1.5px; background: var(--accent); }

/* Tjänster */
.services {
  min-height: 100vh; display: flex; align-items: center; padding: 110px 0;
  background: linear-gradient(135deg, var(--panel-2), #0b0f15 70%);
}
.columns { display: grid; grid-template-columns: 1fr 1.15fr .85fr; gap: clamp(36px, 5vw, 84px); }
.skills li { display: flex; gap: 16px; padding: 12px 0; }
.skills b {
  flex: 0 0 44px; height: 44px; display: grid; place-items: center;
  border: 1.5px solid #dfe5ec; border-radius: 6px; font-size: 12px; font-weight: 700;
}
.skills p, .wf-timeline p { color: var(--muted); font-size: 14.5px; line-height: 1.5; margin-top: 2px; }
.wf-timeline li { position: relative; display: flex; gap: 18px; padding-bottom: 24px; }
.wf-timeline li:last-child { padding-bottom: 0; }
.wf-timeline li:not(:last-child)::before {
  content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--line);
}
.wf-timeline b {
  flex: 0 0 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; background: #1766ae; font-size: 15px; font-weight: 700;
}
.plain li { padding: 7px 0; font-size: 15.5px; color: #dbe0e7; }
.second { margin-top: 38px; }

/* Kontakt */
.contact { padding: 120px 0; background: var(--bg); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.contact-grid p:not(.lead):not(.wf-status) { color: #ccd3dc; font-size: 17px; }
.mail { display: inline-block; max-width: 100%; overflow-wrap: anywhere; margin-top: 26px; font-size: 19px; font-weight: 600; color: var(--accent); }
.mail:hover { color: #fff; }
.form { display: grid; gap: 18px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: grid; gap: 7px; font-size: 14px; font-weight: 500; }
input, textarea {
  width: 100%; padding: 13px 14px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 6px;
  color: var(--text); font: 400 16px/1.4 Montserrat, "Segoe UI", Arial, sans-serif;
  transition: border-color .2s;
}
textarea { resize: vertical; min-height: 118px; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); }
.form .pill { justify-self: start; }
.wf-status { color: var(--muted); font-size: 14px; min-height: 1.4em; }

/* Sidfot */
.wf-footer {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 60px 20px 40px; border-top: 1px solid var(--line); text-align: center;
}
.wf-footer img { width: 170px; height: auto; margin-bottom: 8px; }
.wf-footer p { color: var(--muted); font-size: 14.5px; }
.wf-footer small { color: #8a94a2; font-size: 13px; }

/* Rörelse */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s, transform .7s; }
.js .reveal.seen { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .wf-hero { flex-direction: column; align-items: stretch; justify-content: flex-start; padding-top: 112px; }
  .hero-shade { display: none; }
  .hero-text { max-width: none; }
  .scene {
    position: relative; inset: auto; flex: none;
    width: 130%; max-width: none; height: auto; aspect-ratio: 16 / 9;
    margin: 12px 0 0 -39.4%;
  }
  .columns { grid-template-columns: 1fr 1fr; }
  .columns .col:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(36px, 5vw, 84px); }
  .columns .col:last-child h2 { justify-self: start; }
  .columns .col:last-child .second { grid-column: 2; grid-row: 1; margin-top: 0; }
  .columns .col:last-child ul:last-child { grid-column: 2; grid-row: 2; }
}

@media (max-width: 760px) {
  .menu-btn { display: block; margin-right: -10px; z-index: 2; }
  .nav nav {
    position: fixed; inset: 76px 0 auto; display: none; flex-direction: column; gap: 0;
    background: rgba(9, 12, 17, .98); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 18px;
  }
  .nav.open { background: rgba(9, 12, 17, .98); }
  .nav.open nav { display: flex; }
  .nav nav a { padding: 13px 0; font-size: 17px; }
  .scene { width: 190%; margin-left: -80%; }
  .about { padding: 90px 0; min-height: 0; }
  .about-mark { width: 120vw; right: -40vw; opacity: .1; }
  .services { padding: 80px 0; }
  .columns, .contact-grid, .row { grid-template-columns: 1fr; }
  .columns .col:last-child { display: block; }
  .columns .col:last-child .second { margin-top: 38px; }
  .contact { padding: 80px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .screen-logo { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Ginta */
h1, h2, h3 { font-family: Montserrat, "Segoe UI", Arial, sans-serif; }
#ginta-sent { display: none; padding: 14px 16px; border: 1px solid var(--accent); border-radius: 6px; font-weight: 500; }
#ginta-sent:target { display: block; }
.wf-footer small a { text-decoration: underline; }
.legal-page { max-width: 760px; margin: 0 auto; padding: 56px 20px 80px; }
.legal-page .back img { width: 130px; height: auto; margin-bottom: 44px; }
.legal-page h1 { font-size: 34px; line-height: 1.2; margin-bottom: 24px; }
.legal-page h2 { display: block; margin: 30px 0 10px; padding: 0; font-size: 18px; text-transform: none; letter-spacing: 0; }
.legal-page h2::after { display: none; }
.legal-page p { margin-bottom: 12px; color: #ccd3dc; }
.legal-page a { color: var(--accent); }
