:root {
  /* soft paper and indigo ink */
  --ink: #0a1a33;
  --ink-2: #14284f;
  --ink-soft: #3d5078;
  --paper: #eeedeb;
  --paper-2: #e7e6e3;
  --tint: #e1e6ef; /* paper with a hint of indigo, for gentle section changes */
  --surface: #f7f6f4;
  --line: #d3d6dc;
  --text: #0a1a33;
  --body: #2c3a55;
  --muted: #5d6a82;
  --on-dark: #eef1f7;
  --on-dark-muted: #b4bfd3;
  --blue: #3d5078;
  --violet: #3d5078;
  --green: #3d5078;
  --amber: #3d5078;
  --radius: 10px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Jost', 'Avenir Next', 'Gill Sans', system-ui, sans-serif; font-weight: 400; color: var(--body); background: var(--paper); line-height: 1.7; font-size: 18px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: 'Jost', 'Avenir Next', 'Gill Sans', system-ui, sans-serif; font-weight: 300; color: var(--ink); line-height: 1.1; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.8rem, 7vw, 6rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h3 { font-size: 1.35rem; font-weight: 400; letter-spacing: 0; line-height: 1.25; }
p { margin: 0 0 1.1em; }
strong { font-weight: 500; color: var(--ink); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 780px; }
.band { padding: clamp(72px, 10vw, 140px) 0; }
.soft { background: var(--paper-2); }
.tint { background: var(--tint); }
.lead { font-size: 1.3rem; font-weight: 300; color: var(--muted); }
.eyebrow { display: inline-block; font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 400; color: var(--muted); margin-bottom: 1.4rem; }
.center { text-align: center; }
.center .narrow { margin-left: auto; margin-right: auto; }

/* deep indigo bands, used sparingly */
.dark { background: var(--ink-2); color: var(--on-dark); }
.dark p, .dark .lead { color: var(--on-dark-muted); }
.dark h1, .dark h2, .dark h3, .dark strong { color: #fff; }
.dark .eyebrow { color: #9fb0cf; }

/* nav */
header.top { position: absolute; inset: 0 0 auto 0; z-index: 10; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 92px; }
.brand { display: block; text-decoration: none; }
.brand img { height: 42px; width: auto; filter: brightness(0) opacity(.92); }
nav.main { display: flex; gap: 34px; align-items: center; }
nav.main a { color: var(--ink); text-decoration: none; font-weight: 400; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; }
nav.main a:hover { text-decoration: underline; text-underline-offset: 6px; }
.btn { display: inline-block; padding: 18px 34px; border-radius: 5px; background: var(--ink); color: #fff !important; font-weight: 400; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--ink); transition: background .2s, color .2s; }
.btn:hover { background: var(--ink-2); }
nav.main .btn { padding: 12px 24px; }
.btn.ghost { background: transparent; color: var(--ink) !important; border: 1px solid var(--ink); }
.btn.ghost:hover { background: rgba(10,26,51,.06); }
.dark .btn { background: #fff; color: var(--ink) !important; border-color: #fff; }
.dark .btn.ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.6); }
.actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 2.4rem; }
.center .actions { justify-content: center; }
.center .sub { max-width: none; }

/* hero: paper with a drift of ink */
.hero { position: relative; min-height: min(100vh, 860px); display: flex; align-items: center; overflow: hidden; background: var(--paper); color: var(--body); }
.hero::before { content: ""; position: absolute; inset: 0 0 0 46%; background: url("../images/ink-hero.webp") 35% center / cover no-repeat; mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 35%); mask-image: linear-gradient(to right, transparent 0, #000 35%); }
.hero .wrap { position: relative; padding-top: 130px; padding-bottom: 90px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.05fr); align-items: center; gap: 40px; }
.hero-emblem { width: 100%; max-width: 680px; height: auto; justify-self: center; }
.hero h1 { color: var(--ink); max-width: 18ch; font-size: clamp(2.2rem, 4.8vw, 4.2rem); }
.hero .sub { font-size: clamp(1.2rem, 2.2vw, 1.7rem); font-weight: 300; color: var(--ink); margin-bottom: 1.2rem; max-width: 30ch; }
.hero p.lead { color: var(--muted); max-width: 46ch; }

/* full width graphics */
.bleed { width: 100%; }
.stage { background: transparent; padding: clamp(24px, 4vw, 56px) 0; }
figure { margin: 0; }
figcaption { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); text-align: center; margin-top: 1rem; }
.dark figcaption { color: var(--on-dark-muted); }
.dark .sub { color: var(--on-dark); }

/* grids and cards */
.grid { display: grid; gap: 22px; }
.g4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: var(--surface); border-radius: var(--radius); padding: 30px; border: 1px solid var(--line); }
.dark .card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.card h3 { margin-bottom: .4em; }
.card p { margin: 0; color: var(--muted); font-size: 1rem; }
.dark .card p { color: var(--on-dark-muted); }
.value { border-top: 1px solid var(--line); }
.value h3 { color: var(--ink); }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.split.flip { grid-template-columns: .9fr 1.1fr; }

/* inline SVG artwork (fonts come from the page) */
svg.art { display: block; width: 100%; height: auto; }
svg.art .h { font-family: 'Jost', 'Avenir Next', system-ui, sans-serif; font-weight: 500; }
svg.art .m { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 500; }
svg.art .b { font-family: 'Jost', 'Avenir Next', system-ui, sans-serif; }
svg.pie .b { font-weight: 400; fill: var(--ink); }
svg.pie > rect:first-of-type { fill: none; }
svg.pie path { stroke: var(--paper); }
svg.pie circle { stroke: var(--paper); }
svg.pie polyline { stroke: #aeb6c6; }
.stage svg.art { margin: 0 auto; width: min(100%, 1600px); }
.stage svg.tree { filter: saturate(.55); }
svg.tree > rect:first-of-type { fill: none; }
.phone svg.art { margin: 0 auto; width: min(100%, 420px); filter: drop-shadow(0 24px 40px rgba(0,0,0,.28)); }
.chats svg.art { filter: drop-shadow(0 12px 26px rgba(10,26,51,.14)) saturate(.8); }

.modes { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 14px; }
.modes li { padding: 20px 24px; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: var(--on-dark-muted); }
.modes li strong { display: block; color: #fff; }

.chats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; align-items: start; }

.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.features li { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.features h3 { color: var(--ink); margin-bottom: .35em; }
.features li:has(.fi) { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; row-gap: 10px; }
.features li:has(.fi) h3 { margin: 0; }
.features li:has(.fi) p { grid-column: 1 / -1; }
.features .fi { display: block; width: 30px; height: 30px; color: var(--ink-soft); }
.features p { margin: 0; font-size: 1rem; color: var(--muted); }
.trusted { margin: 64px auto 0; max-width: 960px; }
.trusted-list { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.trusted-list li { padding: 30px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.trusted-list strong { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 400; color: var(--ink); line-height: 1.1; }
.trusted-list span { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.trusted > p { margin: 0; color: var(--muted); }

.contact { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 12px; font-size: 1.1rem; }
.contact a { color: #cfdcf5; text-underline-offset: 4px; }

footer { background: var(--paper-2); color: var(--muted); padding: 44px 0; font-size: .85rem; letter-spacing: .04em; border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
footer a { color: var(--ink); text-underline-offset: 4px; }

@media (max-width: 860px) {
  body { font-size: 17px; }
  nav.main a.hide-sm { display: none; }
  .split, .split.flip { grid-template-columns: 1fr; }
  .hero::before { inset: 0; opacity: .35; -webkit-mask-image: none; mask-image: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-emblem { max-width: 340px; order: -1; justify-self: start; }
}

/* side menu */
body { padding-left: 232px; }
header.top { display: none; }
.side { position: fixed; inset: 0 auto 0 0; width: 232px; z-index: 30; display: flex; flex-direction: column; gap: 18px; padding: 24px 20px 20px; background: var(--paper); border-right: 1px solid var(--line); overflow: hidden; }
.side .brand { display: block; padding: 0 6px 18px; border-bottom: 1px solid var(--line); }
.side .brand img { height: 44px; width: auto; filter: brightness(0) opacity(.92); }
.side-nav { display: grid; gap: 12px; }
.side-nav .group { display: grid; gap: 0; }
.side-nav .group + .group { padding-top: 12px; border-top: 1px solid var(--line); }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 3px 6px; text-decoration: none; color: var(--ink); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; border-radius: 999px; }
.side-nav .ico { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--ink); transition: background .2s, color .2s; }
.side-nav a:hover .ico { background: rgba(10,26,51,.08); }
.side-nav a.on .ico { background: var(--ink); color: #fff; }
.side-foot { margin-top: auto; display: grid; gap: 14px; }
.side-foot .btn { text-align: center; padding: 14px 20px; }
.side-foot p { margin: 0; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); text-align: center; }
.hero .wrap { padding-top: 80px; }
.dev-hero { padding-top: 110px; }

@media (max-width: 900px) {
  body { padding-left: 0; padding-top: 64px; }
  .side { inset: 0 0 auto 0; width: auto; height: 64px; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px; border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  .side .brand { padding: 0; border: 0; }
  .side .brand img { height: 34px; }
  .side-nav, .side-foot p { display: none; }
  .side-foot { margin: 0; }
  .side-foot .btn { padding: 10px 20px; }
}

/* keep the whole side menu visible on short screens without scrolling */
@media (min-width: 901px) and (max-height: 760px) {
  .side { gap: 16px; padding: 18px 20px 16px; }
  .side .brand { padding-bottom: 14px; }
  .side .brand img { height: 36px; }
  .side-nav { gap: 12px; }
  .side-nav .group + .group { padding-top: 12px; }
  .side-nav a { padding: 4px 6px; }
  .side-nav .ico { width: 28px; height: 28px; }
  .side-foot { gap: 8px; }
  .side-foot .btn { padding: 11px 16px; }
  .side-foot p { display: none; }
}

/* values cards: four narrow, tall cards in a row */
.values-cards { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); max-width: 1000px; margin-left: auto; margin-right: auto; }
.values-cards li { padding: 32px 22px; min-height: 280px; }
@media (min-width: 900px) { .values-cards { grid-template-columns: repeat(4, 1fr); } }

/* Benefits */
.benefits { display: grid; gap: 22px; margin-top: 44px; }
.benefit { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px; align-items: center; padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.benefit-head .eyebrow { margin-bottom: .8rem; }
.benefit-head h3 { font-size: 1.9rem; margin-bottom: .35em; }
.benefit-head p { margin: 0; color: var(--muted); }
.tools { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tools li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); font-size: .95rem; line-height: 1.35; color: var(--muted); }
.tools .fi { flex: none; width: 26px; height: 26px; color: var(--ink-soft); margin-top: 1px; }
.tools strong { display: block; font-size: 1rem; }
@media (max-width: 860px) { .benefit { grid-template-columns: 1fr; gap: 20px; padding: 24px; } }
.values-three { max-width: 960px; }
.values-three li { min-height: 0; padding: 32px 28px; }
@media (min-width: 900px) { .values-three { grid-template-columns: repeat(3, 1fr); } }

/* Meeting Request dialog */
.meeting-dialog { border: 0; border-radius: 10px; padding: 0; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgba(10,26,51,.4); }
.meeting-dialog::backdrop { background: rgba(10,26,51,.6); }
.meeting-dialog .md-body { padding: 36px 32px 32px; }
.meeting-dialog h2 { margin: 0 0 6px; font-weight: 300; font-size: 1.8rem; }
.meeting-dialog .md-sub { margin: 0 0 20px; color: var(--muted); }
.meeting-dialog .md-close { position: absolute; top: 8px; right: 12px; border: 0; background: none; font-size: 2rem; line-height: 1; color: var(--muted); cursor: pointer; }
.meeting-dialog .md-form { display: grid; gap: 14px; }
.meeting-dialog .md-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.meeting-dialog label { display: grid; gap: 6px; font-size: .85rem; color: var(--muted); }
.meeting-dialog input:not([type=radio]):not([type=hidden]), .meeting-dialog textarea, .meeting-dialog select { font: inherit; font-size: 1rem; color: var(--ink); padding: 11px 12px; border: 1px solid #c9d1df; border-radius: 6px; background: #fff; width: 100%; box-sizing: border-box; }
.meeting-dialog fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .85rem; color: var(--muted); }
.meeting-dialog .md-radio { display: flex; align-items: center; gap: 8px; font-size: 1rem; color: var(--ink); }
.meeting-dialog .md-note { margin: 0; font-size: .85rem; color: var(--muted); }
.meeting-dialog .md-error { margin: 0; color: #b3261e; font-size: .9rem; }
.meeting-dialog .btn { justify-self: start; cursor: pointer; }
@media (max-width: 520px) { .meeting-dialog .md-row { grid-template-columns: 1fr; } }
