/* Ottawa River print edition. Base controls and layout live in the base layer
   of styles.css. The ink and paper colours here also apply to inline diagrams. */
:root {
  color-scheme: light;
  --bg-page: #fafbf6;
  --bg-surface: #fff;
  --bg-subtle: #edf3e9;
  --bg-navy: #123e35;
  --bg-navy-elevated: #1a5146;
  --bg-navy-card: #22584c;
  --ink-primary: #143d34;
  --ink-secondary: #334d46;
  --ink-muted: #50665d;
  --ink-inverse: #f8faf2;
  --ink-inverse-muted: #d1e5d7;
  --accent: #175544;
  --accent-text: #155541;
  --accent-bright: #ffce56;
  --accent-bg: #f8edc6;
  --accent-border: #ccbb79;
  --teal: #276056;
  --teal-bright: #ace4cb;
  --teal-bg: #deeee4;
  --teal-border: #96bab0;
  --border: #c7d4ca;
  --border-strong: #91a79b;
  --border-dark: #4e7265;
  --river-paper: #e5efe7;
  --font-display: Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --container-max: 1344px;
  --container-narrow: 840px;
  --header-height: 80px;
  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: 0 8px 30px #153c3426;
  --ease: ease-out;
}
body { overflow-wrap: break-word; }
.container { padding-inline: clamp(20px, 4.2vw, 60px); }
h1, h2, .proof-value {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -.05em;
  line-height: 1.04;
}
h2 { font-size: clamp(2.2rem, 4vw, 3.6rem); }
h3 { letter-spacing: -.035em; }
:focus-visible { outline: 3px solid #218372; outline-offset: 3px; }
:is(.site-footer,.cta-band,.project-scope) :focus-visible { outline-color: var(--accent-bright); }
.site-header { background: var(--bg-page); backdrop-filter: none; }
.site-header.is-scrolled { box-shadow: 0 2px 8px #163d3410; }
.scroll-progress { display: none; }
.brand { gap: 10px; }
.brand-mark { width: 42px; height: 42px; }
.brand-name { font-size: 1.04rem; letter-spacing: -.045em; }
.brand-tagline { font: 500 .77rem/1.4 var(--font-sans); letter-spacing: 0; }
.nav-desktop { gap: 15px; }
.nav-link, .nav-trigger { font-size: .86rem; }
.btn { padding: 13px 21px; border-radius: 6px; white-space: normal; text-align: center; }
.header-cta { padding: 11px 16px; }
.btn--primary::after, .cta-band::before, .eyebrow::before { content: none; }
.btn:hover { transform: none; }
.btn--outline-light { color: var(--ink-primary); border-color: var(--ink-primary); }
.btn--outline-light:hover { background: var(--bg-subtle); color: var(--ink-primary); border-color: var(--ink-primary); }
.cta-band .btn--outline-light { color: white; border-color: var(--ink-inverse-muted); }
.cta-band .btn--outline-light:hover { background: var(--bg-navy-elevated); }
.btn--primary:is(.cta-band *, .cover-description *) { background: var(--accent-bright); color: var(--ink-primary); border-color: var(--accent-bright); }
.btn--primary:is(.cta-band *, .cover-description *):hover { background: #ffda82; }
.text-link, .related-work-title, .case-card h3 a:hover {
  text-decoration: underline; text-underline-offset: .24em; text-decoration-thickness: 1px;
}
.text-link svg, .related-work-arrow { display: none; }
.blueprint-grid { background-image: none; }
.eyebrow, .fact-label, .mobile-nav-label, .footer-heading, .cert-issuer, .contact-detail-label {
  text-transform: none;
  letter-spacing: 0;
  font: 600 .9rem/1.5 var(--font-sans);
}
.eyebrow { color: var(--ink-muted); }
.hero, .page-hero { background: var(--river-paper); border: 0; color: var(--ink-primary); }
.hero::after, .page-hero::after { content: none; }
.hero { padding: clamp(32px, 4.5vw, 68px) 0; }
.river-cover {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: clamp(28px, 4.2vw, 72px);
  align-items: start;
  position: relative;
}
.hero h1 {
  grid-column: 1; grid-row: 1;
  color: inherit;
  font-size: clamp(3.5rem, 4.6vw, 4.7rem);
  margin: 0 0 24px;
}
.cover-description { grid-column: 1; grid-row: 2; }
.hero-lead { font-size: clamp(1rem, 1.14vw, 1.11rem); line-height: 1.65; color: var(--ink-secondary); }
.hero-clients { border: 0; padding: 0; color: var(--ink-secondary); font-size: .91rem; margin: 0 0 26px; }
.hero-clients strong { color: var(--ink-primary); font-weight: 700; }
/* The caption gets its own row so wrapped lines (large text settings) never overlap the art. */
.river-print { grid-area: 1 / 2 / 3 / 3; }
.print-caption { grid-area: 3 / 2 / 4 / 3; margin-top: 10px; }
.river-print {
  align-self: stretch;
  min-height: clamp(340px, 34vw, 490px);
  background: #65998b url('../images/ottawa-river-print.webp') center center / cover no-repeat;
  border-radius: 3px;
}
.print-caption {
  align-self: end;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  color: var(--ink-muted); font-size: .8rem; font-weight: 600;
}
.print-caption::after {
  content: ''; flex: 0 0 31px; height: 6px;
  background: linear-gradient(to right, #164a3d 33%, #71aa99 33% 66%, #f2c75a 66%);
}
.project-scope { background: var(--bg-navy); color: var(--ink-inverse); padding-block: clamp(36px, 4vw, 60px); }
.scope-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: center; gap: clamp(30px, 5vw, 80px); }
.hero-diagram-frame { display: block; border: 0; background: transparent; box-shadow: none; padding: 0; }
.diagram-bar, .schematic-caption { flex-wrap: wrap; gap: 7px 16px; font-size: .72rem; }
.diagram-bar { margin-bottom: 4px; padding-bottom: 6px; }
.diagram-status { color: #ffdb81; }
.diagram-status::before { background: currentColor; animation: none; box-shadow: none; }
.flow-line { animation: none; }
:is(.hero-diagram-frame, .schematic-box) rect[fill]:not([fill="none"]) { fill: #1d4b40; }
:is(.hero-diagram-frame, .schematic-box) rect[fill="#0B1424" i] { fill: #123e35; }
:is(.hero-diagram-frame, .schematic-box) rect[stroke] { stroke: #749e88; }
:is(.hero-diagram-frame, .schematic-box) [stroke="#F59E0B" i] { stroke: #ffd063; }
:is(.hero-diagram-frame, .schematic-box) text { fill: #edf6e9; }
:is(.hero-diagram-frame, .schematic-box) text[font-weight="600"] { fill: #ffdc84; }
.proof-strip { grid-template-columns: 1fr 1fr; margin: 0; padding: 0; border: 0; gap: 28px 24px; }
.proof-stat { border: 0; border-top: 1px solid #688b7b; padding: 12px 0 0; gap: 8px; }
.proof-value { font-size: clamp(2.4rem, 4.1vw, 4.2rem); color: #ffe39a; }
.proof-label { font-size: .9rem; max-width: 26ch; }

/* Opening plate of a service brief or project report. */
.page-hero { padding: 32px 0 clamp(40px, 5vw, 70px); }
.page-hero .container { display: flow-root; }
.page-hero .container::before {
  content: ''; float: right; width: clamp(140px, 19vw, 260px); aspect-ratio: 1;
  margin: 15px 0 24px 7%; border-radius: 50%;
  background: url('../images/ottawa-river-print.webp') 59% 42% / 148% no-repeat;
}
.page-hero h1 { color: var(--ink-primary); font-size: clamp(2.6rem, 4.5vw, 4.4rem); max-width: 880px; margin: 14px 0 20px; }
.page-hero .lead { color: var(--ink-secondary); max-width: 760px; font-size: clamp(1rem, 1.3vw, 1.15rem); }
.page-hero .eyebrow { margin: 0; color: var(--ink-muted); }
.breadcrumb { font: 500 .85rem/1.5 var(--font-sans); color: var(--ink-muted); margin: 0 0 32px; }
.breadcrumb a, .breadcrumb a:hover { color: var(--ink-primary); text-decoration: underline; text-underline-offset: 3px; }
.fact-bar { clear: both; border-color: var(--border-strong); gap: 24px; }
.fact-label { color: var(--ink-muted); }
.fact-value { color: var(--ink-primary); font-weight: 500; }
.page-hero .text-link, .page-hero .text-link:hover { color: var(--accent-text); }
.prose p a { text-decoration: underline; text-underline-offset: .16em; }
.page-hero .btn-group { margin-top: 22px; }
.section { padding-block: clamp(48px, 6vw, 88px); }
.section--compact { padding-block: 44px; }
.section--surface { background: #f0f3e9; }
.section-header { margin-bottom: 38px; }
.grid-3, .grid-2, .supporting-grid, .feature-grid { column-gap: clamp(24px, 3.5vw, 48px); row-gap: 34px; }
.pillar-card, .supporting-card, .case-card, .feature-card, .related-work-card {
  background: transparent; border: 0; border-top: 2px solid var(--accent);
  border-radius: 0; padding: 20px 0 0; box-shadow: none; overflow: visible;
}
.pillar-card:hover, .case-card:hover, .related-work-card:hover,
.prose ul:has(> li > a:only-child) > li > a:hover { transform: none; }
.related-work-card:is(:hover, :focus-visible) .related-work-title { color: #28705b; }
.badge, .cert-issuer { font: 600 .85rem/1.5 var(--font-sans); letter-spacing: 0; text-transform: none; }
.pillar-num { color: var(--ink-muted); font: 500 .85rem/1.5 var(--font-sans); letter-spacing: 0; text-transform: lowercase; }
.pillar-watermark { display: none; }
.pillar-card h3, .case-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.8rem; line-height: 1.15; }
.badge { background: var(--teal-bg); color: var(--ink-primary); border: 0; }
.badge--modernization { background: #f6e2a9; }
.badge--migration { background: #d8e6ee; }
.badge--governance { background: #e8e2d5; }
.case-results { background: transparent; border: 0; padding: 0; }
.case-results li { padding-left: 15px; }
.case-results li::before { content: ''; width: 5px; height: 5px; background: var(--accent); top: .5em; border-radius: 50%; }
.cert-item { background: var(--bg-subtle); border: 0; border-left: 3px solid var(--accent); border-radius: 0; }
.offer-callout { background: #f8edc6; border: 0; border-left: 4px solid #d1a437; }
.filter-btn { font-family: var(--font-sans); border-radius: 20px; }
.cta-band { border: 0; }
.cta-band .eyebrow { color: #ffdc84; }
.article-layout { column-gap: clamp(32px, 6vw, 86px); }
.prose { min-width: 0; max-width: 78ch; }
.prose p { max-inline-size: 46ch; }
.prose h2 { font-size: clamp(1.9rem, 3vw, 2.65rem); border: 0; padding: 0; margin: 1.35em 0 .52em; }
.prose h2:first-child { margin-top: 0; }
.prose .feature-card h3 { margin-top: 0; }
.prose .feature-grid { row-gap: 26px; }
.deliverable-line, .related-work-meta, .tech-tag { font-family: var(--font-sans); font-size: .84rem; }
.sidebar-card { border: 0; border-top: 3px solid var(--accent); border-radius: 0; background: var(--river-paper); }
.sidebar-card h3 { font: 700 1.03rem/1.4 var(--font-sans); letter-spacing: -.025em; text-transform: none; }
.sidebar-card--sticky { position: static; max-height: none; overflow: visible; }
.tech-tag { background: transparent; padding: 3px 7px; }
.step-list li { border: 0; background: transparent; padding: 0 0 0 38px; }
.step-list li::before { top: .15em; left: 0; border: 0; padding: 1px 5px; }
.prose ul:has(> li > a:only-child) > li > a { border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 8px 0; background: transparent; text-decoration: underline; text-underline-offset: .2em; }
.schematic-box { border: 0; padding: clamp(12px, 2vw, 24px); }
/* Scale each drawing as a unit so labels keep their clearance from connectors. */
.hero-diagram-frame, .schematic-box:has(> svg) {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-color: #96baaa var(--bg-navy);
}
.schematic-box > svg, .hero-diagram-frame > svg {
  width: 100%;
  min-width: var(--drawing-width, 900px);
  max-width: none;
  height: auto;
}
.hero-diagram-frame { --drawing-width: 676px; }
.schematic-box:has(text:is([font-size="7.5"], [font-size="7.8"])) { --drawing-width: 980px; }
.schematic-box:has(text[font-size="7"]) { --drawing-width: 1040px; }
.schematic-box line[stroke="#334e73" i] { stroke: #96baaa; }
.schematic-caption, .diagram-bar { position: sticky; left: 0; }
@media print {
  .schematic-box > svg, .hero-diagram-frame > svg { min-width: 0; }
}
.form-control { background: white; }
.form-control:not(:focus):not([aria-invalid="true"]) { border-color: #637e70; }
.contact-grid aside > .sidebar-card { background: transparent; padding: 20px 0 0; }
.menu-toggle { width: 44px; height: 44px; }
.site-footer a, .breadcrumb a, .contact-detail-value a, .cta-direct a, .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}
.footer-heading { color: var(--accent-bright); font-weight: 700; }
.footer-brand-name { font-family: var(--font-display); font-size: 1.7rem; font-weight: 400; letter-spacing: -.035em; }
.footer-about { max-width: 40ch; }
.footer-grid > div { min-width: 0; }
@media (min-width: 901px) {
  .grid-2:has(.case-card), .grid-3:has(.case-card) { grid-template-columns: minmax(0,1fr); gap: 0; }
  .case-card {
    display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr);
    align-content: start; column-gap: 8%; row-gap: 8px;
    padding-block: 26px; border-top: 1px solid var(--border-strong);
  }
  .case-card.is-hidden { display: none; }
  .case-meta, .case-card h3, .case-card .text-link { grid-column: 1; margin: 0; }
  .case-summary { grid-column: 2; grid-row: 1 / 3; margin: 0; }
  .case-results { grid-column: 2; grid-row: 3 / 5; margin: 0; }
}
@media (max-width: 900px) {
  .hero h1 { font-size: clamp(2.7rem, 6vw, 3.8rem); }
  .river-cover { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .river-print { min-height: 0; }
  .scope-grid { grid-template-columns: minmax(0,1fr); }
  .proof-strip { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .print-caption { line-height: 1.3; }
  .page-hero .container::before { width: 140px; margin: 12px 0 18px 24px; }
}
@media (max-width: 680px) {
  :root { --header-height: 68px; }
  .hero { padding: 30px 0 34px; }
  .river-cover { display: flex; flex-direction: column; align-items: stretch; }
  .hero h1 { order: 0; font-size: clamp(2.5rem, 9.8vw, 3.65rem); margin-bottom: 21px; }
  .river-print { order: 1; height: clamp(185px, 56vw, 290px); margin: 0; background-position: 50% 16%; }
  .print-caption { order: 2; align-self: stretch; margin-top: 7px; font-size: .72rem; }
  .cover-description { order: 3; margin-top: 20px; }
  .cover-description .btn-group { gap: 8px; }
  .hero-clients { margin-bottom: 20px; }
  .hero-lead { margin-bottom: 12px; }
  .proof-strip { grid-template-columns: 1fr 1fr; }
  .proof-label { font-size: .85rem; }
  .page-hero .container::before { content: none; }
  .page-hero { padding: 22px 0 32px; }
  .breadcrumb { margin-bottom: 18px; }
  .fact-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .fact-value { font-size: .88rem; }
  .section { padding-block: 42px; }
  .section-header { margin-bottom: 26px; }
  .form-card { padding-inline: 16px; }
  .btn { padding-inline: 16px; }
}
