:root {
  --ink: #1f2a33;
  --ink-soft: #46545e;
  --teal: #0e8c8c;
  --teal-deep: #0a6b6b;
  --amber: #f5a623;
  --amber-deep: #dd8f0b;
  --mist: #eef5f5;
  --line: #d3e0e0;
  --paper: #ffffff;
  --radius: 6px;
  --wrap: 1120px;
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { color: var(--teal-deep); }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 3px; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 20;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--radius);
}
.skip:focus { top: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); }
.brand-icon { height: 2.25rem; width: auto; }
.brand-text { font-size: 1.05rem; line-height: 1.1; }
.brand-text strong { font-weight: 800; }
.site-header nav { display: flex; align-items: center; gap: clamp(.9rem, 3vw, 1.75rem); }
.site-header nav a { white-space: nowrap; text-decoration: none; color: var(--ink); font-weight: 500; }
.site-header nav a:hover { color: var(--teal-deep); }
.site-header nav .nav-cta {
  background: var(--ink); color: #fff; padding: .5rem 1rem; border-radius: var(--radius);
}
.site-header nav .nav-cta:hover { background: var(--teal-deep); color: #fff; }

/* Hero */
.hero {
  max-width: calc(var(--wrap) + 2 * clamp(1rem, 4vw, 2.5rem)); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(1.5rem, 5vw, 4rem); align-items: center;
  padding: clamp(2.5rem, 7vw, 5.5rem) clamp(1rem, 4vw, 2.5rem);
}
.hero h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); font-weight: 800; max-width: 12ch; }
.lead { margin-top: 1.5rem; font-size: 1.25rem; color: var(--ink-soft); max-width: 34rem; }
.actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }

.btn {
  display: inline-block; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  padding: .8rem 1.4rem; border-radius: var(--radius); border: 2px solid transparent;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: var(--amber-deep); }
.btn-primary:disabled { opacity: .6; cursor: progress; }
.btn-quiet { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-quiet:hover { border-color: var(--teal); color: var(--teal-deep); }

.hero-map {
  padding: clamp(.75rem, 3vw, 2rem);
  background-image: radial-gradient(var(--line) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  background-position: center;
}
.map { display: block; width: 100%; max-height: 34rem; height: auto; overflow: visible; }
.map-fill { fill: var(--teal); fill-opacity: .08; }
.map-outline { fill: none; stroke: var(--teal); stroke-width: 4.5; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.map-traces path { fill: none; stroke: var(--teal); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; opacity: .85; }
.map-nodes circle { fill: var(--amber); transform-box: fill-box; transform-origin: center; }

/* The one animated moment: the state is drawn, then the circuit lights up. */
@media (prefers-reduced-motion: no-preference) {
  .map-fill { animation: fade 1s ease-out .9s backwards; }
  .map-outline { animation: draw 1.8s cubic-bezier(.6, .05, .3, 1) backwards; }
  .map-traces path { animation: draw .9s ease-out backwards; }
  .map-nodes circle { animation: pop .45s cubic-bezier(.3, 1.6, .5, 1) backwards; }
}
@keyframes draw { from { stroke-dashoffset: 1; } }
@keyframes fade { from { fill-opacity: 0; } }
@keyframes pop { from { transform: scale(0); opacity: 0; } }

/* Bands */
.band { padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 2.5rem); }
.band-mist { background: var(--mist); }
.band-inner { max-width: var(--wrap); margin: 0 auto; }
.band h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); font-weight: 700; margin-bottom: clamp(1.5rem, 4vw, 2.75rem); }

/* Services */
.services { margin: 0; border-top: 2px solid var(--ink); }
.service {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1rem 3rem;
  padding: 1.6rem 0; border-bottom: 1px solid var(--line);
}
.service dt { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.service dd { margin: 0; color: var(--ink-soft); max-width: 42rem; }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 2.75rem 1.5rem 0 0; border-top: 3px solid var(--teal); }
.steps li::before {
  content: counter(step);
  position: absolute; top: -1.05rem; left: 0;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--amber); color: var(--ink); font-weight: 800;
  display: grid; place-items: center; font-size: 1rem;
}
.steps h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .5rem; }
.steps p { color: var(--ink-soft); }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.contact-copy h2 { margin-bottom: 1rem; }
.contact-copy p { color: var(--ink-soft); font-size: 1.15rem; max-width: 26rem; }
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
label { font-weight: 600; font-size: .95rem; }
.optional { font-weight: 400; color: var(--ink-soft); }
input, textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: .75rem .9rem; background: var(--paper);
  border: 1.5px solid #9db3b3; border-radius: var(--radius);
}
input:focus, textarea:focus { outline: 3px solid var(--amber); outline-offset: 1px; border-color: var(--ink); }
textarea { resize: vertical; min-height: 9rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }
.status { min-height: 1.6em; font-weight: 500; }
.status.ok { color: var(--teal-deep); }
.status.err { color: #a12622; }

/* Footer */
.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
  padding: 1.75rem clamp(1rem, 4vw, 2.5rem);
  border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .95rem;
}

/* Small screens */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-map { order: -1; max-width: 26rem; margin: 0 auto; width: 100%; }
  .hero h1 { max-width: none; }
  .service { grid-template-columns: 1fr; gap: .5rem; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.75rem; }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .brand-text { display: none; }
  .site-header nav a[href="#process"] { display: none; }
  .steps { grid-template-columns: 1fr; }
}

.page-title { font-size: clamp(2.5rem, 7vw, 4rem); font-weight: 800; }

/* About page */
.about {
  max-width: calc(var(--wrap) + 2 * clamp(1rem, 4vw, 2.5rem)); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 5vw, 4.5rem); align-items: start;
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1rem, 4vw, 2.5rem);
}
.about-photo { margin: 0; position: sticky; top: 6rem; }
.about-photo img {
  display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--radius); background: var(--mist);
  border-bottom: 6px solid var(--amber);
}
.about-photo figcaption { margin-top: 1rem; display: grid; gap: .1rem; }
.about-photo figcaption strong { font-size: 1.25rem; letter-spacing: -0.01em; }
.about-photo figcaption span { color: var(--ink-soft); }
.about-copy h1 { font-size: clamp(2.4rem, 5.5vw, 3.8rem); font-weight: 800; }
.about-copy .lead { margin-top: 1.25rem; }
.about-copy > p:not(.lead) { margin-top: 1.25rem; max-width: 38rem; color: var(--ink-soft); }
.values { margin: 2.5rem 0 0; border-top: 2px solid var(--ink); }
.values > div { display: grid; grid-template-columns: minmax(0, .5fr) minmax(0, 1.5fr); gap: .5rem 2rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.values dt { font-weight: 700; font-size: 1.15rem; }
.values dd { margin: 0; color: var(--ink-soft); }
.site-header nav a[aria-current="page"] { color: var(--teal-deep); font-weight: 700; }

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about-photo { position: static; max-width: 22rem; }
  .values > div { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .brand-text { display: none; }
}
@media (max-width: 560px) {
  .site-header nav a[href$="#services"], .site-header nav a[href$="#expertise"], .site-header nav a[href$="#projects"] { display: none; }
}

/* Profile page */
.profile-link { margin-top: 1.25rem; }
.profile-h2 { font-size: 1.6rem; font-weight: 700; margin-top: 2.5rem; }
.profile-h2 + .values { margin-top: 1rem; }
.profile-teaser { margin-top: 1.5rem; font-weight: 600; }
.about-photo figcaption span + span { margin-top: 0; }

/* Profile: goal banner */
.goal { background: #f8f7f4; padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2.5rem); }
.goal-inner { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.goal-person { margin: 0; display: grid; justify-items: center; text-align: center; gap: .15rem; }
.goal-person img {
  width: clamp(9rem, 22vw, 15.5rem); height: clamp(9rem, 22vw, 15.5rem);
  border-radius: 50%; object-fit: cover; object-position: 50% 30%;
  background: #e8e6e0; margin-bottom: 1rem;
}
.goal-person figcaption { display: grid; gap: .1rem; justify-items: center; }
.goal-person strong { font-size: 1.15rem; letter-spacing: 0; }
.goal-person span { color: #5b5b58; font-size: .85rem; }
.goal-copy { padding-top: .5rem; }
.goal-kicker { font-size: clamp(1.15rem, 2.2vw, 1.4rem); font-weight: 700; letter-spacing: 0; color: #8b2e25; margin-bottom: .6rem; line-height: 1.2; }
.goal-statement { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 400; line-height: 1.3; letter-spacing: -0.005em; max-width: 34ch; color: var(--ink); }
.goal-detail { margin-top: 1.5rem; color: #5b5b58; font-size: 1.1rem; max-width: 40rem; }

.profile-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.profile-body h2 { margin-bottom: 1.25rem; }
.profile-body p { color: var(--ink-soft); max-width: 36rem; }
.profile-body p + p { margin-top: 1rem; }
.profile-body .values { margin-top: 0; }

@media (max-width: 860px) {
  .goal-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .goal-statement, .goal-detail { margin-left: auto; margin-right: auto; }
  .profile-body { grid-template-columns: 1fr; }
  .profile-body .values > div { grid-template-columns: 1fr; }
}
.goal-person figcaption { display: grid; gap: .1rem; justify-items: center; }

