/* Mentis AI — site styles */
:root {
  --blue: #2a7cb4;
  --blue-dark: #1d5c88;
  --cyan: #1fa2d8;
  --indigo: #3a45b0;
  --navy: #0c1d33;
  --blue-soft: #eaf4fb;
  --ink: #1c2a44;
  --text: #46546a;
  --muted: #74829a;
  --line: #e3e9f1;
  --bg: #ffffff;
  --bg-alt: #f6f9fc;
  --radius: 16px;
  --shadow: 0 18px 40px -18px rgba(28, 42, 68, 0.22);
  --grad: linear-gradient(90deg, var(--cyan), var(--indigo));
  --max: 1160px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 0.6em; font-weight: 600; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.3rem, 4.8vw, 3.6rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.45rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 92px 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--grad); }
.lead { font-size: 1.15rem; color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 600; font-size: 0.96rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  font-family: inherit;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -8px rgba(42,124,180,.6); }
.btn-primary:hover { background: var(--blue-dark); color: #fff; transform: translateY(-1px); }
.btn-outline { border-color: #c5d6e6; color: var(--ink); background: rgba(255,255,255,.7); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); background: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--blue-soft); color: var(--navy); transform: translateY(-1px); }
.btn-ghost-light { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 8px;
  color: var(--ink); font-weight: 500; font-size: 0.95rem;
}
.nav-links a:hover { color: var(--blue); background: var(--blue-soft); }
.nav-links a.active { color: var(--blue); }
.nav-links .btn { margin-left: 10px; padding: 10px 20px; color: #fff; border-radius: 10px; }
.nav-links .btn:hover { background: var(--blue-dark); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 28px; height: 28px; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: 104px 0 210px;
  background: linear-gradient(180deg, #fff 0%, #f2f8fc 62%, #fff 100%);
}
.hero::before, .hero::after, .page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-repeat: no-repeat; background-size: auto 100%;
}
.hero::before { background-image: url(../img/art-circuit.svg); background-position: left bottom; opacity: .5; }
.hero::after { background-image: url(../img/art-peaks.svg); background-position: right bottom; }
.hero-inner { position: relative; z-index: 2; }
.hero-inner > * { max-width: 610px; }
.hero h1 span {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--blue);
}
.hero .lead { margin-bottom: 34px; }
.hero-tagline {
  margin-top: 44px; margin-bottom: 0; font-size: .82rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}

.page-hero {
  position: relative; overflow: hidden;
  padding: 84px 0 88px;
  background: linear-gradient(180deg, #fff 0%, #f1f7fc 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero::after { background-image: url(../img/art-peaks.svg); background-position: right -20px center; background-size: auto 122%; }
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 3rem); max-width: 720px; }
.page-hero .lead { max-width: 620px; margin: 0; }

/* Cards & grids */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative; overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #d3e1ee; }
.card:hover::before { transform: scaleX(1); }
.card p { font-size: .97rem; }
.card p:last-child { margin-bottom: 0; }
a.card, a.card:hover { color: var(--text); }
.more { font-weight: 600; font-size: .95rem; }

.icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #e6f4fc, #eceefb);
  border: 1px solid #d8e6f2;
  color: var(--blue);
  margin-bottom: 20px;
}
.icon svg { width: 25px; height: 25px; stroke-width: 1.6; }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.top { align-items: start; }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.step { position: relative; padding: 28px 22px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: inline-block; font-weight: 600; font-size: 1.7rem; margin-bottom: 8px; letter-spacing: -.02em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--blue);
}
.step h3 { font-size: 1.05rem; }
.step p { font-size: .93rem; margin: 0; }

/* Lists */
.check-list { list-style: none; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 32px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a7cb4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
}
.check-list.cols { grid-template-columns: 1fr 1fr; column-gap: 32px; }

/* Service detail blocks */
.service-block { display: grid; grid-template-columns: 340px 1fr; gap: 56px; padding: 72px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.service-block:first-child { border-top: 0; padding-top: 0; }
.service-block .service-intro { position: sticky; top: 110px; align-self: start; }
.service-block .num {
  display: inline-block; font-weight: 700; font-size: .85rem; letter-spacing: .14em; margin-bottom: 10px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--blue);
}
.service-items { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.service-item { padding: 22px; border-radius: 12px; background: var(--bg-alt); border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.service-item:hover { background: #fff; border-color: #c9dcec; }
.service-item h4 { font-size: 1rem; margin-bottom: 6px; }
.service-item p { font-size: .93rem; margin: 0; }
.service-note { margin-top: 24px; font-weight: 500; color: var(--ink); }

/* Pills nav for services */
.pill-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.pill-nav a {
  padding: 8px 16px; border-radius: 999px; font-size: .88rem; font-weight: 600;
  color: var(--ink); background: #fff; border: 1px solid #cfdcea;
}
.pill-nav a:hover { border-color: var(--blue); color: var(--blue); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 12px; overflow: hidden; }
.faq details[open] { border-color: #c9dcec; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; position: relative; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 24px 20px; margin: 0; }

/* CTA band */
.cta {
  position: relative; overflow: hidden;
  background:
    url(../img/art-peaks-dark.svg) right -30px center / auto 175% no-repeat,
    linear-gradient(120deg, var(--navy) 0%, #11325a 55%, #1d5c88 100%);
  border-radius: 22px; padding: 68px 64px; color: #c9d9ea;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
}
.cta h2 { color: #fff; }
.cta p { margin: 0; font-size: 1.06rem; }
.cta .btn-row { justify-content: flex-end; position: relative; z-index: 2; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; }
.contact-info .item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-info .icon { margin: 0; flex: none; width: 46px; height: 46px; }
.contact-info .item h4 { margin: 0 0 2px; font-size: 1rem; }
.contact-info .item p { margin: 0; }
.form { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 36px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .88rem; color: var(--ink); margin-bottom: 6px; }
.field label .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid #cdd8e4;
  font: inherit; font-size: .97rem; color: var(--ink); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(42,124,180,.15);
}
.form-note { font-size: .85rem; color: var(--muted); margin: 14px 0 0; }
.form-status { margin-top: 14px; font-weight: 500; color: var(--blue-dark); }

/* Footer */
.site-footer { background: var(--navy); color: #9fb3c9; padding: 68px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 40px; }
.site-footer img { height: 38px; width: auto; margin-bottom: 16px; }
.site-footer h4 { color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; display: grid; gap: 9px; }
.site-footer a { color: #9fb3c9; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  margin-top: 52px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem;
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1180px) {
  .hero::after { opacity: .55; }
  .hero::before { opacity: .3; }
  .page-hero::after { opacity: .6; }
}
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .service-block { grid-template-columns: 1fr; gap: 28px; }
  .service-block .service-intro { position: static; }
}
@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 10px 20px 20px; display: none;
    box-shadow: 0 14px 24px rgba(28,42,68,.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 8px; }
  .nav-links .btn { margin: 10px 0 0; justify-content: center; text-align: center; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .cta { grid-template-columns: 1fr; padding: 44px 32px; background-size: auto 120%, auto; }
  .cta .btn-row { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  /* Hero art moves below the text */
  .hero { padding: 64px 0 330px; }
  .hero::before { display: none; }
  .hero::after { top: auto; bottom: 50px; height: 270px; opacity: 1; }
  .page-hero::after { opacity: .2; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 52px 0 350px; }
  .hero::after { height: 290px; }
  .page-hero { padding: 56px 0 60px; }
  .grid-2, .grid-3, .grid-4, .service-items, .form-row, .check-list.cols { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand img { height: 34px; }
}

/* ---------- Redesign additions ---------- */

/* Top utility bar (removed from pages) */
.topbar { background: var(--navy); color: #a9bdd3; font-size: .8rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 24px; }
.topbar-left { display: flex; gap: 26px; }
.topbar-left > * { display: inline-flex; align-items: center; gap: 7px; }
.topbar a { color: #d3e3f2; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 14px; height: 14px; color: #5fc4f5; }
.topbar-tag { letter-spacing: .18em; text-transform: uppercase; font-size: .7rem; font-weight: 600; }

.btn svg { width: 18px; height: 18px; }

/* Hero points */
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; }
.hero-points li { position: relative; padding-left: 28px; font-size: .9rem; font-weight: 600; color: var(--ink); }
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--blue) 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='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat;
}

/* Service cards overlapping the hero */
.float-up { position: relative; z-index: 3; margin-top: -120px; }
.service-cards .card { display: flex; flex-direction: column; border-color: #dce7f1; box-shadow: 0 24px 50px -24px rgba(12,29,51,.28); }
.service-cards .card .more { margin-top: auto; padding-top: 16px; color: var(--blue); }
.service-cards .card:hover .more { color: var(--indigo); }
.feature-cards .card { padding: 30px 28px; }

/* Dark visual panel */
.visual {
  position: relative; aspect-ratio: 5 / 4; border-radius: 24px; overflow: hidden;
  background:
    url(../img/art-peaks-dark.svg) center 46% / 118% auto no-repeat,
    radial-gradient(circle at 72% 18%, rgba(42,124,180,.75) 0, transparent 58%),
    linear-gradient(135deg, #0c1d33, #11325a);
  box-shadow: 0 34px 60px -30px rgba(12,29,51,.6);
}
.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 15px; border-radius: 999px; font-size: .82rem; font-weight: 600; color: #fff;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.24);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  animation: float 6s ease-in-out infinite;
}
.chip i { width: 8px; height: 8px; border-radius: 50%; background: #5fd0ff; box-shadow: 0 0 0 4px rgba(95,208,255,.22); }
.chip.c1 { top: 9%; left: 7%; }
.chip.c2 { top: 22%; right: 6%; animation-delay: 1.5s; }
.chip.c3 { bottom: 31%; left: 5%; animation-delay: 3s; }
.chip.c4 { bottom: 17%; right: 8%; animation-delay: 4.5s; }
.visual-caption { position: absolute; left: 7%; bottom: 6%; font-size: .7rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: #9fc3e2; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@media (prefers-reduced-motion: reduce) { .chip { animation: none; } }

/* Dark section + timeline */
.section.dark {
  border: 0; color: #b3c5d9;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(42,124,180,.35) 0, transparent 60%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--navy);
}
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark .eyebrow { color: #6fd0ff; }
.timeline { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.timeline::before { content: ""; position: absolute; top: 23px; left: 10%; right: 10%; height: 2px; background: var(--grad); opacity: .7; }
.t-step { position: relative; text-align: center; }
.t-num {
  position: relative; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 20px;
  background: var(--navy); border: 2px solid #4fbdf0; color: #fff; font-weight: 700;
  box-shadow: 0 0 0 7px rgba(79,189,240,.13), 0 0 24px rgba(79,189,240,.45);
}
.t-step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.t-step p { font-size: .92rem; margin: 0; }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 26px; }
.tags span { padding: 9px 15px; border-radius: 999px; background: #fff; border: 1px solid #d5e2ee; font-size: .87rem; font-weight: 600; color: var(--ink); }

/* Mission / vision */
.statement-card { position: relative; overflow: hidden; padding: 44px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.statement-card p { font-size: 1.22rem; line-height: 1.55; font-weight: 500; color: var(--ink); margin: 0; }
.statement-card.dark-card {
  border: 0;
  background: linear-gradient(90deg, rgba(12,29,51,.96) 30%, rgba(12,29,51,.35) 100%), url(../img/art-peaks-dark.svg) right -70px top -30px / auto 105% no-repeat, linear-gradient(135deg, #0c1d33, #11325a 70%, #1d5c88);
}
.dark-card p { color: #fff; position: relative; }
.dark-card .eyebrow { color: #6fd0ff; }
.dark-card .icon { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); color: #8fdcff; }

/* CTA card inside grids */
a.card.card-cta { display: flex; flex-direction: column; border: 0; background: linear-gradient(135deg, #0c1d33, #11325a 65%, #1d5c88); color: #b9cbdd; }
.card-cta h3 { color: #fff; font-size: 1.25rem; }
.card-cta .more { margin-top: auto; padding-top: 16px; color: #6fd0ff; }

.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-5 .card { padding: 26px 22px; }

@media (max-width: 1080px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 920px) {
  .topbar { display: none; }
  .float-up { margin-top: -50px; }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: 1fr; gap: 30px; }
  .timeline::before { top: 10px; bottom: 10px; left: 23px; right: auto; width: 2px; height: auto; }
  .t-step { text-align: left; padding-left: 72px; min-height: 48px; }
  .t-num { position: absolute; left: 0; top: 0; margin: 0; }
}
@media (max-width: 640px) {
  .grid-5 { grid-template-columns: 1fr; }
  .statement-card { padding: 30px 26px; }
  .statement-card p { font-size: 1.08rem; }
  .chip { font-size: .74rem; padding: 7px 12px; }
}
.hero::before { bottom: 150px; }

/* ---------- Photos & software section ---------- */
.hero.hero-photo { padding: 84px 0 200px; }
.hero.hero-photo::after { display: none; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.02fr .98fr; gap: 60px; align-items: center; }
.hero-grid .hero-inner > * { max-width: none; }
.hero-media { position: relative; padding: 0 0 46px 46px; }
.hm-main { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 24px; box-shadow: 0 34px 60px -28px rgba(12,29,51,.55); }
.hm-inset { position: absolute; left: 0; bottom: 0; width: 47%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; border: 6px solid #fff; box-shadow: 0 24px 44px -20px rgba(12,29,51,.5); }
.photo-chip { background: rgba(12,29,51,.62); border-color: rgba(255,255,255,.3); }
.hm-chip { top: 18px; right: 18px; }

.photo { position: relative; margin: 0; border-radius: 24px; overflow: hidden; box-shadow: 0 34px 60px -30px rgba(12,29,51,.5); }
.photo img { width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; }
.photo figcaption { left: 16px; bottom: 16px; animation: none; }

.photo-band {
  padding: 110px 0; color: #d5e2ef;
  background: linear-gradient(90deg, rgba(12,29,51,.94) 0%, rgba(12,29,51,.78) 45%, rgba(12,29,51,.3) 100%), url(../img/photos/rwanda-hills.jpg) center 60% / cover no-repeat;
}
.photo-band .container > * { max-width: 640px; }
.photo-band h2 { color: #fff; }
.photo-band .eyebrow { color: #6fd0ff; }
.photo-band p { font-size: 1.08rem; margin-bottom: 28px; }

/* Business software mock-up */
.app-mock { border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid #d9e4ef; box-shadow: 0 34px 60px -28px rgba(12,29,51,.45); }
.am-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #f1f5f9; border-bottom: 1px solid #e0e8f0; }
.am-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.am-bar span { margin-left: 14px; flex: 1; max-width: 260px; padding: 4px 14px; border-radius: 999px; background: #fff; border: 1px solid #e0e8f0; font-size: .72rem; color: var(--muted); }
.am-body { display: grid; grid-template-columns: 64px 1fr; min-height: 340px; }
.am-side { background: var(--navy); padding: 18px 14px; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.am-side b { width: 30px; height: 30px; border-radius: 9px; background: var(--grad); margin-bottom: 8px; }
.am-side span { width: 26px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.18); }
.am-side span.on { background: #5fd0ff; }
.am-main { padding: 22px; display: grid; gap: 18px; background: #fbfdff; }
.am-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.am-tiles div { padding: 14px; border-radius: 12px; background: #fff; border: 1px solid #e3e9f1; }
.am-tiles small { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.am-tiles em { display: block; height: 8px; border-radius: 4px; background: var(--grad); }
.am-chart { display: flex; align-items: flex-end; gap: 10px; height: 120px; padding: 16px; border-radius: 12px; background: #fff; border: 1px solid #e3e9f1; }
.am-chart i { flex: 1; border-radius: 5px 5px 0 0; background: linear-gradient(180deg, var(--cyan), var(--blue)); opacity: .85; }
.am-rows { display: grid; gap: 8px; }
.am-rows div { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; border-radius: 10px; background: #fff; border: 1px solid #e3e9f1; }
.am-rows u { height: 8px; border-radius: 4px; background: #dbe4ee; text-decoration: none; }
.am-rows s { text-decoration: none; font-size: .68rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #fff4de; color: #9a6a00; }
.am-rows s.ok { background: #e3f6ec; color: #1a7f4b; }

.credits ul { list-style: none; display: grid; gap: 16px; max-width: 820px; }
.credits li { padding: 18px 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-alt); }

@media (max-width: 920px) {
  .hero.hero-photo { padding: 56px 0 110px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .photo-band { padding: 76px 0; background-position: center, 70% 60%; }
}
@media (max-width: 640px) {
  .hero.hero-photo { padding: 44px 0 100px; }
  .hero-media { padding: 0 0 34px 26px; }
  .am-body { min-height: 0; grid-template-columns: 48px 1fr; }
  .am-main { padding: 14px; }
}
.hm-main, .hm-inset { height: auto; }
.hero.hero-photo::before { opacity: .28; }

/* Social link */
.social { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; padding: 9px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); color: #d3e3f2; font-weight: 600; font-size: .88rem; transition: background .2s, border-color .2s; }
.social:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); color: #fff; }
.social svg { width: 18px; height: 18px; }

/* ---------- Responsive refinements ---------- */
h1, h2, h3 { text-wrap: balance; }
.container { padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.section { padding: clamp(56px, 8vw, 92px) 0; }
[id] { scroll-margin-top: 96px; }
.nav-toggle.open { color: var(--blue); }

/* Don't lift cards on touch screens, where hover sticks after a tap */
@media (hover: none) {
  .card:hover, .btn:hover { transform: none; }
  .card:hover { box-shadow: none; }
  .service-cards .card:hover { box-shadow: 0 24px 50px -24px rgba(12,29,51,.28); }
}

/* Very wide screens */
@media (min-width: 1600px) {
  :root { --max: 1280px; }
  body { font-size: 18px; }
}

/* Small laptops and landscape tablets */
@media (max-width: 1180px) {
  .page-hero::after { opacity: .5; background-size: auto 100%; background-position: right -140px center; }
  .page-hero h1, .page-hero .lead { max-width: min(620px, 62%); }
  .hero-grid { gap: 40px; }
  .hero-points { gap: 10px 20px; }
  .cta { padding: 52px 44px; }
  .split { gap: 44px; }
}
@media (max-width: 1080px) {
  .timeline { gap: 14px; }
  .t-step p { font-size: .88rem; }
}

/* Tablets */
@media (max-width: 920px) {
  .nav { height: 66px; }
  .nav-links { top: 66px; max-height: calc(100vh - 66px); max-height: calc(100dvh - 66px); overflow-y: auto; }
  .nav-links a { padding: 14px 8px; font-size: 1rem; }
  .nav-toggle { min-width: 44px; min-height: 44px; display: grid; place-items: center; }
  .page-hero::after { opacity: .16; background-position: right -60px center; }
  .page-hero h1, .page-hero .lead { max-width: none; }
  .hero-media { max-width: 620px; }
  .photo img { aspect-ratio: 16 / 9; }
  .visual { aspect-ratio: 16 / 10; }
  .app-mock { max-width: 640px; }
  .photo-band { background-image: linear-gradient(90deg, rgba(12,29,51,.94) 0%, rgba(12,29,51,.8) 55%, rgba(12,29,51,.5) 100%), url(../img/photos/rwanda-hills-900.jpg); }
  .section-head { margin-bottom: 36px; }
  .footer-grid { gap: 32px 24px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

/* Phones */
@media (max-width: 640px) {
  .brand img { height: 32px; }
  h1 { font-size: clamp(1.95rem, 8.4vw, 2.4rem); }
  h2 { font-size: clamp(1.5rem, 6.4vw, 1.8rem); }
  .lead { font-size: 1.04rem; }
  .eyebrow { font-size: .72rem; letter-spacing: .14em; }

  /* Compact cards: icon beside the title to shorten the page */
  .card { padding: 22px 20px; }
  .feature-cards .card:not(.card-cta), .service-cards .card, .audience .card {
    display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: center;
  }
  .feature-cards .card .icon, .service-cards .card .icon, .audience .card .icon { width: 44px; height: 44px; margin: 0; border-radius: 11px; }
  .feature-cards .card .icon svg, .service-cards .card .icon svg { width: 22px; height: 22px; }
  .feature-cards .card:not(.card-cta) h3, .service-cards .card h3 { margin: 0; font-size: 1.04rem; }
  .feature-cards .card:not(.card-cta) p, .service-cards .card p, .service-cards .card .more { grid-column: 1 / -1; margin-top: 12px; }
  .service-cards .card .more { padding-top: 0; }
  .grid { gap: 14px; }
  .service-item { padding: 18px; }
  .service-items { gap: 12px; }
  .service-block { padding: 48px 0; }

  /* Full-width, thumb-friendly buttons */
  .btn { min-height: 48px; justify-content: center; }
  .btn-row { gap: 10px; }
  .btn-row .btn { flex: 1 1 100%; }
  .pill-nav a { padding: 10px 16px; }

  /* 16px inputs stop iOS zooming in on focus */
  .field input, .field select, .field textarea { font-size: 16px; padding: 13px 14px; }
  .form .btn { width: 100%; }

  .hero-points { gap: 8px 18px; margin-top: 26px; }
  .hero-points li { font-size: .86rem; }
  .cta { padding: 36px 24px; border-radius: 18px; background-size: auto 90%, auto; background-position: right -120px bottom, center; }
  .photo-band { padding: 60px 0; }
  .photo-band p { font-size: 1rem; }
  .tags span { font-size: .82rem; padding: 8px 13px; }
  .faq summary { padding: 16px 48px 16px 18px; }
  .faq summary::after { right: 18px; }
  .faq details p { padding: 0 18px 18px; }
  .am-tiles { gap: 8px; }
  .am-tiles div { padding: 10px; }
  .am-chart { height: 90px; gap: 6px; padding: 12px; }

  /* Footer: link lists side by side */
  .site-footer { padding: 48px 0 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
  .footer-bottom { margin-top: 36px; flex-direction: column; }
}

/* Small phones */
@media (max-width: 360px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .hm-chip { top: 12px; right: 12px; }
  .chip { font-size: .7rem; padding: 6px 10px; }
}

/* Short landscape phones: keep the sticky header from eating the screen */
@media (max-height: 480px) and (orientation: landscape) {
  .site-header { position: static; }
}
