:root {
  --ink: #16112f;
  --plum: #261044;
  --plum-soft: #4a2379;
  --violet: #6d28d9;
  --violet-2: #7c3aed;
  --lavender: #eee7ff;
  --lavender-2: #f6f2ff;
  --paper: #fffdf9;
  --white: #ffffff;
  --warm: #f8f5f0;
  --muted: #645d78;
  --line: rgba(38, 16, 68, .13);
  --shadow: 0 24px 60px rgba(62, 34, 101, .14);
  --shadow-strong: 0 34px 90px rgba(49, 25, 85, .22);
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(circle at 5% 3%, rgba(124, 58, 237, .12), transparent 24rem),
    radial-gradient(circle at 92% 18%, rgba(238, 231, 255, .88), transparent 28rem),
    linear-gradient(180deg, #fffefd 0%, #fbf9f6 52%, #fff 100%);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(109, 40, 217, .45);
  outline-offset: 4px;
}

.skip-link,
.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;
}

.skip-link:focus {
  position: fixed;
  width: auto;
  height: auto;
  clip: auto;
  left: 18px;
  top: 16px;
  z-index: 300;
  padding: 11px 15px;
  border-radius: 999px;
  color: #fff;
  background: var(--plum);
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: "Bodoni Moda", "Didot", Georgia, serif;
  font-weight: 600;
  line-height: .98;
  letter-spacing: 0;
  text-wrap: balance;
}

em {
  color: var(--violet);
  font-style: italic;
  font-weight: 600;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--violet);
  font-family: "DM Mono", monospace;
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .22em;
  line-height: 1.3;
  text-transform: uppercase;
}

.construction-marquee {
  position: relative;
  z-index: 120;
  overflow: hidden;
  color: #fff;
  background: var(--plum);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.construction-marquee__track {
  width: max-content;
  display: flex;
  gap: 34px;
  padding: 8px 0;
  color: #fff;
  font-family: "DM Mono", monospace;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  animation: constructionMarquee 24s linear infinite;
}

.construction-marquee__track span {
  display: inline-flex;
  align-items: center;
  gap: 34px;
}

.construction-marquee__track span::after {
  content: "•";
  opacity: .64;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(38, 16, 68, .08);
  background: rgba(255, 253, 249, .82);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(var(--max), calc(100% - 64px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 244px;
  flex: 0 0 auto;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand span {
  display: grid;
  gap: 2px;
  color: var(--ink);
  line-height: 1;
}

.brand strong {
  color: #1b1434;
  font-family: "Bodoni Moda", "Didot", Georgia, serif;
  font-size: 2.05rem;
  font-style: italic;
  letter-spacing: 0;
}

.brand small {
  color: #1b1434;
  font-size: .52rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 2.35vw, 36px);
}

.nav-links a:not(.nav-cta) {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: #17102f;
  font-size: .92rem;
  font-weight: 700;
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
  transition: color .2s ease, text-decoration-color .2s ease, transform .2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--violet);
  text-decoration-color: currentColor;
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 12px;
  font-size: .9rem;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.nav-cta {
  padding: 0 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--violet), #7f48f2);
  box-shadow: 0 16px 38px rgba(109, 40, 217, .29);
}

.nav-cta::after {
  content: "\2197";
  display: inline-block;
  margin-left: 10px;
  font-size: .82em;
  font-weight: 500;
  line-height: 1;
  transition: transform .2s ease, color .2s ease;
}

.nav-links .nav-cta:hover {
  color: #fff;
  background: linear-gradient(135deg, #4a168f, #251044);
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(109, 40, 217, .36);
}

.nav-links .nav-cta:hover::after,
.nav-links .nav-cta:focus-visible::after {
  color: #fff;
  transform: translate(2px, -2px);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(38, 16, 68, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--plum);
}

.btn {
  gap: 9px;
  padding: 0 22px;
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  font-family: "DM Sans", system-ui, sans-serif;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--violet), #7f48f2);
  box-shadow: 0 16px 38px rgba(109, 40, 217, .24);
}

.btn-secondary {
  color: #231742;
  border-color: rgba(38, 16, 68, .16);
  background: rgba(255, 255, 255, .76);
}

.btn-ghost-dark {
  color: #fff;
  border-color: rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .09);
}

.btn-ghost-dark:hover {
  background: rgba(255, 255, 255, .16);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(.98);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  max-width: 100%;
  color: var(--violet);
  font-weight: 900;
  transition: transform .2s ease, color .2s ease;
}

.text-link:hover {
  transform: translateY(-2px);
}

/* ---------- Shared scaffolding ---------- */

.pf-hero__grid,
.pf-featured__inner,
.svc-industries__inner,
.pf-library__inner {
  width: min(var(--max), calc(100% - 64px));
  margin-inline: auto;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}

.js-reveal [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Hero (dark) ---------- */

.pf-hero {
  padding: clamp(56px, 6.5vw, 96px) 0;
  color: #fff;
  background:
    radial-gradient(rgba(167, 139, 250, .16) 1px, transparent 1.6px) 0 0 / 26px 26px,
    radial-gradient(circle at 84% 12%, rgba(124, 58, 237, .36), transparent 26rem),
    linear-gradient(150deg, #1c0e36, #120a26 58%, #180f2e);
}

.pf-hero__grid {
  display: grid;
  grid-template-columns: minmax(400px, 1fr) minmax(420px, 1fr);
  align-items: center;
  gap: clamp(32px, 4.5vw, 64px);
}

.pf-hero .eyebrow {
  color: #c4b5fd;
}

.pf-hero__copy {
  display: grid;
  gap: 24px;
  justify-items: start;
}

.pf-hero__copy .eyebrow {
  margin-bottom: 0;
}

.pf-hero h1 {
  max-width: 16ch;
  color: #fff;
  font-size: clamp(2.6rem, 4.2vw, 4.1rem);
  line-height: 1.02;
}

.pf-hero em {
  color: #c4b5fd;
}

.pf-hero__lead {
  max-width: 44ch;
  color: rgba(255, 255, 255, .72);
  font-size: clamp(1rem, 1.25vw, 1.14rem);
  line-height: 1.8;
}

/* Hero connected-system diagram (dark variant) */

.pf-eco__map {
  position: relative;
  width: 100%;
  aspect-ratio: 560 / 440;
}

.pf-eco__map svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.pf-eco__map line {
  stroke: rgba(167, 139, 250, .34);
  stroke-width: 2;
  stroke-dasharray: 3 8;
  animation: ecoDash 1.6s linear infinite;
}

@keyframes ecoDash {
  to {
    stroke-dashoffset: -11;
  }
}

.pf-eco__core,
.pf-eco__node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
}

.pf-eco__core {
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 22px 30px;
  border: 1px solid rgba(196, 181, 253, .34);
  border-radius: 20px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 80% 12%, rgba(139, 92, 246, .5), transparent 6rem),
    linear-gradient(155deg, #2c1452, #180b30);
  box-shadow: 0 24px 60px rgba(20, 8, 44, .6);
}

.pf-eco__core img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.pf-eco__core b {
  font-size: .92rem;
  font-weight: 800;
  white-space: nowrap;
}

.pf-eco__node {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, .06);
  box-shadow: 0 14px 32px rgba(12, 5, 28, .5);
  font-size: .8rem;
  font-weight: 800;
  white-space: nowrap;
  transition: transform .25s ease, background .25s ease;
}

.pf-eco__node:hover {
  transform: translate(-50%, -50%) scale(1.06);
  background: rgba(139, 92, 246, .22);
}

.pf-eco__node i {
  color: #c4b5fd;
  font-style: normal;
  font-weight: 900;
  font-size: .76rem;
}

/* ---------- Featured projects carousel ---------- */

.pf-featured {
  padding: clamp(64px, 7.5vw, 104px) 0 0;
}

.pf-featured__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(26px, 3vw, 38px);
}

.pf-featured__head h2 {
  font-size: clamp(2.1rem, 3.3vw, 3.2rem);
}

.pf-carousel__controls {
  display: flex;
  gap: 10px;
}

.pf-carousel__btn {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(38, 16, 68, .18);
  border-radius: 999px;
  color: var(--violet);
  background: #fff;
  font-size: 1.05rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, opacity .2s ease;
}

.pf-carousel__btn:hover:not(:disabled) {
  transform: translateY(-2px);
  color: #fff;
  background: var(--violet);
}

.pf-carousel__btn:disabled {
  opacity: .35;
  cursor: default;
}

.pf-carousel__track {
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 6px 4px 26px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.pf-carousel__track::-webkit-scrollbar {
  display: none;
}

.pf-card {
  flex: 0 0 calc((100% - 36px) / 3);
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  scroll-snap-align: start;
}

.pf-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--lavender-2);
}

.pf-card__media img,
.pf-card__media .pf-tile {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.pf-card__media img {
  object-fit: cover;
  object-position: top;
}

.pf-tile {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 78% 16%, rgba(139, 92, 246, .5), transparent 12rem),
    linear-gradient(155deg, #2c1452, #180b30);
}

.pf-tile b {
  font-family: "Bodoni Moda", "Didot", Georgia, serif;
  font-size: 3.4rem;
  font-style: italic;
  font-weight: 600;
}

.pf-card__body {
  display: grid;
  gap: 10px;
  padding: 20px 22px 22px;
}

.pf-card__meta,
.pf-row__meta {
  color: var(--violet);
  font-family: "DM Mono", monospace;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.pf-card__body h3 {
  font-size: 1.55rem;
}

.pf-card__body > p {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.65;
}

.pf-card__caps {
  margin: 2px 0 4px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  color: #3a3156;
  font-size: .76rem;
  font-weight: 700;
}

.pf-card__caps li {
  display: inline-flex;
  align-items: center;
}

.pf-card__caps li + li::before {
  content: "•";
  margin: 0 8px;
  color: rgba(109, 40, 217, .45);
}

.pf-card .text-link {
  margin-top: auto;
  font-size: .88rem;
}

/* ---------- Demo library (svc-industries pattern from services) ---------- */

.svc-industries {
  margin-top: clamp(68px, 8vw, 110px);
  padding: clamp(60px, 6.5vw, 92px) 0;
  color: #fff;
  background:
    radial-gradient(circle at 8% 12%, rgba(124, 58, 237, .34), transparent 26rem),
    radial-gradient(circle at 94% 88%, rgba(139, 92, 246, .22), transparent 22rem),
    linear-gradient(150deg, #1c0e36, #120a26 58%, #180f2e);
}

.svc-industries__inner {
  display: grid;
  grid-template-columns: minmax(270px, .92fr) minmax(0, 2.1fr);
  gap: clamp(28px, 3.5vw, 54px);
  align-items: center;
}

.svc-industries .eyebrow {
  color: #c4b5fd;
}

.svc-industries h2 {
  color: #fff;
  font-size: clamp(2.1rem, 3.3vw, 3.2rem);
}

.svc-industries em {
  color: #c4b5fd;
}

.svc-industries__copy > p:not(.eyebrow) {
  max-width: 34ch;
  margin: 18px 0 26px;
  color: rgba(255, 255, 255, .68);
  font-size: .95rem;
  line-height: 1.72;
}

.svc-industry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 18px);
}

.svc-industry {
  --acc: #8b5cf6;
  --acc-soft: rgba(139, 92, 246, .2);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 16px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  background: rgba(255, 255, 255, .05);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.svc-industry:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .08);
}

.svc-industry--green { --acc: #34d399; --acc-soft: rgba(52, 211, 153, .18); }
.svc-industry--blue { --acc: #60a5fa; --acc-soft: rgba(96, 165, 250, .18); }
.svc-industry--amber { --acc: #fbbf24; --acc-soft: rgba(251, 191, 36, .16); }

.svc-industry header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.svc-industry header i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--acc);
  background: var(--acc-soft);
  font-style: normal;
  font-weight: 900;
  font-size: .8rem;
}

.svc-industry h3 {
  color: #fff;
  font-size: 1.06rem;
}

.svc-industry__rows {
  display: grid;
  gap: 9px;
  padding: 12px 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .22);
}

.svc-industry__rows > div {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 8px;
}

.svc-industry__rows span {
  color: rgba(255, 255, 255, .6);
  font-size: .66rem;
  font-weight: 700;
}

.svc-industry__rows i {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  overflow: hidden;
}

.svc-industry__rows i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w, 50%);
  border-radius: inherit;
  background: var(--acc);
}

.svc-industry__rows b {
  color: #fff;
  font-size: .7rem;
  text-align: right;
}

.svc-industry > p {
  color: rgba(255, 255, 255, .55);
  font-size: .72rem;
  line-height: 1.55;
}

.svc-industry > a {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--acc);
  font-size: .78rem;
  font-weight: 900;
}

/* ---------- Project library ---------- */

.pf-library {
  padding: clamp(64px, 7.5vw, 104px) 0 0;
  scroll-margin-top: 90px;
}

.pf-library__inner {
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  gap: clamp(28px, 3.5vw, 54px);
  align-items: start;
}

.pf-filters h2 {
  max-width: 12ch;
  margin-bottom: 22px;
  font-size: clamp(1.9rem, 2.8vw, 2.6rem);
}

.pf-filters__toggle {
  display: none;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: 800 .9rem/1 "DM Sans", system-ui, sans-serif;
  cursor: pointer;
}

.pf-filters__panel {
  display: grid;
  gap: 22px;
}

.pf-filters__search {
  display: grid;
  gap: 8px;
  margin: 0;
}

.pf-filters__search label {
  font-size: .8rem;
  font-weight: 800;
}

.pf-filters__search input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: 600 .9rem/1.4 "DM Sans", system-ui, sans-serif;
}

.pf-filters__search input:focus-visible {
  outline: 3px solid rgba(109, 40, 217, .45);
  outline-offset: 2px;
  border-color: rgba(109, 40, 217, .5);
}

.pf-filters__group {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  border: 0;
}

.pf-filters__group legend {
  margin-bottom: 10px;
  padding: 0;
  color: var(--violet);
  font-family: "DM Mono", monospace;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.pf-filters__group label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  color: #3a3156;
  font-size: .86rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.pf-filters__group label:hover {
  background: var(--lavender-2);
}

.pf-filters__group label.is-active {
  color: var(--violet);
  background: var(--lavender-2);
}

.pf-filters__group label > span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.pf-filters__group input {
  accent-color: var(--violet);
  width: 16px;
  height: 16px;
  margin: 0;
}

.pf-filters__group small {
  color: var(--muted);
  font-size: .74rem;
  font-weight: 700;
}

.pf-filters__clear {
  justify-self: start;
  border: 0;
  padding: 4px 0;
  background: none;
  color: var(--violet);
  font: 800 .84rem/1 "DM Sans", system-ui, sans-serif;
  text-decoration: underline;
  text-underline-offset: 5px;
  cursor: pointer;
}

.pf-results__count {
  margin-bottom: 14px;
  color: var(--violet);
  font-family: "DM Mono", monospace;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.pf-rows {
  display: grid;
  gap: 12px;
}

.pf-row {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(62, 34, 101, .07);
  overflow: hidden;
}

.pf-row__head {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, 1fr) 34px;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  text-align: left;
  cursor: pointer;
  transition: background .2s ease;
}

.pf-row__head:hover {
  background: var(--lavender-2);
}

.pf-row__num {
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: .72rem;
  font-weight: 500;
}

.pf-row__name b {
  display: block;
  font-size: .98rem;
  font-weight: 800;
  line-height: 1.3;
}

.pf-row__name small {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 700;
}

.pf-row__industry {
  color: #3a3156;
  font-size: .8rem;
  font-weight: 700;
}

.pf-row__caps {
  color: var(--muted);
  font-size: .74rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pf-row__chevron {
  justify-self: end;
  color: var(--violet);
  font-weight: 900;
  transition: transform .2s ease;
}

.pf-row.is-open .pf-row__chevron {
  transform: rotate(90deg);
}

.pf-row__detail {
  border-top: 1px solid var(--line);
  padding: 20px 20px 24px;
  background: #fffdf9;
}

.pf-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.pf-tabs [role="tab"] {
  padding: 10px 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--muted);
  font: 800 .82rem/1 "DM Sans", system-ui, sans-serif;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}

.pf-tabs [role="tab"][aria-selected="true"] {
  color: var(--violet);
  border-bottom-color: var(--violet);
}

.pf-panel {
  display: grid;
  gap: 14px;
}

.pf-panel p {
  max-width: 68ch;
  color: #3a3156;
  font-size: .9rem;
  line-height: 1.75;
}

.pf-panel__status {
  color: var(--violet);
  font-family: "DM Mono", monospace;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.pf-panel ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pf-panel ul li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #3a3156;
  font-size: .86rem;
  font-weight: 700;
}

.pf-panel ul li::before {
  content: "✓";
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--violet);
  background: var(--lavender-2);
  font-size: .66rem;
  font-weight: 900;
}

.pf-panel__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.pf-panel__gallery img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.pf-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
}

.pf-results__empty {
  padding: 26px 0;
  color: var(--muted);
  font-weight: 700;
}

/* ---------- Final CTA (shared component, rendered by site.js) ---------- */

.site-cta {
  width: min(var(--max), calc(100% - 80px));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3.5rem);
  margin: clamp(48px, 6vw, 78px) auto 26px;
  padding: clamp(2rem, 4vw, 3.5rem);
  border: 1px solid rgba(109, 40, 217, .14);
  border-radius: clamp(1.5rem, 2vw, 2rem);
  background:
    radial-gradient(circle at 82% 20%, rgba(109, 40, 217, .08), transparent 22rem),
    #fffdf9;
  box-shadow: 0 20px 60px rgba(31, 20, 64, .08);
}

.site-cta__icon {
  width: clamp(4.5rem, 6vw, 6rem);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(109, 40, 217, .16);
  border-radius: 1.25rem;
  color: var(--violet);
  background: #fff;
  box-shadow: 0 14px 34px rgba(109, 40, 217, .1);
  font-size: 1.9rem;
}

.site-cta__content h2 {
  margin: 0;
  color: #16112f;
  font-size: clamp(2.1rem, 3.2vw, 3.4rem);
  line-height: .98;
  letter-spacing: -.01em;
}

.site-cta__content h2 em {
  color: var(--violet);
  font-style: italic;
}

.site-cta__content p {
  max-width: 52ch;
  margin: 14px 0 0;
  color: #51496a;
  font-size: .98rem;
  font-weight: 600;
  line-height: 1.7;
}

.site-cta__actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-cta__primary {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  border-radius: 12px;
  color: #fff;
  background: var(--violet);
  box-shadow: 0 16px 34px rgba(109, 40, 217, .24);
  font-weight: 800;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.site-cta__primary::after {
  content: "\2197";
  margin-left: 10px;
}

.site-cta__primary:hover,
.site-cta__primary:focus-visible {
  background: #4a168f;
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(109, 40, 217, .32);
}

.site-cta__secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--violet);
  font-weight: 800;
  transition: color .2s ease;
}

.site-cta__secondary:hover,
.site-cta__secondary:focus-visible {
  color: #4a168f;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.site-cta__primary:focus-visible,
.site-cta__secondary:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}

/* ---------- Footer (injected by site.js) ---------- */

.site-footer {
  color: #fff;
  background:
    radial-gradient(circle at 10% 0%, rgba(109, 40, 217, .2), transparent 22rem),
    linear-gradient(180deg, #17112d, #100b22);
}

.public-footer {
  padding: 44px 0 26px;
  color: #fff;
  background:
    radial-gradient(circle at 10% 0%, rgba(109, 40, 217, .2), transparent 22rem),
    linear-gradient(180deg, #17112d, #100b22);
}

.public-footer-shell {
  width: min(var(--max), calc(100% - 64px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(520px, 1.4fr);
  gap: clamp(34px, 5vw, 76px);
  align-items: start;
}

.public-footer-brand {
  display: grid;
  gap: 18px;
}

.public-footer .public-footer-brand p {
  max-width: 36ch;
  color: rgba(255, 255, 255, .74);
  font-weight: 600;
}

.public-footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.public-footer-social a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px;
  color: rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .06);
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.public-footer-social a:hover,
.public-footer-social a:focus-visible {
  color: #fff;
  border-color: rgba(167, 139, 250, .55);
  background: rgba(139, 92, 246, .32);
  transform: translateY(-2px);
}

.public-footer-social svg {
  display: block;
}

.public-footer .footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.public-footer .footer-logo img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.public-footer .footer-logo span {
  display: grid;
  gap: 2px;
  line-height: 1;
}

.public-footer .footer-logo strong {
  color: #fff;
  font-family: "Bodoni Moda", "Didot", Georgia, serif;
  font-size: 2.05rem;
  font-style: italic;
}

.public-footer .footer-logo small {
  color: rgba(255, 255, 255, .88);
  font-size: .5rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.public-footer-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  max-width: 420px;
}

.public-footer-form input[type="email"] {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  padding: 0 14px;
  font: 700 .92rem/1 "DM Sans", system-ui, sans-serif;
}

.public-footer-form input::placeholder {
  color: rgba(255, 255, 255, .58);
}

.public-footer-form button {
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  padding: 0 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--violet), #7f48f2);
  box-shadow: 0 14px 32px rgba(109, 40, 217, .24);
  font: 900 .92rem/1 "DM Sans", system-ui, sans-serif;
  cursor: pointer;
}

.public-footer-form .form-note {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, .72);
  font-size: .82rem;
}

.public-footer-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.public-footer-links h4 {
  margin: 0 0 12px;
  color: rgba(238, 231, 255, .92);
  font-family: "DM Mono", monospace;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.public-footer-links a,
.public-footer-links span {
  display: block;
  margin: 8px 0;
  color: rgba(255, 255, 255, .78);
  font-size: .9rem;
  font-weight: 700;
}

.public-footer-links a:hover {
  color: #fff;
}

.public-footer-base {
  width: min(var(--max), calc(100% - 64px));
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .68);
  font-size: .88rem;
}

@keyframes constructionMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .brand {
    min-width: 218px;
  }

  .pf-card {
    flex-basis: calc((100% - 18px) / 2);
  }

  .svc-industries__inner {
    grid-template-columns: 1fr;
  }

  .svc-industry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .nav-shell,
  .pf-hero__grid,
  .pf-featured__inner,
  .svc-industries__inner,
  .pf-library__inner {
    width: min(var(--max), calc(100% - 36px));
  }

  .brand {
    min-width: 202px;
  }

  .nav-toggle {
    display: block;
    position: relative;
    z-index: 110;
  }

  .nav-links {
    position: fixed;
    inset: 78px 18px auto;
    display: grid;
    gap: 0;
    padding: 14px;
    border: 1px solid rgba(38, 16, 68, .12);
    border-radius: 18px;
    background: rgba(255, 253, 249, .96);
    box-shadow: 0 24px 70px rgba(38, 16, 68, .18);
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }

  .nav-links.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links a:not(.nav-cta) {
    padding: 14px 12px;
    border-radius: 12px;
  }

  .nav-links a:hover {
    background: var(--lavender-2);
  }

  .nav-cta {
    margin-top: 8px;
  }

  .pf-hero__grid {
    grid-template-columns: 1fr;
  }

  .pf-hero h1 {
    font-size: clamp(2.3rem, 7.5vw, 3.2rem);
  }

  .pf-library__inner {
    grid-template-columns: 1fr;
  }

  .pf-filters__toggle {
    display: flex;
  }

  .pf-filters__panel {
    display: none;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
  }

  .pf-filters__panel.is-open {
    display: grid;
  }

  .pf-row__head {
    grid-template-columns: 30px minmax(0, 1fr) 30px;
  }

  .pf-row__industry,
  .pf-row__caps {
    display: none;
  }

  .public-footer-shell,
  .public-footer-links {
    grid-template-columns: 1fr;
  }

  .public-footer-shell,
  .public-footer-base {
    width: min(var(--max), calc(100% - 36px));
  }

  .public-footer-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .pf-card {
    flex-basis: 100%;
  }

  .svc-industry-grid {
    grid-template-columns: 1fr;
  }

  .pf-featured__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .pf-eco__map {
    aspect-ratio: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .pf-eco__map svg {
    display: none;
  }

  .pf-eco__core,
  .pf-eco__node {
    position: static;
    transform: none;
  }

  .pf-eco__core {
    width: 100%;
    order: -1;
    padding: 18px;
  }

  .pf-eco__node:hover {
    transform: scale(1.04);
  }

  .pf-panel ul {
    grid-template-columns: 1fr;
  }

  .site-cta {
    width: min(var(--max), calc(100% - 36px));
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

@media (max-width: 620px) {
  .brand {
    min-width: 176px;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .brand strong {
    font-size: 1.65rem;
  }

  .brand small {
    font-size: .44rem;
  }

  .nav-shell {
    min-height: 70px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .construction-marquee__track {
    animation: none !important;
  }

  .pf-eco__map line {
    animation: none;
  }

  .pf-carousel__track {
    scroll-behavior: auto;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .pf-eco__node,
  .svc-industry,
  .pf-carousel__btn,
  .site-cta__primary {
    transition: none;
  }
}
