:root {
  /* Palette derived from foretagarna.se (teal + red/orange accent) and Evidi's Microsoft-consulting look */
  --bg-sand: #f5ece5;
  --bg-paper: #fbf9f6;
  --ink: #1b2027;
  --ink-soft: #4d5866;
  --brand-deep: #123236;
  --brand-navy: #1f555c;
  --brand-mist: #dcebe7;
  --brand-copper: #d63f0d;
  --brand-clay: #a6310a;
  --brand-steel: #707274;
  --line: #d8d9d9;
  --ok: #2f7b52;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, #ece3d2 0%, #e7dcc7 40%, #e2d6bf 100%);
  line-height: 1.55;
}

.site-shell {
  max-width: 1180px;
  margin: 0 auto;
  background: var(--bg-paper);
  box-shadow: 0 30px 80px rgba(20, 33, 50, 0.16);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--brand-deep);
  border-bottom: 3px solid var(--brand-copper);
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.6rem;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.logo {
  display: block;
}

.logo-foretagarna {
  height: 30px;
  width: auto;
  filter: brightness(0) invert(1);
}

.logo-evidi {
  height: 20px;
  width: auto;
  filter: brightness(0) invert(1);
}

.logo-link {
  color: var(--brand-copper);
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
}

.section-nav {
  display: flex;
  gap: 0.35rem;
  padding: 0 1.6rem 0.9rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.section-nav a {
  text-decoration: none;
  color: rgba(240, 234, 224, 0.78);
  padding: 0.4rem 0.7rem;
  font-size: 0.83rem;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.section-nav a.is-active {
  color: #ffffff;
  border-bottom-color: var(--brand-copper);
}

main {
  padding: 0 0 3.2rem;
  display: flex;
  flex-direction: column;
}

main > #leverans {
  order: 60;
}

main > #kostnad {
  order: 70;
}

main > #kontakt {
  order: 80;
}

section {
  margin-bottom: 3.4rem;
  padding: 0 1.6rem;
  scroll-margin-top: 7.5rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--brand-clay);
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: "Sora", sans-serif;
  margin: 0 0 0.7rem;
  color: var(--brand-deep);
}

h1 {
  font-size: clamp(2rem, 4.6vw, 3rem);
  line-height: 1.08;
  max-width: 16ch;
}

.intro-block h1 {
  max-width: none;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 1.95rem);
  line-height: 1.22;
}

h3 {
  font-size: 1.12rem;
}

p,
li {
  color: var(--ink-soft);
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  align-items: stretch;
  padding: 0;
  margin-bottom: 0;
  background: var(--brand-deep);
}

.hero-copy {
  padding: 3rem 2.4rem 3rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-copy .eyebrow {
  color: #f0b487;
}

.hero-copy h1,
.hero-copy .lead {
  color: #f7f1e6;
}

.hero-copy .lead {
  max-width: 46ch;
  font-size: 1.03rem;
}

.hero-media {
  position: relative;
  margin: 0;
  min-height: 320px;
  overflow: hidden;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(20, 33, 50, 0.15) 0%, rgba(20, 33, 50, 0.55) 100%);
  mix-blend-mode: multiply;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
  display: block;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1.7rem;
}

.hero-metrics article {
  border-top: 2px solid var(--brand-copper);
  padding: 0.7rem 0.1rem 0;
}

.hero-metrics h2 {
  color: #ffdcb8;
  margin-bottom: 0.15rem;
  font-size: 1.6rem;
}

.hero-metrics p {
  color: rgba(247, 241, 230, 0.82);
  margin: 0;
  font-size: 0.85rem;
}

/* Intro block */

.intro-block {
  padding-top: 3rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2rem;
}

.intro-block .lead,
.intro-block > p {
  max-width: none;
}

.summary-note {
  border-left: 3px solid var(--brand-copper);
  padding-left: 1rem;
  margin-top: 1.4rem;
}

.summary-note strong {
  color: var(--brand-deep);
}

.phase-caveat {
  margin-top: 1.4rem;
  border-left: 3px solid var(--brand-steel);
  padding-left: 1rem;
  color: var(--ink-soft);
}

/* Konsistent lesebredde for løpende tekst i fullbredde-containere.
   Tekst inne i kort/kolonner er allerede smal via grid og trenger ingen grense. */

main section > .lead,
main section > p,
.insight-takeaway p,
.reference-card > p,
.reference-card .checklist li {
  max-width: none;
}

main .intro-block .lead,
main .intro-block > p {
  max-width: none;
}

.platform-heading,
.subsection-heading {
  margin: 2.4rem 0 0.6rem;
  font-size: 1.25rem;
  color: var(--brand-deep);
}

.platform-intro {
  max-width: none;
  margin: 0;
}

.platform-grid,
.delivery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 1.2rem;
}

.platform-card,
.delivery-card {
  padding: 1.2rem 1.3rem;
  background: var(--bg-paper);
}

.platform-card h4,
.delivery-card h4 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: var(--brand-copper);
}

.platform-card p,
.delivery-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}


.company-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 2.2rem;
}

.company-metrics article {
  border-top: 2px solid var(--brand-copper);
  padding: 0.85rem 0.1rem 0;
}

.company-metrics h3 {
  color: var(--brand-deep);
  margin: 0 0 0.2rem;
  font-size: 1.7rem;
  line-height: 1.15;
}

.company-metrics p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 0.9rem;
}

/* Numbered section headers */

.section-header.numbered {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.tender-number {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--bg-paper);
  background: var(--brand-copper);
  min-width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.answer-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  max-width: none;
}

.insight-intro {
  max-width: none;
}

.insight-intro .lead {
  max-width: none;
}

.insight-note {
  max-width: none;
  font-size: 0.92rem;
}

.insight-stack {
  display: grid;
  gap: 1.6rem;
  max-width: none;
  margin-top: 1.8rem;
}

.insight-block {
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
}

.insight-block:first-child {
  border-top: none;
  padding-top: 0;
}

.insight-block h3 {
  margin-bottom: 0.6rem;
}

.insight-block p + p {
  margin-top: 0.8rem;
}

.insight-banner {
  margin: 1.8rem 0;
  max-height: 320px;
  overflow: hidden;
}

.insight-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.insight-banner figcaption {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 0.6rem;
}

.insight-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 1.8rem 0;
}

.insight-card {
  padding: 1.4rem;
  background: var(--bg-paper);
}

.insight-card-tag {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--brand-copper);
  margin-bottom: 0.6rem;
}

.insight-card h3 {
  font-size: 1.02rem;
  margin-bottom: 0.5rem;
}

.insight-spotlight {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.6rem;
  background: var(--brand-deep);
  margin: 1.8rem 0;
  overflow: hidden;
}

.insight-spotlight-media {
  margin: 0;
  min-height: 260px;
}

.insight-spotlight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.9);
}

.insight-spotlight-copy {
  padding: 1.8rem 1.8rem 1.8rem 0;
}

.insight-spotlight-copy h3 {
  color: #f7f1e6;
}

.insight-spotlight-copy p {
  color: rgba(240, 234, 224, 0.86);
}

.insight-spotlight-copy p + p {
  margin-top: 0.8rem;
}

.insight-takeaway {
  border-left: 4px solid var(--brand-copper);
  background: var(--bg-sand);
  padding: 1.3rem 1.5rem;
  margin-top: 1.8rem;
}

.insight-takeaway h3 {
  margin-bottom: 0.5rem;
}

/* Reference section */

.reference-feature {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.6rem;
  background: var(--brand-deep);
  margin-bottom: 1.1rem;
  overflow: hidden;
}

.reference-media {
  margin: 0;
  min-height: 280px;
}

.reference-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.9);
}

.reference-copy {
  padding: 2rem 2rem 2rem 0;
}

.reference-copy h3 {
  color: #f7f1e6;
}

.reference-copy p {
  color: rgba(240, 234, 224, 0.86);
}

.reference-copy blockquote {
  color: rgba(240, 234, 224, 0.92);
}

.reference-copy h4 {
  color: #f0b487;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  margin: 1.3rem 0 0.5rem;
}

.reference-copy .checklist li {
  color: rgba(240, 234, 224, 0.86);
}

.reference-copy .checklist strong {
  color: #f7f1e6;
}

/* Innholdslenker i referansekortene – mørkt kort trenger lys kobber, lyst kort mørk */
.reference-copy p a {
  color: #f0b487;
}

.reference-card p a,
.intro-block p a,
.checklist li a {
  color: var(--brand-clay);
}

.tag {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 700;
  color: #f0b487;
  margin-bottom: 0.6rem;
}

blockquote {
  border-left: 3px solid var(--brand-copper);
  margin: 1.1rem 0;
  padding-left: 1rem;
  font-style: italic;
  color: inherit;
}

blockquote cite {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.85;
}

.source-note {
  font-size: 0.8rem;
  margin-top: 0.9rem;
}

.source-note a {
  color: #f0b487;
}

.reference-card {
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-steel);
  padding: 1.3rem 1.5rem;
  background: var(--bg-sand);
}

.reference-card-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.customer-logo {
  display: block;
  width: 110px;
  height: 44px;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
}

.customer-logo--gk {
  width: 92px;
}

.customer-logo--small {
  width: 108px;
  height: 34px;
  margin-bottom: 1rem;
}

.reference-card-header .tag {
  margin: 0;
}

.reference-card h4 {
  color: var(--brand-clay);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  margin: 1.3rem 0 0.5rem;
}

/* Korte referanser */

.reference-brief-block {
  margin-top: 1.6rem;
}

.reference-brief-heading {
  font-size: 1.05rem;
  margin: 0 0 0.9rem;
}

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

.reference-brief {
  background: var(--bg-sand);
  padding: 1.3rem 1.5rem;
}

.reference-brief h4 {
  margin-top: 0;
}

.reference-brief p:last-child {
  margin-bottom: 0;
}

.case-showcase {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.2rem;
  border: 1px solid var(--line);
  background: var(--bg-paper);
}

.case-visuals {
  margin: 0;
  min-height: 360px;
}

.case-visuals > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.case-copy {
  padding: 1.5rem 1.5rem 1.6rem 0.2rem;
}

.case-copy > .reference-brief-grid {
  margin-top: 1rem;
}

/* Kobbertonen i .tag er laget for mørk bakgrunn; på lyse kort trengs en mørkere variant */
.reference-card > .tag,
.reference-brief .tag,
.reference-brief .source-note a {
  color: var(--brand-clay);
}

/* Phase grid */

.phase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 1.2rem;
}

/* Fire-korts rutenett (roadmap-fasene) deler seg ikke jevnt på 3 spalter –
   uten denne modifikatoren blir siste rad en halvfull, synlig grå boks. */
.phase-grid--quad {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.phase-card {
  padding: 1.3rem;
  background: var(--bg-paper);
}

.phase-number {
  font-size: 0.75rem;
  font-family: "Sora", sans-serif;
  letter-spacing: 0.12em;
  color: var(--brand-copper);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.phase-card ul {
  margin: 0.9rem 0 0;
  padding-left: 1.1rem;
}

#leverans > .lead,
#leverans > .source-note,
#leverans > .phase-caveat {
  max-width: none;
}

#leverans > .phase-grid {
  gap: 1rem;
  background: transparent;
  border: 0;
}

#leverans > .phase-grid .phase-card {
  border: 1px solid var(--line);
  padding: 1.55rem 1.45rem 1.65rem;
}

#leverans > .phase-grid .phase-card h3 {
  margin-bottom: 0.9rem;
}

#leverans > .phase-grid .phase-card li + li {
  margin-top: 0.35rem;
}

.phase1-detail {
  margin-top: 2.5rem;
  scroll-margin-top: 1.5rem;
}

.phase1-detail-header {
  padding: 1.7rem 2rem;
  background: var(--brand-mist);
  border-radius: 8px;
  text-align: center;
}

.phase1-detail-header h3 {
  margin-bottom: 0.45rem;
  font-size: 1.35rem;
}

.phase1-detail-header p:last-child {
  max-width: 70ch;
  margin: 0 auto;
  color: var(--brand-deep);
  font-weight: 600;
}

.phase1-step-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1rem;
  background: var(--line);
  border: 1px solid var(--line);
}

.phase1-step {
  min-width: 0;
  padding: 1.25rem 1.1rem 1.35rem;
  background: var(--bg-paper);
}

.phase1-step-number {
  margin: 0 0 0.35rem;
  color: var(--brand-copper);
  font-family: "Sora", sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
}

.phase1-step h4 {
  margin: 0 0 1rem;
  color: var(--brand-deep);
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  line-height: 1.25;
}

.phase1-step p:not(.phase1-step-number) {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  line-height: 1.45;
}

.phase1-step p:last-child {
  margin-bottom: 0;
}

/* Fabric overview and pricing */

.fabric-section {
  background: #eefaf6;
  padding-top: 2.2rem;
  padding-bottom: 2.4rem;
}

.fabric-services-figure {
  width: 100%;
  max-width: 940px;
  margin: 1.8rem auto 0;
  padding: 1rem;
  background: #f9fffc;
  border: 1px solid #b9ddd3;
  border-radius: 8px;
}

.fabric-services-figure img {
  display: block;
  width: 100%;
  max-height: 420px;
  height: auto;
  object-fit: contain;
}

.fabric-services-figure figcaption {
  margin-top: 0.7rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
  text-align: center;
}

.fabric-licensing-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.fabric-licensing-notes article {
  padding: 1.2rem 1.3rem;
  background: #f9fffc;
  border-left: 3px solid var(--brand-copper);
}

.fabric-licensing-notes h3 {
  margin-bottom: 0.65rem;
  font-size: 1rem;
}

.fabric-licensing-notes ul {
  margin: 0;
  padding-left: 1.15rem;
}

.fabric-licensing-notes li + li {
  margin-top: 0.55rem;
}

.fabric-pricing {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
  gap: 1.8rem;
  align-items: start;
  margin-top: 2.2rem;
  padding-top: 1.8rem;
  border-top: 1px solid #b9ddd3;
}

.fabric-pricing h3 {
  font-size: 1.2rem;
}

.fabric-pricing p:not(.eyebrow) {
  font-size: 0.9rem;
}

.fabric-price-table {
  width: 100%;
  border-collapse: collapse;
  background: #f9fffc;
  font-size: 0.84rem;
}

.fabric-price-table th,
.fabric-price-table td {
  padding: 0.65rem 0.7rem;
  border: 1px solid #b9ddd3;
  text-align: left;
}

.fabric-price-table th {
  color: var(--brand-deep);
  background: #d1f4e8;
  font-family: "Sora", sans-serif;
  font-size: 0.72rem;
}

.fabric-price-table td:nth-child(3),
.fabric-price-table td:nth-child(4) {
  white-space: nowrap;
  font-weight: 600;
}

/* Split block (team) */

.split-block {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1.8rem;
  align-items: center;
}

.split-media {
  margin: 0;
}

.split-media img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.9rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 0.6rem;
  height: 0.6rem;
  background: var(--brand-copper);
}

.checklist strong {
  color: var(--brand-deep);
}

/* Org diagram (samarbeidsmodell/governance) */

.org-diagram {
  margin: 1.8rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.org-level {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  width: 100%;
  padding-bottom: 1.6rem;
}

.org-level + .org-level::before {
  content: "";
  position: absolute;
  top: -1.6rem;
  left: 50%;
  width: 1px;
  height: 1.6rem;
  background: var(--line);
}

.org-card {
  flex: 1;
  max-width: 460px;
  border: 1px solid var(--line);
  background: var(--bg-paper);
  padding: 1.2rem 1.4rem;
}

.org-card--full {
  max-width: 100%;
  background: var(--brand-deep);
  border-color: var(--brand-deep);
}

.org-card--full .org-owner,
.org-card--full h3 {
  color: #f7f1e6;
}

.org-card--full p {
  color: rgba(240, 234, 224, 0.86);
}

.org-card--highlight {
  border: 1px solid var(--brand-steel);
  background: var(--bg-sand);
}

.org-card--support {
  border: 1px dashed var(--brand-steel);
  background: transparent;
}

.org-card--support .tag-pill {
  background: var(--bg-sand);
}

.org-owner {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--brand-copper);
  margin-bottom: 0.4rem;
}

.org-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.org-card p {
  margin: 0;
}

.org-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.9rem;
}

.org-tags .tag-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  background: var(--bg-paper);
  color: var(--brand-steel);
  border: 1px solid var(--line);
}

.org-diagram figcaption {
  margin-top: 0.8rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-align: center;
  max-width: 620px;
}

.wide-media {
  margin: 0;
  max-height: 280px;
  overflow: hidden;
}

.wide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Contact */

.contact-card {
  border-top: 4px solid var(--brand-copper);
  background: var(--bg-sand);
  padding: 2rem 2rem 2.2rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.6rem;
  align-items: center;
}

.contact-person {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-paper);
  border-left: 4px solid var(--brand-copper);
  padding: 1.2rem 1.4rem;
}

.contact-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand-deep);
  color: #f7f1e6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;
  overflow: hidden;
}

.contact-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-name {
  font-family: "Sora", sans-serif;
  font-weight: 600;
  color: var(--brand-deep);
  margin: 0 0 0.1rem;
}

.contact-title {
  font-size: 0.85rem;
  margin: 0 0 0.5rem;
}

.contact-detail {
  margin: 0;
  font-size: 0.88rem;
}

.contact-detail a {
  color: var(--brand-clay);
  text-decoration: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.1rem 1.6rem 1.4rem;
  background: #ece0cd;
}

.site-footer p {
  margin: 0;
  font-size: 0.88rem;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.6rem;
}

.footer-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.footer-contact p {
  color: var(--ink-soft);
}

.footer-contact a {
  color: var(--brand-clay);
  text-decoration: none;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero,
  .split-block,
  .reference-feature,
  .case-showcase,
  .reference-brief-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 220px;
    order: -1;
  }

  .split-media {
    order: -1;
  }

  .split-media img {
    max-height: 260px;
  }

  .reference-media {
    min-height: 220px;
  }

  .reference-copy {
    padding: 1.5rem;
  }

  .reference-card-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.6rem;
  }

  .case-copy {
    padding: 1.3rem;
  }

  .hero-metrics,
  .company-metrics,
  .platform-grid,
  .delivery-grid,
  .phase-grid,
  .phase1-step-grid,
  .fabric-workloads,
  .fabric-foundation,
  .fabric-pricing,
  .fabric-licensing-notes,
  .answer-layout,
  .insight-card-grid,
  .insight-spotlight {
    grid-template-columns: 1fr;
  }

  .insight-spotlight-media {
    min-height: 220px;
    order: -1;
  }

  .insight-spotlight-copy {
    padding: 1.5rem;
  }

  .org-level {
    flex-direction: column;
    align-items: center;
  }

  .org-card {
    max-width: 100%;
  }

  .brand-row {
    flex-direction: column;
    align-items: flex-start;
  }

  h1 {
    max-width: 100%;
  }
}

@media (max-width: 620px) {
  section {
    padding: 0 1.1rem;
    margin-bottom: 2.4rem;
  }

  .hero-copy {
    padding: 2rem 1.1rem;
  }

  .logo-foretagarna {
    height: 24px;
  }

  .logo-evidi {
    height: 18px;
  }

  .section-header.numbered {
    flex-direction: column;
  }

  .fabric-price-table {
    font-size: 0.72rem;
  }

  .fabric-price-table th,
  .fabric-price-table td {
    padding: 0.55rem 0.45rem;
  }
}

/* Team overview page */

.team-group-heading {
  font-size: 1.05rem;
  margin: 2.2rem 0 0.4rem;
}

.team-group-heading:first-of-type {
  margin-top: 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--brand-clay);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 1.4rem;
}

/* En gruppe med et oddetall profiler etterlater ellers en tom grå celle nederst. */
.team-grid > *:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.consultant-card {
  background: var(--bg-paper);
  padding: 1.6rem;
  display: flex;
  gap: 1.2rem;
}

.consultant-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--brand-copper);
}

.consultant-photo-fallback {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--brand-deep);
  color: #f7f1e6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
}

.consultant-name {
  margin-bottom: 0.1rem;
}

.consultant-title {
  font-size: 0.85rem;
  color: var(--brand-clay);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.consultant-bio {
  font-size: 0.88rem;
  margin-bottom: 0.8rem;
}

.consultant-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.consultant-tags .tag-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  background: var(--bg-sand);
  color: var(--brand-steel);
  border: 1px solid var(--line);
}

.cv-link {
  display: inline-block;
  margin-top: 0.3rem;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-deep);
  border-bottom: 2px solid var(--brand-copper);
  padding-bottom: 0.1rem;
}

/* Full CV page */

.cv-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.6rem;
  align-items: center;
  background: var(--brand-deep);
  padding: 2.2rem 1.6rem;
}

.cv-hero-photo {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--brand-copper);
}

.cv-hero-photo-fallback {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 3px solid var(--brand-copper);
  color: #f7f1e6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 2rem;
}

.cv-hero h1 {
  color: #f7f1e6;
  margin-bottom: 0.2rem;
}

.cv-hero-title {
  color: #f0b487;
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.cv-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  font-size: 0.85rem;
  color: rgba(240, 234, 224, 0.9);
}

.cv-hero-meta a {
  color: rgba(240, 234, 224, 0.9);
}

.cv-section {
  padding: 0 1.6rem;
  margin-bottom: 2.6rem;
}

.cv-section-title {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-clay);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.6rem;
  margin-bottom: 1.1rem;
}

.cv-kq-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cv-kq-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.6rem;
  font-size: 0.94rem;
}

.cv-kq-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--brand-copper);
  font-weight: 700;
}

.cv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.cv-table th {
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.7rem;
  color: var(--brand-clay);
  padding: 0.5rem 0.7rem;
  border-bottom: 2px solid var(--line);
}

.cv-table td {
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.cv-project-card {
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-steel);
  padding: 1.1rem 1.3rem;
  background: var(--bg-sand);
  margin-bottom: 0.9rem;
}

.cv-project-card .pname {
  font-family: "Sora", sans-serif;
  font-weight: 600;
  color: var(--brand-deep);
  margin-bottom: 0.1rem;
}

.cv-project-card .pclient {
  font-size: 0.8rem;
  color: var(--brand-clay);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.cv-project-card .pmeta {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-bottom: 0.6rem;
}

.cv-project-card .pdesc {
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
}

.cv-project-card .pdesc:last-child {
  margin-bottom: 0;
}

.cv-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cv-tag-cloud .tag-pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  background: var(--bg-sand);
  color: var(--brand-steel);
  border: 1px solid var(--line);
}

@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: 1fr;
  }

  .cv-hero {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .cv-hero-meta {
    justify-content: center;
  }
}

@media (max-width: 620px) {
  .consultant-card {
    flex-direction: column;
    align-items: flex-start;
  }
}
