:root {
  --bright: #88f4bf;
}
.inner-pages :is(.hero, .sub-hero) h1 em {
  color: var(--green);
  background: var(--site-heading-gradient);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-inner .hero-art .art-row {
  align-items: flex-start;
}
.hero-inner .hero-art .art-row small {
  white-space: normal;
  line-height: 1.45;
}

/* Shared inner-page layout, aligned to the homepage palette and type scale. */
.inner-pages {
  --inner-gutter: var(--site-gutter);
  --inner-width: calc(var(--site-content) + var(--site-gutter) * 2);
  --inner-muted: var(--site-secondary);
  --inner-surface: var(--panel);
  --inner-border: var(--line);
  --inner-ease: cubic-bezier(.22, 1, .36, 1);
  font-size: 16px;
  line-height: 1.65;
}

.inner-pages .wrap {
  max-width: var(--inner-width);
  padding-inline: var(--inner-gutter);
}

.inner-pages .site-header {
  position: sticky;
  top: 0;
  border-bottom: 1px solid var(--inner-border);
  background: var(--site-header);
  backdrop-filter: blur(18px);
}

.inner-pages .site-header .brand-logo {
  width: clamp(126px, 15vw, 200px);
}

.inner-breadcrumb {
  padding-top: 22px;
}

.inner-pages .hero:not(.demo-hero) {
  padding-block: clamp(32px, 4vw, 54px) clamp(44px, 5vw, 66px);
}

.inner-pages .hero:not(.demo-hero) > .wrap {
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
}

.inner-pages .hero:not(.demo-hero) h1,
.inner-pages .sub-hero h1 {
  font-size: clamp(2rem, 3.7vw, 3.125rem);
  line-height: 1.13;
  letter-spacing: -.04em;
  font-weight: 600;
  overflow-wrap: normal;
}

.inner-pages .hero:not(.demo-hero) .sub {
  max-width: 58ch;
  color: var(--inner-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-top: 20px;
}

.inner-pages .hero-inner .btn-row {
  flex-wrap: wrap;
}

.inner-pages .band-pad:not(.closer) {
  padding-block: clamp(42px, 5vw, 70px);
}

.inner-pages .band:not(.closer) {
  border-top: 1px solid #9bcbb416;
}

.inner-pages .band h2,
.inner-pages .sub-section h2 {
  font-size: clamp(1.65rem, 2.8vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -.045em;
}

.inner-pages .band > .wrap > p,
.inner-pages .band :is(.pair, .col, .row, .stage, .closer) > p,
.inner-pages .sub-section > p {
  color: var(--inner-muted);
  font-size: .95rem;
  line-height: 1.72;
}

.inner-pages .band .standfirst {
  font-size: .71rem;
  letter-spacing: .12em;
}

.inner-pages .band .row h3,
.inner-pages .band .col h3,
.inner-pages .sub-card h3 {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.35;
}

.inner-pages .sub-hero,
.inner-pages .sub-section {
  width: min(calc(100% - var(--inner-gutter) * 2), calc(var(--inner-width) - var(--inner-gutter) * 2));
}

.inner-pages .sub-hero {
  padding-block: clamp(42px, 5.5vw, 76px) clamp(38px, 5vw, 70px);
}

.inner-pages .sub-hero > p,
.inner-pages .sub-section > p {
  max-width: 68ch;
}

.inner-pages :is(.hero-art, .hero .dark, .hero .doc, .email-card, .sub-card) {
  border-color: var(--inner-border);
  border-radius: 16px;
}

.inner-pages :is(.hero-art, .hero .dark, .hero .doc, .email-card) {
  background: var(--site-workspace-gradient);
}

.inner-pages .hero-art {
  padding: clamp(18px, 3vw, 32px);
  min-width: 0;
}

.inner-pages .art-top {
  color: #a5c6b5;
  gap: 12px;
  padding-bottom: 15px;
  font-size: .64rem;
}

.inner-pages .art-row small {
  color: var(--inner-muted);
}

.inner-pages .art-row b {
  font-size: .92rem;
}

.inner-pages .art-bottom {
  color: #a0b8ac;
  font-size: .72rem;
}

.inner-pages .btn {
  min-height: 44px;
  gap: 14px;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 700;
  transition: background .22s ease, border-color .22s ease, color .22s ease, box-shadow .25s ease, transform .25s var(--inner-ease);
}

.inner-pages .btn-line {
  border-color: #395448;
  color: #e3f0e9;
}

.inner-pages :is(.btn-solid, .btn.primary) {
  color: #0b261a;
}

.inner-pages .closer {
  width: min(calc(100% - var(--inner-gutter) * 2), calc(var(--inner-width) - var(--inner-gutter) * 2));
  max-width: none;
  margin: clamp(24px, 4vw, 56px) auto 0;
  padding: clamp(38px, 6vw, 84px) clamp(18px, 4vw, 50px);
  border-color: var(--line);
  border-radius: 18px;
  background: var(--site-cta-glow), var(--bg);
}

.inner-pages .closer .sub {
  max-width: 58ch !important;
}

.inner-pages .footer-expanded {
  gap: clamp(20px, 4vw, 58px);
}

.inner-pages :is(a, button, summary):focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

.inner-pages :is(.dept, .trade-card, .designed-card, .sub-card, .tier, .comparison-card, .industry-cards a, .faq-item) {
  transition: background .22s ease, border-color .22s ease, box-shadow .24s ease, transform .25s var(--inner-ease);
}

.inner-pages :is(.dept, .trade-card, .designed-card, .sub-card, .industry-cards a):focus-within {
  border-color: #63a483;
}

@media (hover: hover) and (pointer: fine) {
  .inner-pages .btn:not(:disabled):hover {
    transform: translateY(-2px);
  }
  .inner-pages .btn-line:hover,
  .inner-pages .site-header .btn.primary:hover {
    color: #e9fff3;
    background: #1e392c !important;
    border-color: #6ba78a;
  }
  .inner-pages :is(.dept, .trade-card, .designed-card, .tier, .comparison-card, .industry-cards a):hover {
    transform: translateY(-3px);
    border-color: #6ca88c;
    box-shadow: 0 12px 32px #0003;
  }
  .inner-pages .faq-item summary:hover,
  .inner-pages .site-directory a:hover {
    color: var(--green);
  }
}

@media (hover: none) {
  .inner-pages :is(.btn, .dept, .trade-card, .designed-card):hover {
    transform: none;
  }
}

.industry-cards,
.site-directory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .7rem;
}

.industry-cards a {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: .75rem;
  border: 1px solid var(--inner-border);
  border-radius: 12px;
  padding: 1rem;
  background: var(--inner-surface);
}

.industry-cards b,
.industry-cards small {
  display: block;
}

.industry-cards b {
  font-size: .95rem;
}

.industry-cards small {
  margin-top: .65rem;
  color: var(--inner-muted);
  font-size: .83rem;
  line-height: 1.45;
}

.page-industries .directory-group > h3 {
  margin: 0 0 22px;
}

.page-industries .band > .wrap > h2 + p {
  margin-top: 16px;
}

.industry-cards .al-icon {
  flex: none;
  color: var(--green);
  width: 16px;
}

.site-directory {
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-directory h2 {
  font-size: 1.3rem !important;
  margin-bottom: .7rem;
}

.site-directory ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-directory li + li {
  border-top: 1px solid #91b9a51d;
}

.site-directory a {
  display: block;
  color: #c1d5c9;
  padding-block: .6rem;
  line-height: 1.45;
}

.department-flow {
  padding-block: clamp(20px, 4vw, 46px);
}

.department-flow-panel {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 1rem 2.5rem;
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid color-mix(in srgb, var(--workflow-accent) 28%, var(--inner-border));
  border-radius: 14px;
  background: radial-gradient(ellipse at 85% 0%, color-mix(in srgb, var(--workflow-accent) 11%, transparent), transparent 62%), var(--inner-surface);
}

.department-flow-panel p {
  margin: 0;
}

.department-flow-panel .standfirst {
  color: var(--workflow-accent) !important;
}

.flow-graphic {
  --graphic-accent: var(--workflow-accent, var(--green));
  width: min(100%, 420px);
  margin-inline: auto;
  color: var(--graphic-accent);
}

.hero-art .flow-graphic {
  margin-block: .9rem .3rem;
}

.flow-graphic > svg {
  display: block;
  width: 100%;
  overflow: visible;
}

.flow-rail,
.flow-signal {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
}

.flow-rail { opacity: .28; }

.flow-signal {
  stroke-dasharray: 12 88;
  stroke-dashoffset: 12;
  opacity: 0;
}

.flow-graphic.motion-visible .flow-signal {
  animation: inner-flow 4.8s linear infinite;
}

.flow-graphic rect {
  fill: #11241c;
  stroke: currentColor;
  stroke-opacity: .7;
}

.flow-graphic use {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flow-node-halo {
  fill: currentColor;
  opacity: .08;
}

.flow-graphic ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  color: #c4d7cc;
  font: 500 clamp(.64rem, 1vw, .75rem)/1.4 'IBM Plex Mono', monospace;
  text-align: center;
}

.industry-art .art-icon {
  color: var(--workflow-accent);
  border-color: color-mix(in srgb, var(--workflow-accent) 35%, transparent);
}

@keyframes inner-flow {
  0% { opacity: 0; stroke-dashoffset: 12; }
  13% { opacity: .95; }
  60% { opacity: .95; }
  76%, 100% { opacity: 0; stroke-dashoffset: -100; }
}

@media (max-width: 900px) {
  .industry-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .inner-pages .hero:not(.demo-hero) > .wrap,
  .department-flow-panel {
    grid-template-columns: minmax(0, 1fr);
  }
  .inner-pages .hero :is(.hero-art, .dark, .doc, .email-card) {
    width: 100%;
    max-width: none;
  }
  .department-flow-panel .flow-graphic { margin-inline: 0; }
}

@media (max-width: 510px) {
  .industry-cards,
  .site-directory {
    grid-template-columns: minmax(0, 1fr);
  }
  .inner-pages .btn { padding-inline: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .inner-pages .flow-graphic .flow-signal { animation: none; }
  .inner-pages :is(.btn, .dept, .trade-card, .designed-card, .sub-card, .tier, .comparison-card, .industry-cards a, .faq-item) { transition: none; }
  .inner-pages :is(.btn, .dept, .trade-card, .designed-card, .tier, .comparison-card, .industry-cards a):hover { transform: none; }
}

.inner-pages .art-row small {
  font-size: .83rem;
  line-height: 1.5;
}

.inner-pages .breadcrumb {
  color: var(--inner-muted);
  line-height: 1.5;
}

.inner-pages .breadcrumb a {
  color: #b5ccbf;
}

.inner-pages .breadcrumb a:hover {
  color: var(--green);
}

.inner-pages :is(.hero-art, .hero .dark, .hero .doc, .email-card) {
  max-width: 100%;
  min-width: 0;
}

.inner-pages .hero .term-body {
  font-size: clamp(.7rem, .9vw, .8rem);
  line-height: 1.7;
}

.inner-pages .hero .dk-head {
  font-size: .65rem;
}

.inner-pages .dk-stats span {
  font-size: .73rem;
  color: var(--inner-muted);
}

.inner-pages .example-note {
  font-size: .68rem;
  line-height: 1.5;
  color: #94ac9e;
}

.inner-pages .hero .doc-row,
.inner-pages .hero .doc-note {
  font-size: .83rem;
  line-height: 1.5;
}

.inner-pages .navlinks a[aria-current="true"] {
  color: var(--green);
}

.inner-pages .navlinks a[aria-current="true"]::after {
  transform: scaleX(1);
}

.inner-pages .nav-more:has([aria-current="page"]) > summary {
  color: var(--green);
}

.inner-pages .nav {
  height: 88px;
}

@media (max-width: 950px) {
  .inner-pages .nav { height: 76px; }
}

.motion-paused .flow-graphic .flow-signal {
  animation: none;
  opacity: .3;
  stroke-dasharray: none;
}

.inner-pages.motion-ready [data-reveal] {
  transition-duration: .4s;
  transition-delay: min(var(--reveal-delay, 0ms), 120ms);
}
