@font-face { font-family: 'Newsreader'; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/newsreader-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Newsreader'; font-weight: 400; font-style: italic; font-display: swap; src: url(/fonts/newsreader-latin-400-italic.woff2) format('woff2'); }
@font-face { font-family: 'Newsreader'; font-weight: 500; font-display: swap; src: url(/fonts/newsreader-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Newsreader'; font-weight: 600; font-display: swap; src: url(/fonts/newsreader-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Public Sans'; font-weight: 400; font-display: swap; src: url(/fonts/public-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Public Sans'; font-weight: 500; font-display: swap; src: url(/fonts/public-sans-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Public Sans'; font-weight: 600; font-display: swap; src: url(/fonts/public-sans-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Public Sans'; font-weight: 700; font-display: swap; src: url(/fonts/public-sans-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Kalam'; font-weight: 400; font-display: swap; src: url(/fonts/kalam-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Kalam'; font-weight: 700; font-display: swap; src: url(/fonts/kalam-latin-700-normal.woff2) format('woff2'); }

/* The logo's navy and gold, cash-book paper, feint ruling, the red margin line. */
:root {
  --green: #0f2552;
  --green-2: #1b4a96;
  --paper: #f5f6f8;
  --white: #ffffff;
  --ink: #141b2b;
  --ink-2: #464f63;
  --rule: #b9cfe0;
  --margin: #c2412d;
  --brass: #c98a0b;
  --brass-soft: #f7edd5;
  --line: #dde1ea;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --hand: 'Kalam', 'Comic Sans MS', cursive;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: var(--green-2); text-underline-offset: 3px; }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(1160px, 100% - 48px); margin: 0 auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--green); margin: 0; }
h1 { font-size: clamp(42px, 6.2vw, 76px); line-height: 1.02; letter-spacing: -0.02em; }
h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.08; letter-spacing: -0.015em; }
h3 { font-size: 24px; line-height: 1.2; }
p { margin: 0; }
.lead { font-size: 20px; line-height: 1.55; color: var(--ink-2); max-width: 34em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(245, 246, 248, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--green); }
.brand img { width: 40px; height: auto; flex-shrink: 0; }
.brand b { font-family: var(--sans); font-weight: 700; font-size: 21px; letter-spacing: .06em; text-transform: uppercase; display: block; line-height: 1; }
.brand small { display: block; font-size: 11px; letter-spacing: .14em; color: var(--ink-2); margin-top: 4px; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--green-2); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 10px; font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-2); color: var(--white); }
.btn-plain { border-color: var(--green); color: var(--green); background: transparent; }
.btn-plain:hover { background: var(--white); }
.top .btn { height: 42px; padding: 0 18px; font-size: 15px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; color: var(--green); }

/* Hero: the cash book */
.hero { padding: 72px 0 96px; }
.hero .wrap { display: grid; grid-template-columns: 1.08fr 1fr; gap: 64px; align-items: center; }
.hero h1 { max-width: 11em; }
.hero .lead { margin-top: 26px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }

.book { position: relative; margin: 0; background: var(--white); border-radius: 6px; padding: 26px 28px 24px 74px; transform: rotate(1.2deg);
  box-shadow: 0 1px 0 #e6ebe6, 0 24px 48px -24px rgba(15, 37, 82, .35), 0 2px 6px rgba(15, 37, 82, .08); }
.book::before { content: ''; position: absolute; left: 56px; top: 0; bottom: 0; width: 2px; background: var(--margin); opacity: .75; }
.book::after { content: ''; position: absolute; left: 61px; top: 0; bottom: 0; width: 1px; background: var(--margin); opacity: .45; }
.book-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.book-head h2 { font-size: 26px; }
.book-head span { font-family: var(--hand); font-size: 20px; color: var(--ink-2); }
.book ol { list-style: none; margin: 0; padding: 0; }
.book li { display: grid; grid-template-columns: 1fr 38px; align-items: end; min-height: 46px; padding: 10px 0 6px; border-bottom: 1px solid var(--rule); font-family: var(--hand); font-size: 22px; line-height: 1.25; color: #22305a; }
.book li .tick { color: var(--brass); font-weight: 700; font-size: 26px; text-align: center; }
.book .close { margin-top: 18px; border-top: 2px solid var(--ink); padding-top: 12px; flex-wrap: wrap; display: flex; justify-content: space-between; gap: 12px; font-family: var(--hand); font-size: 22px; color: var(--green); }
.book .close b { font-weight: 700; }
@media (prefers-reduced-motion: no-preference) {
  .book li .tick { animation: tick .35s ease-out both; }
  .book li:nth-child(1) .tick { animation-delay: .5s; }
  .book li:nth-child(2) .tick { animation-delay: .9s; }
  .book li:nth-child(3) .tick { animation-delay: 1.3s; }
  .book li:nth-child(4) .tick { animation-delay: 1.7s; }
  .book li:nth-child(5) .tick { animation-delay: 2.1s; }
  .book .close { animation: show .5s ease-out 2.6s both; }
}
@keyframes tick { from { opacity: 0; transform: scale(1.6) rotate(-12deg); } to { opacity: 1; transform: none; } }
@keyframes show { from { opacity: 0; } to { opacity: 1; } }

/* Sections */
section { scroll-margin-top: 80px; }
.band { padding: 96px 0; }
.band-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.intro { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: end; margin-bottom: 56px; }
.intro p { color: var(--ink-2); font-size: 18px; max-width: 36em; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--green); }
.service { padding: 30px 32px 8px 0; }
.service + .service { padding-left: 32px; border-left: 1px solid var(--line); }
.service h3 { margin-bottom: 12px; }
.service p { color: var(--ink-2); }
.service ul { margin: 16px 0 0; padding: 0 0 0 18px; color: var(--ink); }
.service li { margin: 4px 0; }
.service li::marker { color: var(--brass); }

/* KingsBook */
.product { background: var(--green); color: #e3e8f3; padding: 96px 0; overflow: hidden; }
.product .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: center; }
.product h2 { color: var(--white); }
.product .lead { color: #c9d3e8; margin-top: 18px; }
.product ul { list-style: none; padding: 0; margin: 28px 0 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.product li { padding-left: 26px; position: relative; }
.product li::before { content: '✓'; position: absolute; left: 0; color: #f0b429; font-weight: 700; }
.product .btn-green { background: var(--brass); color: var(--white); }
.product .btn-green:hover { background: #a87308; }
.product .btn-plain { border-color: #8da3cf; color: var(--white); }
.product .btn-plain:hover { background: rgba(255, 255, 255, .08); }
.phone { justify-self: center; width: min(250px, 70%); border-radius: 34px; padding: 10px; background: #081733; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .6); transform: rotate(-3deg); }
.phone img { border-radius: 26px; }

/* Sectors */
.sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; margin: 0; padding: 0; list-style: none; }
.sectors li { padding: 18px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.sectors b { font-family: var(--serif); font-weight: 500; font-size: 22px; color: var(--green); }
.sectors span { color: var(--ink-2); font-size: 15px; }

/* How we work: a real sequence */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--brass); color: var(--brass); font-family: var(--serif); font-size: 22px; margin-bottom: 18px; }
.steps h3 { font-size: 22px; margin-bottom: 8px; }
.steps p { color: var(--ink-2); }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about .lead { margin-top: 20px; }
.facts { margin: 0; border-top: 2px solid var(--green); }
.facts div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--ink-2); font-size: 15px; }
.facts dd { margin: 0; font-weight: 500; }

/* Contact */
.contact { background: var(--brass-soft); }
.contact .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.contact .lead { margin-top: 18px; }
.contact .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.reach { margin: 0; padding: 0; list-style: none; }
.reach li { padding: 16px 0; border-bottom: 1px solid #e4d2a6; }
.reach small { display: block; color: var(--ink-2); font-size: 14px; }
.reach a, .reach span { font-size: 19px; font-weight: 600; color: var(--green); text-decoration: none; }
.reach a:hover { text-decoration: underline; }

footer { padding: 40px 0 48px; font-size: 14px; color: var(--ink-2); }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer nav { display: flex; gap: 20px; }
footer a { color: var(--ink-2); }

/* Per-service buttons */
.svc-btn { margin-top: 20px; height: 42px; font-size: 15px; }

/* Results */
.figures { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 56px; border-top: 2px solid var(--green); }
.figures div { padding: 22px 24px 4px 0; display: flex; flex-direction: column; gap: 8px; }
.figures dd { order: -1; }
.figures div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.figures dd { margin: 0; font-family: var(--serif); font-size: 56px; line-height: 1; color: var(--green); }
.figures dt { color: var(--ink-2); font-size: 15px; }
.cases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.cases li { padding: 28px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.case-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 4px; }
.sector { color: var(--brass); font-weight: 600; font-size: 14px; }
.cases p { color: var(--ink-2); }
.cases p b { color: var(--ink); font-weight: 600; }
.cases .result { color: var(--green); font-family: var(--serif); font-size: 21px; line-height: 1.3; margin-top: 4px; }
.cases .result.pending { color: var(--ink-2); }

/* Systems */
.systems { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--green); }
.systems li { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.systems h3 { font-size: 22px; margin-bottom: 4px; }
.systems p { color: var(--ink-2); max-width: 44em; }
.status { flex-shrink: 0; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.status.live { background: #e3f1e8; color: #17603a; }
.status.free { background: var(--brass-soft); color: #7a5306; }
.status.dev { background: #e6ebf5; color: var(--green-2); }

/* Contact topics */
.topics-label { margin-top: 28px; font-weight: 600; }
.topics { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

/* Smaller screens */
@media (max-width: 980px) {
  .hero .wrap, .product .wrap, .about, .contact .wrap, .intro { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 48px; }
  .book { transform: none; max-width: 560px; }
  .services { grid-template-columns: 1fr; }
  .service, .service + .service { padding: 26px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .sectors { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 36px 28px; }
  .figures { grid-template-columns: 1fr 1fr; }
  .figures div:nth-child(3) { padding-left: 0; border-left: 0; }
  .cases { grid-template-columns: 1fr; }
  .phone { transform: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav, .top .btn { display: none; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .top.open .nav { display: flex; position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 24px 16px; }
  .top.open .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .band, .product { padding: 72px 0; }
  .lead { font-size: 18px; }
  .book { padding: 24px 18px 22px 56px; }
  .book::before { left: 40px; } .book::after { left: 45px; }
  .book li { font-size: 19px; }
  .product ul { grid-template-columns: 1fr; }
  .sectors, .steps { grid-template-columns: 1fr; }
  .figures dd { font-size: 44px; }
  .systems li { flex-direction: column; gap: 10px; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
}

.about-logo { width: min(300px, 70%); margin-bottom: 28px; }

/* Kingsman corporate editorial refresh */
:root {
  --green: #0A1D3A;
  --green-2: #183B68;
  --paper: #F3F5F8;
  --brass: #C99A35;
  --brass-soft: #F7F2E8;
  --line: #E1E6ED;
  --ink: #172235;
  --ink-2: #5B6575;
}
body { background: #fff; }
.top { background: rgba(255,255,255,.94); }
.brand img { width: 38px; }
.brand small { letter-spacing: .11em; }
.btn { border-radius: 4px; }
.btn-green { background: var(--green); }
.btn-green:hover { background: var(--green-2); }
.btn-plain { border-color: #C99A35; }
.hero { position: relative; isolation: isolate; padding: 100px 0 110px; background: linear-gradient(110deg,#F4F6F9 0%,#fff 62%); overflow: hidden; }
.hero::after { content: ''; position: absolute; z-index: -1; width: 520px; height: 520px; border: 1px solid rgba(201,154,53,.22); border-radius: 50%; right: -210px; top: -220px; box-shadow: 0 0 0 48px rgba(201,154,53,.035),0 0 0 96px rgba(10,29,58,.025); }
.hero h1 { max-width: 10em; font-size: clamp(48px,6.3vw,82px); }
.eyebrow { color: var(--brass); font-size: 12px; font-weight: 700; letter-spacing: .19em; margin-bottom: 20px; }
.hero .lead { max-width: 31em; }
.book { border: 1px solid #E5E9EF; border-radius: 2px; transform: rotate(0); padding-top: 30px; padding-bottom: 30px; box-shadow: 0 24px 65px -38px rgba(10,29,58,.42); }
.book li { font-family: var(--sans); font-size: 16px; color: #25344A; }
.book-head span,.book .close { font-family: var(--sans); }
.book .close { font-size: 16px; }
.band { padding: 88px 0; }
.intro { margin-bottom: 46px; }
.intro h2,.service h3,.steps h3,.systems h3,.cases h3,.portfolio-card h3 { color: var(--green); }
.services { border-top: 1px solid var(--brass); }
.service { padding-top: 34px; }
.service + .service { border-left-color: var(--line); }
.product { background: var(--green); }
.product .btn-green { background: var(--brass); }
.product .btn-green:hover { background: #A8791D; }
.figures { border-top-color: var(--brass); }
.figures dd { color: var(--green); }
.cases li { padding: 30px 0; }
.case-head h3 { font-size: 25px; }
.sector,.portfolio-type { color: #9B741F; font-size: 11px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.systems { border-top: 1px solid var(--brass); }
.systems li { padding: 23px 0; }
.systems h3 { font-size: 23px; }
.portfolio-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin: 0 0 52px; }
.portfolio-card { padding: 27px 28px 30px; border: 1px solid var(--line); background: linear-gradient(145deg,#fff,#FAFBFC); min-height: 180px; }
.portfolio-card h3 { margin: 10px 0 8px; }
.portfolio-card p { color: var(--ink-2); max-width: 39em; }
.portfolio-subhead { font: 600 13px var(--sans); color: var(--ink-2); letter-spacing: .12em; text-transform: uppercase; margin: 0 0 18px; }
.text-link { display: inline-block; margin-top: 10px; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.about { align-items: center; }
.about-logo { width: min(250px,65%); }
.about .founder-note { margin-top: 16px; }
.facts { border-top-color: var(--brass); }
.contact { background: #F7F3EA; }
.contact .btn-green { background: var(--green); }
footer { background: #0A1D3A; color: #C8D1DF; }
footer a { color: #E4EAF2; }
footer a:hover { color: #fff; }
@media (max-width:980px) { .portfolio-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width:760px) {
 .hero { padding: 68px 0 76px; }
 .hero h1 { font-size: clamp(43px,12vw,62px); }
 .portfolio-grid { grid-template-columns: 1fr; }
 .band { padding: 68px 0; }
 .portfolio-card { min-height: 0; }
}
