:root {
  --ink: #17211e;
  --muted: #606a65;
  --pine: #103f35;
  --pine-2: #2f6655;
  --sage: #789c8d;
  --moss: #b8ca80;
  --sand: #f0ede4;
  --paper: #f9f7f1;
  --line: #d3d9d2;
  --white: #fff;
  --max: 1240px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.site-header { height: 86px; padding: 0 max(28px, calc((100vw - var(--max)) / 2)); display: flex; align-items: center; justify-content: space-between; background: var(--paper); border-bottom: 1px solid rgba(23,32,29,.12); position: sticky; top: 0; z-index: 20; }
.brand { display: block; width: 225px; line-height: 0; }
.brand-logo { width: 100%; height: auto; }
nav { display: flex; align-items: center; gap: 22px; font-size: .88rem; font-weight: 650; }
nav a { padding: 10px 0; }
nav a:hover { color: var(--pine-2); }
nav a[aria-current="page"] { color: var(--pine-2); box-shadow: inset 0 -2px 0 var(--moss); }
.nav-cta { background: var(--pine); color: var(--white); padding: 11px 18px; }
.nav-cta:hover { background: var(--pine-2); color: var(--white); }
.menu-button { display: none; background: transparent; border: 0; padding: 10px; }
.menu-button > span:not(.sr-only) { display: block; width: 25px; height: 2px; background: var(--ink); margin: 5px; }

.hero { min-height: 680px; position: relative; display: flex; align-items: center; overflow: hidden; color: var(--white); }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,29,24,.93) 0%, rgba(10,42,35,.73) 38%, rgba(16,63,53,.18) 70%, rgba(16,63,53,.04)); }
.hero-contours { position: absolute; width: 520px; height: 520px; left: -180px; top: 40px; border: 1px solid rgba(255,255,255,.14); border-radius: 42% 58% 37% 63%; transform: rotate(18deg); box-shadow: 0 0 0 55px rgba(255,255,255,.035), 0 0 0 115px rgba(255,255,255,.025), 0 0 0 175px rgba(255,255,255,.018); }
.hero-content { width: min(var(--max), calc(100% - 56px)); flex: 0 0 auto; margin: 0 auto; position: relative; z-index: 2; }
.hero-content h1 { max-width: 780px; }
.hero-content .lead { max-width: 680px; }
.eyebrow { margin: 0 0 17px; color: var(--pine-2); font-size: .73rem; text-transform: uppercase; letter-spacing: .18em; font-weight: 800; }
.eyebrow.light { color: var(--moss); }
h1, h2, h3, p { margin-top: 0; }
h1 { font: 500 clamp(3rem, 5.1vw, 5.1rem)/1.01 var(--serif); letter-spacing: -.035em; margin-bottom: 25px; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.3rem); line-height: 1.55; color: rgba(255,255,255,.84); max-width: 710px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 35px; }
.button { display: inline-flex; min-height: 51px; align-items: center; justify-content: center; padding: 13px 23px; border: 1px solid transparent; font-weight: 750; font-size: .93rem; cursor: pointer; transition: .2s ease; font-family: inherit; }
.button-primary { background: var(--moss); color: var(--ink); }
.button-primary:hover { background: #cedb93; transform: translateY(-2px); }
.button-ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.button-ghost:hover { background: rgba(255,255,255,.1); }
.hero-note { position: absolute; right: max(28px, calc((100vw - var(--max)) / 2)); bottom: 35px; z-index: 3; width: min(355px, calc(100% - 56px)); padding: 20px 22px; background: rgba(10,31,25,.78); border-left: 3px solid var(--moss); backdrop-filter: blur(8px); }
.hero-note span { display: block; color: var(--moss); font-size: .67rem; text-transform: uppercase; font-weight: 800; letter-spacing: .18em; }
.hero-note strong { display: block; margin-top: 5px; font: 500 1.16rem/1.35 var(--serif); }

.section-grid, .services, .radar, .audiences, .contact, .development { width: min(var(--max), calc(100% - 56px)); margin-inline: auto; }
.intro { display: grid; grid-template-columns: .85fr 1.15fr; gap: 10%; padding: 120px 0 110px; }
h2 { font: 500 clamp(2.2rem, 4vw, 3.9rem)/1.06 var(--serif); letter-spacing: -.03em; margin-bottom: 25px; }
.intro h2 { max-width: 540px; }
.intro-copy { padding-top: 38px; font-size: 1.11rem; color: #47504d; max-width: 650px; }
.intro-copy p + p { margin-top: 24px; }

.services { border-top: 1px solid var(--line); padding: 100px 0 120px; }
.section-heading { display: grid; grid-template-columns: .4fr 1fr; gap: 6%; margin-bottom: 55px; }
.section-heading h2 { max-width: 800px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service-card { min-height: 325px; padding: 32px; background: var(--paper); display: flex; flex-direction: column; }
.service-card.featured { grid-row: span 2; background: var(--pine); color: var(--white); min-height: 651px; padding: 42px; }
.service-card .number { color: var(--pine-2); font-size: .72rem; font-weight: 800; letter-spacing: .13em; }
.service-card.featured .number { color: var(--moss); }
.service-card h3 { font: 500 1.7rem/1.2 var(--serif); margin: 38px 0 15px; }
.service-card.featured h3 { font-size: 2.5rem; margin-top: 65px; }
.service-card p { color: var(--muted); }
.service-card.featured p { color: rgba(255,255,255,.73); font-size: 1.08rem; }
.service-card ul { list-style: none; padding: 15px 0; margin: 0; border-top: 1px solid rgba(255,255,255,.16); }
.service-card li { padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.16); font-size: .93rem; }
.service-card a { margin-top: auto; font-size: .87rem; font-weight: 800; color: var(--pine-2); }
.service-card.featured a { color: var(--moss); }
.service-card a span, .text-link span { margin-left: 6px; }

.process { background: var(--pine); color: var(--white); padding: 110px max(28px, calc((100vw - var(--max)) / 2)); }
.process-copy { max-width: 800px; }
.process-copy p:not(.eyebrow) { max-width: 670px; color: rgba(255,255,255,.72); font-size: 1.07rem; }
.timeline { margin-top: 70px; display: grid; grid-template-columns: repeat(6, 1fr); position: relative; gap: 20px; }
.timeline-line { position: absolute; left: 18px; right: 18px; top: 19px; height: 1px; background: rgba(255,255,255,.25); }
.step { position: relative; z-index: 1; }
.step > span { width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; background: var(--pine); font-size: .76rem; }
.step.active > span { background: var(--moss); color: var(--ink); border-color: var(--moss); }
.step strong { display: block; font-size: .86rem; margin-top: 18px; line-height: 1.35; }
.step small { color: rgba(255,255,255,.55); font-size: .73rem; }

.radar { display: grid; grid-template-columns: 1fr 1fr; gap: 9%; align-items: center; padding: 125px 0; }
.radar-visual { width: min(470px, 90vw); aspect-ratio: 1; position: relative; border-radius: 50%; background: #e5ebe6; overflow: hidden; justify-self: center; }
.radar-ring { position: absolute; inset: 12%; border: 1px solid #aab6ad; border-radius: 50%; }
.radar-ring.r2 { inset: 28%; }
.radar-ring.r3 { inset: 43%; }
.radar-axis { position: absolute; background: #b8c1bb; }
.radar-axis.x { width: 100%; height: 1px; top: 50%; }
.radar-axis.y { height: 100%; width: 1px; left: 50%; }
.radar-sweep { position: absolute; inset: 0 0 50% 50%; transform-origin: bottom left; background: linear-gradient(35deg, rgba(47,102,85,.45), rgba(47,102,85,0) 65%); animation: sweep 6s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }
.signal { position: absolute; width: 11px; height: 11px; background: var(--pine-2); border: 3px solid #d2ddd6; border-radius: 50%; box-shadow: 0 0 0 5px rgba(47,102,85,.15); }
.signal.s1 { left: 27%; top: 36%; }.signal.s2 { right: 23%; top: 29%; }.signal.s3 { right: 32%; bottom: 23%; }
.radar-visual > span { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 104px; height: 104px; display: grid; place-content: center; text-align: center; border-radius: 50%; background: var(--pine); color: var(--moss); font-size: .58rem; letter-spacing: .12em; }
.radar-visual > span strong { color: var(--white); font-size: .7rem; }
.radar-copy p:not(.eyebrow) { color: var(--muted); font-size: 1.06rem; }
.text-link { display: inline-block; margin-top: 16px; color: var(--pine-2); font-weight: 800; border-bottom: 2px solid var(--moss); padding-bottom: 3px; }

.audiences { padding: 100px 0 120px; border-top: 1px solid var(--line); }
.section-heading.compact { margin-bottom: 35px; }
.audience-list { border-top: 1px solid var(--ink); }
.audience-list > div { display: grid; grid-template-columns: 70px 1.4fr 1fr; gap: 25px; align-items: center; border-bottom: 1px solid var(--line); padding: 28px 0; }
.audience-list span { color: var(--pine-2); font-weight: 800; font-size: .76rem; }
.audience-list h3 { font: 500 1.42rem/1.3 var(--serif); margin: 0; }
.audience-list p { margin: 0; color: var(--muted); }

.development { padding: 115px 0 125px; }
.development-heading { display: grid; grid-template-columns: .92fr 1.08fr; gap: 9%; margin-bottom: 65px; }
.development-heading h2 { color: var(--white); max-width: 620px; }
.development-heading > div:last-child { color: rgba(255,255,255,.7); font-size: 1.05rem; padding-top: 39px; max-width: 610px; }
.development-heading p + p { margin-top: 22px; }
.development::before { content: ""; position: absolute; top: 0; left: 50%; width: 100vw; height: 680px; transform: translateX(-50%); background: var(--pine); z-index: -1; }
.development { position: relative; isolation: isolate; }

.hageby-feature { background: var(--sand); box-shadow: 0 22px 60px rgba(8,25,20,.16); }
.hageby-main { margin: 0; height: clamp(390px, 54vw, 690px); overflow: hidden; }
.hageby-main img { width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }
.hageby-panel { display: grid; grid-template-columns: .8fr 1.2fr; min-height: 430px; }
.hageby-copy { padding: 64px 58px; display: flex; flex-direction: column; justify-content: center; }
.project-kicker { color: var(--pine-2); font-size: .7rem; text-transform: uppercase; letter-spacing: .18em; font-weight: 800; }
.hageby-copy h3 { font: 500 clamp(2.4rem, 4vw, 4rem)/1.03 var(--serif); letter-spacing: -.03em; margin: 10px 0 28px; }
.hageby-copy p:not(.project-kicker) { color: var(--muted); }
.hageby-detail { margin: 0; overflow: hidden; min-height: 430px; }
.hageby-detail img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

.portfolio-heading { display: grid; grid-template-columns: .55fr 1fr; gap: 7%; align-items: end; margin: 105px 0 35px; border-bottom: 1px solid var(--ink); padding-bottom: 25px; }
.portfolio-heading p { margin: 0; }
.portfolio-heading > p:last-child { color: var(--muted); max-width: 690px; }
.project-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.project-card { margin: 0; background: #eeece5; min-width: 0; }
.project-card img { width: 100%; height: clamp(310px, 38vw, 480px); object-fit: cover; }
.project-card:nth-child(1) img { object-position: center 46%; }
.project-card:nth-child(2) img { object-position: center 52%; }
.project-card:nth-child(3) img { object-position: center 48%; }
.project-card:nth-child(4) img { object-position: center 55%; }
.project-card figcaption { display: flex; justify-content: space-between; gap: 25px; padding: 22px 24px 25px; }
.project-card strong { font: 500 1.28rem/1.25 var(--serif); }
.project-card span { color: var(--muted); text-align: right; font-size: .76rem; line-height: 1.45; max-width: 210px; }

.about { display: grid; grid-template-columns: 1fr 1.25fr; background: var(--ink); color: var(--white); }
.about-label { padding: 105px max(50px, calc((100vw - var(--max)) / 2)); padding-right: 7vw; background: var(--pine); }
blockquote { margin: 130px 0 0; font: 500 clamp(2rem, 3.3vw, 3.25rem)/1.14 var(--serif); letter-spacing: -.025em; }
.about-copy { padding: 105px max(50px, calc((100vw - var(--max)) / 2)); padding-left: 7vw; }
.about-copy > p { max-width: 650px; color: rgba(255,255,255,.67); }
.credentials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 55px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.18); }
.credentials strong { display: block; color: var(--moss); font: 500 2rem var(--serif); }
.credentials span { display: block; color: rgba(255,255,255,.58); font-size: .75rem; line-height: 1.4; }

.contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: 10%; padding: 120px 0; }
.contact-copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.06rem; }
.contact-details { margin-top: 40px; display: flex; flex-direction: column; gap: 5px; }
.contact-details a { color: var(--pine-2); font-size: 1.3rem; font-family: var(--serif); }
.contact-details span { color: var(--muted); font-size: .83rem; }
.contact-form { background: #edece6; padding: 40px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: block; color: #3e4844; font-size: .77rem; font-weight: 750; margin-bottom: 19px; }
input, select, textarea { width: 100%; border: 0; border-bottom: 1px solid #9fa7a2; background: transparent; border-radius: 0; padding: 12px 1px; margin-top: 3px; color: var(--ink); font: 1rem var(--sans); }
textarea { resize: vertical; min-height: 105px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--pine-2); box-shadow: 0 2px 0 var(--pine-2); }
.button-dark { background: var(--pine); color: var(--white); margin-top: 6px; }
.button-dark:hover { background: var(--pine-2); }
.form-note { color: var(--muted); font-size: .75rem; margin: 13px 0 0; }
.form-note a, .privacy-consent a, .privacy-panel a { color: var(--pine-2); text-decoration: underline; text-underline-offset: 2px; }
.privacy-consent { display: flex; align-items: flex-start; gap: 11px; margin: 4px 0 20px; font-weight: 550; line-height: 1.5; }
.privacy-consent input { width: auto; flex: 0 0 auto; margin: 3px 0 0; box-shadow: none; accent-color: var(--pine-2); }
.form-success { margin: 18px 0 0; padding: 12px 14px; background: #dbe7dc; color: #17422f; font-size: .85rem; }

.privacy { background: #e5e6df; padding: 0 max(28px, calc((100vw - var(--max)) / 2)) 110px; }
.privacy-panel { background: var(--paper); padding: 62px; border-top: 4px solid var(--moss); }
.privacy-panel h2 { max-width: 720px; }
.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 38px 60px; margin-top: 42px; }
.privacy-grid h3 { margin: 0 0 10px; font: 600 1.15rem/1.3 var(--serif); color: var(--pine); }
.privacy-grid p { margin: 0; color: var(--muted); font-size: .9rem; }

footer { min-height: 150px; padding: 45px max(28px, calc((100vw - var(--max)) / 2)); display: flex; align-items: center; gap: 45px; background: #0d1512; color: rgba(255,255,255,.6); font-size: .8rem; }
.footer-brand { margin-right: auto; }
footer p { margin: 0; }
footer a { color: inherit; }

@media (max-width: 960px) {
  html { scroll-padding-top: 72px; }
  .site-header { height: 72px; }
  .menu-button { display: block; }
  nav { display: none; position: absolute; left: 0; right: 0; top: 72px; background: var(--paper); padding: 22px 28px 28px; flex-direction: column; align-items: stretch; gap: 4px; border-bottom: 1px solid var(--line); }
  nav.open { display: flex; }
  .nav-cta { text-align: center; margin-top: 8px; }
  .hero { min-height: 660px; align-items: flex-start; }
  .hero-content { padding: 95px 0 180px; }
  .hero-shade { background: linear-gradient(90deg, rgba(6,29,24,.92), rgba(16,63,53,.54)); }
  .hero-note { left: 28px; right: auto; }
  .intro, .radar, .contact { grid-template-columns: 1fr; gap: 55px; }
  .section-heading { grid-template-columns: 1fr; gap: 0; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-card.featured { grid-row: auto; grid-column: span 2; min-height: 440px; }
  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .timeline-line { display: none; }
  .about { grid-template-columns: 1fr; }
  .development-heading { grid-template-columns: 1fr; gap: 5px; }
  .development-heading > div:last-child { padding-top: 0; }
  .hageby-panel { grid-template-columns: 1fr; }
  .hageby-copy { padding: 52px 44px; }
  .hageby-detail { min-height: 420px; }
  .about-label, .about-copy { padding: 80px 7vw; }
  blockquote { margin-top: 55px; max-width: 760px; }
}

@media (max-width: 640px) {
  .site-header { padding-inline: 20px; }
  .brand { width: 218px; }
  .hero { min-height: 690px; }
  .hero-content, .section-grid, .services, .radar, .audiences, .contact, .development { width: calc(100% - 40px); }
  .hero-content { padding-top: 78px; }
  h1 { font-size: 2.72rem; }
  h2 { font-size: 2.25rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-note { left: 20px; bottom: 24px; }
  .intro, .services, .radar, .audiences, .contact { padding-top: 80px; padding-bottom: 80px; }
  .intro { gap: 15px; }
  .intro-copy { padding-top: 0; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card.featured { grid-column: auto; min-height: 500px; padding: 34px; }
  .process { padding: 80px 20px; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .audience-list > div { grid-template-columns: 45px 1fr; gap: 12px; align-items: start; }
  .audience-list p { grid-column: 2; }
  .development { padding-top: 76px; padding-bottom: 85px; }
  .development::before { height: 560px; }
  .development-heading { margin-bottom: 40px; }
  .hageby-main { height: 340px; }
  .hageby-copy { padding: 42px 25px; }
  .hageby-detail { min-height: 300px; }
  .portfolio-heading { grid-template-columns: 1fr; gap: 14px; margin-top: 75px; }
  .project-gallery { grid-template-columns: 1fr; gap: 14px; }
  .project-card img { height: 310px; }
  .project-card figcaption { flex-direction: column; gap: 7px; padding: 20px; }
  .project-card span { text-align: left; }
  .about-label, .about-copy { padding: 70px 20px; }
  blockquote { margin-top: 40px; }
  .credentials { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 28px 22px; }
  .privacy { padding: 0 20px 70px; }
  .privacy-panel { padding: 40px 24px; }
  .privacy-grid { grid-template-columns: 1fr; gap: 30px; }
  footer { align-items: flex-start; flex-direction: column; gap: 18px; padding: 40px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .radar-sweep { animation: none; transform: rotate(40deg); }
}

/* Søkbare undersider */
.subpage-main { min-height: 70vh; }
.page-hero { background: var(--pine); color: var(--white); padding: 95px max(28px, calc((100vw - var(--max)) / 2)) 90px; }
.page-hero .eyebrow { color: var(--moss); }
.page-hero h1 { max-width: 920px; font-size: clamp(2.8rem, 5vw, 4.8rem); }
.page-hero .lead { max-width: 780px; }
.breadcrumbs { margin-bottom: 38px; font-size: .78rem; color: rgba(255,255,255,.65); }
.breadcrumbs a { color: var(--moss); }
.page-shell { width: min(1120px, calc(100% - 56px)); margin: 0 auto; padding: 90px 0 110px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; column-gap: 9%; row-gap: 60px; align-items: start; }
.page-content { max-width: 750px; min-width: 0; }
.page-content h2 { font-size: clamp(2rem, 3vw, 3rem); margin: 60px 0 22px; }
.page-content h2:first-child { margin-top: 0; }
.page-content h3 { font: 600 1.4rem/1.3 var(--serif); margin: 38px 0 12px; }
.page-content p, .page-content li { color: #46514c; font-size: 1.04rem; }
.page-content ul, .page-content ol { padding-left: 1.25rem; }
.page-content li + li { margin-top: 9px; }
.answer-box { padding: 28px 30px; background: #e7ece6; border-left: 4px solid var(--pine-2); margin: 34px 0; }
.answer-box p:last-child { margin-bottom: 0; }
.fact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 34px 0; }
.fact-card { border: 1px solid var(--line); padding: 24px; background: var(--white); }
.fact-card strong { display: block; font: 600 1.25rem/1.3 var(--serif); margin-bottom: 8px; }
.fact-card p { margin: 0; font-size: .94rem; }
.page-aside { align-self: start; min-width: 0; position: sticky; top: 118px; border-top: 4px solid var(--moss); background: #e9e8e1; padding: 28px; }
.page-aside h2 { font-size: 1.65rem; margin-bottom: 14px; }
.page-aside p { color: var(--muted); font-size: .9rem; }
.page-aside .button { width: 100%; margin-top: 10px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; color: rgba(255,255,255,.68); font-size: .82rem; }
.insight-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.insight-card { display: block; background: var(--paper); padding: 30px; }
.insight-card:hover { background: #eef0e9; }
.insight-card span { color: var(--pine-2); text-transform: uppercase; letter-spacing: .13em; font-size: .7rem; font-weight: 800; }
.insight-card h2 { font-size: 2rem; margin: 12px 0; }
.insight-card p { margin-bottom: 0; color: var(--muted); }
@media (max-width: 960px) {
  .subpage-header nav { position: absolute; }
  .page-shell { display: flex; flex-direction: column; gap: 60px; }
  .page-aside { position: static; top: auto; width: 100%; max-width: 560px; }
}
@media (max-width: 640px) {
  .page-hero { padding: 65px 20px 62px; }
  .page-shell { width: calc(100% - 40px); padding: 65px 0 80px; gap: 45px; }
  .page-aside { max-width: none; }
  .fact-grid { grid-template-columns: 1fr; }
  .answer-box { padding: 23px; }
}
