/* ============================================================
   Forged Compliance — site.css
   One stylesheet for every page. Tokens first, then components.
   ============================================================ */

:root {
  /* Palette: tempered steel. Cool document white, dark steel ink,
     and the two ends of a tempering-colour run: bronze and blue. */
  --ink:        #0f1b2d;
  --ink-soft:   #1e2c42;
  --steel:      #4b5a70;
  --steel-soft: #7f8b9c;
  --line:       #dcd8cf;
  --line-soft:  #ebe8e1;
  --paper:      #faf8f4;
  --paper-2:    #f1ede5;
  --white:      #ffffff;
  --bronze:     #b48a3c;
  --bronze-ink: #8a6626;
  --blue:       #3a6ea5;
  --blue-ink:   #2a5580;
  --ok:         #2f7a4f;
  --warn:       #a63d2f;

  --temper: linear-gradient(90deg, #e2b13c 0%, #b48a3c 32%, #7b4a6e 62%, #3a6ea5 100%);

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;

  --measure: 66ch;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --wrap: 1180px;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow: 0 10px 30px rgba(15,27,45,.06), 0 2px 6px rgba(15,27,45,.04);
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--blue-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
button { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  font-variation-settings: 'opsz' 96, 'SOFT' 30;
  margin: 0 0 .6em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5vw, 4.1rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 500; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; max-width: var(--measure); }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
small { font-size: .9rem; color: var(--steel); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .92em; background: var(--paper-2); padding: .05em .35em; border-radius: 3px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.lede { font-size: 1.25rem; color: var(--steel); max-width: 60ch; }
.muted { color: var(--steel); }
.measure { max-width: var(--measure); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Tempering bar — the one brand flourish, used sparingly. */
.temper { height: 4px; background: var(--temper); border-radius: 2px; width: 72px; margin-bottom: 1.4rem; }

/* ---------- Skip link ---------- */
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: .5rem .9rem; z-index: 1000; }
.skip:focus { left: 8px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,248,244,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topline {
  background: var(--ink); color: #c9d1dc; font-size: .875rem;
  padding: .35rem 0; display: flex; justify-content: space-between; gap: 1rem;
}
.topline a { color: #fff; }
.topline .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--nav-h); gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); }
.brand img { height: 36px; width: auto; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.01em; line-height: 1; }
.brand-name span { display: block; font-family: var(--font-body); font-weight: 500; font-size: .75rem; color: var(--steel); letter-spacing: .01em; margin-top: .15rem; }

.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-block; padding: .55rem .8rem; border-radius: var(--radius);
  color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 1rem;
}
.nav-links a:hover { background: var(--paper-2); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--bronze-ink); box-shadow: inset 0 -2px 0 var(--bronze); border-radius: 0; }
.nav-actions { display: flex; align-items: center; gap: .6rem; }
.basket-btn { position: relative; }
.basket-count {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--bronze); color: #fff; font-size: .75rem; font-weight: 700;
  display: grid; place-items: center;
}
.basket-count[data-empty="true"] { display: none; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: .45rem .6rem; cursor: pointer; color: var(--ink); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: .4rem; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; background: var(--paper);
    border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1rem;
  }
  .nav-links[data-open="true"] { display: flex; }
  .nav-links a { padding: .8rem .5rem; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .nav-actions .btn-quiet { display: none; }
  .brand-name span { display: none; }
  .topline .wrap > span:first-child { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.25rem; border-radius: var(--radius); border: 1px solid transparent;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-soft); color: #fff; }
.btn-bronze { background: var(--bronze); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--paper-2); color: var(--ink); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.btn-bronze:hover { background: var(--bronze-ink); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-quiet { background: transparent; color: var(--ink-soft); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { padding: .45rem .85rem; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.25rem, 8vw, 6rem) 0; }
.section-tight { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.section-dark { background: var(--ink); color: #d8dee7; }
.section-white { background: #fff; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lede, .section-dark .muted { color: #a9b4c3; }
.section-dark a { color: #fff; }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 62ch; margin-bottom: 2.5rem; }
.section-head p { margin-bottom: 0; }
.section-head.split { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; }
.section-head.split > div { max-width: 62ch; }

/* ---------- Hero ---------- */
.hero { padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(3rem, 7vw, 5.5rem); position: relative; overflow: hidden; background: var(--ink); color: #d7dde8; }
.hero::before { content: ''; position: absolute; inset: 0; background:
  radial-gradient(900px 500px at 85% 10%, rgba(180,138,60,.18), transparent 60%),
  radial-gradient(700px 500px at 0% 100%, rgba(58,110,165,.18), transparent 60%);
  pointer-events: none; }
.hero::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(180deg, rgba(0,0,0,.8), transparent 85%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero h1 { max-width: 16ch; color: #fff; }
.hero h1 em { font-style: italic; color: #e6c877; font-variation-settings: 'opsz' 96, 'SOFT' 100; }
.hero .lede { margin-bottom: 1.8rem; color: #b9c3d2; }
.hero .eyebrow { color: #e6c877; }
.hero-frameworks li { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: #d7dde8; }
.hero-figure figcaption { color: #9fabbd; }
.eyebrow { display: inline-block; font-family: var(--font-body); font-weight: 600; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--bronze-ink); margin-bottom: 1rem; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-frameworks { display: flex; flex-wrap: wrap; gap: .4rem .5rem; padding: 0; margin: 0; list-style: none; max-width: 52ch; }
.hero-frameworks li { font-size: .9rem; color: var(--steel); border: 1px solid var(--line); border-radius: 999px; padding: .2rem .7rem; background: #fff; }
.hero-figure { justify-self: end; width: 100%; max-width: 460px; }
.hero-figure figcaption { font-size: .9rem; color: var(--steel); margin-top: .8rem; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-figure { justify-self: start; max-width: 420px; }
}

/* Hierarchy figure: the one animated moment on the site (page load). */
.strata .layer { opacity: 0; transform: translateY(10px); animation: strata-in .6s ease forwards; }
.strata .layer:nth-child(1) { animation-delay: .05s; }
.strata .layer:nth-child(2) { animation-delay: .2s; }
.strata .layer:nth-child(3) { animation-delay: .35s; }
.strata .layer:nth-child(4) { animation-delay: .5s; }
.strata .layer:nth-child(5) { animation-delay: .65s; }
@keyframes strata-in { to { opacity: 1; transform: none; } }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem); background: var(--ink); color: #d7dde8; position: relative; overflow: hidden; }
.page-head::before { content: ''; position: absolute; inset: 0; background: radial-gradient(800px 400px at 90% 0%, rgba(180,138,60,.18), transparent 60%); pointer-events: none; }
.page-head .wrap { position: relative; }
.page-head h1 { max-width: 20ch; color: #fff; }
.page-head .lede { margin-bottom: 0; color: #b9c3d2; }
.crumbs { font-size: .9rem; color: #9fabbd; margin-bottom: 1.2rem; }
.crumbs a { color: #d7dde8; }
.crumbs span { margin: 0 .4rem; }

/* ---------- Ledger (catalogue / product list) ---------- */
.ledger { border-top: 1px solid var(--line); }
.ledger-row {
  display: grid; grid-template-columns: 1.6fr 1fr auto; gap: 1.5rem; align-items: start;
  padding: 1.35rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit;
}
.ledger-row:hover { background: var(--white); }
.ledger-row h3 { margin-bottom: .3rem; }
.ledger-row h3 a { color: var(--ink); text-decoration: none; }
.ledger-row h3 a:hover { color: var(--blue-ink); text-decoration: underline; }
.ledger-row .tag { margin-bottom: .45rem; }
.ledger-row p { margin: 0; color: var(--steel); max-width: 52ch; }
.ledger-meta { font-size: .95rem; color: var(--steel); display: grid; gap: .25rem; align-content: start; }
.ledger-meta b { color: var(--ink); font-weight: 600; }
.ledger-buy { display: grid; gap: .5rem; justify-items: end; text-align: right; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--ink); }
.price small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .8rem; color: var(--steel); }
.price-was { text-decoration: line-through; color: var(--steel-soft); font-weight: 400; font-size: 1rem; margin-right: .4rem; }
@media (max-width: 760px) {
  .ledger-row { grid-template-columns: 1fr; gap: .8rem; }
  .ledger-buy { justify-items: start; text-align: left; grid-auto-flow: column; align-items: center; }
}

.tag { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .02em; padding: .15rem .55rem; border-radius: 3px; background: var(--paper-2); color: var(--steel); }
.tag-bronze { background: #f5e9d8; color: var(--bronze-ink); }
.tag-blue { background: #e3ecf6; color: var(--blue-ink); }
.tag-ok { background: #e2f0e7; color: var(--ok); }

/* ---------- Catalogue filters ---------- */
.catalogue { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 3rem; align-items: start; }
.filters { position: sticky; top: calc(var(--nav-h) + 1rem); }
.filters fieldset { border: 0; padding: 0; margin: 0 0 1.6rem; }
.filters legend { font-family: var(--font-display); font-weight: 700; font-size: .95rem; margin-bottom: .5rem; }
.filters label { display: flex; align-items: center; gap: .5rem; font-size: .97rem; padding: .18rem 0; cursor: pointer; }
.filters input { accent-color: var(--ink); }
.catalogue-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .75rem; font-size: .95rem; color: var(--steel); flex-wrap: wrap; }
.catalogue-bar select { font: inherit; padding: .35rem .5rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.empty { padding: 3rem 1rem; text-align: center; color: var(--steel); border: 1px dashed var(--line); }
@media (max-width: 860px) {
  .catalogue { grid-template-columns: 1fr; gap: 1.5rem; }
  .filters { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
  .filters > button { grid-column: 1 / -1; justify-self: start; }
  .filters fieldset { margin-bottom: 0; }
}

/* ---------- Product page ---------- */
.product-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 3rem; align-items: start; }
.buy-box { position: sticky; top: calc(var(--nav-h) + 1.5rem); background: #fff; border: 1px solid var(--line); padding: 1.5rem; }
.buy-box .price { font-size: 2rem; margin-bottom: .25rem; }
.buy-box dl { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; font-size: .95rem; margin: 1.2rem 0; }
.buy-box dt { color: var(--steel); }
.buy-box dd { margin: 0; font-weight: 600; }
.buy-box .fine { font-size: .85rem; color: var(--steel); margin-top: 1rem; }
.doc-list { columns: 2; column-gap: 2rem; padding-left: 1.2em; }
.doc-list li { break-inside: avoid; }
@media (max-width: 860px) {
  .product-grid { grid-template-columns: 1fr; }
  .buy-box { position: static; }
  .doc-list { columns: 1; }
}

/* ---------- Tables ---------- */
.table { width: 100%; border-collapse: collapse; font-size: .97rem; margin: 0 0 1.5rem; }
.table th, .table td { text-align: left; padding: .7rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-family: var(--font-display); font-weight: 700; font-size: .9rem; border-bottom: 1px solid var(--line); }
.table-wrap { overflow-x: auto; }

/* ---------- Grid of plain items ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 2rem 3rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 2rem 3rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 2rem; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.item h3 { margin-bottom: .35rem; }
.item p { color: var(--steel); margin-bottom: .4rem; }
.item a.more { font-weight: 600; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.25rem; }
.card { background: #fff; border: 1px solid var(--line); padding: 1.75rem 1.6rem 1.5rem; position: relative; display: flex; flex-direction: column; gap: .5rem; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(15,27,45,.09); border-color: #cfc8b8; }
.card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--temper); opacity: 0; transition: opacity .2s; }
.card:hover::before { opacity: 1; }
.card .icon { width: 44px; height: 44px; border-radius: 10px; background: var(--paper-2); color: var(--ink); display: grid; place-items: center; margin-bottom: .6rem; }
.card .icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: .2rem; }
.card p { color: var(--steel); margin: 0 0 .6rem; font-size: 1rem; }
.card ul { margin: 0 0 .8rem; padding-left: 1.1em; color: var(--ink-soft); font-size: .95rem; }
.card .more { margin-top: auto; font-weight: 600; text-decoration: none; }
.card .more:hover { text-decoration: underline; }
.card-dark { background: var(--ink); color: #d7dde8; border-color: var(--ink); }
.card-dark h3 { color: #fff; } .card-dark p, .card-dark ul { color: #b9c3d2; } .card-dark .icon { background: rgba(255,255,255,.08); color: #e6c877; } .card-dark .more { color: #e6c877; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* Split feature (image-less consulting block) */
.feature { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.feature-visual { background: var(--ink); color: #d7dde8; padding: 2rem; position: relative; overflow: hidden; }
.feature-visual::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 40px 40px; pointer-events: none; }
.feature-visual > * { position: relative; z-index: 1; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.checks li { padding-left: 1.9rem; position: relative; }
.checks li::before { content: ''; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 50%; background: var(--bronze); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }

/* Trust strip */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; padding: 1.1rem 0; }
.trust .wrap { display: flex; flex-wrap: wrap; gap: .6rem 2.2rem; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; color: var(--steel); }
.trust span::before { content: '◆'; font-size: .5rem; color: var(--bronze); margin-right: .7rem; vertical-align: middle; }

/* CTA band */
.cta-band { background: var(--ink); color: #d7dde8; padding: clamp(3rem, 7vw, 5.5rem) 0; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(700px 400px at 100% 0%, rgba(180,138,60,.2), transparent 60%); pointer-events: none; }
.cta-band .wrap { position: relative; display: grid; grid-template-columns: minmax(0,1.2fr) auto; gap: 2rem; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: .4rem; }
.cta-band p { color: #b9c3d2; margin: 0; }
.cta-band .actions { display: flex; gap: .75rem; flex-wrap: wrap; }
@media (max-width: 760px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* Quote / principle */
.principle { border-left: 3px solid var(--bronze); padding: .5rem 0 .5rem 1.4rem; font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; color: var(--ink); max-width: 30ch; line-height: 1.35; }

/* Steps: numbered only because the process is a sequence. */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 2rem; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; border-top: 1px solid var(--line); padding-top: 1rem; }
.steps li::before { content: '0' counter(step); font-family: var(--font-display); font-weight: 500; font-size: 1.7rem; color: var(--bronze-ink); display: block; margin-bottom: .4rem; }
.steps h3 { font-size: 1.1rem; }
.steps p { color: var(--steel); font-size: .98rem; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Stats: quiet, inline. */
.stats { display: flex; gap: 3rem; flex-wrap: wrap; padding: 0; margin: 0; list-style: none; }
.stats b { display: block; font-family: var(--font-display); font-size: 2.4rem; font-weight: 500; color: #e6c877; }
.stats span { color: var(--steel); }
.section-dark .stats span { color: #a9b4c3; }

/* Panel / callout */
.panel { background: #fff; border: 1px solid var(--line); padding: 1.5rem; }
.panel-ink { background: var(--ink); color: #d8dee7; border: 0; }
.panel-ink h2, .panel-ink h3 { color: #fff; }
.note { border-left: 3px solid var(--bronze); padding: .3rem 0 .3rem 1rem; color: var(--ink-soft); background: transparent; }

/* Bundles */
.bundle { background: #fff; border: 1px solid var(--line); padding: 1.75rem; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 1.5rem 2.5rem; margin-bottom: 1.25rem; }
.bundle h3 { font-size: 1.35rem; margin-bottom: .3rem; }
.bundle ul { columns: 2; column-gap: 2rem; margin: .8rem 0 0; padding-left: 1.2em; font-size: .97rem; }
.bundle ul li { break-inside: avoid; }
.bundle .buy { text-align: right; display: grid; gap: .5rem; align-content: start; justify-items: end; }
.bundle .saving { color: var(--ok); font-weight: 600; font-size: .95rem; }
@media (max-width: 760px) { .bundle { grid-template-columns: 1fr; } .bundle .buy { text-align: left; justify-items: start; } .bundle ul { columns: 1; } }

/* Accordion */
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { cursor: pointer; padding: 1rem 0; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: '+'; color: var(--steel); font-weight: 400; }
.acc details[open] summary::after { content: '−'; }
.acc details > div { padding: 0 0 1.2rem; color: var(--ink-soft); }
.acc details > div p:last-child { margin-bottom: 0; }

/* Forms */
.form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea {
  font: inherit; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: 2px solid transparent; box-shadow: 0 0 0 3px rgba(58,110,165,.2); }
.field textarea { min-height: 120px; resize: vertical; }
.form .fine { font-size: .875rem; color: var(--steel); margin: 0; }
.form-ok { background: #e2f0e7; color: var(--ok); padding: 1rem; border-radius: var(--radius); }

/* ---------- Basket drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(27,36,50,.45); z-index: 200; display: none; }
.drawer-backdrop[data-open="true"] { display: block; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: #fff; z-index: 201;
  transform: translateX(100%); transition: transform .25s ease; display: grid; grid-template-rows: auto 1fr auto;
  box-shadow: -10px 0 30px rgba(0,0,0,.15);
}
.drawer[data-open="true"] { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.15rem; margin: 0; }
.drawer-body { overflow-y: auto; padding: 1rem 1.25rem; }
.drawer-foot { border-top: 1px solid var(--line); padding: 1rem 1.25rem; display: grid; gap: .6rem; }
.line-item { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line-soft); }
.line-item b { font-weight: 600; }
.line-item small { display: block; }
.line-item button { background: none; border: 0; color: var(--steel); cursor: pointer; text-decoration: underline; padding: 0; font-size: .875rem; }
.line-total { display: flex; justify-content: space-between; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.icon-btn { background: none; border: 0; cursor: pointer; padding: .3rem; color: var(--ink); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: none; place-items: center; padding: 1rem; background: rgba(27,36,50,.55); }
.modal[data-open="true"] { display: grid; }
.modal-box { background: #fff; width: min(640px, 100%); max-height: 92vh; overflow-y: auto; padding: 1.75rem; position: relative; }
.modal-box h2 { font-size: 1.4rem; }
.modal-close { position: absolute; top: .75rem; right: .75rem; }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: var(--radius); opacity: 0; transition: opacity .2s, transform .2s; z-index: 400; pointer-events: none; font-size: .95rem; }
.toast[data-show="true"] { opacity: 1; transform: translateX(-50%); }

/* ---------- Prose pages (legal, guides) ---------- */
.prose { max-width: var(--measure); }
.prose h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6rem; }
.prose table { font-size: .95rem; }
.toc { border: 1px solid var(--line); background: #fff; padding: 1rem 1.25rem; margin-bottom: 2rem; font-size: .95rem; }
.toc ol { margin: .4rem 0 0; }

/* Layout for guide pages with side nav */
.guide { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 3rem; align-items: start; }
.guide-nav { position: sticky; top: calc(var(--nav-h) + 1rem); font-size: .95rem; }
.guide-nav a { display: block; padding: .3rem 0; color: var(--steel); text-decoration: none; border-left: 2px solid var(--line); padding-left: .8rem; }
.guide-nav a:hover { color: var(--ink); border-color: var(--ink); }
@media (max-width: 860px) { .guide { grid-template-columns: 1fr; } .guide-nav { position: static; display: flex; flex-wrap: wrap; gap: .25rem .75rem; } .guide-nav a { border: 0; padding-left: 0; } }

/* ---------- Footer ---------- */
.site-footer { background: #0a1220; color: #b6c0cd; padding: 3.5rem 0 2rem; font-size: .95rem; }
.site-footer .temper { width: 100%; margin: 0 0 2.5rem; height: 3px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: .7rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer a { color: #d8dee7; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-brand .brand-name { color: #fff; margin-bottom: .6rem; }
.foot-brand p { color: #b6c0cd; max-width: 40ch; }
.foot-legal { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.25rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: #8e9aab; }
.foot-legal p { margin: 0; max-width: none; }
.foot-disclaimer { font-size: .82rem; color: #8e9aab; max-width: 90ch; margin-bottom: 1.5rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* Cookie notice */
.cookie { position: fixed; bottom: 1rem; left: 1rem; right: 1rem; max-width: 520px; background: #fff; border: 1px solid var(--line); padding: 1rem 1.25rem; z-index: 150; box-shadow: 0 10px 30px rgba(0,0,0,.12); display: none; font-size: .95rem; }
.cookie[data-show="true"] { display: block; }
.cookie p { margin-bottom: .75rem; }
.cookie .actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ============================================================
   Editorial home — second pass
   ============================================================ */
:root { --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace; }
.mono { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--steel); }
.section-dark .mono, .hero-ed .mono { color: #9fabbd; }

/* Hero: typographic, asymmetric */
.hero-ed { background: var(--ink); color: #d7dde8; padding: clamp(3.5rem, 8vw, 7rem) 0 0; position: relative; overflow: hidden; }
.hero-ed::before { content: ''; position: absolute; inset: 0; background: radial-gradient(1100px 600px at 100% 0%, rgba(180,138,60,.16), transparent 60%); pointer-events: none; }
.hero-ed .wrap { position: relative; }
.hero-ed .kicker { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-bottom: 1px solid rgba(255,255,255,.18); padding-bottom: 1rem; margin-bottom: clamp(2rem, 5vw, 4rem); }
.hero-ed h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); line-height: 1.02; letter-spacing: -0.02em; max-width: 15ch; color: #fff; margin-bottom: clamp(2rem, 4vw, 3rem); font-weight: 500; }
.hero-ed h1 em { font-style: italic; color: #e6c877; font-weight: 500; }
.hero-ed .below { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 5vw, 6rem); align-items: end; padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.hero-ed .lede { color: #b9c3d2; font-size: 1.25rem; margin-bottom: 1.8rem; max-width: 52ch; }
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.18); }
.facts li { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: .98rem; }
.facts li span:first-child { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: #9fabbd; padding-top: .2rem; }
.hero-ed .strip { border-top: 1px solid rgba(255,255,255,.18); background: rgba(0,0,0,.25); }
.hero-ed .strip .wrap { display: flex; gap: 2.5rem; overflow-x: auto; padding: .9rem var(--gutter); width: auto; font-family: var(--font-mono); font-size: .76rem; letter-spacing: .06em; color: #b9c3d2; white-space: nowrap; scrollbar-width: none; }
.hero-ed .strip .wrap::-webkit-scrollbar { display: none; }
@media (max-width: 860px) { .hero-ed .below { grid-template-columns: 1fr; } .facts li { grid-template-columns: 7rem 1fr; } }

/* Services index: a contents table, not cards */
.index { border-top: 1px solid var(--line); }
.index-row { display: grid; grid-template-columns: 4rem 21rem minmax(0, 1fr) 13rem; gap: 1.5rem; align-items: baseline; padding: 1.6rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; position: relative; transition: background .15s; }
.index-row::before { content: ''; position: absolute; left: -1rem; right: -1rem; top: 0; bottom: 0; background: #fff; opacity: 0; transition: opacity .15s; z-index: -1; }
.index-row:hover::before { opacity: 1; }
.index-row .n { font-family: var(--font-mono); font-size: .8rem; color: var(--bronze-ink); letter-spacing: .06em; }
.index-row h3 { margin: 0; font-size: 1.45rem; font-weight: 500; }
.index-row p { margin: 0; color: var(--steel); font-size: 1rem; max-width: 56ch; }
.index-row .meta { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--steel); text-align: right; white-space: nowrap; }
.index-row .arrow { font-family: var(--font-display); color: var(--ink); transition: transform .15s; display: inline-block; }
.index-row:hover .arrow { transform: translateX(4px); }
@media (max-width: 1000px) { .index-row { grid-template-columns: 3rem 1fr; gap: .4rem 1rem; } .index-row p { grid-column: 2; } .index-row .meta { grid-column: 2; text-align: left; } }

/* Findings excerpt: report table */
.report { background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px rgba(15,27,45,.12); }
.report-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.4rem; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--steel); background: var(--paper); }
.report table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.report th { font-family: var(--font-mono); font-weight: 500; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); text-align: left; padding: .8rem 1.4rem .6rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.report td { padding: .95rem 1.4rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.report td.ref { font-family: var(--font-mono); font-size: .8rem; color: var(--bronze-ink); white-space: nowrap; }
.report td.clause { font-family: var(--font-mono); font-size: .78rem; color: var(--steel); white-space: nowrap; }
.report td b { font-weight: 600; display: block; margin-bottom: .15rem; }
.report td small { color: var(--steel); }
.sev { display: inline-block; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; padding: .2rem .5rem; border-radius: 2px; text-transform: uppercase; }
.sev-major { background: #f7e3df; color: #8f2e21; }
.sev-minor { background: #f5e9d8; color: var(--bronze-ink); }
.sev-obs { background: #e3ecf6; color: var(--blue-ink); }
.report-foot { padding: .9rem 1.4rem; font-size: .85rem; color: var(--steel); background: var(--paper); border-top: 1px solid var(--line); }
@media (max-width: 760px) { .report .hide-m { display: none; } }

/* Numbered principles */
.principles { counter-reset: pr; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 4rem; border-top: 1px solid var(--line); }
.principles > div { counter-increment: pr; padding: 1.8rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 3.5rem 1fr; gap: 1rem; }
.principles > div::before { content: counter(pr, decimal-leading-zero); font-family: var(--font-mono); font-size: .8rem; color: var(--bronze-ink); padding-top: .5rem; letter-spacing: .06em; }
.principles h3 { font-size: 1.35rem; font-weight: 500; margin-bottom: .35rem; }
.principles p { margin: 0; color: var(--steel); font-size: 1rem; }
@media (max-width: 860px) { .principles { grid-template-columns: 1fr; } }

/* Engagement timeline: horizontal phases */
.phases { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; border-top: 1px solid rgba(255,255,255,.2); }
.phases > div { padding: 1.4rem 1.2rem 1.4rem 0; border-right: 1px solid rgba(255,255,255,.12); }
.phases > div + div { padding-left: 1.2rem; }
.phases > div:last-child { border-right: 0; }
.phases .bar { height: 6px; background: rgba(255,255,255,.12); margin: .9rem 0 1rem; position: relative; }
.phases .bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--temper); }
.phases h3 { color: #fff; font-size: 1.15rem; font-weight: 500; margin-bottom: .2rem; }
.phases p { color: #b9c3d2; font-size: .95rem; margin: 0; }
@media (max-width: 760px) { .phases { grid-template-columns: 1fr 1fr; } .phases > div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); padding-left: 0; } }

/* Framework list: dense two-column ledger */
.fw-list { columns: 1; column-gap: 4rem; padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--line); }
.fw-list li { break-inside: avoid; display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: baseline; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.fw-list a { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; text-decoration: none; color: var(--ink); }
.fw-list a:hover { color: var(--bronze-ink); }
.fw-list span { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--steel); }
@media (max-width: 700px) { .fw-list { columns: 1; } }

/* Scoping form on the page */
.scoping { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 6rem); align-items: start; }
.scoping .form { background: #fff; border: 1px solid var(--line); padding: 1.75rem; color: var(--ink); }
.section-dark .scoping .form a { color: var(--blue-ink); }
.section-dark .scoping .form .fine { color: var(--steel); }
.section-dark .scoping .form { border: 0; }
@media (max-width: 860px) { .scoping { grid-template-columns: 1fr; } }

/* Sector strip */
.sectors { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.sectors > div { padding: 1.4rem 1.2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sectors h3 { font-size: 1.15rem; font-weight: 500; margin-bottom: .3rem; }
.sectors p { margin: 0; color: var(--steel); font-size: .95rem; }
@media (max-width: 900px) { .sectors { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 520px) { .sectors { grid-template-columns: 1fr; } }


/* ============================================================
   Soft pass: rounder, looser, lighter rules
   ============================================================ */
body { line-height: 1.62; }
p { margin-bottom: 1.15em; }
.section { padding: clamp(3.75rem, 9vw, 7rem) 0; }
.section-head { margin-bottom: 3rem; }
h1, h2, h3, h4 { letter-spacing: -0.005em; }

/* Buttons: pill */
.btn { border-radius: var(--radius-pill); padding: .78rem 1.45rem; }
.btn-sm { padding: .5rem 1rem; }
.btn-primary, .btn-bronze { box-shadow: 0 6px 16px rgba(15,27,45,.12); }
.btn-primary:hover, .btn-bronze:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(15,27,45,.16); }
.nav-links a { border-radius: var(--radius-pill); }
.nav-links a[aria-current="page"] { border-radius: var(--radius-pill); box-shadow: none; background: var(--paper-2); }
.nav-toggle { border-radius: var(--radius-sm); }
.basket-count { border-radius: 999px; }

/* Header / topline */
.site-header { border-bottom: 1px solid var(--line-soft); }
.topline { padding: .45rem 0; }

/* Surfaces */
.panel, .card, .bundle, .buy-box, .report, .toc, .cookie, .modal-box, .filters, .empty, .form-ok, .note, .feature-visual, .scoping .form, .index-row::before {
  border-radius: var(--radius);
}
.card, .bundle, .buy-box, .report, .scoping .form, .panel { border-color: var(--line-soft); box-shadow: var(--shadow); }
.report { box-shadow: 0 24px 50px rgba(15,27,45,.10); overflow: hidden; }
.report-head { background: var(--paper); }
.report td, .report th { padding-left: 1.6rem; padding-right: 1.6rem; }
.report tbody tr:last-child td { border-bottom: 0; }
.sev { border-radius: 999px; padding: .25rem .65rem; }
.tag { border-radius: 999px; padding: .22rem .7rem; }
.hero-frameworks li { border-radius: 999px; }
.field input, .field select, .field textarea { border-radius: var(--radius-sm); padding: .75rem .9rem; border-color: var(--line); }
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: 0 0 0 4px rgba(58,110,165,.14); }
.catalogue-bar select { border-radius: var(--radius-sm); }
code { border-radius: 6px; }
.temper { border-radius: 999px; }
.card .icon { border-radius: 14px; }
.card::before { border-radius: var(--radius) var(--radius) 0 0; }
.note { background: #fff; border: 1px solid var(--line-soft); border-left: 4px solid var(--bronze); padding: 1rem 1.25rem; }
.form-ok { padding: 1.25rem 1.4rem; }

/* Drawer, modal, toast */
.drawer { border-radius: var(--radius) 0 0 var(--radius); box-shadow: -16px 0 40px rgba(15,27,45,.16); }
.modal-box { padding: 2rem; }
.toast { border-radius: 999px; padding: .75rem 1.3rem; }
.icon-btn { border-radius: 999px; }
.icon-btn:hover { background: var(--paper-2); }

/* Ledger / index / principles: airier rows */
.ledger-row, .index-row { padding: 1.7rem 1rem; margin: 0 -1rem; border-radius: var(--radius); border-bottom: 1px solid var(--line-soft); }
.ledger-row:last-child, .index-row:last-child { border-bottom: 0; }
.ledger-row:hover, .index-row:hover { border-bottom-color: transparent; }
.ledger, .index, .principles, .fw-list, .acc { border-top: 0; }

.ledger-row:hover { background: #fff; box-shadow: var(--shadow); }
.index-row::before { left: 0; right: 0; }
.index-row:hover::before { opacity: 1; box-shadow: var(--shadow); }
.principles > div { padding: 2rem 0; }
.fw-list li { padding: .95rem 0; }
.acc summary { padding: 1.15rem 0; }
.steps li { border-top: 1px solid var(--line); padding-top: 1.2rem; }

/* Sectors / phases: card-like cells */
.sectors { border: 0; gap: 1rem; }
.sectors > div { border: 1px solid var(--line-soft); border-radius: var(--radius); background: #fff; padding: 1.6rem 1.4rem; box-shadow: var(--shadow); }
.phases { border-top: 0; gap: 1rem; }
.phases > div, .phases > div + div { border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 1.4rem 1.3rem; background: rgba(255,255,255,.03); }
.phases .bar { border-radius: 999px; overflow: hidden; }
.phases .bar i { border-radius: 999px; }
.facts li { padding: .85rem 0; }
.trust { border: 0; background: transparent; padding: 1.4rem 0 .4rem; }
.hero-ed .strip { background: rgba(0,0,0,.18); border-top: 1px solid rgba(255,255,255,.1); }

/* Hero and page heads: soft bottom curve */
.hero-ed, .page-head, .hero { border-radius: 0 0 clamp(20px, 4vw, 40px) clamp(20px, 4vw, 40px); }
.cta-band { border-radius: clamp(20px, 4vw, 40px); margin: 0 auto; width: min(var(--wrap), 100% - 2 * var(--gutter)); }
.cta-band .wrap { width: min(100% - 4rem, var(--wrap)); }

/* Tables */
.table th { border-bottom: 1px solid var(--line); }
.table-wrap { border: 1px solid var(--line-soft); border-radius: var(--radius); background: #fff; padding: .5rem 1rem; }
.table-wrap .table { margin: 0; }

/* Footer */
.site-footer { border-radius: clamp(20px, 4vw, 40px) clamp(20px, 4vw, 40px) 0 0; margin-top: 1rem; }
.site-footer .temper { display: none; }
.foot-legal { border-top: 1px solid rgba(255,255,255,.08); }

/* Product/buy box */
.buy-box { padding: 1.75rem; }
.buy-box .btn { width: 100%; }

/* Guides */
.guide-nav a { border-left: 0; padding: .35rem .85rem; border-radius: 999px; }
.guide-nav a:hover { background: var(--paper-2); }
@media (max-width: 860px) { .ledger-row, .index-row { margin: 0; padding: 1.4rem 1rem; } }


/* ============================================================
   CORPORATE THEME — light, deep blue, pillar layout
   ============================================================ */
:root {
  --ink: #0b1f3a; --ink-soft: #1f3355; --steel: #4d5f7a; --steel-soft: #8593a8;
  --line: #dfe5ee; --line-soft: #edf1f6; --paper: #ffffff; --paper-2: #f3f6fa; --white: #fff;
  --blue: #0b5fff; --blue-ink: #0846bd; --navy: #0b1f3a; --navy-2: #12305e;
  --bronze: #0b5fff; --bronze-ink: #0846bd;
  --font-display: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Public Sans', 'Segoe UI', system-ui, sans-serif;
  --radius: 12px; --radius-sm: 8px;
  --shadow: 0 8px 24px rgba(11,31,58,.06), 0 1px 3px rgba(11,31,58,.05);
}
body { background: #fff; color: var(--ink); font-size: 1.04rem; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; font-variation-settings: normal; color: var(--navy); }
h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); font-weight: 800; line-height: 1.08; }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
a { color: var(--blue-ink); } a:hover { color: var(--navy); }
.lede { color: var(--steel); font-size: 1.18rem; }
.eyebrow { color: var(--blue); letter-spacing: .1em; font-size: .78rem; }
.mono { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-size: .9rem; }
.hero-tag, .marquee, .statement { display: none; }
.hero-ed { border-radius: 0; }
.temper { display: none; }

/* Header */
.site-header { background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-soft); }
.brand-name { font-family: var(--font-display); font-weight: 800; color: var(--navy); }
.nav-links a { color: var(--ink-soft); font-weight: 600; font-size: .96rem; border-radius: 8px; }
.nav-links a:hover { background: var(--paper-2); color: var(--navy); }
.nav-links a[aria-current="page"] { background: transparent; color: var(--blue-ink); box-shadow: inset 0 -2px 0 var(--blue); border-radius: 0; }
.btn { border-radius: 8px; font-family: var(--font-display); font-weight: 700; }
.btn-primary { background: var(--navy); color: #fff; box-shadow: none; } .btn-primary:hover { background: var(--navy-2); transform: none; box-shadow: none; }
.btn-bronze { background: var(--blue); color: #fff; box-shadow: none; } .btn-bronze:hover { background: var(--blue-ink); color: #fff; transform: none; box-shadow: none; }
.btn-outline { border-color: var(--navy); color: var(--navy); } .btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.btn-quiet { border-color: var(--line); color: var(--ink-soft); }

/* Corporate hero: split, navy, abstract graphic */
.c-hero { background: linear-gradient(160deg, #0b1f3a 0%, #12305e 60%, #0b5fff 140%); color: #fff; padding: clamp(3.5rem, 8vw, 6.5rem) 0; position: relative; overflow: hidden; }
.c-hero::after { content: ''; position: absolute; right: -10%; top: -20%; width: 60%; height: 150%; background:
  radial-gradient(closest-side, rgba(11,95,255,.35), transparent 70%); pointer-events: none; }
.c-hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.c-hero h1 { color: #fff; max-width: 16ch; }
.c-hero .lede { color: #c9d6ea; }
.c-hero .eyebrow { color: #9dc0ff; }
.c-hero .hero-actions { margin-bottom: 1.5rem; }
.c-hero .btn-bronze { background: #fff; color: var(--navy); } .c-hero .btn-bronze:hover { background: #e6efff; color: var(--navy); }
.c-hero .hero-points { list-style: none; padding: 0; margin: 0; display: flex; gap: 1.5rem; flex-wrap: wrap; font-size: .95rem; color: #c9d6ea; }
.c-hero .hero-points li::before { content: '✓'; color: #7fb0ff; margin-right: .45rem; font-weight: 700; }
.c-graphic { position: relative; aspect-ratio: 1 / .85; }
.c-graphic svg { width: 100%; height: 100%; }
@media (max-width: 860px) { .c-hero .wrap { grid-template-columns: 1fr; } .c-graphic { max-width: 380px; } }

/* Accreditations bar */
.accred { border-bottom: 1px solid var(--line-soft); background: #fff; padding: 1.5rem 0; }
.accred .wrap { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center; }
.accred .label { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); white-space: nowrap; }
.accred ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .75rem; flex-wrap: wrap; }
.accred li { height: 52px; min-width: 140px; border: 1px dashed var(--line); border-radius: 8px; display: grid; place-items: center; color: var(--steel-soft); font-size: .8rem; font-weight: 600; padding: 0 1rem; }
.accred li.real { border-style: solid; color: var(--navy); }
@media (max-width: 760px) { .accred .wrap { grid-template-columns: 1fr; gap: .8rem; } }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.5rem; }
.pillar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.6rem; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.pillar:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(11,31,58,.10); }
.pillar .icon { width: 48px; height: 48px; border-radius: 10px; background: #e8f0ff; color: var(--blue); display: grid; place-items: center; margin-bottom: 1rem; }
.pillar .icon svg { width: 24px; height: 24px; }
.pillar h3 { font-size: 1.3rem; margin-bottom: .35rem; }
.pillar p { color: var(--steel); font-size: .98rem; }
.pillar ul { list-style: none; padding: 0; margin: .5rem 0 1.2rem; }
.pillar li { padding: .5rem 0; border-top: 1px solid var(--line-soft); font-size: .96rem; }
.pillar li a { color: var(--ink); text-decoration: none; font-weight: 600; display: flex; justify-content: space-between; }
.pillar li a::after { content: '→'; color: var(--blue); }
.pillar li a:hover { color: var(--blue-ink); }
.pillar .more { margin-top: auto; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }

/* Sectors: image-less tiles with navy hover */
.sector-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1.25rem; }
.sector { border-radius: var(--radius); background: var(--paper-2); padding: 1.6rem 1.4rem; min-height: 190px; display: flex; flex-direction: column; justify-content: flex-end; transition: background .2s, color .2s; position: relative; overflow: hidden; }
.sector::before { content: ''; position: absolute; inset: auto -30% -40% auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(11,95,255,.12), transparent); }
.sector h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.sector p { margin: 0; color: var(--steel); font-size: .92rem; }
.sector:hover { background: var(--navy); } .sector:hover h3 { color: #fff; } .sector:hover p { color: #c9d6ea; }
@media (max-width: 900px) { .sector-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 520px) { .sector-grid { grid-template-columns: 1fr; } }

/* Why us: split with numbered list */
.why { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.why ol { list-style: none; padding: 0; margin: 0; counter-reset: w; }
.why li { counter-increment: w; display: grid; grid-template-columns: 2.6rem 1fr; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--line-soft); }
.why li::before { content: counter(w, decimal-leading-zero); font-family: var(--font-display); font-weight: 800; color: var(--blue); }
.why li b { display: block; color: var(--navy); margin-bottom: .15rem; }
.why li span { color: var(--steel); font-size: .97rem; }
.why-panel { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 2rem; }
.why-panel h3 { color: #fff; font-size: 1.5rem; }
.why-panel p { color: #c9d6ea; }
.why-panel .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.4rem; }
.why-panel .row div { background: rgba(255,255,255,.07); border-radius: 10px; padding: 1rem; }
.why-panel .row b { display: block; font-family: var(--font-display); font-size: 1.15rem; color: #fff; margin-bottom: .2rem; }
.why-panel .row span { color: #c9d6ea; font-size: .9rem; }
@media (max-width: 860px) { .why { grid-template-columns: 1fr; } }

/* Insights cards */
.insights { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.5rem; }
.insight { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.insight:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(11,31,58,.10); color: inherit; }
.insight .band { height: 110px; background: linear-gradient(135deg, var(--navy), var(--blue)); position: relative; }
.insight .band span { position: absolute; left: 1.2rem; bottom: 1rem; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: rgba(255,255,255,.18); padding: .3rem .6rem; border-radius: 6px; }
.insight .body { padding: 1.3rem 1.3rem 1.4rem; }
.insight h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.insight p { color: var(--steel); font-size: .95rem; margin: 0; }
.insight:nth-child(2) .band { background: linear-gradient(135deg, #12305e, #2b7fff); }
.insight:nth-child(3) .band { background: linear-gradient(135deg, #0b1f3a, #3f5f8a); }
@media (max-width: 900px) { .insights { grid-template-columns: 1fr; } }

/* CTA + rest */
.cta-band { background: var(--navy); border: 0; border-radius: var(--radius); color: #fff; }
.cta-band::before { background: radial-gradient(600px 300px at 100% 0%, rgba(11,95,255,.45), transparent 60%); }
.cta-band p { color: #c9d6ea; }
.cta-band .btn-bronze { background: #fff; color: var(--navy); } .cta-band .btn-bronze:hover { background: #e6efff; color: var(--navy); }
.page-head { background: linear-gradient(160deg, #0b1f3a, #12305e); border-radius: 0; }
.page-head::before { background: radial-gradient(700px 350px at 90% 0%, rgba(11,95,255,.4), transparent 60%); }
.page-head h1 { color: #fff; } .page-head .lede { color: #c9d6ea; } .crumbs, .crumbs a { color: #9db5d8; }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--navy); color: #c9d6ea; border-radius: 0; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lede, .section-dark .muted { color: #9db5d8; }
.section-white { background: #fff; }
.site-footer { background: var(--navy); border-radius: 0; margin-top: 0; }
.foot-legal { border-top-color: rgba(255,255,255,.12); }
.index-row .n, .price, .index-row .arrow { color: var(--blue-ink); }
.principles > div::before, .steps li::before, .checks li::before { color: var(--blue); background-color: var(--blue); }
.principles > div::before, .steps li::before { background: none; }
.card .icon { background: #e8f0ff; color: var(--blue); }
.card::before { background: var(--blue); }
.tag-bronze { background: #e8f0ff; color: var(--blue-ink); }
.sev-major { background: #ffe5e0; color: #a12b1c; } .sev-minor { background: #fff1d6; color: #8a5a00; } .sev-obs { background: #e8f0ff; color: var(--blue-ink); }
.phases .bar i { width: var(--w) !important; background: linear-gradient(90deg, #7fb0ff, #fff); }
.phases > div, .phases > div + div { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.15); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(11,95,255,.14); }
.form-ok { background: #e6f6ee; color: #1d6b43; }
.cookie { border-radius: 12px; }
.sectors > div { background: var(--paper-2); }
.fw-list span { color: var(--steel-soft); }
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; } [data-reveal][data-delay="2"] { transition-delay: .16s; } [data-reveal][data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; } }
.nav-toggle svg { width: 20px; height: 20px; flex: none; }
@media (max-width: 900px) { .nav-links[data-open="true"] { position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; overflow-y: auto; background: #fff; padding-top: 1rem; } .nav-links a { font-size: 1.1rem; padding: 1rem .5rem; } }

/* ---------- Layout audit fixes ---------- */
/* Header: brand must not wrap; tighten nav at mid widths */
.brand-name { white-space: nowrap; }
@media (max-width: 1100px) { .nav-links a { padding: .5rem .55rem; font-size: .92rem; } .brand-name { font-size: 1.15rem; } }
@media (max-width: 900px) { .nav-actions .btn-bronze { padding: .45rem .8rem; font-size: .9rem; } }
@media (max-width: 400px) { .nav-actions .btn-bronze { display: none; } }

/* Why-us list: label and description both in the second column */
.why li b, .why li span { grid-column: 2; }
.why li span { margin-top: -.6rem; }

/* Grid children must be allowed to shrink (prevents horizontal scroll on mobile) */
.catalogue > *, .guide > *, .product-grid > *, .grid-2 > *, .grid-3 > *, .grid-4 > *, .scoping > *, .why > *, .feature > *, .c-hero .wrap > * { min-width: 0; }

/* Catalogue on small screens */
@media (max-width: 860px) {
  .filters { grid-template-columns: 1fr 1fr; gap: .5rem 1.25rem; }
  .filters fieldset:first-child { grid-column: 1 / -1; }
  .ledger-row { margin: 0; padding: 1.25rem 0; }
  .ledger-buy { grid-auto-flow: row; justify-items: start; }
  .ledger-buy .btn { width: auto; }
}
@media (max-width: 520px) { .filters { grid-template-columns: 1fr; } }

/* Guide pages: side nav wraps, tables scroll */
@media (max-width: 860px) {
  .guide-nav { display: flex; flex-wrap: wrap; gap: .35rem; }
  .guide-nav a { border: 1px solid var(--line); border-radius: 999px; padding: .35rem .8rem; font-size: .9rem; }
  .prose .table, .prose table { display: block; overflow-x: auto; max-width: 100%; }
  .prose .table-wrap .table { display: table; }
}

/* Services page icon sizing */
.svc-icon, section[id] .icon { flex: none; }
section[id] > div > .icon > span, section[id] > div > .icon svg { width: 24px; height: 24px; display: block; }

/* Accreditation slots on mobile */
@media (max-width: 760px) { .accred ul { display: grid; grid-template-columns: 1fr 1fr; } .accred li { min-width: 0; } }

/* Report table on narrow screens */
@media (max-width: 760px) { .report td, .report th { padding-left: 1rem; padding-right: 1rem; } .report td small { display: block; } }

/* Hero points: tidy wrapping */
.c-hero .hero-points { gap: .6rem 1.5rem; }

/* Inner-page "Products" breadcrumb reads as Documentation */

/* ---------- Layout fixes ---------- */
/* Header: global li margin pushed nav links above the action buttons */
.nav-links li { margin: 0; }
.brand { flex: none; }
@media (max-width: 1440px) and (min-width: 1181px) { .nav-links a { padding: .5rem .55rem; font-size: .94rem; } }
/* Full nav no longer fits below 1180px: switch to the menu toggle (mirrors the 900px block) */
@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: .4rem; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; background: #fff;
    border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1rem;
  }
  .nav-links[data-open="true"] { display: flex; }
  .nav-links a { display: block; padding: .8rem .5rem; border-bottom: 1px solid var(--line-soft); border-radius: 0; font-size: 1rem; }
  .nav-links a[aria-current="page"] { box-shadow: none; }
}

/* Basket drawer: hide when closed so its shadow does not bleed in at the right edge */
.drawer { visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
.drawer[data-open="true"] { visibility: visible; transition: transform .25s ease, visibility 0s; }

/* Sector cards: give them a surface (they matched the alt section background) and top-align text */
.sector { background: #fff; border: 1px solid var(--line-soft); box-shadow: var(--shadow); justify-content: flex-start; }

/* Pillar link rows: keep the arrow off the label */
.pillar li a { gap: .75rem; }

/* ---------- Certified expertise ---------- */
.accred li.real { border-style: solid; background: #fff; min-width: 0; height: 44px; color: var(--navy); }
.accred li.more { border: 0; min-width: 0; padding: 0; }
.accred li.more a { color: var(--blue-ink); font-weight: 700; text-decoration: none; }
.accred li.more a:hover { text-decoration: underline; }
.cert-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0 2rem; }
.cert-groups > div { border: 1px solid var(--line-soft); border-radius: var(--radius); background: #fff; padding: 1.25rem 1.4rem; box-shadow: var(--shadow); }
.cert-groups h3 { font-size: 1rem; margin: 0 0 .8rem; }
.cert-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.cert-list li { margin: 0; padding: .35rem .75rem; border: 1px solid var(--line); border-radius: var(--radius-pill); font-size: .88rem; font-weight: 600; color: var(--navy); background: var(--paper-2); }
@media (max-width: 760px) { .cert-groups { grid-template-columns: 1fr; } }

/* ---------- Hero stats ---------- */
.c-hero .hero-stats { list-style: none; padding: 1.4rem 0 0; margin: 1.6rem 0 0; display: flex; gap: 2.5rem; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.16); }
.c-hero .hero-stats li { margin: 0; display: grid; gap: .1rem; }
.c-hero .hero-stats b { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; color: #fff; line-height: 1.1; }
.c-hero .hero-stats span { font-size: .85rem; color: #c9d6ea; }

/* ---------- Four pillars ---------- */
.pillars { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1.25rem; }
@media (max-width: 1180px) { .pillars { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 700px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Newsletter ---------- */
.newsletter { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
.newsletter h2 { margin-top: .4rem; }
.topic-list { list-style: none; margin: 1.2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.topic-list li { margin: 0; padding: .3rem .75rem; border: 1px solid var(--line); border-radius: var(--radius-pill); font-size: .85rem; font-weight: 600; color: var(--ink-soft); background: #fff; }
.newsletter-form, .newsletter .form-ok { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.newsletter-form .btn { width: 100%; }
@media (max-width: 860px) { .newsletter { grid-template-columns: 1fr; gap: 1.5rem; } }
