/* Wound Solutions AI — sand & ink theme
   Type: Cambria (Caladea fallback, metric-compatible) + Atkinson Hyperlegible */

:root {
  --sand: #ECE3D1;
  --dune: #DDD0B5;
  --paper: #F7F2E8;
  --ink: #1B2433;
  --ink-2: #465063;
  --ink-3: #6B6A63;
  --rule: #B8A98D;
  --blue: #2A4A7F;
  --red: #8B2E24;

  --serif: Cambria, Caladea, "Cambria Math", Georgia, serif;
  --sans: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;

  --measure: 38rem;
  --wide: 72rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

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

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.62;
  font-feature-settings: "kern", "liga", "onum";
  text-rendering: optimizeLegibility;
}

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

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .6rem 1rem; z-index: 100; font-family: var(--sans); }
.skip:focus { left: 1rem; top: 1rem; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; color: var(--ink); margin: 0; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: 1.04; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.35rem); line-height: 1.15; letter-spacing: -0.01em; }
h3 { font-size: 1.35rem; line-height: 1.25; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lede { font-size: 1.3rem; line-height: 1.5; color: var(--ink-2); max-width: var(--measure); }

.sans { font-family: var(--sans); }
.small { font-family: var(--sans); font-size: .875rem; line-height: 1.5; color: var(--ink-2); }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--rule); background: var(--sand); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.5rem; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name { font-family: var(--serif); font-size: 1.3rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand-name em { font-style: italic; color: var(--ink-2); }

.nav { display: flex; align-items: center; gap: .25rem; font-family: var(--sans); font-size: .98rem; }
.nav > a, .nav-drop > button { color: var(--ink); text-decoration: none; padding: .55rem .8rem; border-radius: 3px; background: none; border: 0; font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: .35rem; }
.nav > a:hover, .nav-drop > button:hover { background: var(--dune); }
.nav a[aria-current="page"], .nav-drop.current > button { box-shadow: inset 0 -2px 0 var(--ink); border-radius: 0; }
.nav .btn { margin-left: .75rem; }
.nav > a.btn-ink { background: var(--ink); color: var(--paper); border-radius: 3px; padding: .6rem 1.1rem; }
.nav > a.btn-ink:hover { background: var(--blue); }
.caret { width: 10px; height: 10px; transition: transform .15s ease; }

.nav-drop { position: relative; }
.drop-panel {
  position: absolute; top: calc(100% + .5rem); left: 50%; transform: translateX(-50%);
  width: 38rem; background: var(--paper); border: 1px solid var(--rule); box-shadow: 0 18px 40px -24px rgba(27,36,51,.45);
  display: none; grid-template-columns: 1.15fr 1fr; padding: 0;
}
.nav-drop.open .drop-panel { display: grid; }
.nav-drop.open .caret { transform: rotate(180deg); }
.drop-col { padding: 1.25rem 1.4rem; }
.drop-col + .drop-col { border-left: 1px solid var(--dune); background: #F2ECDF; }
.drop-head { font-family: var(--serif); font-style: italic; color: var(--ink-3); font-size: .95rem; margin: 0 0 .5rem; }
.drop-panel a { display: block; text-decoration: none; color: var(--ink); padding: .5rem .55rem; margin: 0 -.55rem; border-radius: 3px; }
.drop-panel a:hover { background: var(--dune); }
.drop-panel a strong { display: block; font-weight: 700; }
.drop-panel a span { display: block; font-size: .85rem; color: var(--ink-2); line-height: 1.4; }
.drop-panel a.sub { padding-left: 1.4rem; position: relative; }
.drop-panel a.sub::before { content: ""; position: absolute; left: .55rem; top: .5rem; bottom: .5rem; border-left: 1px solid var(--rule); }

.nav-toggle { display: none; background: none; border: 1px solid var(--ink); color: var(--ink); font: 600 .95rem var(--sans); padding: .45rem .8rem; border-radius: 3px; cursor: pointer; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--rule); flex-direction: column; align-items: stretch; padding: .75rem var(--gutter) 1.25rem; gap: 0; }
  .nav.open { display: flex; }
  .nav > a, .nav-drop > button { width: 100%; justify-content: space-between; padding: .8rem .2rem; border-bottom: 1px solid var(--dune); border-radius: 0; }
  .nav a[aria-current="page"], .nav-drop.current > button { box-shadow: none; font-weight: 700; }
  .drop-panel { position: static; transform: none; width: auto; box-shadow: none; border: 0; grid-template-columns: 1fr; background: transparent; }
  .drop-col { padding: .5rem 0 .5rem .75rem; }
  .drop-col + .drop-col { border-left: 0; background: transparent; }
  .nav .btn { margin: 1rem 0 0; justify-content: center; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: 700 1rem var(--sans); text-decoration: none; padding: .8rem 1.3rem; border-radius: 3px; border: 1.5px solid var(--ink); cursor: pointer; line-height: 1.2; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--blue); border-color: var(--blue); color: var(--paper); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* ---------- Title page (hero) ---------- */
.title-page { padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--rule); }
.title-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.kicker { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--ink-2); margin: 0 0 1.25rem; }
.title-page h1 { max-width: 14ch; }
.abstract { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--ink); max-width: var(--measure); }
.abstract-label { font-family: var(--sans); font-weight: 700; font-size: .9rem; margin: 0 0 .35rem; color: var(--ink); }
.abstract p { color: var(--ink-2); font-size: 1.2rem; line-height: 1.55; }
.title-page.compact h1 { max-width: 18ch; font-size: clamp(2.25rem, 4.6vw, 3.6rem); }

.figure { margin: 0; }
.figure .plate { background: var(--paper); border: 1px solid var(--rule); padding: 1.25rem; }
.figure figcaption { font-family: var(--sans); font-size: .875rem; line-height: 1.5; color: var(--ink-2); margin-top: .75rem; max-width: 30rem; }
.figure figcaption b { color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 6vw, 5rem) 0; border-bottom: 1px solid var(--rule); }
.section.paper { background: var(--paper); }
.section.ink { background: var(--ink); color: #E9E1D0; border-bottom: 0; }
.section.ink h2, .section.ink h3 { color: #F7F2E8; }
.section.ink a { color: #C9D6EE; }
.section.ink .small { color: #B9B3A5; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.section-head h2 { max-width: 16ch; }
.section-head .lede { margin-top: .35rem; }

/* Article body with margin notes */
.article { display: grid; grid-template-columns: minmax(0, var(--measure)) minmax(0, 15rem); gap: 0 3.5rem; justify-content: start; }
.article > * { grid-column: 1; }
.article > .note { grid-column: 2; grid-row: span 3; align-self: start; }
.article h2 { margin: 2.5rem 0 1rem; }
.article h2:first-child { margin-top: 0; }
.article h3 { margin: 2rem 0 .6rem; }
.article ul, .article ol { padding-left: 1.25rem; margin: 0 0 1.25em; }
.article li { margin-bottom: .45em; }

.note { font-family: var(--sans); font-size: .85rem; line-height: 1.5; color: var(--ink-2); border-top: 1px solid var(--rule); padding-top: .6rem; margin: .35rem 0 1.5rem; }
.note b { color: var(--ink); }
@media (max-width: 880px) {
  .article { grid-template-columns: minmax(0, 1fr); }
  .article > .note { grid-column: 1; grid-row: auto; background: rgba(221,208,181,.45); border-top: 0; border-left: 2px solid var(--rule); padding: .7rem .9rem; }
}

sup.fn a { color: var(--red); text-decoration: none; font-family: var(--sans); font-weight: 700; font-size: .72em; padding: 0 .1em; }
sup.fn a:hover { text-decoration: underline; }

/* Ruled lists and tables */
.ruled { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.ruled > li { border-bottom: 1px solid var(--rule); padding: 1.25rem 0; display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 1.5rem; }
.ruled > li h3 { font-size: 1.25rem; }
.ruled > li p { margin: 0; color: var(--ink-2); }
@media (max-width: 700px) { .ruled > li { grid-template-columns: 1fr; gap: .4rem; } }

.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); margin-top: 2.5rem; }
.product { padding: 1.75rem 1.75rem 2rem 0; border-bottom: 1px solid var(--rule); }
.product + .product { padding-left: 1.75rem; border-left: 1px solid var(--rule); }
.product .setting { font-family: var(--sans); font-size: .85rem; color: var(--ink-3); margin: 0 0 1rem; }
.product h3 { font-size: 1.6rem; font-weight: 400; margin-bottom: .6rem; }
.product p { color: var(--ink-2); }
.product .more { font-family: var(--sans); font-weight: 700; font-size: .95rem; }
@media (max-width: 860px) { .products { grid-template-columns: 1fr; } .product + .product { padding-left: 0; border-left: 0; } }

table.data { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: .95rem; margin: 1rem 0 .5rem; }
table.data caption { text-align: left; font-family: var(--serif); font-style: italic; color: var(--ink-2); padding-bottom: .5rem; font-size: 1rem; }
table.data th, table.data td { text-align: left; padding: .7rem .75rem .7rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.data thead th { border-bottom: 1.5px solid var(--ink); font-weight: 700; }
table.data td.num { font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.table-scroll { overflow-x: auto; }

/* Figures / statistics */
.finding { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2.5rem; align-items: end; border-top: 1px solid var(--ink); padding-top: 1.5rem; }
.finding .figure-num { font-family: var(--serif); font-size: clamp(4.5rem, 11vw, 8.5rem); line-height: .9; letter-spacing: -0.03em; font-variant-numeric: lining-nums; }
.finding p { margin-bottom: .6rem; font-size: 1.25rem; line-height: 1.5; max-width: 32rem; }
@media (max-width: 640px) { .finding { grid-template-columns: 1fr; gap: .75rem; } }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); margin-top: 1.5rem; }
.stat { padding: 1.1rem 1.25rem 1.25rem 0; }
.stat + .stat { padding-left: 1.25rem; border-left: 1px solid var(--rule); }
.stat .v { font-family: var(--serif); font-size: 2.4rem; line-height: 1; font-variant-numeric: lining-nums; margin-bottom: .5rem; }
.stat p { font-family: var(--sans); font-size: .9rem; line-height: 1.45; color: var(--ink-2); margin: 0; }
.section.ink .stat p { color: #C8C1B1; }
.section.ink .stats { border-top-color: #E9E1D0; }
.section.ink .stat + .stat { border-left-color: #4B5468; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat:nth-child(3) { padding-left: 0; border-left: 0; } .stat { border-bottom: 1px solid var(--rule); } }

/* Definition list (pillars) */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 2.5rem 0 0; border-top: 1px solid var(--ink); }
.pillars > div { padding: 1.4rem 1.5rem 0 0; }
.pillars > div + div { padding-left: 1.5rem; border-left: 1px solid var(--rule); }
.pillars dt { font-family: var(--serif); font-size: 1.45rem; margin-bottom: .5rem; }
.pillars dd { margin: 0; color: var(--ink-2); }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } .pillars > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); margin-top: 1.25rem; } }

/* Steps (true sequences only) */
.steps { list-style: none; counter-reset: step; margin: 2rem 0 0; padding: 0; border-top: 1px solid var(--ink); }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
.steps > li::before { content: counter(step); font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--ink); }
.steps h3 { margin-bottom: .35rem; }
.steps p { margin: 0; color: var(--ink-2); max-width: var(--measure); }

/* Two timelines */
.timelines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: 2.5rem; border-top: 1px solid var(--ink); }
.timeline { padding: 1.5rem 2rem 1.75rem 0; }
.timeline + .timeline { padding-left: 2rem; padding-right: 0; border-left: 1px solid var(--ink); background: linear-gradient(var(--paper), var(--paper)) padding-box; }
.timeline h3 { font-weight: 400; font-style: italic; font-size: 1.35rem; margin-bottom: 1rem; }
.timeline ol { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1rem; padding: .7rem 0; border-top: 1px solid var(--dune); }
.timeline li b { font-family: var(--sans); font-size: .95rem; }
.timeline.without li span { color: var(--ink-2); }
@media (max-width: 780px) { .timelines { grid-template-columns: 1fr; } .timeline + .timeline { padding-left: 0; border-left: 0; border-top: 1px solid var(--ink); padding-left: 1rem; padding-right: 1rem; } }

/* Roles */
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); margin-top: 2.5rem; }
.role { padding: 1.5rem 1.5rem 1.75rem 0; }
.role + .role { padding-left: 1.5rem; border-left: 1px solid var(--rule); }
.role .who { font-family: var(--serif); font-style: italic; color: var(--ink-3); margin: 0 0 .35rem; }
.role h3 { font-size: 1.5rem; font-weight: 400; margin-bottom: .75rem; }
.role ul { padding-left: 1.1rem; margin: 0; color: var(--ink-2); }
.role li { margin-bottom: .4rem; }
@media (max-width: 860px) { .roles { grid-template-columns: 1fr; } .role + .role { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); } }

/* Pull quote */
.pull { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.3; font-style: italic; max-width: 34ch; margin: 0; padding-left: 1.25rem; border-left: 2px solid var(--ink); }

/* Team */
.team { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.team li { padding: 1.25rem 1rem 1.25rem 0; border-bottom: 1px solid var(--rule); }
.team .name { font-family: var(--serif); font-size: 1.3rem; display: block; }
.team .role-title { font-family: var(--sans); font-size: .9rem; color: var(--ink-2); }
@media (max-width: 820px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Sub navigation */
.subnav { font-family: var(--sans); font-size: .92rem; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; padding: .9rem 0; border-bottom: 1px solid var(--rule); color: var(--ink-3); }
.subnav a { color: var(--ink-2); text-decoration: none; }
.subnav a[aria-current="page"] { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: .3em; }

/* Notes / references */
.references { font-family: var(--sans); font-size: .875rem; line-height: 1.55; color: var(--ink-2); padding-left: 1.25rem; max-width: 52rem; }
.references li { margin-bottom: .4rem; }
.references li:target { background: #E6D7B9; }

/* Forms */
.form { display: grid; gap: 1.1rem; max-width: 34rem; }
.form label { font-family: var(--sans); font-weight: 700; font-size: .95rem; display: block; margin-bottom: .35rem; }
.form input, .form select, .form textarea { width: 100%; font: 1rem var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-bottom: 1.5px solid var(--ink); border-radius: 2px; padding: .75rem .8rem; }
.form textarea { min-height: 8rem; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.form-status { font-family: var(--sans); font-size: .95rem; padding: .9rem 1rem; background: var(--paper); border-left: 3px solid var(--blue); display: none; }
.form-status.show { display: block; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); }
@media (max-width: 860px) { .contact-grid, .title-grid, .section-head { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 2rem; align-items: end; }
.cta-band h2 { max-width: 22ch; }
@media (max-width: 760px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--dune); padding: 3rem 0 2rem; font-family: var(--sans); font-size: .92rem; color: var(--ink-2); }
.foot-grid { display: grid; grid-template-columns: minmax(0,1.4fr) repeat(3, minmax(0,1fr)); gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--rule); }
.foot-grid h4 { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 1rem; color: var(--ink); margin-bottom: .6rem; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: .35rem; }
.foot-grid a { color: var(--ink); text-decoration: none; }
.foot-grid a:hover { text-decoration: underline; }
.foot-legal { padding-top: 1.25rem; font-size: .82rem; line-height: 1.55; max-width: 60rem; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-grid a, .ruled a { overflow-wrap: anywhere; }

.mt-0 { margin-top: 0; } .mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.muted { color: var(--ink-2); }

/* ---------- Photography (from woundrounds.com) ---------- */
.photo { margin: 0; }
.photo img { width: 100%; height: auto; object-fit: cover; border: 1px solid var(--rule); background: var(--dune);
  filter: saturate(.8) sepia(.08) contrast(1.02); }
.photo figcaption { font-family: var(--sans); font-size: .875rem; color: var(--ink-2); margin-top: .6rem; }
.article > .photo { margin: 1.75rem 0 .5rem; }
.photo-band .photo img { max-height: 30rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; border-top: 1px solid var(--rule); padding-top: 2.5rem; }
.split h3 { font-size: 1.6rem; font-weight: 400; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.headshot { width: 100%; max-width: 12rem; aspect-ratio: 1; object-fit: cover; display: block; margin-bottom: .9rem; border: 1px solid var(--rule); filter: grayscale(1) contrast(1.05) sepia(.12); }
.title-grid .photo img { border-color: var(--ink); }

/* ---------- Platform flow visual ---------- */
.flow { background: var(--ink); color: #E9E1D0; border: 1px solid #0F1522; }
.flow-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding: 1rem 1.25rem; border-bottom: 1px solid #2E3A52; font-family: var(--sans); }
.flow-steps, .flow-modes { display: flex; flex-wrap: wrap; gap: .35rem; }
.flow button { font: 700 .9rem var(--sans); color: #E9E1D0; background: transparent; border: 1px solid #3A4762; border-radius: 3px; padding: .5rem .8rem; cursor: pointer; min-height: 40px; }
.flow button:hover { border-color: var(--sand); }
.flow button[aria-pressed="true"] { background: var(--sand); color: var(--ink); border-color: var(--sand); }
.flow button:focus-visible { outline: 2px solid #C9A45C; outline-offset: 2px; }
.flow-body { display: block; }
.flow-stage { position: relative; min-width: 0; }
.flow-stage svg { width: 100%; height: auto; display: block; }
.flow-side { border-top: 1px solid #2E3A52; padding: 1.4rem 1.5rem; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr) minmax(0, .8fr); gap: 2rem; align-items: start; }
.flow-panel .panel-title { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; color: var(--paper); margin: 0 0 .6rem; }
.flow-panel .panel-body { font-family: var(--serif); font-size: 1.02rem; line-height: 1.55; color: #CFC7B6; margin: 0; min-height: 8em; max-width: 36rem; }
.flow-counts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .9rem 1rem; font-family: var(--sans); }
.flow-counts div { font-size: .8rem; color: #A9A293; line-height: 1.3; }
.flow-counts b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.6rem; color: var(--paper); font-variant-numeric: tabular-nums lining-nums; }
.flow-counts .flag b { color: #E08A74; }
.flow-rate { font-family: var(--sans); font-size: .85rem; color: #CFC7B6; }
.flow-rate input { width: 100%; accent-color: #C9A45C; margin-top: .4rem; }
.flow-rate .row { display: flex; justify-content: space-between; gap: .5rem; }
.flow-legend { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; padding: .9rem 1.25rem; border-top: 1px solid #2E3A52; font: .82rem/1.4 var(--sans); color: #A9A293; }
.flow-legend span { display: inline-flex; align-items: center; gap: .45rem; }
.flow-legend i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.flow-legend .l-raw { border: 1.5px solid #ECE3D1; }
.flow-legend .l-read { background: #C9A45C; }
.flow-legend .l-ok { background: #F7F2E8; box-shadow: 0 0 0 2px #1B2433, 0 0 0 3.5px #F7F2E8; }
.flow-legend .l-flag { background: #E08A74; }
.flow-foot { margin-left: auto; }
@media (max-width: 1080px) { .flow-side { grid-template-columns: 1fr 1fr; } .flow-panel { grid-column: 1 / -1; } .flow-panel .panel-body { min-height: 0; } }
@media (max-width: 620px) { .flow-side { grid-template-columns: 1fr; gap: 1.25rem; } .flow-counts { grid-template-columns: repeat(2, minmax(0,1fr)); } .flow-foot { margin-left: 0; } .flow-bar { padding: .75rem; } .flow button { padding: .45rem .6rem; font-size: .85rem; } }
.flow-wide { max-width: 84rem; }

/* SVG parts */
.flow-caps text { font: 700 13px var(--sans); fill: #8C8778; letter-spacing: .02em; }
.flow .edge { fill: none; stroke: #33405C; stroke-width: 1.5; transition: opacity .3s; }
.flow .edge-flow { fill: none; stroke: #C9A45C; stroke-width: 1.6; stroke-dasharray: 3 9; opacity: .75; animation: flowdash 1.1s linear infinite; transition: opacity .3s; }
.flow .edge.loop { stroke-dasharray: 2 5; }
.flow .edge-flow.loop { stroke: #E08A74; opacity: .5; }
.flow.paused .edge-flow { animation-play-state: paused; }
@keyframes flowdash { to { stroke-dashoffset: -24; } }
.flow .dim { opacity: .18; }
.flow .edge-flow.dim { opacity: .05; }
.flow .off { opacity: .04 !important; }
.flow .loop-label { font: italic 600 15px var(--serif); fill: #F2A28C; }
.flow .is-v .loop-label { font-size: 13.5px; }

.flow .node { cursor: pointer; transition: opacity .3s; outline: none; }
.flow .node .shape { fill: #1F2A3E; stroke: #6C7893; stroke-width: 1.2; transition: stroke .2s, fill .2s; }
.flow .node:hover .shape, .flow .node:focus-visible .shape, .flow .node.focus .shape { stroke: #C9A45C; stroke-width: 2; }
.flow .node-prod .shape { fill: #F7F2E8; stroke: #F7F2E8; }
.flow .node-prod text { fill: #1B2433; }
.flow .node-prod.focus .shape, .flow .node-prod:hover .shape { stroke: #C9A45C; stroke-width: 3; }
.flow .node-out .shape { fill: #1F2A3E; stroke: #8C97AE; }
.flow .node-core .shape { fill: #C9A45C; stroke: #E6CC93; stroke-width: 1.5; }
.flow .node-core text { fill: #1B2433; }
.flow .core-ring { fill: none; stroke: #C9A45C; stroke-width: 1; opacity: .5; }
.flow .core-pulse { fill: none; stroke: #C9A45C; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: corepulse 2.6s ease-out infinite; }
.flow.paused .core-pulse { animation-play-state: paused; }
@keyframes corepulse { 0% { transform: scale(.92); opacity: .6; } 100% { transform: scale(1.35); opacity: 0; } }
.flow .n-label { font: 400 19px var(--serif); fill: #F7F2E8; }
.flow .core-label { font-size: 17px; font-weight: 700; }
.flow .node-prod .n-label { fill: #1B2433; font-weight: 700; }
.flow .n-sub { font: 12.5px var(--sans); fill: #A9A293; }
.flow .node-prod .n-sub { fill: #465063; }
.flow .node-core .n-sub { fill: #2B3446; }
.flow .n-src { font: 14px var(--sans); fill: #E9E1D0; }
.flow .n-out { font: 700 14px var(--sans); fill: #F7F2E8; }
.flow .node-out .n-out { font-size: 14px; }
.flow .node.ping .shape { animation: ping .5s ease-out; }
@keyframes ping { 0% { stroke: #C9A45C; stroke-width: 4; } 100% { } }

.flow .pt { transition: fill .25s; }
.flow .pt-raw { fill: #1B2433; stroke: #ECE3D1; stroke-width: 1.6; }
.flow .pt-read { fill: #C9A45C; stroke: #1B2433; stroke-width: 1; }
.flow .pt-ok { fill: #F7F2E8; stroke: #1B2433; stroke-width: 1.5; }
.flow .pt-flag { fill: #E08A74; stroke: #1B2433; stroke-width: 1; }
@media (prefers-reduced-motion: reduce) { .flow .edge-flow, .flow .core-pulse { animation: none; } }

.flow .is-v .core-label { font-size: 13.5px; }
.flow .is-v .node-core .n-sub { font-size: 10.5px; }

/* ---------- Logo ---------- */
.brand-logo { height: 44px; width: auto; display: block; }
.site-footer .brand-logo { height: 48px; }

/* ---------- Photo hero (home) ---------- */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: center; overflow: hidden; background: var(--ink); color: #fff; isolation: isolate; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 35%; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(20,27,40,.92) 0%, rgba(20,27,40,.78) 38%, rgba(20,27,40,.38) 68%, rgba(20,27,40,.18) 100%),
              linear-gradient(0deg, rgba(20,27,40,.55) 0%, rgba(20,27,40,0) 35%); }
.hero-inner { width: 100%; padding-top: clamp(4rem, 9vw, 7rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 5.1rem); line-height: 1.02; letter-spacing: -0.02em; max-width: 13ch; text-wrap: balance; }
.hero-sub { font-family: var(--serif); font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.5; color: #E9E1D0; max-width: 34rem; margin: 1.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.45); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--sand); border-color: var(--sand); color: var(--ink); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.hero-settings { list-style: none; padding: 0; margin: 3rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; font: .95rem var(--sans); color: #D8D0BF; }
.hero-settings li { padding-left: .9rem; position: relative; }
.hero-settings li::before { content: ""; position: absolute; left: 0; top: .55em; width: 5px; height: 5px; border-radius: 50%; background: #C9A45C; }
@media (max-width: 700px) {
  .hero { min-height: 640px; align-items: flex-end; }
  .hero-img { object-position: 72% 30%; }
  .hero::before { background: linear-gradient(0deg, rgba(20,27,40,.95) 0%, rgba(20,27,40,.82) 55%, rgba(20,27,40,.35) 100%); }
}
.flow-intro { padding-top: clamp(3rem, 5vw, 4.5rem); }

/* ---------- Evidence drop-down + page ---------- */
.drop-panel.drop-single { width: 22rem; grid-template-columns: 1fr; }
.drop-panel.drop-evidence { width: 46rem; grid-template-columns: 1.15fr 1fr; left: auto; right: -9rem; transform: none; }
@media (max-width: 960px) { .drop-panel.drop-single, .drop-panel.drop-evidence { width: auto; right: auto; } }
.ev-jump { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; font-family: var(--sans); }
.ev-jump a { display: inline-flex; align-items: center; gap: .6rem; padding: .55rem .9rem; border: 1px solid var(--ink); border-radius: 3px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: .95rem; }
.ev-jump a:hover { background: var(--ink); color: var(--paper); }
.ev-jump b { font-family: var(--serif); font-weight: 400; font-size: 1.1rem; }
.ev-list { list-style: none; padding: 0; margin: 2rem 0 0; border-top: 1px solid var(--ink); }
.ev-item { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 2rem; padding: 2rem 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 6rem; }
.ev-meta { font-family: var(--sans); font-size: .9rem; color: var(--ink-2); display: flex; flex-direction: column; gap: .35rem; }
.ev-meta b { font-family: var(--serif); font-weight: 400; font-size: 1.8rem; color: var(--ink); line-height: 1.1; }
.ev-tag { align-self: flex-start; font-weight: 700; font-size: .8rem; padding: .2rem .55rem; border: 1px solid var(--ink-2); border-radius: 2px; color: var(--ink); }
.ev-tag.ev-peer { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ev-body h3 { font-size: 1.35rem; line-height: 1.3; max-width: 46rem; }
.ev-who { font-family: var(--sans); font-size: .9rem; color: var(--ink-2); margin: .5rem 0 1rem; }
.ev-facts { margin: 0 0 1rem; display: grid; gap: .4rem; max-width: 46rem; }
.ev-facts div { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 1rem; }
.ev-facts dt { font-family: var(--sans); font-weight: 700; font-size: .9rem; }
.ev-facts dd { margin: 0; color: var(--ink-2); }
.ev-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-family: var(--sans); font-weight: 700; font-size: .95rem; margin: 0; }
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); margin-top: 2rem; }
.case { padding: 1.75rem 2rem 2rem 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 6rem; }
.case:nth-child(2n) { padding-left: 2rem; padding-right: 0; border-left: 1px solid var(--rule); }
.case-where { font-family: var(--sans); font-size: .85rem; color: var(--ink-3); margin: 0 0 .5rem; }
.case h3 { font-size: 1.4rem; font-weight: 400; margin-bottom: .6rem; }
.case p { color: var(--ink-2); }
.case blockquote { margin: 0 0 1rem; padding-left: 1rem; border-left: 2px solid var(--ink); font-style: italic; }
.case cite { display: block; font: normal .85rem var(--sans); color: var(--ink-2); margin-top: .35rem; }
.case > a { font-family: var(--sans); font-weight: 700; font-size: .95rem; }
.ruled h3 a { color: var(--ink); }
@media (max-width: 760px) { .ev-item { grid-template-columns: 1fr; gap: .75rem; } .cases { grid-template-columns: 1fr; } .case:nth-child(2n) { padding-left: 0; border-left: 0; } }

/* ---------- Compare ---------- */
.drop-panel.drop-compare { width: 24rem; grid-template-columns: 1fr; left: auto; right: -4rem; transform: none; }
@media (max-width: 960px) { .drop-panel.drop-compare { width: auto; right: auto; } }
.pillars-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .pillars-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pillars-4 > div:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 640px) { .pillars-4 { grid-template-columns: 1fr; } }
table.cmp { min-width: 760px; }
table.cmp th[scope="row"] { font-weight: 700; width: 20%; }
table.cmp td.us, table.cmp th.us { background: var(--ink); color: var(--paper); border-bottom-color: #3A4762; padding-left: .9rem; padding-right: .9rem; }
table.cmp td.us b { color: #E6CC93; }
table.cmp td, table.cmp th { padding-right: 1rem; }
table.cmp td.us sup.fn a { color: #E3A79C; }

/* Drop-down hover bridge: invisible strip covering the gap between button and panel */
.drop-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -0.6rem; height: 0.6rem; }
@media (min-width: 961px) { .nav-drop.open > button { background: var(--dune); } }

/* ---------- Slate band (#7F95AE): home "Efficient and effective" ---------- */
.section.slate, main > section.section:has(.photo-band) { background: #7F95AE; border-bottom-color: #6A7F98; }
.section.slate h2, .section.slate dt, .section.slate .lede, .section.slate .muted, .section.slate dd, .section.slate figcaption,
main > section.section:has(.photo-band) h2, main > section.section:has(.photo-band) dt, main > section.section:has(.photo-band) .lede,
main > section.section:has(.photo-band) .muted, main > section.section:has(.photo-band) dd, main > section.section:has(.photo-band) figcaption { color: #141B27; }
.section.slate .pillars, main > section.section:has(.photo-band) .pillars { border-top-color: #141B27; }
.section.slate .pillars > div + div, main > section.section:has(.photo-band) .pillars > div + div { border-left-color: rgba(20,27,39,.35); }
.section.slate .photo img, main > section.section:has(.photo-band) .photo img { border-color: #141B27; }

/* ---------- WoundEye sub-bar "Learn more" drop-down ---------- */
.subnav { align-items: center; }
.sub-drop { position: relative; margin-left: auto; }
.sub-drop > button { font: 700 .92rem var(--sans); color: var(--ink); background: transparent; border: 1px solid var(--ink); border-radius: 3px; padding: .4rem .75rem; cursor: pointer; display: inline-flex; align-items: center; gap: .35rem; }
.sub-drop > button:hover, .sub-drop.open > button { background: var(--ink); color: var(--paper); }
.drop-panel.drop-docs { width: 26rem; grid-template-columns: 1fr; left: auto; right: 0; transform: none; z-index: 40; }
.drop-panel.drop-docs a strong { font-family: var(--serif); font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
@media (max-width: 960px) {
  .sub-drop { margin-left: 0; width: 100%; }
  .sub-drop .drop-panel.drop-docs { position: absolute; left: 0; right: auto; width: min(26rem, 92vw); background: var(--paper); border: 1px solid var(--rule); box-shadow: 0 18px 40px -24px rgba(27,36,51,.45); }
  .sub-drop.open .drop-panel { display: grid; }
}
.wrap.subnav { padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- Brochure downloads ---------- */
.doc-links { background: var(--paper); border: 1px solid var(--rule); padding: 1.25rem 1.4rem; display: grid; gap: .6rem; align-self: start; }
.doc-head { font-family: var(--serif); font-style: italic; color: var(--ink-2); margin: 0 0 .2rem; }
.doc-links a { display: grid; grid-template-columns: auto minmax(0,1fr); gap: .9rem; align-items: start; text-decoration: none; color: var(--ink); padding: .8rem; margin: 0 -.8rem; border-radius: 3px; border-top: 1px solid var(--dune); }
.doc-links a:hover { background: var(--dune); }
.doc-links b { display: block; font-family: var(--serif); font-size: 1.1rem; line-height: 1.3; }
.doc-links small { display: block; font-family: var(--sans); font-size: .85rem; color: var(--ink-2); margin-top: .25rem; }
.doc-ico { font: 700 .72rem var(--sans); color: var(--paper); background: var(--red); padding: .55rem .45rem; border-radius: 2px; letter-spacing: .04em; margin-top: .15rem; }
.doc-inline { font-family: var(--sans); font-size: .92rem; color: var(--ink-2); margin-top: 1.25rem; }
.doc-inline a { font-weight: 700; }
.reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); margin-top: 2rem; }
.reasons > div { padding: 1.5rem 2rem 1.75rem 0; border-bottom: 1px solid var(--rule); }
.reasons > div:nth-child(2n) { padding-left: 2rem; padding-right: 0; border-left: 1px solid var(--rule); }
.reasons h3 { font-size: 1.35rem; font-weight: 400; margin-bottom: .5rem; }
.reasons p { color: var(--ink-2); margin: 0; }
@media (max-width: 760px) { .reasons { grid-template-columns: 1fr; } .reasons > div:nth-child(2n) { padding-left: 0; border-left: 0; } }

/* Flow: result returned to patient and carer */
.flow .edge.result { stroke: #3F6B66; stroke-width: 1.5; }
.flow .edge-flow.result { stroke: #7FC4B8; opacity: .85; stroke-dasharray: 4 8; animation-direction: normal; }
.flow .pt-result { fill: #7FC4B8; stroke: #1B2433; stroke-width: 1.2; }
.flow .result-label { font: italic 13px var(--serif); fill: #9FCFC6; }
.flow-legend .l-result { background: #7FC4B8; }
.flow-counts .res b { color: #9FCFC6; }

/* ---------- Home hero: stays pinned and fades as the next section slides over it ---------- */
@media (prefers-reduced-motion: no-preference) {
  main > .hero { position: sticky; top: var(--hero-top, 4.5rem); z-index: 0; will-change: opacity; }
  main > .hero ~ section { position: relative; z-index: 1; }
  :where(main > .hero ~ .section) { background-color: var(--sand); }
  main > .hero + section { box-shadow: 0 -24px 48px -28px rgba(27,36,51,.45); }
}

/* ---------- Home: the flow visual snaps into place under the menu ---------- */
.flow-intro .flow { scroll-margin-top: calc(4.5rem + 1rem); }
/* Home: every section after the flow also snaps under the menu */
main > .hero ~ section:not(.flow-intro) { scroll-margin-top: calc(4.5rem + 1px); }
.flow-we .flow-counts { grid-template-columns: repeat(2, minmax(0,1fr)); }
.flow-wr .flow-counts { grid-template-columns: repeat(2, minmax(0,1fr)); }
.flow-title { font-size: 1.5rem; font-weight: 400; margin-bottom: 1rem; }
.flow-intro-text { color: var(--ink-2); max-width: 46rem; margin: -.4rem 0 1.1rem; }
.flow-title.mt-3 { margin-top: 3.5rem; }
.ceo-feature { margin: 0 0 2.5rem; }
.ceo-feature img { aspect-ratio: 21/9; object-position: 50% 0; }
@media (max-width: 760px) { .ceo-feature img { aspect-ratio: 4/3; } }
.headshot.in-color { filter: none; }
.product-logo { margin: 0 0 1rem; line-height: 0; }
.product-logo img { height: 5.75rem; width: auto; max-width: 100%; display: block; }
@media (max-width: 760px) { .product-logo img { height: 3.25rem; } }
.flow .out-group { fill: rgba(201,164,92,.04); stroke: rgba(201,164,92,.35); stroke-width: 1; stroke-dasharray: 4 5; cursor: pointer; transition: fill .2s, stroke .2s; }
.flow .out-group:hover, .flow .out-group.active { fill: rgba(201,164,92,.10); stroke: #C9A45C; }
.flow .out-group:focus-visible { outline: none; stroke: #F7F2E8; stroke-width: 2; }
.flow .loop-label.is-link { cursor: pointer; text-decoration: underline; text-decoration-color: rgba(224,138,116,.5); text-underline-offset: 3px; }
.flow .loop-label.is-link:hover, .flow .loop-label.active { fill: #F2B3A2; }
.flow .loop-label:focus-visible { outline: none; fill: #F7F2E8; }
.flow-clock { display: flex; align-items: center; gap: .85rem; margin-bottom: 1rem; }
.flow-clock .clock-face { width: 64px; height: 64px; flex: none; }
.flow-clock .cf-rim { fill: #F7F2E8; stroke: #C9A45C; stroke-width: 2.5; }
.flow-clock .cf-tick { stroke: #8A8475; stroke-width: 1; }
.flow-clock .cf-tick.big { stroke: #1B2433; stroke-width: 2.2; }
.flow-clock .cf-hour { stroke: #1B2433; stroke-width: 5; stroke-linecap: round; }
.flow-clock .cf-min { stroke: #A8823E; stroke-width: 2.6; stroke-linecap: round; }
.flow-clock .cf-pin { fill: #1B2433; }
.flow-clock .clock-text { display: flex; flex-direction: column; line-height: 1.25; }
.flow-clock .clock-day { font-size: .8rem; color: #A9A293; }
.flow-clock .clock-time { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; color: #F7F2E8; font-variant-numeric: tabular-nums; }
.flow-clock .clock-note { font-size: .75rem; color: #A9A293; }
.flow .node-late .shape { fill: rgba(224,138,116,.07); stroke: #B9705F; stroke-dasharray: 5 4; }
.flow .node-late .n-label { fill: #F2C9BC; font-size: 17px; }
.flow .node-late .n-sub { fill: #C7A49A; }
.flow .lane-label { font: italic 600 15px var(--serif); transition: opacity .3s; }
.flow .lane-label.lane-late { fill: #F2A28C; }
.flow .lane-label.lane-early { fill: #8FD3C6; }
.flow .lane-label.dim { opacity: .2; }
.flow .is-v .lane-label { font-size: 13px; }
.flow .pt-wait { fill: #6E5A4F; stroke: #E08A74; stroke-width: 1.4; }
.flow-legend .l-wait { background: #6E5A4F; box-shadow: 0 0 0 1.5px #E08A74; }
.flow-ma .flow-counts { grid-template-columns: repeat(2, minmax(0,1fr)); }
.ma-plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.5rem 2rem; border-top: 1px solid var(--ink); padding-top: 1.25rem; }
.ma-plan-grid h3 { font-size: 1.15rem; margin: 0 0 .4rem; }
.ma-plan-grid p { margin: 0; color: var(--ink-2); }
@media (max-width: 760px) { .ma-plan-grid { grid-template-columns: 1fr; } }
