/* ============================================================
   Dinan Solutions — modern static site
   Hand-authored CSS. No framework, no build step.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --bg: #ffffff;
  --surface: #f6f8fc;
  --surface-2: #eef2fa;
  --ink: #0b1020;
  --ink-soft: #4a5269;
  --ink-faint: #7b8298;
  --line: #e4e8f2;
  --brand: #4f46e5;
  --brand-strong: #4338ca;
  --brand-2: #7c3aed;
  --accent: #06b6d4;
  --dark: #0a0d1f;
  --dark-2: #141232;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(11, 16, 32, .06), 0 4px 14px rgba(11, 16, 32, .05);
  --shadow-md: 0 10px 30px rgba(11, 16, 32, .10);
  --shadow-lg: 0 24px 60px rgba(11, 16, 32, .18);
  --maxw: 1180px;
  --nav-h: 72px;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Space Grotesk", var(--font-sans);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-strong); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; color: var(--ink); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding: 96px 0; }
.section--tight { padding: 72px 0; }
.section--dark { background: var(--dark); color: #c9cfe2; position: relative; overflow: hidden; }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--surface { background: var(--surface); }
.eyebrow {
  display: inline-block; font-family: var(--font-display); font-weight: 600;
  font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px;
}
.section--dark .eyebrow { color: #a5b4fc; }
.section-head { max-width: 740px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.section-head p { font-size: 1.08rem; color: var(--ink-soft); margin: 0; }
.section--dark .section-head p { color: #aeb6cf; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  padding: 13px 26px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap; line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 22px rgba(79, 70, 229, .32); }
.btn-primary:hover { background: var(--brand-strong); color: #fff; box-shadow: 0 12px 30px rgba(79, 70, 229, .42); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { color: var(--ink); border-color: var(--brand); background: var(--surface); }
.btn-on-dark { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.28); }
.btn-on-dark:hover { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.55); }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 1000;
  background: rgba(255, 255, 255, .82); backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s ease, box-shadow .25s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav__brand { display: inline-flex; align-items: center; }
.nav__brand img { height: 30px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav__links a {
  font-family: var(--font-display); font-weight: 500; font-size: .95rem; color: var(--ink-soft);
  padding: 9px 14px; border-radius: 999px; transition: color .18s ease, background .18s ease;
}
.nav__links a:hover { color: var(--ink); background: var(--surface-2); }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav__toggle span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #e8ebf7;
  padding: calc(var(--nav-h) + 96px) 0 110px;
  background:
    radial-gradient(1100px 540px at 78% -8%, rgba(124, 58, 237, .42), transparent 60%),
    radial-gradient(900px 540px at 8% 12%, rgba(6, 182, 212, .26), transparent 55%),
    linear-gradient(165deg, #0a0d1f 0%, #141232 55%, #1c1546 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(900px 600px at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(900px 600px at 50% 0%, #000 30%, transparent 80%);
}
.hero__inner { position: relative; z-index: 1; max-width: 920px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px 7px 7px;
  border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  font-size: .85rem; color: #d7dcf0; margin-bottom: 26px; backdrop-filter: blur(6px);
}
.hero__badge b { color: #fff; font-weight: 600; }
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.2); }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: -.02em; margin-bottom: 22px; }
.hero h1 .grad {
  background: linear-gradient(100deg, #a5b4fc 0%, #c4b5fd 40%, #67e8f9 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { font-size: clamp(1.05rem, 2.2vw, 1.32rem); color: #b9c0db; max-width: 660px; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__partner { display: flex; align-items: center; gap: 16px; margin-top: 52px; }
.hero__partner img { height: 52px; width: auto; opacity: .95; }
.hero__partner span { font-size: .9rem; color: #9aa2c2; max-width: 220px; line-height: 1.4; }
.hero__partner .divider { width: 1px; height: 40px; background: rgba(255,255,255,.16); }

/* ---------- Logos / trust strip ---------- */
.trust { border-bottom: 1px solid var(--line); background: #fff; }
.trust__inner { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; justify-content: center; padding: 26px 0; }
.trust__label { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); font-family: var(--font-display); font-weight: 600; }
.trust__items { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: .9rem; color: var(--ink-soft); font-weight: 500;
}
.pill svg { width: 16px; height: 16px; color: var(--brand); }

/* ---------- Zarvx flagship ---------- */
.flagship__top { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; margin-bottom: 60px; }
.flagship__copy h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
.flagship__copy .lead { margin-bottom: 26px; }
.flagship__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.zarvx-card {
  position: relative; border-radius: 24px; padding: 40px; color: #e9ecfa; overflow: hidden;
  background: radial-gradient(600px 300px at 110% -20%, rgba(124,58,237,.55), transparent 60%), linear-gradient(160deg, #141232, #0a0d1f);
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.08);
}
.zarvx-card__wordmark { font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; letter-spacing: -.02em; color: #fff; margin-bottom: 6px; }
.zarvx-card__wordmark span { color: #a5b4fc; }
.zarvx-card__tag { font-size: .9rem; color: #aeb6cf; margin-bottom: 26px; }
.zarvx-card__list { list-style: none; display: grid; gap: 14px; }
.zarvx-card__list li { display: flex; gap: 12px; align-items: flex-start; font-size: .98rem; color: #cfd5ec; }
.zarvx-card__list svg { width: 20px; height: 20px; flex: none; color: #67e8f9; margin-top: 1px; }
.cap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.cap {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cap:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cdd4ea; }
.cap__icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(160deg, rgba(79,70,229,.14), rgba(124,58,237,.14)); color: var(--brand);
}
.cap__icon svg { width: 24px; height: 24px; }
.cap h3 { font-size: 1.18rem; margin-bottom: 8px; }
.cap p { font-size: .96rem; color: var(--ink-soft); margin: 0; }

/* ---------- Services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.svc {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; position: relative;
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cdd4ea; }
.svc__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; background: var(--surface-2); color: var(--brand-2); }
.svc__icon svg { width: 24px; height: 24px; }
.svc h3 { font-size: 1.1rem; margin-bottom: 8px; }
.svc p { font-size: .92rem; color: var(--ink-soft); margin: 0; }
.svc .tag { position: absolute; top: 18px; right: 18px; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }

/* ---------- Why / proof ---------- */
.proof__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.proof__points { list-style: none; display: grid; gap: 22px; }
.proof__points li { display: flex; gap: 16px; align-items: flex-start; }
.proof__points .ic { width: 42px; height: 42px; border-radius: 11px; flex: none; display: grid; place-items: center; background: rgba(124,58,237,.16); color: #c4b5fd; }
.proof__points .ic svg { width: 22px; height: 22px; }
.proof__points h3 { font-size: 1.12rem; margin-bottom: 4px; color: #fff; }
.proof__points p { margin: 0; font-size: .96rem; color: #aeb6cf; }
.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.stat { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 26px; }
.stat b { display: block; font-family: var(--font-display); font-size: 2.1rem; color: #fff; letter-spacing: -.02em; line-height: 1; margin-bottom: 8px; }
.stat span { font-size: .9rem; color: #aeb6cf; }
.tech-row { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px; }
.tech-row .pill { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); color: #cfd5ec; }
.tech-row .pill svg { color: #67e8f9; }
.proof__partner { display: inline-flex; align-items: center; gap: 14px; margin-top: 34px; padding: 14px 20px; border-radius: var(--radius); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); }
.proof__partner img { height: 46px; }
.proof__partner span { font-size: .88rem; color: #aeb6cf; max-width: 200px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 22px;
  box-shadow: var(--shadow-sm); transition: border-color .2s ease;
}
.faq details[open] { border-color: #cdd4ea; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0; font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--brand); transition: transform .25s ease; }
.faq details[open] summary .chev { transform: rotate(45deg); }
.faq summary .chev svg { width: 16px; height: 16px; }
.faq .faq__body { padding: 0 0 20px; color: var(--ink-soft); font-size: 1rem; }
.faq .faq__body p { margin: 0; }
.faq .faq__body a { font-weight: 600; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact__info h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.contact__info .lead { margin-bottom: 30px; }
.contact__list { list-style: none; display: grid; gap: 18px; margin-bottom: 30px; }
.contact__list li { display: flex; gap: 14px; align-items: center; }
.contact__list .ic { width: 44px; height: 44px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--surface-2); color: var(--brand); }
.contact__list .ic svg { width: 22px; height: 22px; }
.contact__list a, .contact__list span { color: var(--ink); font-weight: 500; }
.contact__list small { display: block; color: var(--ink-faint); font-weight: 400; font-size: .82rem; }
.socials { display: flex; gap: 12px; }
.socials a { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-soft); border: 1px solid var(--line); transition: background .18s ease, color .18s ease, transform .18s ease; }
.socials a:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }
.socials svg { width: 20px; height: 20px; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow-md); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-display); font-weight: 600; font-size: .9rem; margin-bottom: 7px; color: var(--ink); }
.field label .req { color: var(--brand); }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; font-size: 1rem;
  color: var(--ink); background: var(--surface); transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(79,70,229,.12); }
.field textarea { min-height: 132px; resize: vertical; }
.g-recaptcha { margin-bottom: 18px; }
.form-msg { display: none; padding: 14px 16px; border-radius: 12px; font-size: .95rem; margin-bottom: 18px; }
.form-msg.is-visible { display: block; }
.form-msg--ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.form-msg--err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.form-card .btn { width: 100%; }
.form-note { font-size: .82rem; color: var(--ink-faint); margin: 14px 0 0; text-align: center; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: #aeb6cf; padding: 64px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer__brand img { height: 30px; width: auto; filter: brightness(0) invert(1); margin-bottom: 18px; }
.footer__brand p { font-size: .95rem; color: #9aa2c2; max-width: 280px; margin: 0 0 18px; }
.footer__col h4 { font-family: var(--font-display); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer__col ul { list-style: none; display: grid; gap: 11px; }
.footer__col a { color: #aeb6cf; font-size: .95rem; transition: color .18s ease; }
.footer__col a:hover { color: #fff; }
.footer__bar { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.footer__bar p { margin: 0; font-size: .9rem; color: #8189a8; }
.footer__bar .footer__socials { display: flex; gap: 14px; }
.footer__bar .footer__socials a { color: #8189a8; display: grid; place-items: center; }
.footer__bar .footer__socials a:hover { color: #fff; }
.footer__bar .footer__socials svg { width: 18px; height: 18px; }

/* ---------- Reveal animation (progressive enhancement) ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .flagship__top { grid-template-columns: 1fr; gap: 36px; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .proof__grid { grid-template-columns: 1fr; gap: 40px; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .nav__links, .nav__cta .btn-ghost { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav.is-open .nav__links {
    display: flex; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 2px; background: #fff; padding: 14px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
  }
  .nav.is-open .nav__links a { padding: 13px 16px; }
  .cap-grid, .svc-grid, .stat-row, .footer__grid { grid-template-columns: 1fr; }
  .hero__partner { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .cap:hover, .svc:hover { transform: none; }
}

/* ============================================================
   === About / Team ===
   Append-only block. Does not modify any rules above this line.
   ============================================================ */

/* Active nav link — highlights the current page link in cross-page navigation */
.nav__links a[aria-current="page"] {
  color: var(--ink);
  background: var(--surface-2);
}

/* Compact page-hero — reduced top/bottom padding for inner pages */
.hero--compact {
  padding: calc(var(--nav-h) + 60px) 0 72px;
}

/* --- About story — two-column layout (copy left, highlights card right) --- */
.about-story__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: start;
}
.about-story__copy h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-bottom: 22px;
}
.about-story__copy p {
  font-size: 1.06rem;
  color: var(--ink-soft);
  max-width: 580px;
  margin-bottom: 1.15em;
}
.about-story__copy p:last-of-type {
  margin-bottom: 0;
}
.about-story__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Highlights card (dark) — mirrors the zarvx-card aesthetic */
.about-card {
  position: relative;
  border-radius: 24px;
  padding: 36px 40px;
  color: #e9ecfa;
  overflow: hidden;
  background:
    radial-gradient(600px 300px at 110% -20%, rgba(124,58,237,.5), transparent 60%),
    linear-gradient(160deg, #141232, #0a0d1f);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.08);
}
.about-card__heading {
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #a5b4fc;
  margin-bottom: 20px;
}
.about-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}
.about-card__list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .97rem;
  color: #cfd5ec;
  line-height: 1.45;
}
.about-card__list svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: #67e8f9;
  margin-top: 1px;
}
.about-card__partner {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.10);
}
.about-card__partner img {
  height: 44px;
  width: auto;
  opacity: .88;
}

/* --- Team grid — auto-flow so adding members reflows cleanly --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
  gap: 56px 40px;
  justify-content: center;
}

/* Team member card — no border, no background so fade truly blends into the section */
.team-member {
  background: transparent;
  border: 0;
  max-width: 360px;
  width: 100%;
  text-align: center;
}

/* Photo + monogram container — relative so the absolute photo is scoped here.
   Height is established by the in-flow .team-monogram (aspect-ratio 4/5). */
.team-photo-wrap {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin: 0 auto 28px;
}

/* Monogram fallback — renders the same shape and feathered mask as the real photo.
   Always visible; hidden behind the <img> once the real portrait loads.
   onerror="this.style.display='none'" on the <img> keeps the monogram visible
   when no photo file exists yet.  Drop images/team/peyman.jpg to replace it. */
.team-monogram {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 50% 62%, rgba(124,58,237,.40) 0%, transparent 68%),
    linear-gradient(160deg, #141232 0%, #0a0d1f 100%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(5rem, 13vw, 7.5rem);
  color: rgba(165, 180, 252, .68);
  letter-spacing: -.03em;
  line-height: 1;
  /* Feathered borderless fade — same mask as .team-photo below */
  -webkit-mask-image: radial-gradient(ellipse 72% 82% at 50% 38%, #000 52%, transparent 100%);
          mask-image: radial-gradient(ellipse 72% 82% at 50% 38%, #000 52%, transparent 100%);
}

/* Real portrait — absolutely layered over the monogram, identical feathered mask.
   The portrait dissolves into the section background at its edges with no border
   and no hard rectangle — the mask drives the fade, not a clip-path or border-radius. */
.team-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border: 0;
  display: block;
  /* Starting point per design spec (tune ellipse values to the actual portrait):
     radial gradient centred slightly above midpoint so the face/shoulders stay
     fully opaque and the edges + lower body fade to transparent. */
  -webkit-mask-image: radial-gradient(ellipse 72% 82% at 50% 38%, #000 52%, transparent 100%);
          mask-image: radial-gradient(ellipse 72% 82% at 50% 38%, #000 52%, transparent 100%);
  transition: filter .35s ease;
}

/* Team member text */
.team-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin-bottom: 6px;
}
.team-role {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 16px;
}
.section--dark .team-role { color: #a5b4fc; }

.team-bio {
  font-size: .97rem;
  color: var(--ink-soft);
  line-height: 1.7;
  text-align: left;
  margin-bottom: 20px;
}
.section--dark .team-bio { color: #aeb6cf; }

.team-tagline {
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
  text-align: left;
  margin: 0 0 12px;
}
.section--dark .team-tagline { color: #e9edff; }

/* Contact chips (email / social links beneath the bio) */
.team-contact {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.team-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .85rem;
  color: var(--ink-soft);
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.team-chip:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(79,70,229,.05);
}
.team-chip svg { width: 16px; height: 16px; flex: none; }

/* Dark-section chip variant */
.section--dark .team-chip {
  border-color: rgba(255,255,255,.18);
  color: #cfd5ec;
  background: transparent;
}
.section--dark .team-chip:hover {
  border-color: #a5b4fc;
  color: #a5b4fc;
  background: rgba(165,180,252,.08);
}

/* --- About / Team responsive --- */
@media (max-width: 960px) {
  .about-story__grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 720px) {
  .hero--compact { padding: calc(var(--nav-h) + 44px) 0 56px; }
  .team-grid { grid-template-columns: 1fr; max-width: 340px; margin-inline: auto; }
}

/* ============================================================
   === Differentiation Messaging (added 2026-06-25) ===
   Append-only block. Does not modify any rules above this line.
   ============================================================ */

/* ----- MIT stat credibility band ----- */
.stat-band {
  background:
    radial-gradient(800px 400px at 0% 60%, rgba(79,70,229,.22), transparent 60%),
    linear-gradient(160deg, #141232, #0a0d1f);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 44px 52px;
  margin-bottom: 80px;
  overflow: hidden;
  position: relative;
}
.stat-band__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 52px;
  align-items: center;
}
.stat-band__stat {
  text-align: center;
  flex: none;
  min-width: 160px;
}
.stat-band__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 9vw, 7.5rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
  background: linear-gradient(110deg, #a5b4fc 0%, #c4b5fd 50%, #67e8f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-band__label {
  display: block;
  font-size: .88rem;
  color: #9aa2c2;
  margin-top: 6px;
  line-height: 1.45;
}
.stat-band__copy h3 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  color: #fff;
  margin-bottom: 14px;
}
.stat-band__copy p {
  font-size: 1rem;
  color: #aeb6cf;
  max-width: 620px;
  margin-bottom: .8em;
  line-height: 1.65;
}
.stat-band__copy p:last-child { margin-bottom: 0; }
.stat-band__copy strong { color: #e2e6f5; font-weight: 600; }
.stat-band__cite {
  font-size: .87rem !important;
  color: #7b84a8 !important;
  font-style: normal;
}
.stat-band__cite a {
  color: #a5b4fc;
  text-decoration: underline;
  text-decoration-color: rgba(165,180,252,.4);
  text-underline-offset: 2px;
  transition: color .18s ease;
}
.stat-band__cite a:hover { color: #c4b5fd; text-decoration-color: rgba(196,181,253,.6); }

/* ----- Approach section heading nudge (extra top margin from stat band) ----- */
.approach-head {
  margin-top: 0;
}

/* ----- Approach 4-step grid ----- */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}
.approach-step {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.approach-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cdd4ea;
}
.approach-step__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.6rem;
  letter-spacing: -.06em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--line);
  margin-bottom: 18px;
  user-select: none;
}
.approach-step h3 {
  font-size: 1.18rem;
  margin-bottom: 10px;
  color: var(--ink);
}
.approach-step p {
  font-size: .97rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.65;
}
.approach-step a {
  color: var(--brand);
  font-weight: 600;
}
.approach-step a:hover { color: var(--brand-strong); }

/* ----- Contrast table (dark card) ----- */
.contrast-wrap {
  background:
    radial-gradient(700px 350px at 100% 0%, rgba(124,58,237,.22), transparent 55%),
    linear-gradient(160deg, #141232, #0a0d1f);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 48px 52px;
  color: #c9cfe2;
  overflow: hidden;
}
.contrast-wrap__heading {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  color: #fff;
  text-align: center;
  margin-bottom: 36px;
}
.contrast-table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.contrast-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .98rem;
  min-width: 480px;
}
.contrast-table thead tr {
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.contrast-table th {
  padding: 12px 20px 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-align: left;
}
.contrast-table th:first-child {
  color: #7b84a8;
  width: 50%;
}
.contrast-table th:last-child {
  color: #a5b4fc;
  width: 50%;
}
.contrast-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: background .15s ease;
}
.contrast-table tbody tr:last-child { border-bottom: 0; }
.contrast-table tbody tr:hover { background: rgba(255,255,255,.04); }
.contrast-table td {
  padding: 15px 20px;
  vertical-align: middle;
  line-height: 1.5;
}
.contrast-table td:first-child { color: #7b84a8; }
.contrast-table td:last-child { color: #e2e6f5; }
.contrast-table td em { font-style: italic; color: inherit; }
.contrast-x,
.contrast-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: .7rem;
  font-weight: 700;
  margin-right: 8px;
  flex: none;
  vertical-align: middle;
  position: relative;
  top: -1px;
}
.contrast-x {
  background: rgba(239,68,68,.15);
  color: #f87171;
  border: 1px solid rgba(239,68,68,.25);
}
.contrast-check {
  background: rgba(52,211,153,.15);
  color: #34d399;
  border: 1px solid rgba(52,211,153,.25);
}

/* ----- Messaging pillars (in #why dark section) ----- */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}
.pillar {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .2s ease, background .2s ease;
}
.pillar:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.18);
}
.pillar h3 {
  font-size: 1.06rem;
  color: #fff;
  margin-bottom: 10px;
}
.pillar p {
  font-size: .92rem;
  color: #aeb6cf;
  margin: 0;
  line-height: 1.62;
}

/* ----- Trust & Security strip (inside #why dark section) ----- */
.trust-security {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 20px;
  padding: 40px 48px;
  margin-top: 48px;
}
.trust-security__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.trust-security__text h3 {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  color: #fff;
  margin-bottom: 12px;
}
.trust-security__text p {
  font-size: .97rem;
  color: #aeb6cf;
  max-width: 620px;
  margin: 0;
  line-height: 1.65;
}
.trust-security__partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  flex: none;
}
.trust-security__partner img {
  height: 52px;
  width: auto;
  opacity: .88;
}
.trust-security__partner span {
  font-size: .82rem;
  color: #9aa2c2;
  max-width: 140px;
  line-height: 1.4;
}

/* ----- Differentiation responsive ----- */
@media (max-width: 960px) {
  .stat-band { padding: 32px 32px; }
  .stat-band__inner { grid-template-columns: 1fr; gap: 28px; }
  .stat-band__stat { text-align: left; display: flex; align-items: center; gap: 20px; }
  .stat-band__label { margin-top: 0; }
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-security__inner { grid-template-columns: 1fr; gap: 28px; }
  .trust-security__partner { flex-direction: row; justify-content: flex-start; }
  .contrast-wrap { padding: 36px 32px; }
}
@media (max-width: 720px) {
  .stat-band { padding: 24px 20px; margin-bottom: 52px; }
  .stat-band__stat { flex-direction: column; align-items: flex-start; gap: 4px; }
  .approach-grid { grid-template-columns: 1fr; }
  .contrast-wrap { padding: 28px 20px; }
  .pillar-grid { grid-template-columns: 1fr; }
  .trust-security { padding: 28px 20px; margin-top: 32px; }
}

/* ============================================================
   === WS-DINAN Polish (added 2026-06-27) ===
   Append-only block. Does not modify any rules above this line.
   ============================================================ */

/* ----- Industries chip row (inside Approach section) ----- */
.industries-row {
  text-align: center;
  margin-bottom: 48px;
}
.industries-row .eyebrow {
  display: block;
  margin-bottom: 12px;
}
.industries-row .trust__items {
  margin-bottom: 14px;
}
.industries-caption {
  font-size: .95rem;
  color: var(--ink-soft);
  margin: 0;
}

/* ----- Early-access chip (dark-background contexts: zarvx-card, about-card) ----- */
.ea-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
  font-size: .78rem;
  color: #d7dcf0;
  margin-bottom: 12px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.ea-chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52,211,153,.2);
  flex: none;
}

/* ----- Time-saving stat band (3-column trio variant) ----- */
.stat-band--trio {
  margin-bottom: 0; /* override default 80px — it's the only element in its section */
}
.stat-band--trio .stat-band__inner {
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  align-items: start;
}
.stat-band--trio .stat-band__stat {
  text-align: center;
  min-width: 0;
  /* override the flex layout applied at 960px in the base responsive block */
  display: block;
}
.stat-band--trio .stat-band__num {
  /* narrower columns need a smaller number */
  font-size: clamp(2.8rem, 5vw, 4rem);
}
.stat-band__closing {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 1rem;
  color: #e2e6f5;
  font-weight: 600;
  margin: 28px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
}

/* ----- Light-background small monogram circles (home team teaser) ----- */
.team-monogram--sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--brand), var(--brand-2));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -.02em;
  flex: none;
  box-shadow: 0 4px 14px rgba(79,70,229,.28);
  border: 2.5px solid var(--surface); /* matches section bg → creates separation between overlapping circles */
}

/* ----- Home team teaser (light-background compact block) ----- */
.team-teaser {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}
.team-teaser__avatars {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}
.team-teaser__avatars .team-monogram--sm + .team-monogram--sm {
  margin-left: -10px;
}
.team-teaser h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin-bottom: 16px;
}
.team-teaser p {
  color: var(--ink-soft);
  margin-bottom: 26px;
}

/* ----- About page: "why we started" founder narrative ----- */
.why-started {
  max-width: 740px;
  margin-inline: auto;
  text-align: center;
}
.why-started h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-bottom: 20px;
}
.why-started p {
  font-size: 1.06rem;
  color: var(--ink-soft);
  margin-bottom: 1.15em;
}
.why-started p:last-of-type {
  margin-bottom: 0;
}

/* ----- Values chips (below why-started narrative on About page) ----- */
.values-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

/* ----- About page: Zarvx early-access note (inside dark about-card) ----- */
.about-ea-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: #9aa2c2;
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.10);
}
.about-ea-note .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52,211,153,.2);
  flex: none;
}
.about-ea-note a {
  color: #a5b4fc;
  font-weight: 600;
}
.about-ea-note a:hover { color: #c4b5fd; }

/* ----- WS-DINAN responsive additions ----- */
@media (max-width: 960px) {
  .stat-band--trio .stat-band__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .stat-band--trio .stat-band__stat {
    /* keep block layout — override base stat-band__stat flex at this breakpoint */
    display: block;
    text-align: center;
  }
  .stat-band--trio .stat-band__label {
    margin-top: 6px; /* restore from base responsive reset */
  }
}
@media (max-width: 720px) {
  .stat-band--trio .stat-band__inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .stat-band--trio .stat-band__stat {
    text-align: left;
  }
}
/* Reduced-motion: all new reveal elements are already covered by the existing
   .reveal rule above. No new motion is introduced beyond existing patterns. */
