/* Multi-page additions: navigation state, page headers, service pages, home blog cards, call-to-action band, contact form. */
nav a[aria-current="page"] { color: var(--accent); }
nav .nav-cta { border: 2px solid var(--ink); padding: 6px 12px; }
nav .nav-cta:hover, nav .nav-cta[aria-current="page"] { background: var(--ink); color: var(--paper); }
footer a { color: inherit; text-decoration: none; }
footer a:hover { text-decoration: underline; }

.page-head { padding-block: clamp(40px, 7vw, 72px) clamp(8px, 2vw, 16px); display: flex; flex-direction: column; gap: 14px; }
.page-head .label { color: var(--accent); }
.page-head h1 { font-size: clamp(42px, 6.5vw, 72px); line-height: 0.98; max-width: 18ch; }
.page-head p { font-size: clamp(17px, 1.8vw, 20px); color: var(--ink-2); max-width: 62ch; }
.thanks { padding-bottom: 96px; }
.thanks h1 { max-width: 22ch; }
.thanks a:not(.btn) { color: var(--accent); }

/* Assessment links */
.row-link { text-decoration: none; }
.row-link:hover { color: var(--accent); }
.more { font-family: var(--mono); font-size: 13px; color: var(--accent); text-decoration: none; }
.more:hover { text-decoration: underline; }

/* Service detail pages */
.service { padding-block: clamp(28px, 4vw, 48px) clamp(48px, 7vw, 80px); max-width: 920px; }
.back { font-family: var(--mono); font-size: 13px; text-decoration: none; color: var(--muted); }
.back:hover { color: var(--accent); }
.service-head { padding-top: 24px; }
.svc-top { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px 40px; border-top: 2px solid var(--ink); padding-top: 18px; }
.svc-top .label, .svc-block .label, .svc-two .label { display: block; margin-bottom: 8px; }
.svc-problem { font-size: 18px; color: var(--ink-2); }
.facts-list { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.facts-list dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.facts-list dd { margin: 2px 0 0; font-size: 17px; }
.svc-block { margin-top: 36px; }
.included { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.included li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; padding-block: 14px; border-bottom: 1px solid var(--rule); }
.included .num { font-family: var(--display); font-weight: 700; font-size: 24px; color: var(--accent); line-height: 1.2; }
.included b { font-weight: 600; }
.svc-two { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; }
.svc-two ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.svc-follow { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--rule); color: var(--ink-2); }

/* Home: latest blog posts */
.latest { background: var(--panel); }
.text-link { font-family: var(--mono); font-size: 14px; color: var(--accent); text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; gap: 10px; padding: 22px; background: var(--paper); border-top: 3px solid var(--ink); text-decoration: none; min-width: 0; }
.card:hover h3 { color: var(--accent); }
.card h3 { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.05; }
.card p { font-size: 16px; color: var(--ink-2); }
.card-date { margin-top: auto; font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* Call-to-action band (reuses the dark contact styling) */
.cta-actions { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.cta-actions .btn.primary { border-color: var(--accent); }
.cta-direct { margin: 0; font-family: var(--mono); font-size: 14px; line-height: 1.7; opacity: 0.92; }
.cta-direct a { color: var(--on-band); }

/* Contact page and inquiry form */
.contact-page { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px 56px; padding-block: 16px clamp(56px, 8vw, 96px); align-items: start; }
.inquiry { display: flex; flex-direction: column; gap: 18px; border-top: 2px solid var(--ink); padding-top: 22px; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 15px; font-weight: 600; }
.field .req { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; color: var(--accent); margin-left: 6px; text-transform: uppercase; }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); border: 1px solid var(--muted); border-radius: 0; padding: 11px 12px; min-height: 46px; width: 100%; box-sizing: border-box; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--ink); }
.inquiry .btn { align-self: flex-start; cursor: pointer; font: inherit; font-family: var(--mono); font-size: 14px; letter-spacing: 0.06em; }
.fine { font-size: 14px; color: var(--muted); margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-side { display: flex; flex-direction: column; gap: 6px; }
.contact-side .portrait { max-width: 240px; margin-bottom: 14px; }
.side-name { font-size: 20px; font-weight: 600; margin: 0; }
.side-lines { margin-top: 18px; display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--rule); padding-top: 16px; }
.side-lines div { display: flex; flex-direction: column; gap: 2px; }
.side-lines a { color: var(--ink); font-family: var(--mono); font-size: 16px; overflow-wrap: anywhere; }

@media (max-width: 860px) {
  .svc-top, .svc-two, .contact-page { grid-template-columns: minmax(0, 1fr); }
  .cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: minmax(0, 1fr); }
}

/* Accessibility: skip link, page-level H1s styled like section heads, larger tap targets */
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 12px 16px; font-family: var(--mono); font-size: 14px; text-decoration: none; }
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }
main:focus { outline: none; }
.sec-head h1 { font-size: clamp(40px, 6vw, 64px); }
.about-name { font-size: clamp(40px, 6vw, 60px); margin-top: 10px; margin-bottom: 14px; }
a:focus-visible, button:focus-visible, .card:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.more, .back, .text-link { display: inline-block; padding-block: 8px; }
footer a, .cta-direct a, .side-lines a { display: inline-block; padding-block: 6px; }
nav a { min-height: 32px; display: inline-flex; align-items: center; }

/* 404 and privacy */
.not-found { padding-bottom: 96px; }
.not-found h1 { max-width: 20ch; }
.nf-links { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.nf-links a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border: 2px solid var(--ink); font-family: var(--mono); font-size: 14px; text-decoration: none; }
.nf-links a:hover { background: var(--ink); color: var(--paper); }
.privacy .prose h2 { font-size: 26px; }
.fine a { color: inherit; }

.profile-link { margin-top: 16px; }
.profile-link a { display: inline-block; padding-block: 6px; font-family: var(--mono); font-size: 14px; color: var(--accent); text-decoration: none; }
.profile-link a:hover { text-decoration: underline; }

/* Mission (About) */
.mission { border-left: 4px solid var(--accent); padding: 4px 0 4px 18px; margin: 6px 0 22px; }
.mission .label { color: var(--accent); }
.mission-statement { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; color: var(--ink); margin-top: 8px; }
.mission p + p { margin-top: 10px; color: var(--ink-2); }

/* Utilities */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.anchor-alias { position: relative; top: -16px; display: block; }

/* Home hero: who, problem, outcomes */
.hero-home h1 { font-size: clamp(42px, 6.4vw, 76px); max-width: 17ch; }
.hero-home p { max-width: 62ch; }
.outcomes { margin-top: 18px; border-top: 2px solid var(--ink); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.outcomes ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.outcomes li { font-family: var(--mono); font-size: 13px; border: 1px solid var(--rule); background: var(--panel); padding: 6px 10px; }
.creds-line { margin-top: 6px; }
.creds-line a { color: var(--accent-on-band); }

/* Home: where to start */
.finder { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.finder li { border-bottom: 1px solid var(--rule); }
.finder a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 32px; align-items: center; padding-block: 18px; text-decoration: none; }
.finder a:hover .finder-name b { color: var(--accent); }
.finder-when { font-size: 19px; line-height: 1.4; color: var(--ink); }
.finder-go { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 4px 12px; align-items: start; }
.finder-go .num { font-size: 32px; }
.finder-go .tag { grid-column: 2; justify-self: start; }
.finder-name { display: flex; flex-direction: column; gap: 2px; }
.finder-name b { font-weight: 600; font-size: 18px; }
.finder-name .muted { font-size: 14px; }
.finder-foot { margin-top: 18px; color: var(--ink-2); }
.finder-foot a:not(.text-link) { color: var(--accent); }

/* Home: philosophy and the P-F curve */
.philosophy { background: var(--panel); }
.pf-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr); gap: 28px 44px; align-items: center; }
.pf-text { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pf-text .label { color: var(--accent); }
.pf-text h2 { font-size: clamp(34px, 4.4vw, 50px); }
.pf-text h2 .hl, .pf-text p b { color: var(--accent); }
.pf-text p { color: var(--ink-2); }
.pf-quote { margin: 6px 0 0; border-left: 4px solid var(--accent); padding-left: 16px; }
.pf-quote p:not(.attr) { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.4vw, 27px); line-height: 1.15; color: var(--ink); }
.pf-quote .attr { margin-top: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.pf-quote .attr a { color: var(--accent); }
.pf-figure { margin: 0; min-width: 0; }
@media (min-width: 861px) { .pf-grid { align-items: start; } .pf-figure { margin-top: 56px; } }
.pf-figure figcaption { margin-top: 12px; font-size: 15px; color: var(--ink-2); }
.pf-chart { width: 100%; height: auto; display: block; overflow: visible; }
.pf-chart text { font-family: var(--mono); font-size: 15px; fill: var(--ink-2); letter-spacing: 0.01em; }
.pf-window { fill: var(--accent); fill-opacity: 0.09; }
.pf-bracket path { fill: none; stroke: var(--accent); stroke-width: 2; }
.pf-bracket text { fill: var(--accent); font-size: 15.5px; font-weight: 600; }
.pf-axis path { fill: none; stroke: var(--ink); stroke-width: 2; }
.pf-axis text { fill: var(--ink-2); font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.06em; }
.pf-curve { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; }
.pf-dot { fill: var(--accent); stroke: var(--panel); stroke-width: 3; }
.pf-chart .pf-pt { font-family: var(--display); font-weight: 700; font-size: 34px; fill: var(--ink); }
.pf-chart .pf-note { font-size: 15px; fill: var(--ink-2); }
.pf-zones text { font-size: 14px; text-transform: uppercase; letter-spacing: 0.03em; fill: var(--ink); font-weight: 500; }
.pf-zones .pf-react { fill: var(--accent); font-weight: 600; }

/* IOPS supporting capability */
.iops-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; border-top: 2px solid var(--ink); padding-top: 22px; }
.iops .label { color: var(--accent); }
.iops h2 { font-size: clamp(30px, 3.6vw, 40px); margin: 8px 0 12px; }
.iops p { color: var(--ink-2); }
.iops-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.iops-points li { padding-left: 16px; border-left: 3px solid var(--rule); color: var(--ink-2); font-size: 16px; }
.iops-points b { color: var(--ink); font-weight: 600; }

/* Case studies (render only when data exists) */
.case-metric { font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1; color: var(--accent); }

/* Services: comparison table */
.compare { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); font-size: 16px; }
.compare thead th { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 12px 14px 10px 0; border-bottom: 1px solid var(--rule); }
.compare tbody th, .compare td { text-align: left; vertical-align: top; padding: 18px 14px 18px 0; border-bottom: 1px solid var(--rule); }
.compare tbody th { width: 26%; font-weight: 600; font-size: 18px; line-height: 1.3; }
.compare tbody th .num { display: block; font-size: 30px; margin-bottom: 6px; }
.compare tbody th .tag { display: table; margin-top: 8px; }
.compare td:nth-child(2) { width: 24%; color: var(--ink-2); }
.compare td:nth-child(3) { width: 11%; white-space: nowrap; }
.compare td ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.cmp-format { display: block; font-size: 13px; white-space: normal; margin-top: 4px; }
.compare tr.is-start { background: color-mix(in srgb, var(--accent) 6%, transparent); }

/* Service pages */
.crumbs { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; display: inline-block; padding-block: 8px; }
.crumbs a:hover { color: var(--accent); }
.svc-deliver { border-top: 2px solid var(--ink); padding-top: 18px; }
.svc-block h2.label { font-family: var(--mono); font-weight: 500; font-size: 13px; line-height: 1.4; margin-bottom: 8px; }
.svc-pager { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.svc-pager a { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--rule); text-decoration: none; font-weight: 600; }
.svc-pager a:hover { border-color: var(--ink); color: var(--accent); }
.svc-pager .next { text-align: right; align-items: flex-end; }

/* About: background */
.about-actions { margin-top: 20px; }
.bg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 36px; border-top: 2px solid var(--ink); padding-top: 18px; }
.bg-grid h3 { font-family: var(--body); font-weight: 600; font-size: 18px; margin-bottom: 10px; }
.bg-grid ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); font-size: 16px; }
.bg-grid b { color: var(--ink); font-weight: 600; }

/* Contact: next steps and hints */
.hint { font-size: 14px; color: var(--muted); }
.next-steps { margin-top: 18px; border-top: 1px solid var(--rule); padding-top: 16px; }
.next-steps ol { margin: 8px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 16px; color: var(--ink-2); }
.post-related { font-size: 16px; }
.post-related a { color: var(--accent); }

@media (max-width: 860px) {
  .pf-grid, .iops-grid, .bg-grid { grid-template-columns: minmax(0, 1fr); }
  .pf-figure { max-width: 640px; }
  .finder a { grid-template-columns: minmax(0, 1fr); }
  /* Comparison table becomes stacked cards */
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare, .compare tbody, .compare tr, .compare tbody th, .compare td { display: block; width: auto !important; }
  .compare tr { border-bottom: 1px solid var(--rule); padding-block: 16px; }
  .compare tbody th, .compare td { border: 0; padding: 4px 0; white-space: normal !important; }
  .compare td::before { content: attr(data-label); display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
}
@media (max-width: 560px) {
  .svc-pager { grid-template-columns: minmax(0, 1fr); }
  .svc-pager .next { text-align: left; align-items: flex-start; }
}

/* Fixes: intrinsic image size attributes, breadcrumb alignment, service section spacing */
.portrait { height: auto; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; }
.svc-block { padding-block: 0; }
