:root {
  --ink: #071014;
  --paper: #f5f6f4;
  --white: #ffffff;
  --muted: #687276;
  --red: #ad1f24;
  --blue: #2d9bd0;
  --green: #117d3d;
  --line: rgba(7, 16, 20, 0.14);
  --max: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  background: #fff;
  color: #000;
  padding: .75rem 1rem;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  color: var(--white);
}

.nav {
  width: min(calc(100% - 3rem), var(--max));
  margin: 0 auto;
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.32);
}

.brand img { width: 230px; height: auto; }

.brand--stacked {
  align-self: stretch;
  width: 148px;
  padding: 10px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand--stacked img {
  width: 100%;
  max-height: 136px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.nav-links a { opacity: .78; transition: opacity .2s ease; }
.nav-links a:hover, .nav-links a:focus-visible, .nav-links a[aria-current="page"] { opacity: 1; }

.hero {
  position: relative;
  min-height: 100svh;
  color: var(--white);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #0b242f;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/anlegg-redigert.png") center / cover no-repeat;
  transform: scale(1.01);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2,12,18,.88) 0%, rgba(2,12,18,.55) 47%, rgba(2,12,18,.13) 80%),
    linear-gradient(0deg, rgba(2,12,18,.82) 0%, transparent 46%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 3rem), var(--max));
  margin: 0 auto;
  padding: 12rem 0 4rem;
}

.eyebrow {
  margin: 0 0 1.25rem;
  color: rgba(255,255,255,.72);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.75rem, 5.25vw, 5.75rem);
  line-height: .96;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.hero-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr);
  gap: 3rem;
  align-items: end;
}

.hero-copy {
  max-width: 620px;
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
}

.hero-services {
  display: grid;
  gap: .7rem;
}

.agent-copy-secondary {
  max-width: 620px;
  margin: 0;
  color: rgba(255,255,255,.62);
  font-size: clamp(.9rem, 1.1vw, 1rem);
  font-weight: 500;
}

.agent-copy-secondary a {
  color: inherit;
  text-decoration: none;
}

.contact-strip {
  border-left: 3px solid var(--red);
  padding-left: 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: end;
}

.contact-strip p { margin: 0 0 .35rem; color: rgba(255,255,255,.68); font-size: .84rem; }
.contact-strip .contact-label { color: #fff; font-size: 1.08rem; font-weight: 700; }
.contact-strip strong { display: block; font-size: 1.15rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: .85rem 1.25rem;
  border: 1px solid currentColor;
  font-weight: 700;
  letter-spacing: .04em;
  transition: background .2s, color .2s, transform .2s;
}
.button:hover, .button:focus-visible { background: var(--white); color: var(--ink); transform: translateY(-2px); }

.section { padding: clamp(5rem, 10vw, 9rem) 0; }
.container { width: min(calc(100% - 3rem), var(--max)); margin: 0 auto; }

.section-kicker {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.group-heading {
  margin: 0 0 3rem;
  color: var(--ink);
  font-size: clamp(2.3rem, 5vw, 5.2rem);
  line-height: 1;
  letter-spacing: -.045em;
  text-transform: none;
}

.section-heading {
  max-width: 800px;
  margin: 1rem 0 3rem;
  font-size: clamp(2.3rem, 5vw, 5.2rem);
  line-height: 1;
  letter-spacing: -.045em;
}

.company-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }

.company-card {
  min-height: 420px;
  background: var(--white);
  padding: clamp(2rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background .25s ease, color .25s ease;
}

.company-card img { width: min(100%, 360px); height: 110px; object-fit: contain; object-position: left center; }
.company-card p { max-width: 470px; font-size: 1.15rem; color: var(--muted); }
.company-card .arrow { font-size: 2rem; align-self: flex-end; }
.company-card:hover, .company-card:focus-visible { background: var(--ink); color: var(--white); }
.company-card:hover p, .company-card:focus-visible p { color: rgba(255,255,255,.7); }

.details { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.details h2 { margin: 0; font-size: clamp(2.7rem, 6vw, 6rem); line-height: .96; letter-spacing: -.05em; }
.details-list { margin: 0; border-top: 1px solid var(--line); }
.detail-row { display: grid; grid-template-columns: 140px 1fr; gap: 1.5rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.detail-row dt { color: var(--muted); }
.detail-row dd { margin: 0; font-weight: 700; }
.detail-row a { text-decoration: underline; text-underline-offset: .25em; }

.page-shell { min-height: 100svh; color: var(--white); display: flex; flex-direction: column; }
.page-shell.solutions,
.page-shell.eiendom {
  background: var(--white);
  color: var(--ink);
}

.page-shell.eiendom {
  position: relative;
  isolation: isolate;
  background: #dfe7eb url("assets/atlantic-eiendom-bakgrunn.png") center / cover no-repeat;
}

.page-shell.eiendom::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(255,255,255,.80) 0%, rgba(255,255,255,.62) 60%, rgba(255,255,255,.28) 100%);
}

.eiendom .site-header {
  background: rgba(255,255,255,.74);
  backdrop-filter: blur(10px);
}

.eiendom .page-copy {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: rgba(255,255,255,.76);
  backdrop-filter: blur(10px);
}
.page-shell .site-header { position: relative; }
.page-shell .nav { border-bottom-color: var(--line); }
.page-shell .nav-links { color: var(--ink); }
.page-hero { flex: 1; display: flex; align-items: center; }
.page-hero-inner { width: min(calc(100% - 3rem), var(--max)); margin: 0 auto; padding: 5rem 0 7rem; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(3rem, 8vw, 8rem); align-items: center; }
.page-logo { width: 100%; max-width: 520px; }
.page-copy .eyebrow { color: var(--muted); }
.solutions .page-copy .eyebrow { color: var(--green); }
.eiendom .page-copy .eyebrow { color: #198ec4; }
.page-copy h1 { font-size: clamp(3rem, 6vw, 6.5rem); }
.page-copy > p { margin: 2rem 0 3rem; max-width: 660px; font-size: clamp(1.15rem, 1.7vw, 1.5rem); color: var(--muted); }

.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.person { border-top: 1px solid var(--line); padding-top: 1rem; }
.person span { display: block; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; }
.person strong { display: block; margin: .25rem 0 .8rem; }
.person a { font-size: 1.15rem; text-decoration: underline; text-underline-offset: .25em; }

footer { background: var(--ink); color: var(--white); }
.footer-inner { width: min(calc(100% - 3rem), var(--max)); margin: 0 auto; min-height: 160px; display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.footer-inner img { width: 190px; }
.footer-inner p { margin: 0; color: rgba(255,255,255,.55); font-size: .84rem; }

@media (max-width: 820px) {
  .nav { min-height: 82px; }
  .brand img { width: 180px; }
  .brand--stacked { width: 112px; padding: 8px 16px; }
  .brand--stacked img { width: 100%; max-height: 104px; }
  .nav-links { gap: 1rem; font-size: .7rem; }
  .nav-links .nav-home { display: none; }
  .hero-grid, .details, .page-hero-inner { grid-template-columns: 1fr; }
  .contact-strip { max-width: 520px; }
  .company-grid { grid-template-columns: 1fr; }
  .company-card { min-height: 340px; }
  .page-logo { max-width: 380px; }
  .page-shell.eiendom::before { background: rgba(255,255,255,.84); }
}

@media (max-width: 540px) {
  .nav, .hero-inner, .container, .page-hero-inner, .footer-inner { width: min(calc(100% - 2rem), var(--max)); }
  .nav-links { gap: .8rem; }
  .brand img { width: 150px; }
  .brand--stacked { width: 92px; padding: 8px 12px; }
  .brand--stacked img { width: 100%; max-height: 86px; }
  .nav-links a { letter-spacing: .04em; }
  .hero-inner { padding-bottom: 2rem; }
  .hero-grid { gap: 2rem; }
  .contact-strip { grid-template-columns: 1fr; }
  .button { width: 100%; }
  .detail-row { grid-template-columns: 1fr; gap: .35rem; }
  .people { grid-template-columns: 1fr; }
  .footer-inner { padding: 2.5rem 0; align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
