:root {
  --paper: #e8eeec;
  --paper-2: #dfe7e4;
  --ink: #142321;
  --ink-soft: #4a5c59;
  --teal: #0f5a52;
  --teal-deep: #0a3f3a;
  --sand: #c4a052;
  --line: #b7c5c1;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Schibsted Grotesk", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--sand);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.brand svg { width: 28px; height: 28px; flex: none; }
.brand small {
  font-weight: 500;
  color: var(--ink-soft);
  font-size: 14px;
}
.site-nav {
  display: flex;
  gap: 28px;
  font-size: 15px;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
}
.site-nav a:hover { color: var(--ink); }

/* Hero */
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  padding-top: clamp(56px, 9vw, 120px);
  padding-bottom: clamp(56px, 9vw, 120px);
}
.hero h1 {
  font-size: clamp(40px, 6.2vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 0 28px;
  max-width: 13ch;
}
.hero p {
  font-size: clamp(18px, 1.6vw, 20px);
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 36px;
}
.btn {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 15px 26px;
  border-radius: 4px;
}
.btn:hover { background: var(--teal-deep); }

.octagon {
  width: 100%;
  max-width: 460px;
  justify-self: end;
}
.octagon .edge { stroke: var(--teal); stroke-width: 2; fill: none; }
.octagon .spoke { stroke: var(--line); stroke-width: 1.25; }
.octagon .chord { stroke: var(--teal); stroke-width: 1; opacity: .35; }
.octagon .node { fill: var(--paper); stroke: var(--teal); stroke-width: 2; }
.octagon .core { fill: var(--sand); }

@media (prefers-reduced-motion: no-preference) {
  .octagon .chord, .octagon .spoke {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: draw 1.6s ease-out .2s forwards;
  }
  .octagon .spoke { animation-delay: .6s; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

/* Sections */
.section {
  border-top: 1px solid var(--line);
  padding: clamp(64px, 8vw, 104px) 0;
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(24px, 5vw, 64px);
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 750;
  margin: 0;
}
.section-head p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 60ch;
  align-self: end;
}

/* Practice areas */
.practices {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 2px solid var(--ink);
}
.practice {
  padding: 32px 32px 36px 0;
  border-bottom: 1px solid var(--line);
}
.practice:nth-child(even) {
  padding-left: 32px;
  padding-right: 0;
  border-left: 1px solid var(--line);
}
.practice h3 {
  font-size: 23px;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  font-weight: 700;
}
.practice > p {
  margin: 0 0 20px;
  color: var(--ink-soft);
  max-width: 48ch;
}
.practice ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.practice li {
  padding: 9px 0 9px 22px;
  border-top: 1px dashed var(--line);
  position: relative;
  font-size: 16px;
}
.practice li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 17px;
  width: 9px;
  height: 9px;
  background: var(--teal);
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
}

/* Approach (a real sequence) */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  padding: 0 24px 0 0;
  position: relative;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--teal);
  border-radius: 50%;
  font-weight: 700;
  color: var(--teal);
  background: var(--paper);
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
}
.steps li::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 40px;
  right: 0;
  height: 2px;
  background: var(--line);
}
.steps li:last-child::after { display: none; }
.steps h3 { margin: 0 0 8px; font-size: 19px; font-weight: 700; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 16px; }

/* Company / contact */
.company {
  background: var(--teal-deep);
  color: #e3ecea;
  border-top: none;
}
.company .section-head h2 { color: #fff; }
.company .section-head p { color: #b4c9c5; }
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  border-top: 1px solid rgba(255,255,255,.2);
}
.facts div {
  padding: 24px 24px 24px 0;
  border-bottom: 1px solid rgba(255,255,255,.2);
}
.facts dt {
  font-size: 14px;
  color: #9fbab5;
  margin-bottom: 6px;
}
.facts dd {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}
.facts a { text-decoration-color: var(--sand); text-underline-offset: 4px; }
.company .btn { background: var(--sand); color: var(--ink); margin-top: 40px; }
.company .btn:hover { background: #d6b466; }

/* Footer */
.site-footer {
  padding: 28px 0;
  font-size: 14px;
  color: var(--ink-soft);
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* Legal page */
.legal {
  padding: clamp(48px, 7vw, 96px) 0;
}
.legal .wrap { max-width: 760px; }
.legal h1 {
  font-size: clamp(34px, 4.5vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 12px;
}
.legal h2 { font-size: 21px; margin: 40px 0 8px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal .updated { margin-bottom: 32px; }

/* Responsive */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .octagon { justify-self: start; max-width: 200px; order: -1; }
  .section-head { grid-template-columns: 1fr; }
  .practices { grid-template-columns: 1fr; }
  .practice, .practice:nth-child(even) {
    padding: 28px 0 32px;
    border-left: none;
  }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .steps li::after { display: none; }
  .facts { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .site-nav { gap: 18px; font-size: 14px; }
  .site-nav .nav-optional { display: none; }
  .brand small { display: none; }
  .steps { grid-template-columns: 1fr; }
}

/* ---------- Multi-page additions ---------- */
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.page-head {
  padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}
.page-head h1 {
  font-size: clamp(38px, 5.4vw, 66px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 0 20px;
  max-width: 16ch;
}
.page-head p {
  font-size: clamp(18px, 1.6vw, 20px);
  color: var(--ink-soft);
  max-width: 58ch;
  margin: 0;
}

/* Intro statement band */
.statement {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.35;
  letter-spacing: -0.015em;
  font-weight: 500;
  max-width: 34ch;
  margin: 0;
}
.statement-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: end;
}
.statement-grid p.aside { color: var(--ink-soft); margin: 0; max-width: 46ch; }

.practice .more {
  display: inline-block;
  margin-top: 18px;
  font-weight: 600;
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* Standards list */
.standards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--ink);
  margin: 0;
}
.standards div {
  padding: 22px 24px 24px 0;
  border-bottom: 1px solid var(--line);
}
.standards dt { font-weight: 700; font-size: 18px; margin-bottom: 4px; }
.standards dd { margin: 0; color: var(--ink-soft); font-size: 15.5px; max-width: 36ch; }
.note { margin-top: 20px; font-size: 14px; color: var(--ink-soft); max-width: 70ch; }

/* Sectors */
.sectors {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sectors li {
  border: 1.5px solid var(--teal);
  color: var(--teal-deep);
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15.5px;
}

/* Principles */
.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 clamp(32px, 5vw, 64px);
}
.principles div { padding: 24px 0; border-top: 1px solid var(--line); }
.principles h3 { margin: 0 0 6px; font-size: 20px; font-weight: 700; }
.principles p { margin: 0; color: var(--ink-soft); max-width: 50ch; }

/* FAQ */
.faq { border-top: 2px solid var(--ink); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 40px 22px 0;
  font-weight: 650;
  font-size: 19px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 16px;
  font-size: 28px;
  font-weight: 400;
  color: var(--teal);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 24px; color: var(--ink-soft); max-width: 68ch; }
.faq summary:focus-visible { outline: 2px solid var(--sand); outline-offset: 2px; }

/* Service detail (services page) */
.svc-group { padding: clamp(56px, 7vw, 88px) 0; border-top: 1px solid var(--line); }
.svc-group:first-of-type { border-top: none; }
.svc-group > .wrap > h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -0.025em;
  margin: 0 0 10px;
  font-weight: 750;
}
.svc-group > .wrap > p.lead { color: var(--ink-soft); max-width: 60ch; margin: 0 0 36px; }
.svc {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(20px, 4vw, 56px);
  padding: 28px 0 32px;
  border-top: 1px solid var(--line);
}
.svc:first-of-type { border-top: 2px solid var(--ink); }
.svc h3 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -0.01em; max-width: 22ch; }
.svc p { margin: 0 0 14px; color: var(--ink-soft); }
.svc ul { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 32px; }
.svc li {
  padding: 6px 0 6px 20px;
  position: relative;
  font-size: 15.5px;
  break-inside: avoid;
}
.svc li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 8px;
  height: 8px;
  background: var(--teal);
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
}

.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 32px;
  font-size: 15.5px;
}
.jump a { color: var(--teal); font-weight: 600; text-underline-offset: 4px; }

/* Engagement models */
.models {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--ink);
}
.models div { padding: 26px 28px 30px 0; border-bottom: 1px solid var(--line); }
.models div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.models h3 { margin: 0 0 8px; font-size: 20px; }
.models p { margin: 0; color: var(--ink-soft); font-size: 16px; }

/* Licence table */
.licence { width: 100%; border-collapse: collapse; font-size: 16px; }
.licence th, .licence td { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); }
.licence th { font-weight: 600; color: var(--ink-soft); font-size: 14px; border-bottom: 2px solid var(--ink); }
.licence td:last-child { color: var(--teal); font-weight: 600; white-space: nowrap; }

/* CTA band */
.cta-band { background: var(--teal-deep); color: #e3ecea; padding: clamp(56px, 7vw, 88px) 0; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 8px; font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.02em; }
.cta-band p { margin: 0; color: #b4c9c5; max-width: 52ch; }
.cta-band .btn { background: var(--sand); color: var(--ink); margin: 0; }
.cta-band .btn:hover { background: #d6b466; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); }
.contact-grid h2 { font-size: 24px; margin: 0 0 14px; letter-spacing: -0.015em; }
.contact-grid p, .contact-grid li { color: var(--ink-soft); }
.contact-grid ul { padding-left: 20px; margin: 0; }
.contact-grid li { margin-bottom: 8px; }
.facts.light { border-top: 2px solid var(--ink); grid-template-columns: 1fr; }
.facts.light div { border-bottom: 1px solid var(--line); padding: 18px 0; }
.facts.light dt { color: var(--ink-soft); }
.facts.light dd { color: var(--ink); }

/* Footer, richer */
.site-footer.rich { border-top: 1px solid var(--line); padding: 48px 0 28px; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-cols h3 { font-size: 14px; color: var(--ink); margin: 0 0 12px; font-weight: 700; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin-bottom: 8px; }
.footer-cols a { text-decoration: none; }
.footer-cols a:hover { text-decoration: underline; }
.footer-cols p { margin: 0; max-width: 38ch; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 20px; }

@media (max-width: 860px) {
  .statement-grid, .principles, .contact-grid { grid-template-columns: 1fr; }
  .standards { grid-template-columns: 1fr 1fr; }
  .svc { grid-template-columns: 1fr; }
  .models { grid-template-columns: 1fr; }
  .models div + div { padding-left: 0; border-left: none; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-cols > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .standards { grid-template-columns: 1fr; }
  .svc ul { columns: 1; }
  .licence td:last-child { white-space: normal; }
}
.site-footer.rich .wrap { display: block; }
.brand span { white-space: nowrap; }
@media (max-width: 400px) { .site-nav { gap: 14px; } .brand { font-size: 17px; } }
