:root {
  color-scheme: dark;
  --bg: #101010;
  --bg-deep: #080808;
  --surface: #171717;
  --surface-2: #202020;
  --surface-3: #2b2b2b;
  --line: #343434;
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #f4f1ef;
  --muted: #c9bfc0;
  --subtle: #8f8989;
  --accent: #ed1b24;
  --accent-dark: #b81118;
  --accent-soft: rgba(237, 27, 36, 0.14);
  --max: 1440px;
  --gutter: clamp(20px, 4vw, 64px);
  --radius: 8px;
  --shadow: 0 32px 120px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#referanser,
#tjenester,
#kontakt {
  scroll-margin-top: 96px;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(237, 27, 36, 0.08), transparent 28rem),
    linear-gradient(180deg, #141414 0%, var(--bg) 42rem, #0b0b0b 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
  min-width: 320px;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-150%);
  background: var(--text);
  color: #111;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(12, 12, 12, 0.82);
  backdrop-filter: blur(18px);
}

.nav-shell,
.hero,
.section-inner,
.services,
.contact,
.footer-shell {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  width: 86px;
  min-width: 86px;
}

.brand img,
.footer-brand img {
  width: 100%;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a,
.footer-links a {
  transition:
    color 180ms ease,
    opacity 180ms ease;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--text);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  min-height: 48px;
  padding: 0 22px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.nav-cta,
.button-primary {
  background: var(--accent);
  color: white;
}

.nav-cta:hover,
.button-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.82fr);
  align-items: center;
  gap: clamp(32px, 4vw, 58px);
  min-height: calc(100svh - 124px);
  padding-top: clamp(36px, 5vw, 52px);
  padding-bottom: clamp(36px, 5vw, 52px);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

h1 {
  max-width: 850px;
  margin-bottom: 20px;
  font-size: clamp(2.85rem, 5.2vw, 4.45rem);
  line-height: 1;
  letter-spacing: 0;
  hyphens: manual;
  overflow-wrap: normal;
}

.hero-lead {
  max-width: 660px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: clamp(1.03rem, 1.35vw, 1.15rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 0;
}

.hero-visual {
  min-width: 0;
}

.hero-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.client-strip {
  overflow: hidden;
  border-block: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.28);
  padding-block: 34px;
}

.client-strip .section-kicker {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.logo-marquee {
  overflow: hidden;
}

.logo-track {
  display: flex;
  width: max-content;
  gap: 48px;
  animation: marquee 42s linear infinite;
  align-items: center;
  will-change: transform;
}

.logo-set {
  display: flex;
  align-items: center;
  gap: 48px;
}

.client-logo {
  display: inline-grid;
  align-items: center;
  justify-items: center;
  flex: 0 0 200px;
  width: 200px;
  height: 86px;
  overflow: visible;
}

.client-logo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 54px;
  object-fit: contain;
  filter: grayscale(1) brightness(1.28) contrast(0.9);
  opacity: 0.82;
}

.client-logo.logo-tall img {
  max-height: 54px;
}

.client-logo.logo-wide img {
  max-height: 54px;
}

@keyframes marquee {
  to {
    transform: translateX(calc(-50% - 24px));
  }
}

.section-pad {
  padding-top: clamp(78px, 10vw, 140px);
  padding-bottom: clamp(78px, 10vw, 140px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 48px;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading .section-kicker {
  margin-bottom: 16px;
}

.section-heading h2,
.contact h2 {
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.section-heading p,
.contact-copy > p {
  color: var(--muted);
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}

.service-card {
  grid-column: span 6;
  min-height: 300px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 42px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent 48%),
    var(--surface);
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.service-card:hover {
  border-color: rgba(237, 27, 36, 0.72);
  background:
    linear-gradient(145deg, rgba(237, 27, 36, 0.09), transparent 46%),
    var(--surface);
  transform: translateY(-3px);
}

.service-card-main {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 1fr;
  align-content: start;
  gap: clamp(28px, 4vw, 40px);
  min-height: 300px;
  border-color: rgba(237, 27, 36, 0.34);
  background:
    linear-gradient(145deg, rgba(237, 27, 36, 0.12), transparent 42%),
    var(--surface);
}

.service-card-main h3 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.service-card-main p {
  max-width: 760px;
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
}

.service-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 900;
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.15;
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.service-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-highlights li {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.about {
  border-block: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.34);
}

.about-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.78fr);
  gap: clamp(36px, 7vw, 110px);
  align-items: center;
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.about-copy {
  max-width: 780px;
}

.about-copy h2 {
  margin-bottom: 22px;
  font-size: clamp(2.3rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.about-copy p {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.7vw, 1.45rem);
  line-height: 1.55;
}

.about-media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.about-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  opacity: 0.9;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(340px, 0.72fr);
  gap: clamp(42px, 8vw, 120px);
}

.contact-details {
  display: grid;
  gap: 14px;
  margin-top: 40px;
  color: var(--text);
  font-style: normal;
}

.contact-details a,
.contact-details span {
  width: fit-content;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.contact-details a:hover {
  color: var(--accent);
}

.contact-form {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 34px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent 42%),
    var(--surface);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0d0d0d;
  color: var(--text);
  padding: 14px 15px;
  outline: none;
  resize: vertical;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.contact-form .button {
  width: 100%;
  cursor: pointer;
}

.form-note {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: #080808;
}

.footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 116px;
  color: var(--subtle);
}

.footer-brand {
  width: 66px;
  min-width: 66px;
  opacity: 0.84;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  color: var(--muted);
}

.footer-shell p {
  margin: 0;
  font-size: 0.92rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .logo-track {
    animation-duration: 42s !important;
    animation-iteration-count: infinite !important;
  }
}

@media (max-width: 1050px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    max-width: 920px;
  }

  .hero-visual {
    max-width: 760px;
  }

  .service-card,
  .service-card-main {
    grid-column: 1 / -1;
  }

  .service-card-main {
    grid-template-columns: 1fr;
  }

  .about-shell {
    grid-template-columns: 1fr;
  }

  .about-media {
    max-width: 760px;
  }

  .contact {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 760px) and (min-width: 1051px) {
  .hero {
    min-height: auto;
    padding-top: 32px;
    padding-bottom: 24px;
  }

}

@media (max-width: 760px) {
  :root {
    --gutter: 20px;
  }

  .nav-shell {
    min-height: 74px;
  }

  .brand {
    width: 72px;
    min-width: 72px;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    min-height: 42px;
    padding-inline: 14px;
    font-size: 0.7rem;
  }

  .hero {
    padding-top: 48px;
  }

  h1 {
    font-size: clamp(2.55rem, 11.5vw, 3rem);
    line-height: 1.06;
  }

  .hero-actions {
    display: grid;
  }

  .client-logo {
    flex-basis: 150px;
    width: 150px;
    height: 72px;
  }

  .client-logo img {
    max-height: 46px;
  }

  .client-logo.logo-tall img {
    max-height: 46px;
  }

  .client-logo.logo-wide img {
    max-height: 46px;
  }

  .service-card {
    min-height: auto;
  }

  .service-highlights {
    gap: 8px;
  }

  .service-highlights li {
    padding: 11px 8px;
    font-size: 0.62rem;
    text-align: center;
  }

  .footer-shell {
    flex-direction: column;
    justify-content: center;
    padding-block: 32px;
    text-align: center;
  }
}

@media (max-width: 430px) {
  .contact-form {
    padding: 20px;
  }
}
