/* ============================================================
   AQUILA360 — PORTFOLIO ("Work") page
   Extends the Operations Deck system (redesign.css). Same tokens,
   hairline grids, mono readouts, two accents, no emoji.
   Only components not already in redesign.css live here.
   ============================================================ */

/* ---- Hero: deployment registry panel (signature) ----------------- */
.registry {
  display: flex;
  flex-direction: column;
}
.registry__row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line-dark-soft);
}
.registry__row:last-child {
  border-bottom: 0;
}
.registry__code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--sky);
}
.registry__name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 14.5px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.01em;
}
.registry__loc {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--on-dark-mute);
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.registry__live {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--teal);
  border: 1px solid rgba(25, 211, 181, 0.3);
  background: rgba(25, 211, 181, 0.08);
  border-radius: 40px;
  padding: 3px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.registry__live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  display: block;
  animation: pulse 2.4s infinite;
}

/* ---- Work / case-file grid --------------------------------------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.work {
  background: #fff;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: background 0.25s var(--ease);
}
.work:hover {
  background: var(--paper);
}
.work__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.work__status {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-deep);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.work__status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  flex: none;
}
.work__status[data-state="shipped"] {
  color: var(--muted);
}
.work__status[data-state="shipped"]::before {
  background: var(--muted);
}
.work h3 {
  font-size: 19px;
  margin-bottom: 10px;
  line-height: 1.2;
}
.work__desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 22px;
}
.work__metric {
  margin-top: auto;
  border-top: 1px solid var(--line-2);
  padding-top: 16px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-soft);
  letter-spacing: 0.01em;
}
.work__metric b {
  color: var(--teal-deep);
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-right: 8px;
}

/* ---- Sector chips ------------------------------------------------- */
.sectors {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.sector {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  padding: 20px 20px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.sector:hover {
  border-color: var(--teal);
  transform: translateY(-3px);
}
.sector h4 {
  font-size: 15.5px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sector h4::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--teal);
  transform: rotate(45deg);
  flex: none;
}
.sector p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ---- Stack / OEM chips (ink section) ----------------------------- */
.stack-group + .stack-group {
  margin-top: clamp(40px, 5vw, 56px);
}
.stack-group h3 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 22px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--on-dark-soft);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-sm);
  padding: 11px 16px;
  background: rgba(255, 255, 255, 0.018);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.chip:hover {
  border-color: var(--teal);
  color: #fff;
}
.chip b {
  color: var(--sky);
  font-weight: 600;
}

/* ---- Testimonials / quotes --------------------------------------- */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.quote {
  background: #fff;
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.quote--wide {
  grid-column: 1 / -1;
}
.quote__mark svg {
  width: 30px;
  height: 30px;
  color: var(--teal);
  opacity: 0.5;
}
.quote blockquote {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--text-soft);
}
.quote__by {
  margin-top: auto;
  border-top: 1px solid var(--line-2);
  padding-top: 18px;
}
.quote__name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text);
}
.quote__role {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--muted);
  margin-top: 4px;
}

/* ---- Slim Odoo partner band -------------------------------------- */
.odoo-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  padding: clamp(32px, 4vw, 44px);
  box-shadow: var(--shadow-card);
  flex-wrap: wrap;
}
.odoo-band__lead {
  flex: 1 1 360px;
}
.odoo-band__lead h3 {
  font-size: clamp(22px, 3vw, 30px);
  margin: 18px 0 12px;
}
.odoo-band__lead p {
  color: var(--muted);
  font-size: 16px;
  max-width: 52ch;
}
.odoo-band__aside {
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 44px);
  flex-wrap: wrap;
}
.odoo-band__stat .stat__num {
  font-size: clamp(30px, 4vw, 42px);
}
.odoo-band__stat .stat__label {
  margin-top: 8px;
}

/* ---- CTA band (ink) ---------------------------------------------- */
.cta {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}
.cta h2 {
  color: #fff;
  font-size: clamp(30px, 4.4vw, 50px);
  margin-top: 18px;
}
.cta p {
  margin: 18px auto 36px;
  color: var(--on-dark-soft);
  font-size: 18px;
  max-width: 56ch;
}
.cta__btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Responsive --------------------------------------------------- */
@media (max-width: 980px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sectors {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .work-grid,
  .quote-grid,
  .sectors {
    grid-template-columns: 1fr;
  }
  .odoo-band {
    flex-direction: column;
    align-items: flex-start;
  }
}
