/* Ops Solutions — site design system */
:root {
  --ops-navy: #07294c;
  --ops-navy-2: #0d3a66;
  --ops-slate: #425b76;
  --ops-muted: #5b6b7f;
  --ops-line: #e2e8f0;
  --ops-soft: #f5f8fc;
  --ops-soft-2: #eef3f9;
  --ops-white: #ffffff;
  --ops-orange: #ff7a59;
  --ops-orange-dark: #e8603e;
  --ops-green: #15803d;
  --ops-red: #b91c1c;
  --ops-radius: 14px;
  --ops-radius-sm: 8px;
  --ops-shadow: 0 1px 2px rgba(7, 41, 76, .06), 0 8px 24px rgba(7, 41, 76, .06);
  --ops-max: 1320px;
  --ops-font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --ops-font-head: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ops-font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ops-white);
  color: var(--ops-navy);
  font: 17px/1.65 var(--ops-font-body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ops-navy-2); text-underline-offset: 3px; }
a:hover { color: var(--ops-orange-dark); }
h1, h2, h3, h4 { font-family: var(--ops-font-head); line-height: 1.2; margin: 0 0 .5em; color: var(--ops-navy); letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: .35em; }
:focus-visible { outline: 3px solid var(--ops-orange); outline-offset: 2px; border-radius: 4px; }

.skip-link { position: absolute; top: 0; inset-inline-start: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; background: var(--ops-navy); color: #fff; padding: .6em 1em; z-index: 100; }
.skip-link:focus { width: auto; height: auto; clip-path: none; top: 1rem; inset-inline-start: 1rem; }
.wrap { max-width: var(--ops-max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--soft { background: var(--ops-soft); }
.section--navy { background: var(--ops-navy); color: #dbe6f3; }
.section--navy h2, .section--navy h3 { color: #fff; }
.eyebrow { display: inline-block; font: 700 .78rem/1 var(--ops-font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--ops-orange-dark); margin-bottom: 14px; }
.section--navy .eyebrow { color: var(--ops-orange); }
.lead { font-size: 1.18rem; color: var(--ops-slate); max-width: 720px; }
.section--navy .lead { color: #c3d3e6; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.muted { color: var(--ops-muted); }
.small { font-size: .9rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; font: 700 1rem/1 var(--ops-font-head); padding: 15px 24px; border-radius: 999px; text-decoration: none; border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s; cursor: pointer; }
.btn--primary { background: var(--ops-orange); color: #fff; }
.btn--primary:hover { background: var(--ops-orange-dark); color: #fff; }
.btn--ghost { border-color: var(--ops-line); color: var(--ops-navy); background: #fff; }
.btn--ghost:hover { border-color: var(--ops-navy); color: var(--ops-navy); }
.section--navy .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.center .btn-row { justify-content: center; }

/* Header: hairline brand stripe, click-open panels with icons, hides on scroll down. */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); transition: transform .3s ease; }
.site-header { border-bottom: 1px solid rgba(7,41,76,.08); }
.read-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--ops-orange); transform: scaleX(var(--p, 0)); transform-origin: left; pointer-events: none; }
[dir="rtl"] .read-progress { transform-origin: right; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 92px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav summary { position: relative; display: flex; align-items: center; gap: 5px; font: 600 .96rem/1 var(--ops-font-head); color: var(--ops-navy); padding: 12px 12px; border-radius: 8px; cursor: pointer; list-style: none; transition: color .15s; }
.nav summary::-webkit-details-marker { display: none; }
.nav summary::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--ops-orange); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.nav summary:hover::after, .nav details[open] > summary::after, .nav details.is-here > summary::after { transform: scaleX(1); }
.nav summary:focus-visible { outline: 2px dashed var(--ops-orange); outline-offset: 2px; }
.nav .chev { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.nav details[open] > summary .chev { transform: rotate(180deg); }
.nav details { position: relative; }
.nav .menu { position: absolute; top: calc(100% + 14px); left: 50%; width: 320px; margin-left: -160px; background: #fff; border: 1px solid rgba(7,41,76,.08); border-radius: 14px; box-shadow: 0 24px 60px rgba(7,41,76,.14); padding: 14px; }
.nav .menu--wide { width: 560px; margin-left: -280px; }
.nav details[open] > .menu { animation: menu-in .18s ease-out; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.menu-grid { display: grid; grid-template-columns: 1fr; gap: 2px; }
.menu--wide .menu-grid { grid-template-columns: 1fr 1fr; }
.nav .menu-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 10px; text-decoration: none; color: var(--ops-navy); transition: background .15s; }
.nav .menu-item:hover, .nav .menu-item[aria-current="page"] { background: var(--ops-soft); }
.menu-ic { flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: #fff1ec; fill: none; stroke: var(--ops-orange-dark); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: background .15s, stroke .15s; }
.nav .menu-item:hover .menu-ic { background: var(--ops-orange); stroke: #fff; }
.menu-text { flex: 1; min-width: 0; }
.menu-text strong { display: block; font: 600 .98rem/1.3 var(--ops-font-head); }
.menu-text > span { display: block; margin-top: 3px; font-size: .85rem; line-height: 1.4; color: var(--ops-muted); }
.menu-go { align-self: center; color: var(--ops-orange-dark); opacity: 0; transform: translateX(-4px); transition: opacity .15s, transform .15s; }
.nav .menu-item:hover .menu-go { opacity: 1; transform: none; }
.menu-sub { margin: 10px -14px -14px; padding: 16px 26px 14px; background: var(--ops-soft); border-top: 1px solid rgba(7,41,76,.06); border-radius: 0 0 14px 14px; }
.menu-eyebrow { display: block; font: 700 .72rem var(--ops-font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--ops-orange-dark); }
.menu-sub > span:not(.menu-eyebrow) { display: block; margin-top: 4px; font-size: .85rem; color: var(--ops-muted); }
.menu-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.nav .menu-links a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid rgba(7,41,76,.1); font: 600 .86rem var(--ops-font-head); color: var(--ops-navy); text-decoration: none; transition: border-color .15s, color .15s; }
.nav .menu-links a:hover { border-color: var(--ops-orange); color: var(--ops-orange-dark); }
.menu-links .menu-ic { width: 16px; height: 16px; padding: 0; background: none; }
.nav .btn { margin-left: 12px; padding: 12px 20px; }
@media (min-width: 981px) { .header-actions { order: 3; } .nav { margin-left: auto; } [dir="rtl"] .nav { margin-left: 0; margin-right: auto; } }
.nav-toggle { display: none; background: none; border: 1px solid var(--ops-line); border-radius: 8px; padding: 8px 12px; font: 600 .95rem var(--ops-font-head); color: var(--ops-navy); }
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--ops-line); padding: 12px 20px 20px; }
  .nav.is-open { display: flex; }
  .menu-sub { margin: 6px 0 0; border-radius: 12px; }
  .nav .menu, .nav .menu--wide { position: static; width: auto; margin: 0; box-shadow: none; border: 0; padding: 0 0 8px; animation: none !important; }
  .menu--wide .menu-grid { grid-template-columns: 1fr; }
  .nav summary { justify-content: space-between; }
  .nav .btn { margin: 10px 0 0; justify-content: center; }
}

/* Breadcrumbs */
.breadcrumbs { font-size: .88rem; color: var(--ops-muted); padding: 18px 0 0; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: #9aa9ba; }
.breadcrumbs a { color: var(--ops-muted); }

/* Hero */
.hero { padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); background: radial-gradient(1200px 400px at 85% -10%, #ffe7df 0, transparent 60%), linear-gradient(180deg, #fff, var(--ops-soft)); }
.hero h1 .accent { color: var(--ops-orange-dark); display: block; }
.hero--page { padding: clamp(32px, 5vw, 56px) 0 clamp(32px, 5vw, 56px); }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 28px; }
.stat strong { display: block; font: 800 2rem/1 var(--ops-font-head); color: var(--ops-navy); }
.stat span { font-size: .9rem; color: var(--ops-muted); }

/* Grid + cards */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--ops-line); border-radius: var(--ops-radius); padding: 26px; box-shadow: var(--ops-shadow); }
.card h3 { margin-bottom: .4em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card--flat { box-shadow: none; }
.card-num { font: 800 .85rem/1 var(--ops-font-head); color: var(--ops-orange-dark); letter-spacing: .08em; display: block; margin-bottom: 10px; }
.tag { display: inline-block; font: 700 .72rem/1 var(--ops-font-head); letter-spacing: .06em; text-transform: uppercase; color: var(--ops-slate); background: var(--ops-soft-2); padding: 6px 9px; border-radius: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 14px 0 0; }
.chips li { margin: 0; font-size: .85rem; background: var(--ops-soft-2); border-radius: 999px; padding: 5px 12px; color: var(--ops-navy-2); }
.check { list-style: none; padding: 0; }
.check li { position: relative; padding-left: 28px; }
.check li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: #dcfce7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='%2315803d' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.cross li::before { background: #fee2e2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 5l6 6M11 5l-6 6' stroke='%23b91c1c' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/10px no-repeat; }
.cols-list { columns: 2; column-gap: 32px; }
@media (max-width: 640px) { .cols-list { columns: 1; } }

/* Logos */
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 24px 0 0; }
.logos li { margin: 0; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--ops-line); border-radius: 12px; padding: 12px 14px; font: 600 .85rem var(--ops-font-head); color: var(--ops-slate); }
.logos img { width: 28px; height: 28px; border-radius: 6px; flex: none; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 18px; }
.steps > li { margin: 0; display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start; background: #fff; border: 1px solid var(--ops-line); border-radius: var(--ops-radius); padding: 24px; }
.steps > li::before { counter-increment: step; content: counter(step, decimal-leading-zero); font: 800 1.6rem/1 var(--ops-font-head); color: var(--ops-orange-dark); }
.steps .duration { display: inline-block; margin-top: 6px; font-size: .88rem; color: var(--ops-slate); background: var(--ops-soft-2); padding: 4px 10px; border-radius: 6px; }

/* Compare */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }
.compare .card--us { border: 2px solid var(--ops-orange); }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.review { margin: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ops-line); border-radius: var(--ops-radius); padding: 24px; }
.review .stars { color: #f59e0b; letter-spacing: 2px; font-size: 1rem; }
.review h3 { font-size: 1.08rem; margin: 8px 0; }
.review blockquote { margin: 0 0 16px; color: var(--ops-slate); flex: 1; }
.review figcaption { font-size: .9rem; display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--ops-line); padding-top: 12px; }
.review figcaption strong { font-family: var(--ops-font-head); }
.rating-summary { display: inline-flex; align-items: center; gap: 10px; font: 700 1rem var(--ops-font-head); margin-bottom: 20px; }
.rating-summary .stars { color: #f59e0b; letter-spacing: 2px; }

/* FAQ */
.faq details { border: 1px solid var(--ops-line); border-radius: 12px; background: #fff; margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font: 700 1.05rem/1.35 var(--ops-font-head); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--ops-orange-dark); }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 20px 18px; color: var(--ops-slate); }
.faq h3 { display: inline; font-size: inherit; margin: 0; }

/* Person / founder */
.person { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: center; }
@media (max-width: 760px) { .person { grid-template-columns: 1fr; } }
.person img { border-radius: 18px; aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.person .role { font: 700 1rem var(--ops-font-head); color: var(--ops-orange-dark); margin-bottom: 12px; }

/* Team */
.team-card .avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ops-soft-2); font: 800 1.05rem var(--ops-font-head); color: var(--ops-navy-2); margin-bottom: 14px; }
.team-card .sub { font-size: .9rem; color: var(--ops-orange-dark); font-weight: 700; margin-bottom: 10px; }

/* Case study (portfolio) */
.toc { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; }
.toc li { margin: 0; }
.toc a { display: block; font: 600 .88rem var(--ops-font-head); text-decoration: none; background: #fff; border: 1px solid var(--ops-line); padding: 8px 12px; border-radius: 999px; color: var(--ops-navy); }
.toc a:hover { border-color: var(--ops-orange); }
.case { padding: 56px 0; border-top: 1px solid var(--ops-line); scroll-margin-top: 90px; }
.case:first-of-type { border-top: 0; }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
@media (max-width: 900px) { .case-grid { grid-template-columns: 1fr; } }
.case-grid h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ops-slate); }
.case-meta { font-size: .95rem; color: var(--ops-slate); font-weight: 700; }
.case figure { margin: 24px 0 0; }
.case figure img { border-radius: 12px; border: 1px solid var(--ops-line); }
.case figcaption { font-size: .85rem; color: var(--ops-muted); margin-top: 8px; font-family: ui-monospace, Menlo, monospace; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-top: 20px; }
.kpi { background: var(--ops-soft); border-radius: 12px; padding: 16px; }
.kpi strong { display: block; font: 800 1.5rem/1.1 var(--ops-font-head); }
.kpi span { font-size: .88rem; color: var(--ops-slate); }
.flow { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; counter-reset: flow; }
.flow li { margin: 0; background: #fff; border: 1px solid var(--ops-line); border-radius: 10px; padding: 10px 14px; font-size: .9rem; }
.flow li strong { display: block; font-family: var(--ops-font-head); }
.table-wrap { overflow-x: auto; margin-top: 20px; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--ops-line); vertical-align: top; }
th { font-family: var(--ops-font-head); background: var(--ops-soft); }

/* Glossary */
.glossary-search { width: 100%; max-width: 480px; padding: 14px 16px; border: 1px solid var(--ops-line); border-radius: 10px; font: inherit; margin-top: 10px; }
.terms { display: grid; gap: 16px; margin-top: 28px; }
.term { background: #fff; border: 1px solid var(--ops-line); border-radius: var(--ops-radius); padding: 24px; scroll-margin-top: 90px; }
.term h2 { font-size: 1.3rem; margin-bottom: .4em; }
.term p { color: var(--ops-slate); }

/* Article */
.article { font-size: 1.08rem; }
.article h2 { font-size: 1.6rem; margin-top: 1.8em; }
.article .summary { background: var(--ops-soft); border-left: 4px solid var(--ops-orange); padding: 18px 20px; border-radius: 0 12px 12px 0; margin: 0 0 28px; }
.byline { display: flex; align-items: center; gap: 14px; margin: 18px 0 0; font-size: .95rem; color: var(--ops-slate); }
.byline img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.author-box { display: grid; grid-template-columns: 88px 1fr; gap: 20px; align-items: center; margin-top: 48px; padding: 24px; border: 1px solid var(--ops-line); border-radius: var(--ops-radius); background: var(--ops-soft); }
.author-box img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; }
.post-card { display: grid; grid-template-columns: 1fr; gap: 10px; }
.post-card time { font-size: .9rem; color: var(--ops-muted); }

/* CTA band */
.cta-band { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }
.cta-band img, .cta-band .cta-media { width: 180px; height: auto; border-radius: 14px; display: block; }

/* Tool embeds */
.tool-embed { margin-top: 8px; }

/* Footer: quiet and spacious; thin rules, few links, no buttons. */
.site-footer { background: #06111e; color: #8fa1b6; padding: 56px 0 24px; font-size: .93rem; border-top: 1px solid rgba(255,255,255,.08); }
.site-footer a { color: #d5dee9; text-decoration: none; transition: color .15s; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 340px) { .footer-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .site-footer { padding-top: 48px; } .site-footer li { margin-bottom: 10px; } }
.site-footer h2 { font-size: 1rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .brand img { width: 108px; }
.footer-brand p { margin: 14px 0 0; max-width: 26ch; line-height: 1.55; }
.footer-social { display: flex; gap: 10px; margin-top: 18px !important; }
.footer-social li { margin: 0; }
.footer-social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); color: #d5dee9; }
.footer-social a:hover { border-color: #fff; color: #fff; }
.footer-social svg { width: 18px; height: 18px; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding-top: 18px; font-size: .82rem; color: #6f8298; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
address { font-style: normal; }

/* Grid children must be allowed to shrink below their content's intrinsic width. */
.hero-grid > *, .person > *, .grid > *, .compare > *, .cta-band > *, .case-grid > * { min-width: 0; }

/* ---------- "Everything we build" trace story ---------- */
.trace { background: #f4efe6; padding-bottom: 72px; }
.trace-mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .78rem; letter-spacing: .04em; text-transform: lowercase; }
.trace-stage { display: grid; gap: 28px; padding-top: 28px; padding-bottom: 28px; }
.trace-rail { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.trace-rail::before, .trace-rail::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: 3px; height: 1px; background: #cfc5b3; }
.trace-rail::after { background: var(--ops-orange); right: auto; width: calc(80% * var(--fill, 1)); transition: width .45s ease; }
.trace-stop { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; z-index: 1; }
.trace-word { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .78rem; color: var(--ops-slate); }
.trace-dot { width: 8px; height: 8px; border-radius: 50%; background: #f4efe6; border: 1px solid #b7ab96; transition: background .3s, border-color .3s, box-shadow .3s; }
.trace-stop.is-on .trace-word { color: var(--ops-navy); font-weight: 700; }
.trace-stop.is-on .trace-dot { background: var(--ops-orange); border-color: var(--ops-orange); box-shadow: 0 0 0 4px rgba(255,122,89,.18); }
.trace-quotes { display: grid; gap: 18px; }
.trace-quote { margin: 0; }
.trace-quote blockquote { margin: 0; }
.trace-quote p { font: 700 clamp(1.3rem, 2.6vw, 1.9rem)/1.35 var(--ops-font-head); color: var(--ops-navy); margin: 0 0 8px; max-width: 820px; }
.trace-quote figcaption { color: var(--ops-muted); }
.trace-chip { background: transparent; color: inherit; padding: 0 .12em; border-radius: 6px; box-shadow: inset 0 -2px 0 var(--ops-orange); transition: background .35s; }
.trace-panel { background: var(--ops-navy); color: #dbe6f3; border-radius: 18px; padding: 22px 24px; box-shadow: 0 20px 50px rgba(7,41,76,.18); }
.trace-head { display: flex; justify-content: space-between; color: #8fa6c2; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.1); }
.trace-rows { list-style: none; margin: 0; padding: 0; }
.trace-row { margin: 0; display: grid; grid-template-columns: 92px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.trace-row:last-child { border-bottom: 0; }
.trace-kind { color: #8fa6c2; }
.trace-val { display: grid; min-width: 0; }
.trace-ghost, .trace-built { grid-area: 1 / 1; transition: opacity .4s ease, transform .4s ease; }
.trace-ghost { font-style: italic; color: #8fa6c2; opacity: 0; }
.trace-built { text-decoration: none; color: #fff; }
.trace-built strong { display: block; font-family: var(--ops-font-head); }
.trace-built span { font-size: .88rem; color: #b8c9dd; }
.trace-built:hover strong { color: var(--ops-orange); }
.trace-tag { color: #0b2a17; background: #86efac; border-radius: 999px; padding: 3px 9px; transition: opacity .3s, background .3s; }

/* Animated mode (only when JS runs and motion is allowed) */
.js-trace .trace-scroller { height: calc(var(--steps) * 60vh + 100vh); }
.js-trace .trace-stage { position: sticky; top: 72px; min-height: calc(100vh - 72px); align-content: center; }
.js-trace .trace-quotes { display: grid; }
.js-trace .trace-quote { grid-area: 1 / 1; opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .4s; pointer-events: none; }
.js-trace .trace-quote.is-active { opacity: 1; transform: none; pointer-events: auto; }
.js-trace .trace-quote.is-active .trace-chip { background: rgba(255,122,89,.18); }
.js-trace .trace-row .trace-ghost { opacity: 1; }
.js-trace .trace-row .trace-built { opacity: 0; transform: translateY(6px); }
.js-trace .trace-row .trace-tag { opacity: .25; background: rgba(255,255,255,.18); color: #dbe6f3; }
.js-trace .trace-row.is-filled .trace-ghost { opacity: 0; }
.js-trace .trace-row.is-filled .trace-built { opacity: 1; transform: none; }
.js-trace .trace-row.is-filled .trace-tag { opacity: 1; background: #86efac; color: #0b2a17; }
.js-trace .trace-row.is-current .trace-ghost { opacity: 1; }
.js-trace .trace-row.is-current .trace-built { opacity: 0; }
.js-trace .trace-row.is-current .trace-tag { opacity: 1; background: var(--ops-orange); color: #fff; }

@media (max-width: 760px) {
  .trace-rail { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .trace-word { font-size: .68rem; }
  .trace-row { grid-template-columns: 1fr auto; }
  .trace-kind { grid-column: 1 / -1; }
  .js-trace .trace-scroller { height: calc(var(--steps) * 55vh + 100vh); }
  .js-trace .trace-stage { gap: 18px; }
}
@media (min-width: 1000px) {
  .trace-stage { grid-template-columns: 1fr 1.05fr; column-gap: 48px; align-items: center; }
  .trace-rail { grid-column: 1 / -1; }
}

/* Client logo marquee */
.marquee { overflow: hidden; margin-top: 24px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: ops-marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .logos { display: flex; flex-wrap: nowrap; gap: 14px; margin: 0; padding-right: 14px; }
.marquee .logos li { flex: none; white-space: nowrap; }
@keyframes ops-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; width: auto; }
  .marquee .logos { flex-wrap: wrap; }
  .marquee .logos[aria-hidden="true"] { display: none; }
}
.marquee + .marquee { margin-top: 14px; }
.marquee--reverse .marquee-track { animation-direction: reverse; animation-duration: 45s; }
@media (prefers-reduced-motion: reduce) { .marquee--reverse { display: none; } }

@media (prefers-reduced-motion: reduce) { .cta-media { display: none !important; } }

/* Arabic (RTL) content */
[dir="rtl"] body, .rtl { font-family: "IBM Plex Sans Arabic", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif; }
.rtl h1, .rtl h2, .rtl h3 { font-family: "IBM Plex Sans Arabic", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif; letter-spacing: 0; }
.rtl .eyebrow { letter-spacing: 0; }
.rtl .faq summary { padding: 18px 20px 18px 52px; }
.rtl .faq summary::after { right: auto; left: 20px; }
.rtl .check li { padding-left: 0; padding-right: 28px; }
.rtl .check li::before { left: auto; right: 2px; }
[dir="rtl"] .menu-go { transform: translateX(4px) scaleX(-1); }
[dir="rtl"] .nav .menu-item:hover .menu-go { transform: scaleX(-1); }
[dir="rtl"] .nav summary::after { transform-origin: right; }
[dir="rtl"] .nav .btn { margin-left: 0; margin-right: 12px; }

/* ---------- Mobile usability ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.split > * { min-width: 0; }
.more-link { display: inline-block; padding: 10px 0; font-weight: 700; font-size: .95rem; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-cta { display: none; }
@media (max-width: 980px) {
  .header-cta { display: inline-flex; padding: 11px 16px; font-size: .92rem; min-height: 44px; }
  .nav-toggle { min-height: 44px; min-width: 64px; padding: 10px 14px; }
  .nav summary { padding: 14px 12px; }                     /* bigger tap rows in the open menu */
  .nav summary::after { display: none; }
  .nav .menu a { padding: 12px; }
  .nav > .btn { display: none; }                            /* Book a Call already sits in the header */
}
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; gap: 24px; }
  body { font-size: 16.5px; }
  .eyebrow { font-size: .8rem; }
  .lead { font-size: 1.08rem; }
  .btn { min-height: 48px; }
  .btn-row .btn { flex: 1 1 auto; justify-content: center; }
  .section { padding: 48px 0; }
  .card { padding: 22px; }
  .trace-word { font-size: .75rem; }
  .trace-mono { font-size: .8rem; }
  .brand img { width: 80px; }
  /* Calculators and the package builder: readable text, 44px targets, no iOS zoom on focus */
  .tool-embed input, .tool-embed select, .tool-embed textarea { font-size: 16px !important; min-height: 44px; }
  .tool-embed button { min-height: 44px; }
  .tool-embed label, .tool-embed th, .tool-embed td, .tool-embed p { font-size: max(13px, 1em) !important; }
  .faq summary { padding-top: 16px; padding-bottom: 16px; }
}
@media (max-width: 760px) {
  .card h2 a, .card h3 a { display: inline-block; padding: 8px 0; }
  .tool-embed .promo-cta-btn { min-height: 48px; font-size: 15px !important; display: inline-flex; align-items: center; justify-content: center; }
  .tag { font-size: .75rem; }
  .byline a { display: inline-block; padding: 6px 0; }
}

/* HubSpot partner line under the home hero */
.partner-line { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 14px; border: 1px solid var(--ops-line); border-radius: 999px; background: #fff; font: 600 .85rem var(--ops-font-head); color: var(--ops-ink, #0b2545); }
.partner-line::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #ff7a59; }

/* Review cards scrolling like the logo marquee (home page) */
.marquee--reviews .marquee-track { animation-duration: 120s; }
.reviews--row { display: flex; flex-wrap: nowrap; gap: 20px; padding-right: 20px; }
.reviews--row .review { flex: none; width: min(340px, 82vw); }
@media (prefers-reduced-motion: reduce) {
  .reviews--row { flex-wrap: wrap; }
  .reviews--row[aria-hidden="true"] { display: none; }
  .reviews--row .review { width: 100%; }
}

/* Collapsible block ("How we work" on the home page) */
.collapse { border: 1px solid var(--ops-line); border-radius: var(--ops-radius); background: #fff; padding: 0 22px; }
.collapse > summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; position: relative; }
.collapse > summary::-webkit-details-marker { display: none; }
.collapse > summary h3 { margin: 0; font-size: 1.15rem; }
.collapse-hint { display: block; margin-top: 4px; font-size: .9rem; color: var(--ops-orange-dark); }
.collapse[open] .collapse-hint { display: none; }
.collapse > summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--ops-orange-dark); }
.collapse[open] > summary::after { content: "−"; }
.collapse[open] { padding-bottom: 22px; }
.collapse .card { background: var(--ops-soft); }

/* Language switch in the header */
.lang-switch { font: 700 .92rem var(--ops-font-head); color: var(--ops-navy); text-decoration: none; padding: 8px 12px; border: 1px solid var(--ops-line); border-radius: 999px; background: #fff; white-space: nowrap; }
.lang-switch:hover { border-color: var(--ops-orange); color: var(--ops-orange-dark); }
.header-cta { white-space: nowrap; }

/* Case studies page: collapsible case cards grouped by stage */
.case-grid-list { display: grid; gap: 16px; margin-top: 24px; }
.case-card { border: 1px solid var(--ops-line); border-radius: var(--ops-radius); background: #fff; scroll-margin-top: 90px; }
.case-card > summary { cursor: pointer; list-style: none; padding: 22px 56px 22px 24px; position: relative; }
.case-card > summary::-webkit-details-marker { display: none; }
.case-card > summary::after { content: "+"; position: absolute; right: 22px; top: 22px; font-size: 1.6rem; color: var(--ops-orange-dark); }
.case-card[open] > summary::after { content: "−"; }
.case-card > summary h3 { margin: 6px 0; font-size: 1.2rem; }
.case-card > summary p { margin: 0 0 8px; color: var(--ops-slate); }
.case-card__kpi strong { color: var(--ops-orange-dark); font-family: var(--ops-font-head); }
.case-card__more { font: 700 .9rem var(--ops-font-head); color: var(--ops-navy); }
.case-card[open] .case-card__more { display: none; }
.case-card__body { padding: 0 24px 24px; border-top: 1px solid var(--ops-line); padding-top: 18px; }
.case-card:target, .case-card[open] { border-color: var(--ops-orange); }
.work-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 6px; scroll-margin-top: 90px; }
.work-card:hover { border-color: var(--ops-orange); }
.work-card h3 { font-size: 1.05rem; margin: 0; }
.chips a.chip { text-decoration: none; }
.chips a.chip:hover { border-color: var(--ops-orange); color: var(--ops-orange-dark); }

/* Blueprint: numbered cards that expand into a step-by-step view. */
.bp { display: grid; gap: 14px; margin-top: 28px; counter-reset: bp; }
.bp-card { position: relative; border: 1px solid var(--ops-line); border-radius: 16px; background: #fff; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.bp-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--ops-orange); transform: scaleY(0); transform-origin: top; transition: transform .3s ease; }
.bp-card:hover { border-color: rgba(7,41,76,.2); }
.bp-card[open] { box-shadow: 0 18px 40px rgba(7,41,76,.1); border-color: transparent; }
.bp-card[open]::before { transform: scaleY(1); }
.bp-card summary { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 26px 30px; cursor: pointer; list-style: none; }
.bp-card summary::-webkit-details-marker { display: none; }
.bp-card summary:focus-visible { outline: 2px solid var(--ops-orange); outline-offset: -4px; border-radius: 16px; }
.bp-num { font: 800 2.4rem/1 var(--ops-font-head); color: transparent; -webkit-text-stroke: 1.5px var(--ops-navy); letter-spacing: -.02em; min-width: 64px; transition: color .25s; }
.bp-card[open] .bp-num, .bp-card:hover .bp-num { color: var(--ops-orange); -webkit-text-stroke-color: var(--ops-orange); }
.bp-head h3 { margin: 0 0 6px; font-size: 1.3rem; }
.bp-head > span { display: block; color: var(--ops-slate); line-height: 1.55; }
.bp-toggle { position: relative; width: 38px; height: 38px; border-radius: 50%; background: var(--ops-soft-2); transition: background .2s, transform .3s ease; }
.bp-toggle::before, .bp-toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; border-radius: 2px; background: var(--ops-navy); transition: background .2s; }
.bp-toggle::after { transform: rotate(90deg); }
.bp-card[open] .bp-toggle { background: var(--ops-navy); transform: rotate(135deg); }
.bp-card[open] .bp-toggle::before, .bp-card[open] .bp-toggle::after { background: #fff; }
.bp-body { padding: 0 30px 32px 118px; }
.bp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 24px; }
.bp-steps > li { margin: 0; padding: 18px 0 0; border-top: 3px solid var(--ops-soft-2); position: relative; }
.bp-steps > li::before { content: ""; position: absolute; left: 0; top: -3px; height: 3px; width: 100%; background: var(--ops-orange); transform: scaleX(0); transform-origin: left; transition: transform .5s ease; }
.bp-card[open] .bp-steps > li::before { transform: scaleX(1); }
.bp-card[open] .bp-steps > li:nth-child(2)::before { transition-delay: .15s; }
.bp-card[open] .bp-steps > li:nth-child(3)::before { transition-delay: .3s; }
.bp-card[open] .bp-steps > li:nth-child(4)::before { transition-delay: .45s; }
.bp-step { font: 700 .72rem var(--ops-font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--ops-orange-dark); }
.bp-steps h4 { margin: 8px 0 8px; font-size: 1.05rem; }
.bp-steps p { margin: 0 0 6px; font-size: .95rem; color: var(--ops-slate); }
.bp-steps .check li { font-size: .93rem; }
.bp-steps .duration { display: inline-block; margin-top: 8px; padding: 4px 10px; border-radius: 999px; background: var(--ops-soft-2); font: 600 .8rem var(--ops-font-head); color: var(--ops-navy-2); }
@media (max-width: 760px) {
  .bp-card summary { grid-template-columns: auto 1fr; padding: 20px; gap: 14px; }
  .bp-num { font-size: 1.8rem; min-width: 0; }
  .bp-toggle { display: none; }
  .bp-body { padding: 0 20px 24px; }
  .bp-steps { grid-template-columns: 1fr; gap: 20px; }
  .bp-steps > li { padding-right: 0; }
}
.rtl .bp-body { padding: 0 118px 32px 30px; }
.rtl .bp-card::before { left: auto; right: 0; }
.rtl .bp-steps > li { padding: 18px 0 0; } .rtl .bp-steps > li::before { left: auto; right: 0; transform-origin: right; }
@media (max-width: 760px) { .rtl .bp-body { padding: 0 20px 24px; } }
@media (prefers-reduced-motion: reduce) { .bp-card::before, .bp-toggle, .bp-steps > li::before { transition: none; } }

/* Why us: message on the left, a filterable board of systems we've built on the right. */
.why { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.why-copy h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.why-points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.why-points li { position: relative; padding-left: 22px; color: var(--ops-slate); line-height: 1.55; }
.why-points li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--ops-orange); }
.why-points strong { color: var(--ops-navy); }
.why-note { margin-top: 22px; font-style: italic; color: var(--ops-muted); }
.why-note a { font-style: normal; font-weight: 700; }
.why-chips { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; margin-bottom: 18px; border-radius: 12px; background: #fff; border: 1px solid var(--ops-line); }
.why-chip { font: 600 .85rem var(--ops-font-head); padding: 8px 14px; border-radius: 9px; border: 0; background: transparent; color: var(--ops-slate); cursor: pointer; transition: background .15s, color .15s; }
.why-chip:hover { color: var(--ops-navy); }
.why-chip.is-on { background: var(--ops-navy); color: #fff; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.why-tile { position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 196px; padding: 22px 20px 18px; border-radius: 14px; border: 1px solid var(--ops-line); background: #fff; color: var(--ops-navy); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s, opacity .2s ease; }
.why-tile:hover { transform: translateY(-3px); border-color: transparent; box-shadow: 0 16px 34px rgba(7,41,76,.12); }
.why-tile--proof { background: linear-gradient(180deg, #fff 0%, #fff7f4 100%); }
.why-big { font: 800 1.75rem/1.05 var(--ops-font-head); color: var(--ops-orange-dark); letter-spacing: -.02em; }
.why-metric { font-size: .82rem; line-height: 1.35; color: var(--ops-muted); }
.why-ic { width: 30px; height: 30px; fill: none; stroke: var(--ops-navy-2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.why-tile strong { margin-top: 4px; font: 700 1.02rem/1.3 var(--ops-font-head); }
.why-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--ops-line); }
.why-team { display: inline-flex; align-items: center; gap: 6px; font: 600 .76rem var(--ops-font-head); color: var(--ops-slate); }
.why-team::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ops-navy); }
.why-team--marketing::before { background: var(--ops-orange); }
.why-team--sales::before { background: #0e7490; }
.why-team--cs::before { background: var(--ops-green); }
.why-team--automation::before { background: #7c3aed; }
.why-tile--dark { background: var(--ops-navy); border-color: var(--ops-navy); color: #fff; }
.why-tile--dark .why-big { color: #ff9a7f; font-family: var(--ops-font-head); font-weight: 800; letter-spacing: -.01em; }
.why-tile--dark .why-metric, .why-tile--dark .why-team { color: #c3d3e6; }
.why-tile--dark .why-foot { border-top-color: rgba(255,255,255,.15); }
.why-tile--dark .why-go { color: #ff9a7f; }
.why-go { color: var(--ops-orange-dark); transition: transform .15s; }
.why-tile:hover .why-go { transform: translateX(3px); }
.why-tile.is-dim { opacity: .3; transform: none; box-shadow: none; }
@media (max-width: 1000px) { .why { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 640px) { .why-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .why-tile { min-height: 170px; padding: 16px 14px 14px; } .why-big { font-size: 1.35rem; } .why-tile strong { font-size: .95rem; } }
.rtl .why-points li { padding-left: 0; padding-right: 22px; } .rtl .why-points li::before { left: auto; right: 0; }
.rtl .why-go { transform: scaleX(-1); }
@media (prefers-reduced-motion: reduce) { .why-tile { transition: none; } }

/* Type: Source Serif 4 for titles and big numbers, Source Sans 3 for everything else. */
h1, h2, h3 { font-family: var(--ops-font-display); font-weight: 600; letter-spacing: -.005em; }
h1 { line-height: 1.12; }
h4 { font-family: var(--ops-font-head); font-weight: 700; }
.stat strong, .steps > li::before, .why-big, .bp-num { font-family: var(--ops-font-display); font-weight: 600; }
.site-footer h2, .menu-text strong, .why-tile strong { font-family: var(--ops-font-head); font-weight: 700; }
.rtl h1, .rtl h2, .rtl h3 { font-weight: 700; }

/* Spacing system ------------------------------------------------------------------------------ */
/* First section under a page title or breadcrumb: one consistent, shorter top gap. */
.section--first { padding-top: 48px; }
/* Blocks that follow a heading or intro inside a section always sit 32px below it. */
.grid, .compare { margin-top: 32px; }
.grid:first-child, .compare:first-child { margin-top: 0; }
.card .grid, .bp .grid { margin-top: 0; }
/* Two sections with the same background in a row: tighten the join and draw a hairline so they read as two parts. */
.section--soft + .section--soft,
.section:not(.section--soft):not(.section--navy):not(.trace):not(.hero) + .section:not(.section--soft):not(.section--navy):not(.trace):not(.section--first) {
  padding-top: clamp(48px, 6vw, 72px);
  background-image: linear-gradient(var(--ops-line), var(--ops-line));
  background-size: min(calc(var(--ops-max) - 40px), calc(100% - 40px)) 1px;
  background-position: top center;
  background-repeat: no-repeat;
}
.section--soft:has(+ .section--soft),
.section:not(.section--soft):not(.section--navy):not(.trace):not(.hero):has(+ .section:not(.section--soft):not(.section--navy):not(.trace)) { padding-bottom: clamp(48px, 6vw, 72px); }
@media (max-width: 760px) { .section--first { padding-top: 32px; } .grid, .compare { margin-top: 24px; } }

.case-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.case-gallery figure { margin: 0; }
.case-gallery img { width: 100%; border-radius: 12px; border: 1px solid var(--ops-line); box-shadow: var(--ops-shadow); transition: transform .2s; }
.case-gallery a:hover img { transform: translateY(-2px); }
.case-gallery figcaption { margin-top: 8px; font-size: .85rem; color: var(--ops-muted); }
@media (max-width: 760px) { .case-gallery { grid-template-columns: 1fr; } }

/* Hero video: dark workflow clip framed like a screen. */
.hero-media { display: block; width: 100%; height: auto; aspect-ratio: 752 / 416; object-fit: cover; border-radius: 14px; background: #0a2233; box-shadow: 0 24px 60px rgba(7,41,76,.18); }
/* Hero video (set in the prototype editor): text column 585px, video up to 787px, stopping 45px from the screen edge. */
@media (min-width: 901px) {
  .hero-grid:has(.hero-media) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; }
  .hero-media { --bleed: max(-25px, (100vw - var(--ops-max)) / 2 - 25px); justify-self: end; width: min(787px, calc(100% + var(--bleed))); max-width: none; margin-right: calc(-1 * var(--bleed)); border-radius: 14px; }
  [dir="rtl"] .hero-media { margin-right: 0; margin-left: calc(-1 * var(--bleed)); }
}
@media (min-width: 1200px) { .hero-grid:has(.hero-media) { grid-template-columns: minmax(0, 585px) minmax(0, 1fr); gap: 40px; } }
/* Phones and tablets: the video sits under the text, edge to edge. */
@media (max-width: 900px) {
  .hero-grid:has(.hero-media) { gap: 32px; }
  .hero-media { width: calc(100% + 40px); max-width: none; margin: 0 -20px; border-radius: 0; box-shadow: none; }
}
}
.hero:has(.hero-media) { overflow-x: clip; }
h1, h2 { text-wrap: balance; }

/* Closing call to action: a light card instead of a full navy band, so only the footer is dark. */
.section--navy:has(.cta-band) { background: transparent; color: var(--ops-slate); padding: 40px 0 clamp(56px, 7vw, 88px); }
.section--navy .cta-band { position: relative; overflow: hidden; padding: clamp(32px, 5vw, 56px); border-radius: 24px; border: 1px solid #f3dcd2; background: radial-gradient(600px 260px at 100% 0%, rgba(255,122,89,.16), transparent 70%), linear-gradient(135deg, #fff8f5 0%, #f5f8fc 100%); }
.section--navy .cta-band h2 { color: var(--ops-navy); }
.section--navy .cta-band .eyebrow { color: var(--ops-orange-dark); }
.section--navy .cta-band .lead { color: var(--ops-slate); }
.section--navy .cta-band .btn--ghost { background: #fff; color: var(--ops-navy); border-color: var(--ops-line); }
.section--navy .cta-band .btn--ghost:hover { border-color: var(--ops-navy); }
.section--navy .cta-band .cta-media { box-shadow: 0 16px 40px rgba(7,41,76,.16); }
@media (max-width: 760px) { .section--navy .cta-band { border-radius: 18px; } }