/* GNP Consultancy Services | Nordic slate
   One vertical line runs down every page; everything hangs off it. */

:root {
  --slate: #334155;
  --slate-deep: #1E293B;
  --ice: #F1F5F9;
  --emerald: #059669;
  --emerald-deep: #047857;
  --white: #FFFFFF;
  --hair: #CBD5E1;
  --display: "Schibsted Grotesk", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --copy: "Maven Pro", "Segoe UI", Verdana, sans-serif;
  --line-x: 27px;           /* where the line sits on small screens */
  --gutter: 62px;           /* room the line needs on small screens */
}

*, ::before, ::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ice); color: var(--slate); font: 400 1.0625rem/1.7 var(--copy); }
h1, h2, h3 { font-family: var(--display); color: var(--slate-deep); line-height: 1.12; margin: 0; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { max-width: 100%; display: block; }
a { color: var(--emerald-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--slate-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--emerald-deep); outline-offset: 3px; border-radius: 2px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 70px; top: -60px; z-index: 80; background: var(--slate-deep); color: var(--white); padding: 10px 14px; }
.skip-link:focus { top: 12px; color: var(--white); }

/* ---------- corner button + left panel ---------- */
.nav-corner {
  position: fixed; z-index: 70; top: 10px; left: 4px; width: 46px; height: 46px; padding: 0; cursor: pointer;
  background: var(--white); color: var(--slate-deep); border: 1px solid var(--slate); border-radius: 50%;
  display: grid; place-items: center; transition: background .2s, color .2s, border-color .2s;
}
.nav-corner:hover { border-color: var(--emerald); color: var(--emerald-deep); }
.nav-corner i { display: block; width: 18px; height: 12px; position: relative; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; transition: border-color .2s; }
.nav-corner i::before, .nav-corner i::after { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 2px; background: currentColor; transition: transform .25s; }
.nav-corner[aria-expanded="true"] { background: var(--emerald); border-color: var(--emerald); color: var(--white); }
.nav-corner[aria-expanded="true"] i { border-color: transparent; }
.nav-corner[aria-expanded="true"] i::before { transform: rotate(45deg); }
.nav-corner[aria-expanded="true"] i::after { transform: rotate(-45deg); }

.nav-veil { position: fixed; inset: 0; z-index: 50; background: rgba(30, 41, 59, .45); }
.nav-panel {
  position: fixed; z-index: 60; top: 0; bottom: 0; left: 0; width: min(86vw, 350px);
  background: var(--slate-deep); color: var(--white); padding: 84px 26px 30px 0; overflow-y: auto;
  transform: translateX(-102%); visibility: hidden;
  transition: transform .28s ease, visibility 0s linear .28s;
}
.nav-panel.is-in { transform: none; visibility: visible; transition: transform .28s ease, visibility 0s; }
.nav-panel ul { position: relative; padding-left: var(--line-x); }
.nav-panel ul::before { content: ""; position: absolute; left: var(--line-x); top: 0; bottom: 0; width: 1px; background: #64748B; }
.nav-panel a {
  position: relative; display: block; padding: 15px 8px 15px 34px; color: var(--white); text-decoration: none;
  font: 600 1.3rem/1.2 var(--display); letter-spacing: -.01em;
}
.nav-panel a::before {
  content: ""; position: absolute; left: -6px; top: 50%; width: 13px; height: 13px; margin-top: -6.5px; border-radius: 50%;
  background: var(--slate-deep); border: 2px solid #94A3B8; transition: background .2s, border-color .2s;
}
.nav-panel a:hover { color: #A7F3D0; }
.nav-panel a:hover::before, .nav-panel a[aria-current="page"]::before { background: var(--emerald); border-color: var(--emerald); }
.nav-panel a[aria-current="page"] { color: #A7F3D0; }
.nav-panel a:focus-visible { outline-color: #A7F3D0; outline-offset: -3px; }
.nav-panel p { margin: 26px 0 0 calc(var(--line-x) + 34px); font-size: 1rem; color: #CBD5E1; }

/* ---------- top strip ---------- */
.top { padding: 14px 16px 14px var(--gutter); min-height: 66px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 20px; border-bottom: 1px solid var(--hair); background: var(--white); }
.top-brand { font: 700 1.15rem/1.2 var(--display); color: var(--slate-deep); text-decoration: none; letter-spacing: -.02em; }
.top-brand b { color: var(--emerald-deep); font-weight: 800; }
.top-note { margin: 0; font-size: 1rem; color: var(--slate); }

/* ---------- the timeline ---------- */
.tl { position: relative; padding: 34px 16px 10px var(--gutter); }
.tl::before { content: ""; position: absolute; left: var(--line-x); top: 0; bottom: 0; width: 1px; background: var(--slate); }
.tl::after {
  content: ""; position: absolute; left: calc(var(--line-x) - 1px); top: 0; bottom: 0; width: 3px; background: var(--emerald);
  transform-origin: top; transform: scaleY(var(--read, 0));
}
.tl-item { position: relative; z-index: 1; margin-bottom: 34px; }
.tl-node {
  position: absolute; z-index: 1; left: calc(var(--line-x) - var(--gutter) - 8px); top: 26px; width: 17px; height: 17px; border-radius: 50%;
  background: var(--ice); border: 2px solid var(--slate); transition: background .2s, border-color .2s, transform .2s;
}
.tl-item:hover > .tl-node, .tl-item:focus-within > .tl-node { background: var(--emerald); border-color: var(--emerald); transform: scale(1.15); }
.tl-node.is-major { width: 25px; height: 25px; left: calc(var(--line-x) - var(--gutter) - 12px); top: 22px; border-color: var(--emerald); box-shadow: inset 0 0 0 5px var(--ice); background: var(--emerald); }
.tl-meta { font: 600 .95rem/1.3 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--slate); margin: 0 0 10px; min-width: 0; }
.tl-meta .num { display: none; }
.tl-meta svg { width: min(100%, 260px); margin: 4px 0 6px; }
.tl-card { background: var(--white); border: 1px solid var(--hair); padding: 24px 20px 22px; min-width: 0; position: relative; transition: border-color .2s; }
.tl-card::before { content: ""; position: absolute; top: 34px; left: calc(var(--line-x) - var(--gutter)); width: calc(var(--gutter) - var(--line-x)); border-top: 1px solid var(--slate); }
.tl-item:hover > .tl-card { border-color: var(--slate); }
.tl-card.is-plain { background: none; border: 0; padding: 14px 0 6px; }
.tl-card.is-plain::before { display: none; }
.tl-card h1 { font-size: clamp(2.1rem, 6.6vw, 3.7rem); font-weight: 800; letter-spacing: -.035em; overflow-wrap: anywhere; }
.tl-card h1 span { color: var(--emerald-deep); }
.tl-card h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); font-weight: 700; margin-bottom: 12px; }
.tl-card h3 { font-size: 1.15rem; font-weight: 700; margin: 18px 0 6px; }
.tl-card > :last-child { margin-bottom: 0; }
.lead { font-size: 1.2rem; line-height: 1.6; margin-top: 18px; max-width: 34em; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer; text-decoration: none;
  font: 600 1.02rem/1.2 var(--display); padding: 13px 20px; border-radius: 0;
  background: var(--slate-deep); color: var(--white); border: 1px solid var(--slate-deep); transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--emerald-deep); border-color: var(--emerald-deep); color: var(--white); }
.btn.is-line { background: transparent; color: var(--slate-deep); border-color: var(--slate); }
.btn.is-line:hover { background: var(--white); color: var(--emerald-deep); border-color: var(--emerald-deep); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.more { font: 600 1.02rem/1.2 var(--display); display: inline-block; padding: 6px 0; }
.more::after { content: " \2192"; }

.rows li { padding: 11px 0 11px 22px; border-top: 1px solid var(--hair); position: relative; line-height: 1.5; }
.rows li:first-child { border-top: 0; }
.rows li::before { content: ""; position: absolute; left: 2px; top: 1.15em; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--emerald); }
.steps { counter-reset: s; }
.steps li { counter-increment: s; padding: 11px 0 11px 44px; border-top: 1px solid var(--hair); position: relative; line-height: 1.5; }
.steps li:first-child { border-top: 0; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 11px; font: 700 1rem/1.6 var(--display); color: var(--emerald-deep); }

/* ---------- readiness checklist ---------- */
.ready-grid { display: grid; gap: 22px; margin-top: 8px; }
.ready-grid > * { min-width: 0; }
.chk { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--hair); cursor: pointer; line-height: 1.45; }
.chk:first-child { border-top: 0; }
.chk input { appearance: none; -webkit-appearance: none; width: 28px; height: 28px; margin: 0; border: 2px solid var(--slate); border-radius: 50%; background: var(--white); cursor: pointer; display: grid; place-items: center; transition: background .15s, border-color .15s; }
.chk input::after { content: ""; width: 12px; height: 7px; border-left: 3px solid var(--white); border-bottom: 3px solid var(--white); transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.chk input:checked { background: var(--emerald); border-color: var(--emerald); }
.chk input:checked::after { opacity: 1; }
.chk:hover input { border-color: var(--emerald); }
.chk input:checked + span { color: var(--slate-deep); }
.ring-box { text-align: center; padding: 20px 16px; background: var(--ice); border: 1px solid var(--hair); }
.ring { width: 170px; height: 170px; margin: 0 auto; }
.ring circle { fill: none; stroke-width: 10; }
.ring .ring-track { stroke: var(--hair); }
.ring .ring-fill { stroke: var(--emerald); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 60px 60px; transition: stroke-dashoffset .4s ease; }
.ring text { font: 800 26px var(--display); fill: var(--slate-deep); text-anchor: middle; }
.ring .ring-sub { font: 500 9.5px var(--copy); fill: var(--slate); letter-spacing: .04em; }
.ring-say { margin: 14px auto 0; max-width: 24em; min-height: 3.2em; }
.ring-box .btn-row { justify-content: center; }
.ring-fine { font-size: 1rem; margin: 14px 0 0; }

/* ---------- forms ---------- */
.fld { margin-bottom: 18px; }
.fld label { display: block; font: 600 1rem/1.3 var(--display); color: var(--slate-deep); margin-bottom: 6px; }
.fld input, .fld select, .fld textarea { width: 100%; font: inherit; color: var(--slate-deep); background: var(--ice); border: 1px solid var(--slate); border-radius: 0; padding: 12px 14px; }
.fld textarea { min-height: 250px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { background: var(--white); outline: 2px solid var(--emerald-deep); outline-offset: 1px; }
.fld-err { margin: 6px 0 0; color: #B91C1C; font-weight: 600; font-size: 1rem; }
.fld.is-off input, .fld.is-off textarea { border-color: #B91C1C; border-width: 2px; }
.fld-note { padding: 12px 14px; border-left: 3px solid var(--emerald); background: var(--ice); margin: 0 0 16px; }
.send-note { margin: 14px 0 0; font-size: 1rem; }
.send-state { margin: 16px 0 0; padding: 12px 14px; border: 1px solid var(--emerald-deep); background: #ECFDF5; color: var(--slate-deep); }
.facts > div { padding: 12px 0; border-top: 1px solid var(--hair); }
.facts > div:first-child { border-top: 0; padding-top: 0; }
.facts dt { font: 600 .9rem/1.3 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.facts dd { margin: 3px 0 0; color: var(--slate-deep); overflow-wrap: anywhere; }
dl { margin: 0; }

/* ---------- foot ---------- */
.ft { background: var(--white); border-top: 1px solid var(--hair); padding: 0 16px 26px var(--gutter); position: relative; }
.ft::before { content: ""; position: absolute; left: var(--line-x); top: 0; height: 44px; width: 1px; background: var(--slate); }
.ft::after { content: ""; position: absolute; left: calc(var(--line-x) - 6px); top: 44px; width: 13px; height: 13px; background: var(--slate); }
.ft-grid { display: grid; gap: 26px; padding-top: 34px; }
.ft-grid > * { min-width: 0; }
.ft h2 { font-size: .9rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); margin-bottom: 10px; }
.ft .ft-brand { font: 800 1.4rem/1.2 var(--display); color: var(--slate-deep); margin: 0 0 6px; letter-spacing: -.02em; }
.ft-links a { display: inline-block; padding: 5px 0; color: var(--slate-deep); text-decoration: none; border-bottom: 1px solid transparent; }
.ft-links a:hover { color: var(--emerald-deep); border-bottom-color: var(--emerald-deep); }
.ft-end { margin: 26px 0 0; padding-top: 14px; border-top: 1px solid var(--hair); font-size: 1rem; }

/* ---------- wide screens: line in the centre, items alternate ---------- */
@media (min-width: 900px) {
  .nav-corner { top: 16px; left: 16px; width: 52px; height: 52px; }
  .nav-panel { padding-top: 98px; }
  .top { padding: 20px 28px 20px 88px; min-height: 84px; }
  .top-brand { font-size: 1.3rem; }

  .tl { width: min(1100px, 100% - 176px); margin: 0 auto; padding: 56px 0 20px; }
  .tl::before { left: 50%; }
  .tl::after { left: calc(50% - 1px); }
  .tl-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 96px; align-items: start; margin-bottom: 56px; }
  .tl-node { left: calc(50% - 8px); top: 32px; }
  .tl-node.is-major { left: calc(50% - 12px); top: 28px; }
  .tl-card { padding: 30px 30px 28px; }
  .tl-card::before { top: 40px; width: 48px; }
  .tl-item.on-left > .tl-card { grid-column: 1; grid-row: 1; }
  .tl-item.on-left > .tl-card::before { left: 100%; }
  .tl-item.on-left > .tl-meta { grid-column: 2; grid-row: 1; }
  .tl-item.on-right > .tl-card { grid-column: 2; grid-row: 1; }
  .tl-item.on-right > .tl-card::before { left: -48px; }
  .tl-item.on-right > .tl-meta { grid-column: 1; grid-row: 1; text-align: right; }
  .tl-item.on-right > .tl-meta svg { margin-left: auto; }
  .tl-meta { margin: 0; padding-top: 30px; }
  .tl-meta .num { display: block; font: 800 5.4rem/.8 var(--display); letter-spacing: -.05em; color: var(--hair); margin-bottom: 14px; }
  .tl-meta svg { width: min(100%, 320px); margin-top: 0; }
  .tl-card.is-plain { padding: 16px 0 0; }
  .tl-item.is-wide > .tl-card { grid-column: 1 / -1; padding: 44px 40px 36px; }
  .tl-item.is-wide > .tl-card::before { display: none; }
  .tl-item.is-wide > .tl-node { top: -9px; }
  .tl-item.is-wide > .tl-meta { grid-column: 1 / -1; text-align: center; padding: 0 0 26px; background: var(--ice); position: relative; z-index: 1; justify-self: center; padding-inline: 18px; }
  .tl-item.is-wide { margin-top: 20px; }
  .ready-grid { grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: start; }
  .ring-box { position: sticky; top: 24px; }

  .ft { padding: 0 0 30px; }
  .ft::before { left: 50%; }
  .ft::after { left: calc(50% - 6px); }
  .ft-grid { width: min(1100px, 100% - 176px); margin: 0 auto; grid-template-columns: 1fr .8fr 1.2fr; gap: 50px; padding-top: 84px; }
  .ft-end { width: min(1100px, 100% - 176px); margin-inline: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav-panel, .nav-panel.is-in, .ring .ring-fill, .tl-node, .nav-corner i::before, .nav-corner i::after { transition: none; }
}
