  @font-face { font-family: 'Schibsted Grotesk'; src: url('/fonts/schibsted-grotesk-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
  @font-face { font-family: 'Schibsted Grotesk'; src: url('/fonts/schibsted-grotesk-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
  @font-face { font-family: 'Schibsted Grotesk'; src: url('/fonts/schibsted-grotesk-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
  @font-face { font-family: 'Schibsted Grotesk'; src: url('/fonts/schibsted-grotesk-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
  @font-face { font-family: 'Schibsted Grotesk'; src: url('/fonts/schibsted-grotesk-latin-800-normal.woff2') format('woff2'); font-weight: 800; font-display: swap; }
  @font-face { font-family: 'Newsreader'; src: url('/fonts/newsreader-latin-400-italic.woff2') format('woff2'); font-style: italic; font-weight: 400; font-display: swap; }
  @font-face { font-family: 'Newsreader'; src: url('/fonts/newsreader-latin-500-italic.woff2') format('woff2'); font-style: italic; font-weight: 500; font-display: swap; }

  :root {
    --paper:     #f3f5f0;
    --paper-alt: #e6ece2;
    --ink:       #1b2433;
    --ink-soft:  #3d4859;
    --muted:     #566072;
    --rule:      #a8bad6;
    --rule-soft: #ccd7e7;
    --red:       #b42318;
    --hl:        #e5f20d;
    --sans:  'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
    --serif: 'Newsreader', Georgia, serif;
    --gutter: clamp(1rem, 4vw, 3rem);
  }

  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; }
  body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.6;
    font-feature-settings: "tnum" 0;
    -webkit-font-smoothing: antialiased;
  }
  h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote, table { margin: 0; padding: 0; }
  a { color: inherit; }
  :focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }
  ::selection { background: var(--ink); color: var(--paper); }

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

  /* ---------- Header ---------- */
  .site-head {
    border-bottom: 1px solid var(--rule);
  }
  .site-head .wrap {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 1.5rem; padding-top: 1.25rem; padding-bottom: 1.1rem; flex-wrap: wrap;
  }
  .name { font-weight: 700; font-size: 1.05rem; text-decoration: none; letter-spacing: -0.01em; }
  .site-head nav { display: flex; gap: clamp(1rem, 3vw, 2rem); }
  .site-head nav a {
    text-decoration: none; color: var(--ink-soft); font-size: 0.95rem;
    padding: 0.2rem 0; border-bottom: 1px solid transparent;
  }
  .site-head nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }
  .site-head nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--red); }
  @media (max-width: 560px) {
    .site-head nav { gap: 1.1rem; }
    .site-head nav a { white-space: nowrap; font-size: 0.9rem; }
    .site-head nav .nav-platform { display: none; }
  }

  /* ---------- Hero: ruled ledger paper ---------- */
  .hero {
    position: relative;
    padding: clamp(3rem, 8vw, 6rem) 0 clamp(3.5rem, 8vw, 6.5rem);
    border-bottom: 1px solid var(--rule);
    overflow: hidden;
  }
  /* the double red margin rule of a ledger page */
  @media (max-width: 959px) { .hero::before { display: none; } }
  .hero::before {
    content: ''; position: absolute; top: 0; bottom: 0;
    left: max(calc(var(--gutter) * 0.45), calc((100vw - 1200px) / 2 + var(--gutter) * 0.45));
    width: 5px; border-left: 1px solid var(--red); border-right: 1px solid var(--red);
    opacity: 0.55;
  }
  .hero .wrap {
    display: grid; grid-template-columns: minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 4rem); align-items: start;
  }
  @media (min-width: 960px) {
    .hero .wrap { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  }
  @media (min-width: 960px) { .hero-copy { padding-left: 1.5rem; } }
  .hero h1 {
    font-weight: 800;
    font-size: clamp(2.6rem, 5.6vw, 5rem);
    text-wrap: balance;
    line-height: 1;
    letter-spacing: -0.035em;
    /* headline written on ledger rules: one rule per line box */
    background-image: linear-gradient(to bottom, transparent calc(100% - 1px), var(--rule) calc(100% - 1px));
    background-size: 100% 1em;
    padding-bottom: 0.02em;
    margin-bottom: 2rem;
  }
  .lede { font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--ink-soft); max-width: 34em; }
  .actions { display: flex; flex-wrap: wrap; gap: 0.9rem 1.75rem; align-items: center; margin-top: 2.25rem; }
  .btn {
    display: inline-block; background: var(--ink); color: var(--paper);
    text-decoration: none; font-weight: 600; padding: 0.85rem 1.4rem; border-radius: 3px;
  }
  .btn:hover { background: var(--red); }
  .text-link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
  .text-link:hover { color: var(--red); }

  /* ---------- The voucher: conversation to system ---------- */
  .voucher {
    background: #fbfcfa;
    border: 1px solid var(--rule);
    box-shadow: 0 1px 0 var(--rule-soft), 0 18px 40px -28px rgba(27, 36, 51, 0.45);
    border-radius: 4px;
    position: relative;
  }
  .voucher-head {
    padding: 1.1rem 1.4rem 1rem;
    border-bottom: 1px solid var(--rule);
    display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; justify-content: space-between;
  }
  .voucher-title { font-weight: 600; font-size: 0.95rem; }
  .picker { display: flex; flex-wrap: wrap; gap: 0.4rem; }
  .picker button {
    font: inherit; font-size: 0.85rem; color: var(--ink-soft);
    background: transparent; border: 1px solid var(--rule); border-radius: 999px;
    padding: 0.3rem 0.8rem; cursor: pointer;
  }
  .picker button:hover { border-color: var(--ink); color: var(--ink); }
  .picker button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

  .stages { list-style: none; }
  .stage {
    display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1rem;
    padding: 1.15rem 1.4rem;
    border-bottom: 1px solid var(--rule-soft);
  }
  .stage:last-child { border-bottom: 0; }
  .stage-name { font-size: 0.85rem; font-weight: 600; color: var(--muted); padding-top: 0.2rem; }
  @media (max-width: 520px) {
    .stage { grid-template-columns: minmax(0, 1fr); gap: 0.4rem; padding: 1rem 1.1rem; }
    .voucher-head { padding: 1rem 1.1rem; }
    .stage-name { padding-top: 0; }
  }
  .say {
    font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.4;
    color: var(--ink);
  }
  .agree { font-size: 0.98rem; line-height: 1.55; color: var(--ink-soft); }

  /* journal entry */
  .journal { width: 100%; border-collapse: collapse; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
  .journal caption { text-align: left; font-weight: 600; font-size: 0.85rem; color: var(--muted); padding-bottom: 0.4rem; }
  .journal th { text-align: left; font-weight: 500; color: var(--muted); font-size: 0.8rem; padding: 0 0 0.3rem; border-bottom: 1px solid var(--rule); }
  .journal td { padding: 0.35rem 0; border-bottom: 1px solid var(--rule-soft); }
  .journal .num { text-align: right; width: 6.5rem; }
  .journal th.num { text-align: right; }
  .journal .cr-acct { padding-left: 1.25rem; }
  .journal tfoot td { border-bottom: 0; font-weight: 700; padding-top: 0.45rem; position: relative; }
  .journal tfoot td.num::after {
    content: ''; position: absolute; left: 1rem; right: 0; bottom: -3px; height: 4px;
    border-top: 1px solid var(--red); border-bottom: 1px solid var(--red);
    transform-origin: right;
  }
  .balanced { margin-top: 0.7rem; font-size: 0.85rem; color: var(--red); font-weight: 600; }

  /* system notice */
  .notice { border-left: 3px solid var(--red); padding: 0.2rem 0 0.2rem 0.9rem; }
  .notice-title { font-weight: 700; }
  .notice p + p { margin-top: 0.2rem; color: var(--ink-soft); font-size: 0.95rem; }
  .notice-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; margin-top: 0.75rem; }
  .fake-btn { font-size: 0.85rem; font-weight: 600; border: 1px solid var(--ink); border-radius: 3px; padding: 0.3rem 0.75rem; }
  .notice small { font-size: 0.8rem; color: var(--muted); }

  /* orchestration: the one moment of motion */
  .js .stage { opacity: 0; transform: translateY(6px); }
  .js .play .stage { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }
  .js .play .stage:nth-child(2) { transition-delay: .9s; }
  .js .play .stage:nth-child(3) { transition-delay: 1.8s; }
  .js .journal tfoot td.num::after { transform: scaleX(0); }
  .js .play .journal tfoot td.num::after { transform: scaleX(1); transition: transform .7s cubic-bezier(.6,.1,.2,1) 2.6s; }
  .js .balanced { opacity: 0; }
  .js .play .balanced { opacity: 1; transition: opacity .5s ease 3.2s; }

  @media (prefers-reduced-motion: reduce) {
    .js .stage, .js .balanced { opacity: 1 !important; transform: none !important; transition: none !important; }
    .js .journal tfoot td.num::after { transform: none !important; transition: none !important; }
  }

  /* ---------- Sections ---------- */
  .section { padding: clamp(4rem, 9vw, 7rem) 0; border-bottom: 1px solid var(--rule); }
  .section-intro {
    display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem 4rem;
    margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
  }
  @media (min-width: 900px) { .section-intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; } }
  .section h2, .contact h2 {
    font-weight: 800; font-size: clamp(2rem, 4.2vw, 3.3rem);
    line-height: 1.05; letter-spacing: -0.03em; max-width: 14em;
  }
  .section-intro p { color: var(--ink-soft); max-width: 36em; }

  /* the three parts of the service */
  .part {
    display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem 4rem;
    padding: clamp(2rem, 4vw, 3rem) 0;
    border-top: 1px solid var(--ink);
  }
  @media (min-width: 900px) { .part { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
  .part h3 { font-weight: 700; font-size: clamp(1.4rem, 2.2vw, 1.75rem); line-height: 1.15; letter-spacing: -0.015em; max-width: 12em; }
  .part-body > p { max-width: 38em; }
  .part-body > p + p { margin-top: 1rem; }
  .aside {
    margin-top: 1.75rem; padding: 1.25rem 1.4rem; background: var(--paper-alt);
    border-radius: 4px; max-width: 38em; font-size: 0.98rem; color: var(--ink-soft);
  }
  .aside strong { color: var(--ink); font-weight: 600; }

  /* ledger tables */
  .ledger { width: 100%; border-collapse: collapse; margin-top: 1.75rem; }
  .ledger th { text-align: left; font-weight: 500; font-size: 0.85rem; color: var(--muted); padding: 0 1.5rem 0.5rem 0; border-bottom: 1px solid var(--ink); vertical-align: bottom; }
  .ledger td { padding: 0.9rem 1.5rem 0.9rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
  .ledger td:first-child { font-weight: 700; white-space: nowrap; width: 1%; }
  .ledger td:last-child, .ledger th:last-child { padding-right: 0; }
  .ledger tr:last-child td { border-bottom: 4px double var(--red); }

  .compare td:first-child { white-space: normal; width: 26%; font-weight: 600; }
  .compare td { width: 37%; }
  .compare td:nth-child(2) { color: var(--muted); }
  .compare th:nth-child(3), .compare td:nth-child(3) { font-weight: 600; color: var(--ink); }

  @media (max-width: 640px) {
    .ledger.stack thead { display: none; }
    .ledger.stack tr { display: block; padding: 0.9rem 0; border-bottom: 1px solid var(--rule); }
    .ledger.stack tr:last-child { border-bottom: 4px double var(--red); }
    .ledger.stack td { display: block; border: 0 !important; padding: 0.1rem 0; width: auto !important; white-space: normal; }
    .compare.stack td:nth-child(2)::before { content: 'Traditional: '; font-weight: 600; }
    .compare.stack td:nth-child(3)::before { content: 'With me: '; }
  }

  /* run list */
  .run { margin-top: 1.75rem; }
  .run div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.15rem 1.5rem; padding: 0.9rem 0; border-bottom: 1px solid var(--rule); }
  @media (min-width: 640px) { .run div { grid-template-columns: 9rem minmax(0, 1fr); } }
  .run dt { font-weight: 700; }
  .run dd { color: var(--ink-soft); max-width: 38em; }

  /* about */
  .about { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem 4rem; }
  @media (min-width: 900px) { .about { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
  .about-body p { max-width: 38em; }
  .about-body p + p { margin-top: 1rem; }
  .about-body .pull {
    font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    line-height: 1.35; color: var(--ink); margin-bottom: 1.75rem; max-width: 26em;
  }

  /* contact */
  .contact { padding: clamp(4.5rem, 10vw, 8rem) 0; }
  .contact h2 { margin-bottom: 1.5rem; }
  .contact p { color: var(--ink-soft); max-width: 34em; }
  .email {
    display: inline-block; margin-top: 2rem;
    font-weight: 800; font-size: clamp(1.8rem, 5.5vw, 4rem); letter-spacing: -0.03em; line-height: 1.1;
    text-decoration: none; color: var(--ink);
    background-image: linear-gradient(var(--red), var(--red)); background-repeat: no-repeat;
    background-size: 100% 3px; background-position: 0 100%; padding-bottom: 0.08em;
    overflow-wrap: anywhere;
  }
  .email:hover { color: var(--red); }
  .contact .where { margin-top: 2rem; font-size: 0.95rem; color: var(--muted); }

  .site-foot { border-top: 1px solid var(--rule); }
  .site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding-top: 1.5rem; padding-bottom: 2rem; font-size: 0.88rem; color: var(--muted); }

  /* ---------- Pizazz ---------- */
  .ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }

  @keyframes rule-in { from { background-size: 0% 1em; } to { background-size: 100% 1em; } }
  .js .hero h1 { animation: rule-in 1.4s cubic-bezier(.6,.1,.2,1) .15s both; }

  .actions .dl, .contact-dl .dl {
    display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 600; text-decoration: none;
    padding: 0.35rem 0; border-bottom: 1px solid var(--ink);
  }
  .dl .ic { transition: transform .25s ease; }
  .dl:hover { color: var(--red); border-color: var(--red); }
  .dl:hover .ic { transform: translateY(2px); }
  .dl small { font-size: 0.72rem; font-weight: 700; color: var(--paper); background: var(--red); border-radius: 3px; padding: 0.05rem 0.35rem; margin-left: 0.25rem; vertical-align: 0.1em; }
  .contact-dl { margin-top: 1.5rem; }

  .byline { display: flex; align-items: center; gap: 0.9rem; margin-top: 2.5rem; }
  .byline img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; display: block; box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--rule); }
  .byline p { font-size: 0.92rem; color: var(--muted); line-height: 1.4; }
  .byline b { display: block; color: var(--ink); font-weight: 700; }

  .stage-name { display: flex; gap: 0.4rem; align-items: flex-start; }
  .stage-name .ic { width: 1rem; height: 1rem; margin-top: 0.1rem; color: var(--ink-soft); }
  .js .play .stage:nth-child(3) .stage-name .ic { color: var(--red); }

  .part h3 { display: flex; flex-direction: column; gap: 0.9rem; }
  .part-ic {
    width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center;
    background: var(--hl); color: var(--ink);
  }
  .part-ic .ic { width: 1.45rem; height: 1.45rem; }

  .run dt { display: flex; gap: 0.6rem; align-items: center; }
  .run dt .ic { color: var(--red); }

  .compare .tick { color: var(--red); margin-right: 0.45rem; width: 1rem; height: 1rem; vertical-align: -0.15em; }

  /* pipeline */
  .pipeline { position: relative; margin: 2.25rem 0 0.5rem; --p: 0; }
  .pipeline ol { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.75rem; position: relative; }
  .pipeline li { display: flex; flex-direction: column; gap: 0.15rem; font-size: 0.85rem; line-height: 1.3; }
  .pipeline b { font-weight: 700; margin-top: 0.7rem; }
  .pipeline small { color: var(--muted); font-size: 0.78rem; }
  .pipeline .node {
    width: 2.25rem; height: 2.25rem; border-radius: 50%; display: grid; place-items: center;
    background: var(--paper); border: 1.5px solid var(--rule); color: transparent;
    transition: background .35s ease, border-color .35s ease, color .35s ease, transform .35s ease;
    position: relative; z-index: 1;
  }
  .pipeline .node .ic { width: 1.1rem; height: 1.1rem; }
  .pipeline li.done .node { background: var(--ink); border-color: var(--ink); color: var(--paper); }
  .pipeline li.last.done .node { background: var(--hl); border-color: var(--ink); color: var(--ink); transform: scale(1.12); }
  .pipeline .track { position: absolute; left: 1.125rem; right: calc((100% - 3.75rem) / 6 - 1.125rem); top: 1.125rem; height: 2px; background: var(--rule-soft); }
  .pipeline .fill { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p) * 100%); background: var(--ink); transition: width .5s ease; }
  @media (max-width: 700px) {
    .pipeline ol { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    .pipeline li { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); column-gap: 0.9rem; }
    .pipeline .node { grid-row: span 2; }
    .pipeline b { margin-top: 0.1rem; }
    .pipeline .track { left: 1.08rem; right: auto; top: 1.125rem; bottom: 2.4rem; width: 2px; height: auto; }
    .pipeline .fill { width: auto; right: 0; height: calc(var(--p) * 100%); bottom: auto; transition: height .5s ease; }
  }

  /* about photo */
  .about-side { display: flex; flex-direction: column; gap: 2.5rem; }
  .photo { position: relative; width: min(100%, 320px); transform: rotate(-2.5deg); transition: transform .5s cubic-bezier(.3,.7,.3,1); }
  .photo:hover { transform: rotate(0deg) scale(1.01); }
  .photo img { display: block; width: 100%; height: auto; border: 10px solid #fff; box-shadow: 0 1px 0 var(--rule), 0 22px 40px -24px rgba(27,36,51,.55); }
  .photo .clip { position: absolute; top: -26px; left: 2.25rem; width: 22px; height: 58px; color: #8a94a3; z-index: 2; filter: drop-shadow(0 1px 0 rgba(255,255,255,.7)); }

  /* highlighter */
  .hl {
    background-image: linear-gradient(transparent 58%, var(--hl) 58%, var(--hl) 92%, transparent 92%);
    background-repeat: no-repeat; background-size: 100% 100%;
    -webkit-box-decoration-break: clone; box-decoration-break: clone;
  }
  .js .hl { background-size: 0% 100%; transition: background-size 1.1s cubic-bezier(.6,.1,.2,1) .2s; }
  .js .hl.in { background-size: 100% 100%; }

  /* gentle reveals */
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
  .js [data-reveal].in { opacity: 1; transform: none; }

  .site-foot a { text-decoration: none; border-bottom: 1px solid var(--rule); }
  .site-foot a:hover { color: var(--ink); }

  @media (prefers-reduced-motion: reduce) {
    .js .hero h1 { animation: none; }
    .js [data-reveal] { opacity: 1; transform: none; transition: none; }
    .js .hl { background-size: 100% 100%; transition: none; }
    .photo, .photo:hover { transition: none; }
    .pipeline .fill, .pipeline .node { transition: none; }
  }
