/* PRAG-DEL-SOL-ONE — site stylesheet
   Layout concept: one calm 1120px column; navy type on a cool paper ground,
   the logo's nested squares (programme > project > outcome) as the recurring motif.
   Brand source: Logo Color Guide.pdf (navy #08376B, sky #35C0ED, mint #9AEBA6, teal #2F90B0,
   Tenor Sans + Montserrat). Change colours here and only here. */

@font-face { font-family: "Tenor Sans"; src: url("../fonts/tenor-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* colour */
  --bg: #F6F8FA;          /* page ground (brand #F5F5F5 nudged cool) */
  --surface: #FFFFFF;     /* cards, header */
  --tint: #EAF6FB;        /* pale sky band */
  --fg: #0B2340;          /* body text */
  --ink: #08376B;         /* brand navy: headings, wordmark */
  --muted: #4B607A;       /* secondary text */
  --line: #D9E3EC;        /* hairlines */
  --sky: #35C0ED;         /* brand mark colour, decorative only */
  --mint: #9AEBA6;        /* highlight */
  --link: #1C6F8E;        /* brand teal darkened for AA contrast */
  --btn-bg: #08376B;
  --btn-fg: #FFFFFF;
  /* type */
  --display: "Tenor Sans", "Gill Sans", "Optima", "Segoe UI", sans-serif;
  --body: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --step--1: 0.84rem;
  --step-0: 1rem;
  --step-1: 1.2rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.4rem + 1.4vw, 2.3rem);
  --step-4: clamp(2.2rem, 1.6rem + 2.6vw, 3.4rem);
  /* space */
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --radius: 4px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #061629; --surface: #0B2340; --tint: #0E2D4F; --fg: #E6EEF6; --ink: #F2F7FB;
    --muted: #A2B6CB; --line: #1D3C5E; --sky: #35C0ED; --mint: #9AEBA6; --link: #72D4F4;
    --btn-bg: #35C0ED; --btn-fg: #061629; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #061629; --surface: #0B2340; --tint: #0E2D4F; --fg: #E6EEF6; --ink: #F2F7FB;
  --muted: #A2B6CB; --line: #1D3C5E; --sky: #35C0ED; --mint: #9AEBA6; --link: #72D4F4;
  --btn-bg: #35C0ED; --btn-fg: #061629; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: var(--step-0); line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--sky); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--ink); line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-4); letter-spacing: -0.01em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-family: var(--body); font-weight: 600; line-height: 1.35; }
p { margin: 0; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.section { padding-block: clamp(48px, 7vw, 88px); }
.section--tint { background: var(--tint); }
.section--line { border-top: 1px solid var(--line); }
.stack { display: grid; gap: 1rem; }
.stack-lg { display: grid; gap: 2.5rem; }
.eyebrow { font-size: var(--step--1); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 10px; height: 10px; border: 3px solid var(--sky); flex: none; }
.lede { font-size: var(--step-1); color: var(--muted); max-width: 60ch; line-height: 1.6; }
.measure { max-width: 66ch; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }

/* header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 30px; height: 30px; }
.brand-name { font-family: var(--display); font-size: 1.05rem; letter-spacing: 0.08em; line-height: 1.1; display: grid; }
.brand-name small { font-family: var(--body); font-size: 0.68rem; letter-spacing: 0.06em; color: var(--muted); }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { text-decoration: none; color: var(--fg); font-size: 0.92rem; font-weight: 500; padding: 8px 12px; border-radius: var(--radius); }
.nav a:hover { background: var(--tint); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--sky); border-radius: 0; }
.nav a.nav-cta { background: var(--btn-bg); color: var(--btn-fg); margin-left: 8px; }
.nav a.nav-cta:hover { opacity: 0.9; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: var(--radius); padding: 8px 12px; font: 600 0.9rem var(--body); cursor: pointer; }
@media (max-width: 880px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px var(--gutter-r) 16px var(--gutter); }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--sky); }
  .nav a.nav-cta { margin: 8px 0 0; text-align: center; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: var(--radius); font-weight: 600; font-size: 0.95rem; text-decoration: none; border: 2px solid var(--btn-bg); background: var(--btn-bg); color: var(--btn-fg); cursor: pointer; }
.btn:hover { opacity: 0.92; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--sky); opacity: 1; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* hero */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(40px, 6vw, 72px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, color-mix(in srgb, var(--mint) 70%, transparent) 62%); }
.hero-copy { display: grid; gap: 1.5rem; min-width: 0; }
.squares { position: relative; aspect-ratio: 1; max-width: 420px; width: 100%; justify-self: end; }
.squares div { position: absolute; display: flex; align-items: flex-start; justify-content: flex-start; padding: 12px 14px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.sq-1 { inset: 0; border: clamp(18px, 4vw, 34px) solid var(--sky); color: var(--muted); }
.sq-1 span { position: absolute; top: -28px; left: -2px; color: #08376B; }
.sq-2 { inset: 22%; border: 2px solid var(--line); background: var(--surface); color: var(--muted); }
.sq-3 { inset: 37%; background: var(--sky); color: #08376B; align-items: flex-end !important; }
.squares .sq-2 span { position: absolute; top: 10px; left: 12px; }
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .squares { max-width: 260px; justify-self: start; margin-top: 28px; }
}

/* credential strip */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.fact { padding: 20px 20px 20px 0; display: grid; gap: 2px; }
.fact + .fact { padding-left: 20px; border-left: 1px solid var(--line); }
.fact strong { font-family: var(--display); font-weight: 400; font-size: var(--step-2); color: var(--ink); line-height: 1.2; }
.fact span { font-size: var(--step--1); color: var(--muted); }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fact:nth-child(3) { border-left: 0; padding-left: 0; } .fact:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* lifecycle (a real sequence, so numbered) */
.lifecycle { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: stage; }
.lifecycle li { counter-increment: stage; padding: 18px 18px 0 0; border-top: 3px solid var(--line); display: grid; gap: 6px; align-content: start; }
.lifecycle li::before { content: "Stage " counter(stage); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--link); }
.lifecycle li:nth-child(4) { border-top-color: var(--sky); }
.lifecycle h3 { font-size: 1.02rem; }
.lifecycle p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
@media (max-width: 880px) { .lifecycle { grid-template-columns: 1fr; } .lifecycle li { border-top: 0; border-left: 3px solid var(--line); padding: 4px 0 20px 18px; } .lifecycle li:nth-child(4) { border-left-color: var(--sky); } }

/* grids and cards */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid-2 { display: grid; gap: clamp(24px, 4vw, 56px); grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card .tag { justify-self: start; }
.service-icon { width: 22px; height: 22px; border: 5px solid var(--sky); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head > div { display: grid; gap: 10px; max-width: 62ch; }

.tag { display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 8px; border-radius: 2px; background: var(--tint); color: var(--link); }
.tag--soon { background: transparent; border: 1px dashed var(--line); color: var(--muted); }

/* posts */
.post-list { display: grid; gap: 0; }
.post-item { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 24px; padding-block: 24px; border-top: 1px solid var(--line); }
.post-item:last-child { border-bottom: 1px solid var(--line); }
.post-item time { font-size: var(--step--1); color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 4px; }
.post-item h3 { font-family: var(--display); font-weight: 400; font-size: var(--step-2); }
.post-item h3 a { color: var(--ink); text-decoration: none; }
.post-item h3 a:hover { text-decoration: underline; text-decoration-color: var(--sky); }
.post-item p { color: var(--muted); margin-top: 6px; max-width: 64ch; }
@media (max-width: 640px) { .post-item { grid-template-columns: 1fr; gap: 6px; } }

/* article */
.article-head { padding-block: clamp(40px, 6vw, 72px) 24px; display: grid; gap: 16px; }
.article-meta { font-size: var(--step--1); color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: var(--step-2); margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose blockquote { margin-left: 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--sky); color: var(--muted); }
.prose code { font-size: 0.9em; background: var(--tint); padding: 1px 5px; border-radius: 3px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
.prose th, .prose td { text-align: left; border-bottom: 1px solid var(--line); padding: 8px 10px 8px 0; vertical-align: top; }
.table-scroll { overflow-x: auto; }
.prose hr { border: 0; border-top: 1px solid var(--line); }

/* resources and books */
.resource { grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; }
.resource .file-badge { grid-row: span 3; width: 48px; height: 56px; border: 2px solid var(--line); border-radius: 3px; display: grid; place-items: end center; padding-bottom: 6px; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.06em; color: var(--link); background: var(--bg); position: relative; }
.resource .file-badge::before { content: ""; position: absolute; top: 8px; left: 9px; width: 14px; height: 14px; border: 4px solid var(--sky); }
.resource .meta { font-size: var(--step--1); color: var(--muted); }
.resource .actions { grid-column: 2; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filters button { font: 500 0.88rem var(--body); padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }

.book { grid-template-columns: 64px minmax(0, 1fr); column-gap: 18px; }
.book-spine { grid-row: span 4; width: 64px; height: 92px; border-radius: 2px 4px 4px 2px; background: var(--ink); position: relative; overflow: hidden; }
.book-spine::before { content: ""; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: color-mix(in srgb, var(--bg) 30%, transparent); }
.book-spine::after { content: ""; position: absolute; right: 10px; bottom: 12px; width: 18px; height: 18px; border: 4px solid var(--sky); }
.book:nth-child(3n+2) .book-spine { background: var(--link); }
.book:nth-child(3n+3) .book-spine { background: color-mix(in srgb, var(--mint) 55%, var(--ink)); }
.book .author { font-size: var(--step--1); color: var(--muted); margin-top: -6px; }
.book .actions, .book p { grid-column: 2; }
.disclosure { font-size: var(--step--1); color: var(--muted); border-left: 3px solid var(--mint); padding: 8px 0 8px 14px; max-width: 75ch; }

/* about */
.portrait { width: 100%; max-width: 252px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); outline: 10px solid var(--sky); outline-offset: -10px; }
.cred-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.cred-list li { padding: 12px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; }
.cred-list li span:last-child { color: var(--muted); font-size: var(--step--1); }

/* contact */
.contact-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); display: grid; gap: 16px; }
.copy-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.copy-row code { font-family: var(--body); font-size: var(--step-1); color: var(--ink); user-select: all; word-break: break-all; }

/* CTA band */
.cta-band { background: var(--ink); color: var(--bg); }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-block: clamp(40px, 6vw, 64px); }
.cta-band h2 { color: var(--bg); max-width: 24ch; }
.cta-band p { color: color-mix(in srgb, var(--bg) 80%, var(--ink)); margin-top: 8px; }
.cta-band .btn { background: var(--sky); border-color: var(--sky); color: #061629; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); font-size: var(--step--1); color: var(--muted); }
.site-footer .wrap { padding-block: 40px; display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.site-footer h2 { font-family: var(--body); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg); margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--muted); }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; display: grid; gap: 4px; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .site-footer .wrap > :first-child { grid-column: 1 / -1; } }

/* delivery levels: strategy > portfolio > programme > project (home, services) */
.levels-wrap { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.levels { list-style: none; margin: 0; padding: 0; display: grid; }
.levels li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.levels li:last-child { border-bottom: 1px solid var(--line); }
.levels .lvl { width: var(--s); height: var(--s); border: 5px solid var(--sky); justify-self: center; margin-top: 2px; }
.levels p { color: var(--muted); font-size: 0.95rem; margin-top: 4px; max-width: 60ch; }
.pmo { background: var(--tint); border-color: transparent; }
.pmo hr { border: 0; border-top: 1px solid var(--line); margin: 8px 0; width: 100%; }
@media (max-width: 760px) { .levels-wrap { grid-template-columns: 1fr; } }

/* selected delivery (home) */
.proof { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 0; border-top: 1px solid var(--line); }
.proof article { padding: 24px 24px 24px 0; display: grid; gap: 8px; align-content: start; border-bottom: 1px solid var(--line); }
.proof .figure { font-family: var(--display); font-size: var(--step-3); color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.proof h3 { font-size: 0.98rem; }
.proof p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }

/* career timeline (about) */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); }
.timeline .when { font-size: var(--step--1); color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 2px; }
.timeline h3 { font-size: 1rem; }
.timeline p { font-size: 0.92rem; color: var(--muted); line-height: 1.6; margin-top: 4px; }
.timeline .org { font-weight: 500; color: var(--fg); }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: 4px; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font-size: 0.82rem; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--fg); }

.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 32px; }
.notfound { text-align: left; display: grid; gap: 16px; }

/* three-step process variant (recovery page) */
.lifecycle--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lifecycle--3 li:nth-child(4) { border-top-color: var(--line); }
.lifecycle--3 li:nth-child(2) { border-top-color: var(--sky); }
@media (max-width: 880px) { .lifecycle--3 { grid-template-columns: 1fr; } .lifecycle--3 li:nth-child(2) { border-left-color: var(--sky); } }

/* whole-card links (service pages) */
.card--link { text-decoration: none; color: inherit; }
.card--link h3 { color: var(--ink); }
.card--link .more { color: var(--link); font-weight: 600; font-size: 0.9rem; margin-top: 4px; }
.card--link:hover { border-color: var(--sky); }
.card--link:hover .more { text-decoration: underline; text-decoration-color: var(--sky); }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { color: var(--link); }

/* hero photo (home) */
.hero-portrait { margin: 0; justify-self: end; display: grid; gap: 12px; width: 100%; max-width: 300px; }
.hero-portrait .portrait { max-width: 100%; }
.hero-portrait figcaption { display: grid; font-size: var(--step--1); color: var(--muted); }
.hero-portrait figcaption strong { color: var(--ink); font-weight: 600; font-size: 0.95rem; }
@media (max-width: 760px) { .hero-portrait { justify-self: start; max-width: 220px; } }
