/* -- Tokens ---------------------------------------------
   The palette is the process: a graded scale running from
   blue-violet (discovery) to pink-violet (assurance).      */
:root {
  --r1: #4536D8;   /* discover  */
  --r2: #6A38DE;   /* assess    */
  --r3: #8B3DD4;   /* prioritise*/
  --r4: #B043C4;   /* remediate */
  --r5: #D24C9C;   /* assure    */

  --accent:       #6A38DE;
  --accent-ink:   #ffffff;
  --accent-soft:  rgba(106, 56, 222, 0.09);
  --accent-line:  rgba(106, 56, 222, 0.22);

  --ground:       #F7F5FC;
  --surface:      #FFFFFF;
  --surface-2:    #F1EDF9;
  --ink:          #17102A;
  --ink-2:        #3D3352;
  --muted:        #6B6183;
  --line:         #E2DCF0;
  --line-strong:  #CFC6E6;

  --shadow: 0 1px 2px rgba(23,16,42,.04), 0 8px 28px -12px rgba(23,16,42,.14);

  --measure: 66ch;
  --gap: clamp(1rem, 2vw, 1.5rem);
  --pad-x: clamp(1.25rem, 5vw, 3.5rem);
  --section-y: clamp(3.5rem, 9vw, 7rem);

  --f-display: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --r1: #6E60FF;
    --r2: #8A5CFF;
    --r3: #A863F0;
    --r4: #C96BE0;
    --r5: #EE72B4;

    --accent:      #9A6CFF;
    --accent-ink:  #150E27;
    --accent-soft: rgba(154, 108, 255, 0.14);
    --accent-line: rgba(154, 108, 255, 0.30);

    --ground:      #120C20;
    --surface:     #1A1330;
    --surface-2:   #221936;
    --ink:         #F3EFFB;
    --ink-2:       #CFC6E4;
    --muted:       #9A90B4;
    --line:        #2C2244;
    --line-strong: #3D3059;

    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 34px -14px rgba(0,0,0,.6);
  }
}

:root[data-theme="dark"] {
  --r1: #6E60FF;
  --r2: #8A5CFF;
  --r3: #A863F0;
  --r4: #C96BE0;
  --r5: #EE72B4;

  --accent:      #9A6CFF;
  --accent-ink:  #150E27;
  --accent-soft: rgba(154, 108, 255, 0.14);
  --accent-line: rgba(154, 108, 255, 0.30);

  --ground:      #120C20;
  --surface:     #1A1330;
  --surface-2:   #221936;
  --ink:         #F3EFFB;
  --ink-2:       #CFC6E4;
  --muted:       #9A90B4;
  --line:        #2C2244;
  --line-strong: #3D3059;

  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 34px -14px rgba(0,0,0,.6);
}

/* -- Base ------------------------------------------------ */
* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; }
a { color: inherit; }

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

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.lede {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  color: var(--ink-2);
  max-width: var(--measure);
}

/* -- Scroll rail: the ramp, read as page progress -------- */
.rail {
  position: fixed;
  inset-block: 0;
  left: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--r1), var(--r2), var(--r3), var(--r4), var(--r5));
  opacity: 0.28;
  z-index: 50;
  pointer-events: none;
}
.rail-knob {
  position: fixed;
  left: 0;
  top: 0;
  width: 3px;
  height: 84px;
  margin-top: -42px;
  background: currentColor;
  color: var(--r1);
  box-shadow: 0 0 16px 1px currentColor;
  z-index: 51;
  pointer-events: none;
  transform: translateY(0);
}
@media (max-width: 720px) {
  .rail, .rail-knob { display: none; }
}

/* -- Header ---------------------------------------------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  padding-block: 0.85rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand__mark {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 5px;
  background: linear-gradient(140deg, var(--r1), var(--r3) 55%, var(--r5));
}
.brand__sub {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  padding-left: 0.55rem;
  margin-left: 0.15rem;
  border-left: 1px solid var(--line-strong);
}
@media (max-width: 620px) { .brand__sub { display: none; } }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1;
  padding: 0.72rem 1.05rem;
  border-radius: 7px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn--solid {
  background: linear-gradient(120deg, var(--r2), var(--r4));
  color: #fff;
  box-shadow: 0 6px 20px -10px var(--r3);
}
.btn--solid:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -12px var(--r3); }
.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover { background: var(--accent-soft); border-color: var(--accent-line); }
.btn--lg { font-size: 0.98rem; padding: 0.9rem 1.35rem; }

/* -- Hero ------------------------------------------------ */
.hero { padding-block: clamp(3rem, 8vw, 5.5rem) clamp(2.5rem, 6vw, 4rem); }
.hero__in { display: flex; flex-direction: column; gap: 1.5rem; }
.hero h1 {
  font-size: clamp(2.35rem, 1.5rem + 4.2vw, 4.25rem);
  max-width: 17ch;
  font-weight: 700;
}
.hero h1 .tail { color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 0.35rem; }
.hero__note {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* -- The ramp: discover -> assure ------------------------- */
.ramp { margin-top: clamp(2rem, 5vw, 3.25rem); }
.ramp__bar {
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(to right, var(--r1), var(--r2), var(--r3), var(--r4), var(--r5));
  transform-origin: left center;
}
.ramp__steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin-top: 0.9rem;
}
.ramp__step { display: flex; flex-direction: column; gap: 0.3rem; }
.ramp__step b {
  font-family: var(--f-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.ramp__step span {
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--muted);
}
.ramp__step:nth-child(1) b { color: var(--r1); }
.ramp__step:nth-child(2) b { color: var(--r2); }
.ramp__step:nth-child(3) b { color: var(--r3); }
.ramp__step:nth-child(4) b { color: var(--r4); }
.ramp__step:nth-child(5) b { color: var(--r5); }
@media (max-width: 720px) {
  .ramp__steps { grid-template-columns: repeat(2, 1fr); gap: 1rem 0.9rem; }
}

/* -- Sections -------------------------------------------- */
.section { padding-block: var(--section-y); border-top: 1px solid var(--line); }
.section__head { display: flex; flex-direction: column; gap: 0.8rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.6rem); max-width: 20ch; }

/* Services */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: var(--gap); }
.svc {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.4rem 1.4rem 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.svc::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: var(--stop, var(--accent));
}
.svc h3 { font-size: 1.12rem; }
.svc p { font-size: 0.925rem; color: var(--ink-2); line-height: 1.6; }
.svc__tag {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stop, var(--accent));
  margin-top: auto;
  padding-top: 0.7rem;
}

/* Method */
.method { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.method__item { display: flex; flex-direction: column; gap: 0.5rem; border-left: 2px solid var(--stop, var(--accent)); padding-left: 1.1rem; }
.method__item h3 { font-size: 1.05rem; }
.method__item p { font-size: 0.92rem; color: var(--ink-2); }

/* Sectors */
.sectors { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  color: var(--ink-2);
  background: var(--surface);
}

/* Founder */
.founder { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .founder { grid-template-columns: 1fr; } }
.founder p + p { margin-top: 1rem; }
.cv { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }
.cv__row { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--line); }
.cv__row:last-child { border-bottom: 0; }
.cv__yrs {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  padding-top: 0.15rem;
}
.cv__what { font-size: 0.9rem; color: var(--ink-2); line-height: 1.5; }
.cv__what b { color: var(--ink); font-weight: 600; }

/* Engagement */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: var(--gap); }
.tier {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.tier--feature { border-color: var(--accent-line); background: var(--accent-soft); }
.tier h3 { font-size: 1.1rem; }
.tier__price {
  font-family: var(--f-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}
.tier__price small { font-family: var(--f-mono); font-size: 0.72rem; font-weight: 400; color: var(--muted); letter-spacing: 0.05em; }
.tier ul { list-style: none; margin: 0.2rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.tier li { font-size: 0.9rem; color: var(--ink-2); padding-left: 1.15rem; position: relative; line-height: 1.5; }
.tier li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--stop, var(--accent));
}
.tiers__note { margin-top: 1.25rem; font-size: 0.85rem; color: var(--muted); max-width: var(--measure); }

/* CTA */
.cta { border-top: 1px solid var(--line); padding-block: var(--section-y); }
.cta__card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  padding: clamp(2rem, 5vw, 3.5rem);
  background: linear-gradient(125deg, var(--r1), var(--r3) 52%, var(--r5));
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  align-items: flex-start;
}
.cta__card h2 { font-size: clamp(1.7rem, 1.3rem + 1.7vw, 2.5rem); color: #fff; max-width: 18ch; }
.cta__card p { max-width: 52ch; color: rgba(255,255,255,.9); font-size: 1rem; }
.cta__card .btn {
  background: #fff;
  color: #1B1233;
}
.cta__card .btn:hover { transform: translateY(-1px); }
.cta__mail {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.4);
  padding-bottom: 1px;
}
.cta__mail:hover { color: #fff; border-color: #fff; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding-block: 2.25rem 3rem; }
.site-foot__in { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.site-foot p { font-size: 0.82rem; color: var(--muted); font-family: var(--f-mono); letter-spacing: 0.02em; }
.site-foot a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.site-foot a:hover { color: var(--ink); }

/* -- Motion ---------------------------------------------- */
.rise { opacity: 0; transform: translateY(14px); transition: opacity .6s cubic-bezier(.2,.7,.3,1), transform .6s cubic-bezier(.2,.7,.3,1); }
.rise.in { opacity: 1; transform: none; }
.ramp__bar { transform: scaleX(0); transition: transform 1.1s cubic-bezier(.22,.75,.25,1) .15s; }
.ramp__bar.in { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; transform: none; transition: none; }
  .ramp__bar { transform: scaleX(1); transition: none; }
  .btn { transition: none; }
  * { scroll-behavior: auto !important; }
}

/* -- Ramp stop per card (replaces inline style attributes) -- */
.s1 { --stop: var(--r1); }
.s2 { --stop: var(--r2); }
.s3 { --stop: var(--r3); }
.s4 { --stop: var(--r4); }
.s5 { --stop: var(--r5); }
