/* Nexora — site styles */

:root {
  --paper: #ffffff;
  --paper-2: #f3f6f5;
  --ink: #111816;
  --ink-2: #3c4643;
  --muted: #65706c;
  --line: #e2e7e5;
  --line-strong: #cdd5d2;
  --green: #1d9e75;
  --green-ink: #10684d;
  --amber: #ef9f27;
  --night: #0f1714;
  --night-2: #17211e;
  --night-line: #26332f;
  --night-text: #e8eeeb;
  --night-muted: #9aa8a3;
  --error: #b42318;
  --radius: 6px;
  --radius-lg: 10px;
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--green-ink);
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-inline: 20px;
}

.section {
  padding-block: clamp(64px, 9vw, 112px);
}

.section--tint {
  background: var(--paper-2);
}

.section--dark {
  background: var(--night);
  color: var(--night-text);
}

/* Type */
h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: inherit;
}

h1 {
  font-size: clamp(2.25rem, 4.6vw, 3.5rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
}

h3 {
  font-size: 1.25rem;
}

.label {
  display: block;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--green-ink);
  margin-bottom: 1rem;
}

.section--dark .label {
  color: var(--amber);
}

.lead {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 40rem;
}

.section--dark .lead {
  color: var(--night-muted);
}

.section-head {
  max-width: 44rem;
  margin-bottom: 3rem;
}

.section-head h2 + .lead {
  margin-top: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font: 500 0.98rem/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  background: var(--green-ink);
  border-color: var(--green-ink);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.btn--green {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.btn--green:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.btn--light {
  background: transparent;
  border-color: var(--night-line);
  color: var(--night-text);
}

.btn--light:hover {
  background: var(--night-text);
  border-color: var(--night-text);
  color: var(--ink);
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.text-link {
  font-weight: 500;
  color: var(--green-ink);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.text-link:hover {
  color: var(--ink);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo img {
  height: 58px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.6vw, 2rem);
  list-style: none;
}

.nav-links a:not(.btn) {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:not(.btn):hover,
.nav-links a[aria-current="page"] {
  color: var(--green-ink);
}

.nav-links .btn {
  padding: 0.6rem 1.05rem;
  font-size: 0.92rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

/* Photos with credits */
.photo {
  margin: 0;
}

.photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--paper-2);
}

.photo figcaption {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.photo figcaption a {
  color: inherit;
}

.section--dark .photo figcaption {
  color: var(--night-muted);
}

/* Home hero */
.hero {
  padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 104px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero h1 {
  max-width: 15ch;
}

.hero .lead {
  margin-top: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-note {
  margin-top: 1.25rem;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Hero composite: photo with floating dashboard cards */
.hero-visual {
  margin: 0;
}

.hero-stage {
  position: relative;
  padding: 1.75rem 1.5rem 2.25rem 0;
}

.hero-stage > img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3.5;
  object-fit: cover;
  object-position: 30% center;
  border-radius: var(--radius-lg);
}

.float-card,
.float-pill {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(17, 24, 22, 0.12);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .float-card,
  .float-pill {
    background: rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(16px) saturate(60%);
    -webkit-backdrop-filter: blur(16px) saturate(60%);
  }
}

.float-card,
.float-pill {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: normal;
}

.float-card {
  padding: 0.85rem 1rem 0.9rem;
}

.float-card--sales {
  top: 0;
  right: 0;
  width: 13.5rem;
}

.float-card--mpesa {
  right: 0;
  bottom: 0;
  width: 14.5rem;
}

.float-pill {
  left: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-2);
}

.fc-head {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-2);
}

.fc-value {
  margin-top: 0.1rem;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

.fc-value small {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--ink-2);
}

.fc-delta {
  margin: 0.1rem 0 0.6rem;
  font-size: 0.78rem;
  color: var(--ink-2);
}

.fc-up {
  font-weight: 600;
  color: var(--green-ink);
}

.float-card--mpesa .fc-value {
  margin-bottom: 0.55rem;
}

.fc-chart {
  display: block;
  width: 100%;
  height: auto;
  color: var(--ink);
}

.fc-axis {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

.fc-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(17, 24, 22, 0.1);
  overflow: hidden;
}

.fc-bar span {
  display: block;
  height: 100%;
  background: var(--green);
}

.fc-foot {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.55rem;
  font-size: 0.78rem;
  color: var(--ink-2);
}

.fc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.fc-dot--amber {
  background: var(--amber);
}

.hero-visual figcaption {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.hero-visual figcaption a {
  color: inherit;
}

@media (max-width: 520px) {
  .hero-stage {
    padding: 1.25rem 0.75rem 1.75rem 0;
  }

  .float-card--sales {
    width: 10.5rem;
  }

  .float-card--mpesa {
    width: 11.5rem;
  }

  .float-card {
    padding: 0.65rem 0.75rem;
  }

  .fc-value {
    font-size: 1.15rem;
  }

  .float-pill {
    display: none;
  }
}

/* Problems */
.problems {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.25rem 3rem;
}

.problem {
  border-top: 2px solid var(--ink);
  padding-top: 1.1rem;
}

.problem h3 {
  margin-bottom: 0.5rem;
}

.problem p {
  color: var(--ink-2);
}

.problems-foot {
  margin-top: 3rem;
  font-size: 1.15rem;
  max-width: 44rem;
}

/* Services */
.service-list {
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

.service {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 2fr;
  gap: 1.5rem 3rem;
  padding-block: 2rem;
  border-bottom: 1px solid var(--line-strong);
}

.service h3 {
  font-size: 1.35rem;
}

.service p {
  color: var(--ink-2);
}

.service .deliverable {
  margin-top: 0.9rem;
  padding-left: 0.9rem;
  border-left: 3px solid var(--green);
  font-size: 0.98rem;
  color: var(--ink);
}

.service .deliverable strong {
  font-weight: 600;
}

/* Hub diagram: sources -> one database -> outputs */
.hub {
  margin: 0;
}

.hub-diagram {
  display: block;
  width: 100%;
  height: auto;
  font-family: var(--font);
}

.hub-note text {
  font-size: 12.5px;
  fill: var(--muted);
}

.hub-lines path {
  fill: none;
  stroke: var(--green);
  stroke-width: 1.75;
  stroke-opacity: 0.55;
}

.hub-src rect,
.hub-out rect {
  fill: #fff;
  stroke: var(--line-strong);
  stroke-width: 1;
}

.hub-out rect.bar {
  fill: var(--green);
  stroke: none;
}

.hub-src .t,
.hub-out .t {
  font-size: 15px;
  font-weight: 600;
  fill: var(--ink);
}

.hub-src .s,
.hub-out .s {
  font-size: 12.5px;
  fill: var(--muted);
}

.hub-db .body {
  fill: var(--green-ink);
}

.hub-db .top {
  fill: #168a65;
}

.hub-db .t {
  font-size: 18px;
  font-weight: 600;
  fill: #fff;
}

.hub-db .s {
  font-size: 12px;
  fill: #fff;
  fill-opacity: 0.75;
}

.hub-db .tables rect {
  fill: #fff;
  fill-opacity: 0.12;
}

.hub-db .tables text {
  font-size: 12.5px;
  fill: #fff;
}

.hub-dots circle {
  fill: var(--green);
}

.hub-mobile {
  display: none;
}

.hub-caption {
  margin-top: 2.5rem;
  padding-left: 1rem;
  border-left: 3px solid var(--green);
  max-width: 46rem;
  color: var(--ink-2);
}

.hub-caption strong {
  color: var(--ink);
  font-weight: 600;
}

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.steps {
  list-style: none;
  counter-reset: step;
}

.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0 1rem;
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.step:first-child {
  padding-top: 0;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--green-ink);
  padding-top: 0.15rem;
}

.step h3 {
  font-size: 1.15rem;
}

.step .meta {
  display: inline-block;
  margin: 0.25rem 0 0.5rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.step p {
  grid-column: 2;
  color: var(--ink-2);
}

.process-grid .photo img {
  aspect-ratio: 4 / 3;
}

/* Tools */
.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 2rem 4rem;
  align-items: start;
}

.tool-groups {
  display: grid;
  gap: 1.5rem;
}

.tool-group h3 {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.6rem;
  letter-spacing: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}

.chips li {
  font-family: var(--mono);
  font-size: 0.82rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
}

/* Example cards */
.example-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.example-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.example-card .photo img {
  aspect-ratio: 3 / 2;
}

.example-card .shot img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
}

.example-card .kicker {
  margin-top: 1.1rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--green-ink);
}

.example-card h3 {
  margin-top: 0.35rem;
  font-size: 1.15rem;
}

.example-card:hover h3 {
  color: var(--green-ink);
}

.example-card p {
  margin-top: 0.4rem;
  font-size: 0.95rem;
  color: var(--ink-2);
}

.section-foot {
  margin-top: 2.5rem;
}

/* CTA */
.cta {
  background: var(--night);
  color: var(--night-text);
  padding-block: clamp(64px, 8vw, 96px);
}

.cta-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem 4rem;
  align-items: end;
}

.cta h2 {
  max-width: 18ch;
}

.cta p {
  margin-top: 1rem;
  color: var(--night-muted);
  max-width: 34rem;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.cta-contact {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--night-muted);
}

.cta-contact a {
  color: var(--night-text);
}

/* Footer */
.site-footer {
  background: var(--night);
  color: var(--night-muted);
  border-top: 1px solid var(--night-line);
  padding-block: 3.5rem 2rem;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 2.5rem;
}

.footer-brand img {
  height: 44px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-brand p {
  max-width: 300px;
}

.footer-col h3 {
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--night-text);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.55rem;
}

.footer-links a {
  color: var(--night-muted);
  text-decoration: none;
}

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

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--night-line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--night-muted);
}

/* Inner page hero */
.page-hero {
  padding-block: clamp(48px, 7vw, 88px) clamp(32px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 20ch;
}

.page-hero .lead {
  margin-top: 1.25rem;
}

.page-hero + .section {
  padding-top: clamp(40px, 5vw, 64px);
}

.policy-updated {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.policy-copy {
  max-width: 50rem;
}

.policy-copy h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.85rem;
  font-size: clamp(1.35rem, 2.3vw, 1.7rem);
}

.policy-copy h2:first-child {
  margin-top: 0;
}

.faq-list {
  max-width: 52rem;
}

.faq-item {
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line-strong);
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item h2 {
  font-size: clamp(1.2rem, 2.1vw, 1.5rem);
}

.faq-item p {
  max-width: 47rem;
  margin-top: 0.7rem;
  color: var(--ink-2);
}

.case-list {
  display: grid;
  gap: clamp(4rem, 8vw, 7rem);
}

.case-study {
  scroll-margin-top: calc(var(--header-h) + 1rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line-strong);
}

.case-study:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.case-heading {
  max-width: 48rem;
  margin-bottom: 2rem;
}

.case-heading .label {
  margin-bottom: 0.65rem;
}

.case-heading h2 {
  margin-bottom: 0.85rem;
}

.case-image {
  margin-bottom: 2.5rem;
}

.case-image > img {
  width: 100%;
}

.case-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 3rem;
}

.case-details h3 {
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}

.case-details p {
  color: var(--ink-2);
}

.case-details .project-points {
  margin-top: 0;
}

.case-details .project-links {
  grid-column: 1 / -1;
  margin-top: 0;
}

.insight-list {
  max-width: 52rem;
}

.insight {
  padding-bottom: clamp(3rem, 6vw, 5rem);
  margin-bottom: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line-strong);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.insight:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.insight .label {
  margin-bottom: 0.65rem;
}

.insight h2 {
  margin-bottom: 0.85rem;
}

.insight .lead {
  margin-bottom: 1.5rem;
}

.insight .prose h3 {
  margin: 1.5rem 0 0.65rem;
  font-size: 1.15rem;
}

.insight .prose ol,
.insight .prose ul {
  margin: 0.75rem 0 1rem;
  padding-left: 1.4rem;
  color: var(--ink-2);
}

.insight .prose li + li {
  margin-top: 0.55rem;
}

.insight .prose p + p {
  margin-top: 1rem;
}

.insight .prose p {
  color: var(--ink-2);
}

/* Examples page */
.notice {
  margin-top: 1.75rem;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--amber);
  background: var(--paper-2);
  font-size: 0.95rem;
  color: var(--ink-2);
  max-width: 44rem;
}

.example {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(48px, 7vw, 80px);
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.example:last-child {
  border-bottom: 0;
}

.example .photo img {
  aspect-ratio: 4 / 3;
}

.example h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: 1.25rem;
}

.example dl {
  display: grid;
  gap: 1.1rem;
}

.example dt {
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--green-ink);
  margin-bottom: 0.2rem;
}

.example dd {
  color: var(--ink-2);
}

.example dd ul {
  padding-left: 1.1rem;
}

.example dd ul:not(.chips) li + li {
  margin-top: 0.25rem;
}

@media (min-width: 881px) {
  .example .photo {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}

.example dd .chips {
  margin-top: 0.15rem;
  padding-left: 0;
}

/* Work page */
.jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
  list-style: none;
}

.jump-nav a {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  background: #fff;
}

.jump-nav a:hover {
  border-color: var(--green-ink);
  color: var(--green-ink);
}

.jump-nav .count {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin-left: 0.3rem;
}

.work-group + .work-group {
  border-top: 1px solid var(--line);
}

.work-group .section-head {
  margin-bottom: 2.5rem;
}

.shot {
  margin: 0;
}

.shot img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: #fff;
}

.shot figcaption {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.project-feature {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}

.project-feature + .project-grid {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.project-feature .shots {
  display: grid;
  gap: 1rem;
}

.project-feature .shots--pair {
  grid-template-columns: 1fr 1fr;
}

.project-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.6rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--green-ink);
}

.badge {
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(29, 158, 117, 0.12);
  color: var(--green-ink);
}

.badge--muted {
  background: var(--paper-2);
  color: var(--muted);
}

.project-feature h3,
.project-card h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  margin-bottom: 0.75rem;
}

.project-summary {
  color: var(--ink-2);
}

.project-points {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--ink-2);
}

.project-points li + li {
  margin-top: 0.4rem;
}

.project-meta {
  margin-top: 1.25rem;
}

.project-meta .chips li {
  background: #fff;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 1.25rem;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.project-feature > *,
.project-grid > *,
.gallery > *,
.scenario > *,
.case-details > * {
  min-width: 0;
}

.project-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: #fff;
}

.project-card .project-links {
  margin-top: auto;
  padding-top: 1.25rem;
}

.pipe {
  margin: 0 0 1.1rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  background: var(--night);
  color: var(--night-text);
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

.pipe .arrow {
  color: var(--amber);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.metric {
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
}

.metric strong {
  display: block;
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--ink);
}

.metric span {
  font-size: 0.82rem;
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 1.5rem;
}

.gallery .shot img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top left;
}

.gallery .shot figcaption {
  font-size: 0.95rem;
  color: var(--ink-2);
}

.gallery .shot figcaption strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.gallery-note {
  margin-top: 2rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.scenario-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.scenario {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1.1rem;
  padding: 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--paper);
}

.scenario .photo img {
  aspect-ratio: 1;
  border-radius: var(--radius);
}

.scenario .photo figcaption {
  font-size: 0.68rem;
  line-height: 1.35;
}

.scenario h3 {
  font-size: 1.08rem;
  margin: 0.15rem 0 0.4rem;
}

.scenario p {
  font-size: 0.93rem;
  color: var(--ink-2);
}

.scenario .chips {
  margin-top: 0.75rem;
}

.scenario .chips li {
  font-size: 0.74rem;
  padding: 0.2rem 0.5rem;
}

/* About page */
.wide-photo img {
  aspect-ratio: 21 / 9;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.prose p + p {
  margin-top: 1rem;
}

.prose p {
  color: var(--ink-2);
}

.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.25rem 3rem;
}

.principle {
  border-top: 2px solid var(--ink);
  padding-top: 1.1rem;
}

.principle h3 {
  margin-bottom: 0.5rem;
}

.principle p {
  color: var(--ink-2);
}

.who-list {
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

.who-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink-2);
}

.who-list strong {
  color: var(--ink);
  font-weight: 600;
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-privacy,
.booking-note {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.booking-card .btn {
  margin-top: 0.5rem;
}

.booking-card .booking-note {
  margin: 0.75rem 0 0;
}

form button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.25rem;
}

.field {
  margin-bottom: 1.25rem;
}

.field label {
  display: block;
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.field .optional {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  font: 400 1rem/1.4 var(--font);
  color: var(--ink);
}

.field textarea {
  min-height: 160px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(29, 158, 117, 0.18);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--error);
}

.form-msg {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.form-msg.is-error {
  color: var(--error);
}

.form-msg.is-ok {
  color: var(--green-ink);
}

.contact-aside {
  border-top: 2px solid var(--ink);
  padding-top: 1.25rem;
}

.contact-item {
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.contact-item h3 {
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.contact-item p {
  color: var(--ink-2);
}

.contact-item a {
  font-weight: 500;
}

.map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  height: 220px;
  background: var(--paper-2);
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-link {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.9rem;
}

.next-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  list-style: none;
  counter-reset: step;
}

.next-steps li {
  counter-increment: step;
  border-top: 2px solid var(--ink);
  padding-top: 1rem;
  color: var(--ink-2);
}

.next-steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--green-ink);
  margin-bottom: 0.5rem;
}

.next-steps strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

/* Scroll reveal (only when JS is running) */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}

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

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Responsive */
@media (max-width: 980px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 20px 1.25rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links li {
    border-bottom: 1px solid var(--line);
  }

  .nav-links li:last-child {
    border-bottom: 0;
    padding-top: 1rem;
  }

  .nav-links a:not(.btn) {
    display: block;
    padding: 0.8rem 0;
  }

  .nav-links .btn {
    width: 100%;
  }
}

@media (max-width: 1000px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 880px) {
  .hero-grid,
  .process-grid,
  .tools-grid,
  .cta-inner,
  .example,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .service {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .project-feature,
  .project-grid,
  .scenario-grid,
  .case-details {
    grid-template-columns: 1fr;
  }

  .example-cards {
    grid-template-columns: 1fr 1fr;
  }

  .next-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 20px 1.25rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links li {
    border-bottom: 1px solid var(--line);
  }

  .nav-links li:last-child {
    border-bottom: 0;
    padding-top: 1rem;
  }

  .nav-links a:not(.btn) {
    display: block;
    padding: 0.8rem 0;
  }

  .nav-links .btn {
    width: 100%;
  }

  .logo img {
    height: 48px;
  }

  .problems,
  .principles,
  .example-cards,
  .form-row,
  .gallery {
    grid-template-columns: 1fr;
  }

  .scenario {
    grid-template-columns: 96px 1fr;
  }

  .metrics {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
  }

  .metric strong {
    font-size: 1.1rem;
  }

  .hub-diagram {
    display: none;
  }

  .hub-mobile {
    display: block;
  }

  .hm-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 0.5rem;
  }

  .hm-group .chips li {
    background: #fff;
    font-family: var(--font);
    font-size: 0.88rem;
  }

  .hm-step {
    position: relative;
    margin: 0.75rem 0 0.75rem 1rem;
    padding: 0.6rem 0 0.6rem 1.25rem;
    border-left: 2px solid var(--green);
    font-size: 0.9rem;
    color: var(--ink-2);
  }

  .hm-db {
    padding: 1rem 1.1rem;
    border-radius: var(--radius-lg);
    background: var(--green-ink);
    color: #fff;
  }

  .hm-db strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
  }

  .hm-db span {
    font-size: 0.88rem;
    opacity: 0.85;
  }

  .wide-photo img {
    aspect-ratio: 4 / 3;
  }

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