/* Self-hosted Google Fonts (latin subset): Montserrat, Source Sans 3, IBM Plex Mono. SIL Open Font License 1.1 */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/ibm-plex-mono.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/montserrat.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/montserrat.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(assets/fonts/montserrat.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/source-sans-3.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/source-sans-3.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Sampled from the Pharmacon logo */
  --navy: #03265b;
  --navy-deep: #021a40;
  --teal: #00778c; /* logo teal #00859d, darkened for text contrast (WCAG AA) */
  --teal-light: #3fc9d6;
  --teal-tint: #e3f3f6;
  --ice: #f3f6f9;
  --white: #ffffff;
  --line: #dde4ec;
  --text: #1c2838;
  --muted: #5a6472;

  --display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(3, 38, 91, 0.06), 0 8px 24px rgba(3, 38, 91, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.15; color: var(--navy); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 3px; }

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

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 8px 14px; font-weight: 600;
}
.skip:focus { top: 12px; }

/* Eyebrows echo the logo's wide-tracked tagline */
.eyebrow {
  font: 600 0.78rem/1.4 var(--display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
}

/* Utility bar */
.utility-bar { background: var(--navy); color: rgba(255,255,255,0.85); font-size: 0.88rem; }
.utility-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.utility-inner a { color: #fff; text-decoration: none; font-weight: 600; white-space: nowrap; padding: 6px 0; }
.utility-inner a:hover { color: var(--teal-light); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { text-decoration: none; font: 600 0.92rem/1 var(--display); color: var(--navy); padding: 10px 0; }
.nav a:hover { color: var(--teal); }
.nav a.nav-cta { color: #fff; background: var(--teal); padding: 12px 18px; border-radius: 6px; }
.nav a.nav-cta:hover { background: var(--navy); color: #fff; }
.nav-toggle { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 24px; border-radius: 6px; border: 2px solid transparent;
  font: 700 0.95rem/1 var(--display); letter-spacing: 0.01em; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--navy); }
.btn:active { transform: translateY(1px); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--teal-tint); }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 0.9rem/1 var(--display); color: var(--teal); text-decoration: none;
  padding: 8px 0; align-self: flex-start;
}
.text-link::after { content: "→"; transition: transform .15s; }
.text-link:hover::after { transform: translateX(4px); }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--ice) 0%, var(--white) 100%);
  padding: clamp(48px, 7vw, 88px) 0 clamp(120px, 14vw, 170px);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.pillars { display: flex; flex-wrap: wrap; gap: 6px 0; margin-bottom: 22px; font: 600 0.78rem/1 var(--display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--navy); }
.pillars span + span::before { content: "|"; margin: 0 14px; color: var(--muted); font-weight: 400; }
.pillars .pillar-accent { color: var(--teal); }
.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}
.lede { margin-top: 22px; max-width: 54ch; font-size: clamp(1.08rem, 1.4vw, 1.2rem); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Hero illustration: a qualification summary that ticks through each stage */
.qual { position: relative; margin: 0; }
.qual-card {
  position: relative; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--teal);
  border-radius: var(--radius); box-shadow: 0 2px 4px rgba(3,38,91,.05), 0 24px 48px rgba(3,38,91,.12);
  padding: 24px 26px 26px; overflow: hidden;
}
.qual-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.qual-head img { width: 36px; height: 36px; }
.qual-title { font: 700 1.02rem/1.2 var(--display); color: var(--navy); }
.qual-steps { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: none; }
.qual-steps li { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.qual-steps li:last-child { border-bottom: 0; }
.tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #c8d3de; position: relative; transition: background-color .3s, border-color .3s; }
.tick::after {
  content: ""; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat;
  transform: scale(0); transition: transform .3s cubic-bezier(.3,1.6,.5,1);
}
.step { font: 600 0.92rem/1.3 var(--display); color: #687381; transition: color .3s; }
.state { font: 500 0.7rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); background: var(--teal-tint); padding: 5px 8px; border-radius: 4px; opacity: 0; transform: translateX(6px); transition: opacity .3s, transform .3s; }
html:not(.js) .qual-steps .tick, .qual-steps li.done .tick { background: var(--teal); border-color: var(--teal); }
html:not(.js) .qual-steps .tick::after, .qual-steps li.done .tick::after { transform: scale(1); }
html:not(.js) .qual-steps .step, .qual-steps li.done .step { color: var(--navy); }
html:not(.js) .qual-steps .state, .qual-steps li.done .state { opacity: 1; transform: none; }
html:not(.js) .qual-progress span { width: 100%; }
html:not(.js) .stamp { opacity: 1; transform: rotate(-9deg) scale(1); }
.qual-progress { height: 6px; background: var(--ice); border-radius: 3px; margin-top: 14px; overflow: hidden; }
.qual-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--navy), var(--teal)); border-radius: 3px; transition: width .45s ease; }
.stamp {
  position: absolute; right: 22px; bottom: 44px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 16px; border: 3px solid var(--teal); border-radius: 8px; color: var(--teal);
  background: rgba(255,255,255,.92);
  transform: rotate(-9deg) scale(1.8); opacity: 0; pointer-events: none;
  transition: transform .35s cubic-bezier(.2,1.4,.4,1), opacity .2s;
}
.stamp span { font: 800 1.35rem/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase; }
.stamp small { font: 600 0.62rem/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase; }
.qual.stamped .stamp { opacity: 1; transform: rotate(-9deg) scale(1); }

/* Pillar cards overlap the hero edge */
.pillar-cards { margin-top: clamp(-110px, -10vw, -80px); position: relative; }
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar-card {
  background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--navy);
  border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 12px;
}
.pillar-card-accent { border-top-color: var(--teal); }
.pillar-card h2 { font-size: 1.22rem; font-weight: 700; }
.pillar-card p:not(.eyebrow) { color: var(--muted); flex: 1; }

/* Sections */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-tint { background: var(--ice); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); font-weight: 800; letter-spacing: -0.015em; text-wrap: balance; }
.section-head > p:not(.eyebrow) { margin-top: 18px; color: var(--muted); max-width: 62ch; }
.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.about-grid .section-head { margin-bottom: 0; }
.why-list { display: grid; gap: 24px; }
.why-list li { padding-left: 44px; position: relative; }
.why-list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--teal-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300859d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.why-list h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 4px; }
.why-list p { color: var(--muted); }

/* Service cards */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; display: flex; flex-direction: column; gap: 14px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.service-card:hover { border-color: #b8d9e1; box-shadow: var(--shadow); transform: translateY(-2px); }
.card-tag { font: 600 0.7rem/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); }
.service-card h3 { font-size: 1.2rem; font-weight: 700; }
.checks { display: grid; gap: 8px; flex: 1; align-content: start; }
.checks li { position: relative; padding-left: 26px; color: var(--muted); font-size: 0.98rem; line-height: 1.5; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300859d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.service-card .text-link { margin-top: 6px; }

/* Cycle development */
.section-navy { background: var(--navy); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy .eyebrow { color: var(--teal-light); }
.section-navy .section-head > p:not(.eyebrow) { color: rgba(255,255,255,0.75); }
.cycle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cycle-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius);
  padding: 26px 22px;
}
.cycle-card { border-top: 3px solid var(--teal-light); display: flex; align-items: center; min-height: 96px; }
.cycle-card h3 { font-size: 1.15rem; font-weight: 700; }

/* V-model */
.approach-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.approach-grid .section-head { margin-bottom: 0; }
.vmodel { margin: 0; }
.vmodel svg { width: 100%; }
.v-arm { fill: none; stroke: var(--teal-tint); stroke-width: 22; stroke-linejoin: round; stroke-linecap: round; }
.v-trace line { stroke: var(--teal); stroke-width: 1.5; stroke-dasharray: 5 5; }
.v-node rect { fill: var(--white); stroke: var(--navy); stroke-width: 1.5; }
.v-node rect.v-verify { fill: var(--teal-tint); stroke: var(--teal); }
.v-node rect.v-base { fill: var(--navy); }
.v-node text { font: 700 15px var(--display); fill: var(--navy); text-anchor: middle; }
.v-node rect.v-base + text { fill: #fff; font-size: 13px; }
.v-cap { font: 600 12px var(--display); letter-spacing: 0.16em; text-transform: uppercase; fill: var(--teal); }
.vmodel figcaption { margin-top: 12px; font-size: 0.9rem; color: var(--muted); }

/* Industries */
.industry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.industry-grid li {
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--teal);
  border-radius: 8px; padding: 22px 20px;
  font: 600 1rem/1.35 var(--display); color: var(--navy);
}
.standards { margin-top: clamp(40px, 5vw, 56px); padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.standards ul { display: flex; flex-wrap: wrap; gap: 10px; }
.standards li { font: 500 0.85rem/1 var(--mono); color: var(--navy); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; }

/* CTA band */
.cta-band { background: linear-gradient(110deg, var(--navy) 0%, var(--navy) 45%, var(--teal) 100%); color: #fff; padding: clamp(48px, 6vw, 72px) 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 800; max-width: 26ch; }
.cta-band p { margin-top: 10px; color: rgba(255,255,255,0.82); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-details { margin: 28px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; }
.contact-details dt { font: 600 0.75rem/1.9 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.contact-details dd { margin: 0; font-weight: 600; color: var(--navy); }
.contact-details a { color: var(--teal); }
.contact-details .abn { font-weight: 400; color: var(--muted); font-size: 0.95rem; }
.contact-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  background: var(--white); padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: var(--radius); box-shadow: var(--shadow);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-wide, .form-error, .contact-form .btn { grid-column: 1 / -1; }
.field label { font: 600 0.82rem/1.4 var(--display); color: var(--navy); }
.field input, .field select, .field textarea {
  font: 400 1rem/1.4 var(--body); color: var(--text);
  padding: 12px; border: 1px solid #c3ceda; border-radius: 6px; background: var(--ice); width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--teal); outline-offset: 0; border-color: var(--teal); background: #fff; }
.form-error { color: #a1321c; font-weight: 600; }
.contact-form .btn { justify-self: start; }

/* Footer */
.site-footer { background: var(--ice); border-top: 1px solid var(--line); padding-top: clamp(48px, 6vw, 72px); font-size: 0.96rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 0.8fr 0.9fr; gap: 36px; padding-bottom: 40px; }
.footer-brand img { width: 220px; }
.site-footer h2 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--navy); margin-bottom: 16px; }
.site-footer li { margin-bottom: 10px; color: var(--muted); }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--teal); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; }

/* Responsive */
@media (max-width: 1080px) {
  .cycle-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .hero-inner, .about-grid, .approach-grid, .contact-grid { grid-template-columns: 1fr; }
  .qual { max-width: 520px; width: 100%; margin: 0 auto; }
  .pillar-grid { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle {
    display: block; background: none; border: 2px solid var(--navy); color: var(--navy);
    font: 700 0.8rem/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; padding: 10px 14px; border-radius: 6px; cursor: pointer;
  }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 8px var(--gutter) 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav a.nav-cta { margin-top: 14px; text-align: center; border-bottom: 0; }
  .utility-inner p { display: none; }
  .utility-inner { justify-content: flex-end; }
}
@media (max-width: 640px) {
  .brand img { height: 30px; }
  .qual-card { padding: 20px 18px; }
  .stamp { right: 12px; bottom: 36px; padding: 7px 11px; }
  .stamp span { font-size: 1rem; }
  .stamp small { font-size: 0.5rem; }
  .pillars { font-size: 0.66rem; letter-spacing: 0.1em; flex-wrap: nowrap; }
  .pillars span + span::before { margin: 0 7px; }
  .service-grid, .cycle-grid, .industry-grid, .footer-grid, .contact-form { grid-template-columns: 1fr; }
  .vmodel { overflow-x: auto; }
  .vmodel svg { min-width: 540px; max-width: none; }
  .cta-inner .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
.notfound-title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -0.015em; margin-bottom: 18px; }

/* Service grid closing card */
.service-card-cta { grid-column: span 2; background: linear-gradient(120deg, var(--navy) 0%, var(--navy) 55%, var(--teal) 100%); border: 0; color: #fff; justify-content: center; }
.service-card-cta h3 { color: #fff; font-size: 1.35rem; }
.service-card-cta p { color: rgba(255,255,255,0.85); max-width: 52ch; }
.service-card-cta .btn { align-self: flex-start; margin-top: 4px; }
.service-card-cta:hover { border-color: transparent; }

/* Industries intro line */
#industries .section-head > p:not(.eyebrow) { margin-left: auto; margin-right: auto; }

/* Partners & memberships */
.partners { padding-top: clamp(56px, 7vw, 96px); }
.partner-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.partner-group { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.partner-group h3 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal); margin-bottom: 18px; }
.partner-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.partner-list > li { display: flex; }
.partner {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 190px; padding: 22px 16px; border-radius: 8px; text-align: center; text-decoration: none;
  border: 1px solid var(--line); transition: transform .15s, box-shadow .15s;
}
a.partner:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.partner img { height: 56px; width: auto; max-width: 100%; }
.partner-desc { font-size: 0.86rem; line-height: 1.35; }
.partner-link { font: 700 0.78rem/1 var(--display); letter-spacing: 0.02em; margin-top: 4px; white-space: nowrap; }
.partner-link::after { content: " ↗"; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* P Square brand: near-black with signal red */
.partner-psquare { background: #0a0c0e; border-color: #0a0c0e; color: #c9ced4; }
.partner-psquare img { height: 58px; }
.partner-psquare .partner-name { font: 600 0.95rem/1 var(--display); color: #f7f8f9; letter-spacing: 0.02em; }
.partner-psquare .partner-link { color: #ff5a67; }
/* Peritus brand: white with deep navy and teal gradient logo */
.partner-peritus { background: #fff; border-top: 4px solid #1e2453; color: #4b5563; }
.partner-peritus img { height: 44px; margin-bottom: 6px; }
.partner-peritus .partner-link { color: #1e2453; }
/* APS Group: no published brand, neutral treatment */
.partner-aps { background: var(--ice); }
.partner-wordmark { display: flex; flex-direction: column; align-items: center; font: 800 1.9rem/1 var(--display); letter-spacing: 0.06em; color: var(--navy); }
.partner-wordmark span { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.partner-group-member { border-top: 4px solid var(--teal); }
.member-name { font: 800 1.35rem/1.2 var(--display); color: var(--navy); }
.member-note { margin-top: 10px; color: var(--muted); }

@media (max-width: 1080px) {
  .service-card-cta { grid-column: span 2; }
}
@media (max-width: 920px) {
  .partner-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .service-card-cta { grid-column: auto; }
  .partner-list { grid-template-columns: 1fr; }
  .partner { min-height: 150px; }
}
