/* ==========================================================================
   OSWORKS website — shared stylesheet
   Layout concept: calm, business-first pages. Warm neutral grounds, charcoal
   structure, orange reserved for actions, key phrases and process steps.
   ========================================================================== */
:root {
  /* Colour */
  --bg: #fbf8f3;
  --bg-alt: #f4eee5;
  --surface: #ffffff;
  --ink: #1b1d1f;
  --ink-2: #4b4f54;
  --ink-3: #757a80;
  --line: #e7dfd3;
  --accent: #ff9a5c;          /* OSWORKS orange (from logo) */
  --accent-strong: #b4520f;   /* orange for text on light grounds (AA) */
  --accent-soft: #fff0e7;
  --dark: #1f2225;
  --dark-2: #2b2f33;
  --focus: #0b57d0;

  /* Type */
  --font-display: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  /* Scale */
  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.88rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
  --step-2: clamp(1.45rem, 1.25rem + 1vw, 2rem);
  --step-3: clamp(1.8rem, 1.4rem + 2vw, 2.8rem);
  --step-4: clamp(2.2rem, 1.5rem + 3.4vw, 3.9rem);

  --radius: 12px;
  --radius-sm: 8px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1180px;
  --shadow: 0 1px 2px rgba(27, 29, 31, 0.05), 0 8px 24px rgba(27, 29, 31, 0.06);
  --shadow-lg: 0 2px 4px rgba(27, 29, 31, 0.06), 0 24px 60px rgba(27, 29, 31, 0.16);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.02em; color: var(--ink); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; text-decoration: none; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(48px, 7vw, 96px); }
.section--alt { background: var(--bg-alt); }
.section--tight { padding-block: clamp(32px, 4.5vw, 56px); }
.prose { max-width: 66ch; }
.center { text-align: center; margin-inline: auto; }

/* ----- Type helpers ----- */
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--accent); border-radius: 2px; flex: none; }
.h-xl { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; }
.h-lg { font-size: var(--step-3); font-weight: 800; letter-spacing: -0.03em; }
.h-md { font-size: var(--step-2); font-weight: 700; }
.h-sm { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.01em; }
.lead { font-size: var(--step-1); color: var(--ink-2); line-height: 1.5; }
.muted { color: var(--ink-2); }
.hl { color: var(--accent-strong); }
.stack > * + * { margin-top: var(--stack, 16px); }
.section-head { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head .lead, .section-head p { margin-top: 14px; }

/* ----- Buttons ----- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px; border-radius: 8px; font-family: var(--font-display); font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s; line-height: 1.2; text-align: center; }
.btn--primary { background: #fe5100; color: #fff; }
.btn--primary:hover { background: #e24800; }
.btn--outline { background: transparent; color: var(--accent-strong); border-color: var(--accent); }
.btn--outline:hover { background: var(--accent-soft); }
.btn--sm { min-height: 44px; padding: 10px 20px; }
.btn .arr, .link-arrow .arr { transition: transform 0.15s; }
.btn:hover .arr, .link-arrow:hover .arr { transform: translateX(3px); }
.link-arrow { display: inline; padding-block: 12px; font-weight: 700; font-family: var(--font-display); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.link-arrow .arr { display: inline-block; margin-left: 6px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }

/* ----- Header ----- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 243, 0.94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: block; flex: none; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav a.nav-link { font-size: 0.92rem; font-weight: 500; text-decoration: none; color: var(--ink); padding: 8px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a.nav-link:hover { border-color: var(--line); }
.nav a.nav-link[aria-current="page"] { border-color: var(--accent); font-weight: 600; }
.nav-toggle { display: none; background: none; border: 2px solid var(--line); border-radius: 8px; width: 46px; height: 46px; cursor: pointer; align-items: center; justify-content: center; color: var(--ink); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: transform 0.2s, background 0.2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 22px; display: none; box-shadow: 0 20px 30px rgba(27,29,31,0.08); }
  .nav.is-open { display: flex; }
  .nav a.nav-link { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a.nav-link[aria-current="page"] { border-bottom-color: var(--accent); }
  .nav .btn { margin-top: 16px; }
}

/* ----- Hero ----- */
.hero { padding-block: clamp(36px, 6vw, 84px); background:
  radial-gradient(1200px 500px at 85% 20%, #fff 0%, rgba(255,255,255,0) 60%), var(--bg-alt); overflow: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 .nb { white-space: nowrap; }
.hero h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.04em; line-height: 1.03; }
.hero .support { font-family: var(--font-display); font-size: var(--step-2); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; margin-top: 20px; color: var(--ink); }
.hero .body { margin-top: 18px; color: var(--ink-2); max-width: 52ch; font-size: var(--step-1); line-height: 1.5; }
.hero .cta-row { margin-top: 32px; }
.hero-tag { margin-top: 26px; font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--ink-2); }
.hero-tag b { color: var(--accent-strong); font-weight: 700; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

/* Page hero (secondary pages) */
.page-hero { padding-block: clamp(40px, 6vw, 80px) clamp(32px, 4vw, 56px); background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; max-width: 20ch; }
.page-hero.wide h1 { max-width: 26ch; }
.page-hero .lead { margin-top: 20px; max-width: 58ch; }
.page-hero .cta-row { margin-top: 28px; }

/* ----- Device mockups (placeholders for real REALOFFICE screenshots) ----- */
.device { position: relative; }
.monitor { background: #14161a; border-radius: 16px; padding: 10px; box-shadow: var(--shadow-lg); }
.monitor-screen { background: #fbfaf8; border-radius: 8px; overflow: hidden; }
.monitor-stand { width: 22%; height: 26px; background: linear-gradient(#2a2d31, #17191c); margin: 0 auto; border-radius: 0 0 6px 6px; }
.monitor-base { width: 42%; height: 8px; background: #17191c; margin: 0 auto; border-radius: 0 0 40px 40px; }
.app { display: grid; grid-template-columns: 26% 1fr; min-height: 300px; font-size: 0.7rem; }
.app-side { background: #f1eee9; padding: 14px 10px; border-right: 1px solid var(--line); }
.app-side .app-logo { font-family: var(--font-display); font-weight: 800; font-size: 0.72rem; letter-spacing: 0.06em; margin-bottom: 14px; display: flex; align-items: center; gap: 6px; }
.app-side .app-logo i { width: 12px; height: 12px; background: var(--accent); border-radius: 3px; display: block; }
.app-side li { padding: 6px 8px; border-radius: 6px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.app-side li.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
.app-side li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; border: 1.5px solid currentColor; opacity: 0.6; flex: none; }
.app-main { padding: 14px 16px; }
.app-main h4 { font-size: 0.9rem; margin-bottom: 12px; letter-spacing: -0.01em; }
.app-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.app-tile { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 8px; min-width: 0; }
.app-tile .ic { width: 22px; height: 22px; border-radius: 6px; margin-bottom: 8px; display: grid; place-items: center; }
.app-tile b { display: block; font-size: 0.68rem; font-family: var(--font-display); }
.app-tile span { display: block; color: var(--ink-3); font-size: 0.6rem; line-height: 1.3; margin-top: 2px; }
.ic-b { background: #dfeeff; } .ic-g { background: #dcf3e4; } .ic-p { background: #ece2fa; } .ic-o { background: #ffe6d3; } .ic-r { background: #ffe1df; } .ic-y { background: #fdf0c9; }
.app-tile .ic::after { content: ""; width: 9px; height: 9px; border-radius: 2px; background: rgba(27,29,31,0.55); }
.caption { font-size: 0.78rem; color: var(--ink-3); margin-top: 12px; text-align: right; }
.placeholder-note { display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-3); border: 1px dashed var(--ink-3); border-radius: 999px; padding: 2px 10px; margin-top: 10px; }

.laptop { background: #14161a; border-radius: 14px 14px 0 0; padding: 9px 9px 0; box-shadow: var(--shadow-lg); }
.laptop-base { height: 12px; background: linear-gradient(#cfcfd1, #a9aaae); border-radius: 0 0 14px 14px; margin: 0 -4%; }
.files { padding: 12px 14px; font-size: 0.7rem; }
.files-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; color: var(--ink-3); }
.files-head b { color: #1b78f2; font-family: var(--font-display); }
.files-row { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-top: 1px solid var(--line); }
.files-row::before { content: ""; width: 18px; height: 14px; background: #4aa3f7; border-radius: 3px 3px 2px 2px; flex: none; }
.files-title { font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; margin-bottom: 6px; }

/* ----- Trust strip ----- */
.trust { background: var(--bg); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trust-item { display: flex; gap: 16px; align-items: center; padding: 26px 20px; border-left: 1px solid var(--line); }
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-item svg { width: 40px; height: 40px; flex: none; color: var(--accent); }
.trust-item b { display: block; font-family: var(--font-display); font-size: 1rem; line-height: 1.2; }
.trust-item span { display: block; font-size: 0.86rem; color: var(--ink-2); margin-top: 3px; }
@media (max-width: 900px) { .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .trust-item:nth-child(3) { border-left: 0; padding-left: 0; } .trust-item { border-top: 1px solid var(--line); } .trust-item:nth-child(-n+2) { border-top: 0; } }
@media (max-width: 520px) { .trust-grid { grid-template-columns: minmax(0, 1fr); } .trust-item, .trust-item:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } .trust-item:first-child { border-top: 0; } }

/* ----- Cards ----- */
.grid { display: grid; gap: clamp(14px, 2vw, 24px); }
.grid-5 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 178px), 1fr)); }
.grid-32 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid-32 > * { grid-column: span 2; }
.grid-32 > *:nth-child(n+4) { grid-column: span 3; }
@media (max-width: 900px) { .grid-32 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-32 > *, .grid-32 > *:nth-child(n+4) { grid-column: span 1; } .grid-32 > *:last-child { grid-column: 1 / -1; } }
@media (max-width: 600px) { .grid-32 { grid-template-columns: minmax(0, 1fr); } }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; min-width: 0; }
.need { display: flex; flex-direction: column; gap: 10px; text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
a.need:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.need h3 { font-size: 1.22rem; font-weight: 700; line-height: 1.2; }
.need p { color: var(--ink-2); font-size: 0.95rem; }
.need .go { margin-top: auto; padding-top: 8px; font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; color: var(--accent-strong); }
.badge { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600; color: var(--ink-2); background: var(--bg-alt); border-radius: 999px; padding: 4px 12px; }
.badge b { color: var(--ink); font-family: var(--font-display); }
.pill-ic { width: 42px; height: 42px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-strong); display: grid; place-items: center; margin-bottom: 6px; }
.pill-ic svg { width: 22px; height: 22px; }

/* ----- Callouts ----- */
.callout { background: var(--accent-soft); border: 1px solid #ffd9c2; border-radius: var(--radius); padding: 22px 26px; }
.callout .label { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-strong); margin-bottom: 6px; }
.callout p { color: var(--ink); }
.callout--neutral { background: var(--surface); border-color: var(--line); }

/* ----- Flow (steps) ----- */
.flow { display: grid; gap: 18px; counter-reset: step; }
.flow--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.flow--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.flow-step { position: relative; padding-right: 8px; min-width: 0; }
.flow-step .n { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent-strong); font-family: var(--font-display); font-weight: 800; display: grid; place-items: center; background: var(--surface); position: relative; z-index: 1; }
.flow-step:not(:last-child)::after { content: ""; position: absolute; top: 21px; left: 56px; right: 8px; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 12px); opacity: 0.6; }
.flow-step h3 { font-size: 1.05rem; font-weight: 700; margin-top: 14px; }
.flow-step p { margin-top: 6px; font-size: 0.92rem; color: var(--ink-2); }
@media (max-width: 900px) {
  .flow--5, .flow--4 { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .flow-step { padding: 0 0 26px 62px; min-height: 70px; }
  .flow-step .n { position: absolute; left: 0; top: 0; }
  .flow-step h3 { margin-top: 0; padding-top: 9px; }
  .flow-step:not(:last-child)::after { top: 50px; left: 21px; right: auto; width: 2px; height: calc(100% - 44px); background: repeating-linear-gradient(180deg, var(--accent) 0 6px, transparent 6px 12px); }
}
.sequence { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); }
.sequence .arr { color: var(--accent); }

/* ----- Software vs used ----- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.ticks li, .crosses li { position: relative; padding: 9px 0 9px 32px; border-bottom: 1px solid var(--line); }
.ticks li:last-child, .crosses li:last-child { border-bottom: 0; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 12px; height: 7px; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg); }
.crosses li::before { content: "\00d7"; position: absolute; left: 4px; top: 5px; font-size: 1.5rem; color: var(--ink-3); line-height: 1.4; }
.ticks--cols { columns: 2; column-gap: 40px; }
.ticks--cols li { break-inside: avoid; }
@media (max-width: 620px) { .ticks--cols { columns: 1; } }

/* ----- Tables ----- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.map { width: 100%; border-collapse: collapse; min-width: 560px; }
table.map th { background: var(--ink); color: #fff; text-align: left; font-family: var(--font-display); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 14px 18px; }
table.map td { padding: 16px 18px; border-top: 1px solid var(--line); vertical-align: top; }
table.map tbody tr:nth-child(even) td { background: #fdfbf7; }
table.map td:first-child { font-weight: 700; font-family: var(--font-display); }
table.map td:nth-child(2) { font-weight: 600; color: var(--accent-strong); white-space: nowrap; }

/* ----- REALOFFICE block ----- */
.ro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.62fr); gap: clamp(20px, 3.5vw, 48px); align-items: center; }
@media (max-width: 1000px) { .ro-grid { grid-template-columns: minmax(0, 1fr); } }
.sys-list { display: grid; gap: 14px; }
.sys { display: flex; align-items: center; gap: 14px; }
.sys .sq { width: 42px; height: 42px; border-radius: 10px; flex: none; display: grid; place-items: center; }
.sys .sq::after { content: ""; width: 16px; height: 16px; border-radius: 4px; background: rgba(27,29,31,0.5); }
.sys b { display: block; font-family: var(--font-display); font-size: 1rem; line-height: 1.2; }
.sys span { display: block; font-size: 0.86rem; color: var(--ink-2); }

/* ----- Screenshot slot ----- */
.shot { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.shot-bar { display: flex; gap: 6px; padding: 10px 14px; background: #f1eee9; border-bottom: 1px solid var(--line); }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d8d0c4; display: block; }
.shot-body { padding: 18px; min-height: 180px; }
.shot-cap { padding: 12px 16px 14px; font-size: 0.86rem; color: var(--ink-2); border-top: 1px solid var(--line); }
.shot-cap b { color: var(--ink); }
.ph-lines { display: grid; gap: 8px; }
.ph-lines i { display: block; height: 12px; border-radius: 4px; background: #eee8de; }
.ph-lines i:nth-child(3n) { width: 62%; } .ph-lines i:nth-child(3n+1) { width: 88%; }
.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; font-size: 0.72rem; }
.kan-col { background: #f6f2ea; border-radius: 8px; padding: 10px; display: grid; gap: 8px; align-content: start; }
.kan-col h5 { margin: 0; font-family: var(--font-display); font-size: 0.72rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.08em; }
.kan-card { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 8px; }
.kan-card i { display: block; height: 8px; background: #e6dfd3; border-radius: 3px; margin-top: 6px; width: 70%; }
.mini-table { width: 100%; border-collapse: collapse; font-size: 0.75rem; }
.mini-table th { text-align: left; color: var(--ink-3); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.mini-table td { padding: 7px 8px; border-bottom: 1px solid #f0eae0; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 0.68rem; font-weight: 600; background: var(--accent-soft); color: var(--accent-strong); }
.tag--g { background: #e3f4e8; color: #226b3b; } .tag--b { background: #e3eefc; color: #1d4f9c; }

.evidence { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 60px); align-items: center; padding-block: clamp(28px, 4vw, 52px); border-top: 1px solid var(--line); }
.evidence:first-of-type { border-top: 0; }
.evidence:nth-child(even) .evidence-text { order: 2; }
@media (max-width: 860px) { .evidence { grid-template-columns: minmax(0, 1fr); } .evidence:nth-child(even) .evidence-text { order: 0; } }
.evidence-text h3 { font-size: var(--step-2); font-weight: 700; margin-bottom: 12px; }
.evidence-text p { color: var(--ink-2); }
.evidence-text .badge { margin-bottom: 14px; }

/* ----- Who we help tiles ----- */
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-width: 0; }
.tile-art { aspect-ratio: 16 / 9; display: grid; place-items: center; background: var(--bg-alt); color: var(--ink); border-bottom: 1px solid var(--line); }
.tile-art svg { width: 62%; height: auto; max-height: 80%; }
.tile-body { padding: 18px 20px 22px; }
.tile-body h3 { font-size: 1.05rem; font-weight: 700; }
.tile-body p { margin-top: 6px; font-size: 0.92rem; color: var(--ink-2); }

/* ----- Managed band ----- */
.managed { background: var(--dark); color: #fff; }
.managed h2 { color: #fff; }
.managed .word { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.05em; font-size: clamp(3.4rem, 2rem + 9vw, 9rem); line-height: 0.95; color: var(--accent); }
.managed-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 860px) { .managed-grid { grid-template-columns: minmax(0, 1fr); } }
.managed p { color: #d6d9dc; font-size: var(--step-1); line-height: 1.5; max-width: 46ch; }
.managed .ticks li { border-color: #3a3f44; color: #fff; }
.managed .ticks li::before { border-color: var(--accent); }

/* ----- Branching path ----- */
.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; position: relative; }
.path { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; }
.path b { font-family: var(--font-display); display: block; line-height: 1.25; }
.path span { display: block; font-size: 0.88rem; color: var(--ink-2); margin-bottom: 2px; }
.path svg { width: 26px; height: 26px; color: var(--accent); flex: none; margin-top: 2px; }
.paths-end { margin-top: 22px; display: flex; align-items: center; gap: 14px; font-family: var(--font-display); font-weight: 700; }
.paths-end::before { content: ""; flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 16px); }
.paths-end span { background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 0.92rem; text-align: center; }

/* ----- Systems tiles ----- */
.sys-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.sys-tile { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.sys-tile .sq { width: 34px; height: 34px; border-radius: 8px; flex: none; display: grid; place-items: center; }
.sys-tile .sq::after { content: ""; width: 12px; height: 12px; border-radius: 3px; background: rgba(27,29,31,0.5); }
.sys-tile small { display: block; color: var(--ink-3); font-size: 0.78rem; line-height: 1.2; }
.sys-tile b { font-family: var(--font-display); font-size: 0.98rem; line-height: 1.2; }

/* ----- Systems catalogue ----- */
.catalog { display: grid; gap: 18px; }
.cat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(18px, 3vw, 44px); }
@media (max-width: 860px) { .cat-card { grid-template-columns: minmax(0, 1fr); } }
.cat-card h3 { font-size: var(--step-2); font-weight: 800; }
.cat-card .cat { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.cat-card dl { margin: 0; display: grid; gap: 12px; }
.cat-card dt { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-strong); }
.cat-card dd { margin: 2px 0 0; color: var(--ink-2); }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; margin-top: 14px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status--ok { background: #e3f4e8; color: #226b3b; }
.status--pilot { background: #fdf0c9; color: #7a5a00; }
.status--eval { background: #eceff3; color: #4b5563; }

/* ----- Forms ----- */
.form { display: grid; gap: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--ink-3); font-size: 0.85rem; }
.field input, .field textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 8px; padding: 12px 14px; min-height: 48px; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: 0; box-shadow: 0 0 0 4px rgba(254, 81, 0, 0.15); }
.field .err { display: none; color: #b42318; font-size: 0.88rem; margin-top: 6px; }
.field.has-error .err { display: block; }
.field.has-error input, .field.has-error textarea { border-color: #b42318; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { border-radius: 10px; padding: 16px 18px; font-size: 0.98rem; }
.form-msg--ok { background: #e3f4e8; color: #1d5a33; border: 1px solid #b9e2c6; }
.form-msg--err { background: #fde9e7; color: #8a1c12; border: 1px solid #f4c3be; }

.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.contact-card .name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.contact-card .role { color: var(--ink-2); font-size: 0.95rem; }
.contact-card ul { margin-top: 14px; display: grid; gap: 6px; }
.contact-card a { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--accent); }

/* ----- Final CTA ----- */
.cta-band { background: var(--dark); color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; right: -160px; top: -160px; width: 520px; height: 520px; border-radius: 50%; border: 60px solid rgba(254, 81, 0, 0.12); pointer-events: none; }
.cta-band h2, .cta-band h3 { color: #fff; }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; position: relative; }
@media (max-width: 900px) { .cta-grid { grid-template-columns: minmax(0, 1fr); } }
.cta-band p { color: #d6d9dc; }
.cta-band .big-q { font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); color: #fff; line-height: 1.2; margin: 22px 0 6px; letter-spacing: -0.02em; }
.cta-band .signoff { margin-top: 26px; padding-top: 22px; border-top: 1px solid #3a3f44; font-size: 0.95rem; }
.cta-band .signoff b { color: #fff; font-family: var(--font-display); }
.cta-band .signoff a { color: #fff; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.cta-band .form { background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: clamp(20px, 3vw, 30px); }
.cta-band .form p { color: var(--ink-2); }

/* ----- Footer ----- */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding-block: 44px 28px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.site-footer img { height: 44px; width: auto; }
.site-footer .unit { margin-top: 14px; font-size: 0.9rem; color: var(--ink-2); }
.site-footer .desc { margin-top: 6px; font-size: 0.9rem; color: var(--ink-2); max-width: 40ch; }
.site-footer h4 { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; font-weight: 700; }
.site-footer li a { display: inline-block; padding: 5px 0; text-decoration: none; font-size: 0.95rem; }
.site-footer li a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 0.84rem; color: var(--ink-3); }
.footer-bottom a { text-decoration: none; margin-left: 18px; }
.footer-bottom a:first-child { margin-left: 0; }

/* ----- Legal pages ----- */
.legal h2 { font-size: var(--step-1); margin: 32px 0 8px; font-weight: 700; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; margin-top: 8px; }
.notice { background: #fff7e0; border: 1px solid #f0d98a; border-radius: 10px; padding: 14px 18px; font-size: 0.92rem; color: #5c4700; }

/* ----- Motion (from a visible resting state) ----- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise 0.6s ease both; }
  @keyframes rise { from { transform: translateY(10px); opacity: 0.001; } to { transform: none; opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

@media (max-width: 560px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .app-side { display: none; }
  .app-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-tile:nth-child(n+5) { display: none; }
}
.sq.has-logo::after { display: none !important; content: none; }
.sq.has-logo { overflow: hidden; }
.sq.has-logo img { width: 62%; height: 62%; max-width: none; object-fit: contain; }
.sq.has-logo img[src$="plane.png"] { width: 100%; height: 100%; object-fit: cover; }
.page-hero--img { position: relative; overflow: hidden; min-height: clamp(460px, 36vw, 680px); display: flex; align-items: center; }
.page-hero--img::before { content: ""; position: absolute; top: 0; bottom: 0; right: 0; aspect-ratio: 16 / 9; background: url("../img/open-source-hero.jpg") center / cover no-repeat; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28%); mask-image: linear-gradient(90deg, transparent 0, #000 28%); }
.page-hero--img > .wrap { position: relative; z-index: 1; width: 100%; }
.page-hero--img h1, .page-hero--img .lead { max-width: 46%; }
.page-hero--img h1 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.4rem); }
@media (max-width: 900px) {
  .page-hero--img { display: block; min-height: 0; padding-top: calc(56vw + 24px); }
  .page-hero--img::before { left: 0; right: 0; bottom: auto; width: 100%; height: 56vw; aspect-ratio: auto; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
  .page-hero--img h1, .page-hero--img .lead { max-width: none; }
}
.grid-rect { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-rect > .card { display: grid; grid-template-columns: 44px 1fr; column-gap: 20px; align-items: start; padding: 24px 28px; }
.grid-rect > .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.grid-rect .pill-ic { grid-row: 1 / span 2; width: 44px; height: 44px; margin: 0; background: none; border-radius: 0; place-items: start; }
.grid-rect .pill-ic svg { width: 40px; height: 40px; stroke-width: 1.5; }
.grid-rect .card p { margin-top: 6px !important; }
@media (max-width: 700px) { .grid-rect { grid-template-columns: 1fr; } }
/* Typography: serif headings + Source Sans body */
body { font-size: 1.0625rem; line-height: 1.65; }
h1, h2, h3, .h-xl, .h-lg, .h-md, .h-sm, .big-q, .managed .word { font-family: var(--font-serif) !important; font-weight: 500 !important; letter-spacing: -0.015em !important; }
h1, .h-xl { line-height: 1.1 !important; }
.lead { font-size: 1.125rem; }
.pill-ic.pill-logo { background: none; border-radius: 0; width: 46px; height: 46px; }
.pill-ic.pill-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; max-width: none; }

/* ----- How we work: animated flow ----- */
@media (prefers-reduced-motion: no-preference) {
  .flow.js-flow .flow-step .n { transform: scale(0.4); opacity: 0; }
  .flow.js-flow .flow-step h3, .flow.js-flow .flow-step p { opacity: 0; transform: translateY(12px); }
  .flow.js-flow .flow-step:not(:last-child)::after { transform: scaleX(0); transform-origin: left center; }
  .flow.js-flow.is-in .flow-step .n { animation: flowPop 0.5s cubic-bezier(.2,1.4,.4,1) forwards, flowActive calc(var(--n, 5) * 1.8s) ease-in-out infinite; animation-delay: calc(var(--i) * 0.55s), calc(var(--i) * 1.8s + 3s); }
  .flow.js-flow.is-in .flow-step h3, .flow.js-flow.is-in .flow-step p { opacity: 1; transform: none; transition: opacity 0.5s ease, transform 0.5s ease; transition-delay: calc(var(--i) * 0.55s + 0.25s); }
  .flow.js-flow.is-in .flow-step:not(:last-child)::after { transform: scaleX(1); transition: transform 0.55s ease; transition-delay: calc(var(--i) * 0.55s + 0.3s); }
  @keyframes flowPop { to { transform: scale(1); opacity: 1; } }
  @keyframes flowActive {
    0%, 22%, 100% { background: var(--surface); color: var(--accent-strong); box-shadow: 0 0 0 0 rgba(255,154,92,0); }
    6%, 16% { background: var(--accent); color: var(--ink); box-shadow: 0 0 0 8px rgba(255,154,92,0.25); }
  }
  @media (max-width: 900px) {
    .flow.js-flow .flow-step:not(:last-child)::after { transform: scaleY(0); transform-origin: top center; }
    .flow.js-flow.is-in .flow-step:not(:last-child)::after { transform: scaleY(1); }
  }
  .sequence.js-seq .arr { display: inline-block; animation: arrNudge 1.6s ease-in-out infinite; }
  @keyframes arrNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
}

/* ----- Dark footer ----- */
.site-footer { background: #0b0e13; border-top: 0; color: #a9adb3; padding-block: 56px 32px; }
.footer-grid { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.site-footer img { height: 44px; width: auto; background: none; padding: 0; }
.site-footer .desc { margin-top: 22px; color: #a9adb3; font-size: 0.95rem; line-height: 1.7; max-width: 36ch; }
.site-footer h4 { color: #fff; font-size: 0.78rem; letter-spacing: 0.14em; }
.site-footer li { margin-bottom: 6px; }
.site-footer li a, .site-footer li span { display: inline-block; padding: 5px 0; font-size: 0.95rem; color: #a9adb3; text-decoration: none; }
.site-footer li a:hover, .footer-bottom a:hover { color: #fff; text-decoration: none; }
.footer-bottom { margin-top: 44px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.12); color: #8b9097; align-items: center; }
.footer-bottom a { color: #a9adb3; margin-left: 24px; }
.footer-bottom a:first-child { margin-left: 0; }
.footer-bottom a.to-top { color: #fff; font-weight: 600; }

/* ----- "What are you trying to manage better?" illustrated cards ----- */
.grid-illus { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-illus > .card.need { display: grid; grid-template-columns: 170px 1fr; grid-template-rows: 1fr auto; column-gap: 24px; row-gap: 6px; padding: 20px 26px 20px 20px; align-items: center; }
.grid-illus > .card.need:last-child:nth-child(odd) { grid-column: 1 / -1; }
.grid-illus .illus { grid-row: 1 / span 2; background: var(--bg-alt); border-radius: 10px; padding: 12px; align-self: stretch; display: grid; place-items: center; }
.grid-illus .illus svg { width: 100%; height: auto; max-height: 120px; }
.grid-illus .need-body { align-self: end; }
.grid-illus .need-body p { margin-top: 8px; }
.grid-illus .go { align-self: start; padding-top: 4px; }
@media (max-width: 700px) {
  .grid-illus { grid-template-columns: 1fr; }
  .grid-illus > .card.need { grid-template-columns: 110px 1fr; column-gap: 16px; }
}

/* ----- Step mini illustrations (4-step flow) ----- */
.step-ill { margin: 16px 0 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.step-ill svg { width: 100%; height: auto; max-height: 96px; }
@media (max-width: 900px) {
  .flow--4 .flow-step { padding-left: 62px; }
  .step-ill { max-width: 240px; margin: 12px 0 8px; }
}
@media (prefers-reduced-motion: no-preference) {
  .flow.js-flow .flow-step .step-ill { opacity: 0; transform: translateY(12px) scale(.96); }
  .flow.js-flow.is-in .flow-step .step-ill { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease; transition-delay: calc(var(--i) * 0.55s + 0.2s); }
}
/* step illustrations: no box, small, left-aligned */
.step-ill { background: none; border: 0; border-radius: 0; padding: 0; margin: 14px 0 2px; }
.step-ill svg { width: 132px; max-width: 100%; height: auto; max-height: none; }
.step-ill svg [fill="#fff"] { fill: transparent; }
@media (max-width: 900px) { .step-ill { max-width: none; } }
.cat-card .sys-logo { width: 48px; height: 48px; object-fit: contain; border-radius: 10px; margin-bottom: 14px; }
.section--white { background: #f9f3e8; border-block: 1px solid #e8dfcd; }

/* ----- Mobile / tablet / iPhone hardening ----- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: rgba(255,154,92,0.25); }
body { overflow-wrap: break-word; }
img, svg, video { max-width: 100%; }
/* iOS Safari zooms into inputs below 16px */
.field input, .field textarea, .field select { font-size: 16px; }
.field input, .field textarea { -webkit-appearance: none; appearance: none; }
.btn, .nav-toggle, .nav a { touch-action: manipulation; }
/* iPhone notch / home-indicator safe areas */
.site-header .wrap, .site-footer .wrap { padding-left: max(var(--gutter, 16px), env(safe-area-inset-left)); padding-right: max(var(--gutter, 16px), env(safe-area-inset-right)); }
.site-footer { padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
/* tables scroll inside their wrapper instead of stretching the page */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 700px) {
  .grid-illus > .card.need { grid-template-columns: 1fr; grid-template-rows: auto; row-gap: 10px; padding: 16px; }
  .grid-illus .illus { grid-row: auto; height: 120px; }
  .grid-illus .illus svg { max-height: 96px; }
  .grid-illus .need-body { align-self: start; }
  .grid-illus .go { padding-top: 0; }
  .grid-rect > .card { grid-template-columns: 36px 1fr; column-gap: 14px; padding: 18px; }
  .grid-rect .pill-ic, .grid-rect .pill-ic svg { width: 32px; height: 32px; }
  .cta-row .btn { width: 100%; }
}
@media (max-width: 480px) {
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom a { margin-left: 0; margin-right: 18px; }
}
@media (hover: none) { a.need:hover { transform: none; } }
@media (max-width: 1000px) {
  .grid-illus > .card.need { grid-template-columns: 1fr; grid-template-rows: auto; row-gap: 10px; padding: 16px; }
  .grid-illus .illus { grid-row: auto; height: 130px; }
  .grid-illus .illus svg { max-height: 100px; }
  .grid-illus .need-body { align-self: start; }
  .grid-illus .go { padding-top: 0; }
}
/* system logos stand alone, no tinted box */
.sq.has-logo { background: none !important; border-radius: 0; overflow: visible; }
.sq.has-logo img { width: 100%; height: 100%; object-fit: contain; }
.sys .sq.has-logo { width: 46px; height: 46px; }
.sys-tile .sq.has-logo { width: 38px; height: 38px; }
.sq.has-logo img[src$="plane.png"], .sq.has-logo img[src$="twenty.svg"] { border-radius: 9px; }
/* spacing + smaller logos in system lists */
.sys-list { gap: 26px; }
.sys { gap: 16px; }
.sys .sq { width: 42px; height: 42px; }
.sys .sq.has-logo { width: 42px; height: 42px; padding: 5px; box-sizing: border-box; }
.sys-tile .sq.has-logo { width: 38px; height: 38px; padding: 4px; box-sizing: border-box; }
/* "Managed." must never break onto two lines */
.managed .word { font-size: clamp(2.8rem, 1rem + 6.4vw, 6.5rem) !important; white-space: nowrap; overflow-wrap: normal; word-break: normal; hyphens: none; }
/* footer background: plain deep navy, no tint */
.site-footer { background: #13171f; }
.site-footer .brand img { height: 40px; width: auto; max-width: 100%; }

/* Evidence logos + plain status */
.evidence-text .ev-logo { display: block; height: 44px; width: auto; max-width: 160px; margin: 0 0 14px; }
.status { background: none !important; padding: 0; border-radius: 0; }

/* What we manage: pillars */
.grid-pillars > .card .txt { min-width: 0; }
.grid-pillars .pillar-tag { font-weight: 700; color: var(--ink); margin-top: 6px; }
.grid-pillars .card .muted { margin-top: 8px !important; }

/* What we manage: hero image (same size/layout as Why Open Source hero) */
.page-hero--wm { position: relative; overflow: hidden; min-height: clamp(460px, 36vw, 680px); display: flex; align-items: center; }
.page-hero--wm::before { content: ""; position: absolute; top: 0; bottom: 0; right: 0; aspect-ratio: 16 / 9; background: url("../img/what-we-manage-hero-v2.jpg") center / cover no-repeat; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28%); mask-image: linear-gradient(90deg, transparent 0, #000 28%); pointer-events: none; }
.page-hero--wm > .wrap { position: relative; z-index: 1; width: 100%; }
.page-hero--wm h1, .page-hero--wm .lead { max-width: 46%; }
.page-hero--wm h1 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.4rem); }
@media (max-width: 900px) {
  .page-hero--wm { display: block; min-height: 0; padding-top: calc(56vw + 24px); }
  .page-hero--wm::before { left: 0; right: 0; bottom: auto; width: 100%; height: 56vw; aspect-ratio: auto; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
  .page-hero--wm h1, .page-hero--wm .lead { max-width: none; }
}
/* What we manage hero: centre the diagram on tablet/phone */
@media (max-width: 1100px) {
  .page-hero--wm { padding-top: calc(62vw + 24px); }
  .page-hero--wm::before { height: 62vw; background-size: 130% auto; background-position: -35.8vw center; }
}
@media (max-width: 1100px) {
  .page-hero--wm::before { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 72%, transparent 93%), linear-gradient(180deg, #000 70%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 72%, transparent 93%), linear-gradient(180deg, #000 70%, transparent); mask-composite: intersect; }
}
#talk .cta-grid { grid-template-columns: minmax(0, 1fr); max-width: 680px; }

/* REALOFFICE example hero */
.page-hero--ro { position: relative; overflow: hidden; display: flex; align-items: center; min-height: clamp(420px, 33.4vw, 640px); }
.page-hero--ro::before { content: ""; position: absolute; inset: 0; background: url("../img/realoffice-hero.jpg") right center / cover no-repeat; }
.page-hero--ro > .wrap { position: relative; z-index: 1; width: 100%; }
.page-hero--ro h1, .page-hero--ro .lead { max-width: 44%; }
@media (max-width: 900px) {
  .page-hero--ro { display: block; min-height: 0; padding-top: calc(52vw + 24px); }
  .page-hero--ro::before { inset: 0 0 auto 0; height: 52vw; background-position: 78% center; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
  .page-hero--ro h1, .page-hero--ro .lead { max-width: none; }
}
@media (min-width: 901px) {
  .page-hero--ro::before { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%); mask-image: linear-gradient(90deg, transparent 0, #000 30%); }
  .page-hero--ro h1 { max-width: 480px !important; font-size: clamp(2rem, 1rem + 2.2vw, 3rem) !important; }
  .page-hero--ro .lead { max-width: 480px !important; }
}
@media (min-width: 901px) {
  .page-hero--ro::before { -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent 22%, #000 46%); mask-image: linear-gradient(90deg, transparent 0, transparent 22%, #000 46%); }
}

/* REALOFFICE hero v2 (16:9 image) */
.page-hero--ro { min-height: clamp(460px, 36vw, 680px); }
.page-hero--ro::before { inset: 0 0 0 auto; width: auto; height: auto; aspect-ratio: 16 / 9; background: url("../img/realoffice-hero-v2.jpg") center / cover no-repeat; }
@media (min-width: 901px) {
  .page-hero--ro::before { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28%); mask-image: linear-gradient(90deg, transparent 0, #000 28%); }
}
@media (max-width: 900px) {
  .page-hero--ro { padding-top: calc(56vw + 24px); }
  .page-hero--ro::before { inset: 0 0 auto 0; width: 100%; height: 56vw; aspect-ratio: auto; background-position: center; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
}

/* How we work hero */
.page-hero--hw { position: relative; overflow: hidden; display: flex; align-items: center; min-height: clamp(460px, 36vw, 680px); }
.page-hero--hw::before { content: ""; position: absolute; inset: 0 0 0 auto; aspect-ratio: 16 / 9; background: url("../img/how-we-work-hero-v2.jpg") center / cover no-repeat; }
.page-hero--hw > .wrap { position: relative; z-index: 1; width: 100%; }
.page-hero--hw h1, .page-hero--hw .lead { max-width: 480px !important; }
.page-hero--hw h1 { font-size: clamp(2rem, 1rem + 2.2vw, 3rem) !important; }
@media (min-width: 901px) {
  .page-hero--hw::before { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28%); mask-image: linear-gradient(90deg, transparent 0, #000 28%); }
}
@media (max-width: 900px) {
  .page-hero--hw { display: block; min-height: 0; padding-top: calc(56vw + 24px); }
  .page-hero--hw::before { inset: 0 0 auto 0; width: 100%; height: 56vw; aspect-ratio: auto; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
  .page-hero--hw h1, .page-hero--hw .lead { max-width: none !important; }
}

/* Home hero with background photo */
.hero { position: relative; display: flex; align-items: center; min-height: clamp(520px, 38vw, 720px); background: var(--bg-alt); }
.hero::before { content: ""; position: absolute; inset: 0 0 0 auto; aspect-ratio: 2029 / 775; max-width: 100%; background: url("../img/home-hero.jpg") center / cover no-repeat; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }
.hero > .hero-grid { position: relative; z-index: 1; width: 100%; grid-template-columns: minmax(0, 520px); }
.hero h1 { font-size: clamp(2rem, 1rem + 2.6vw, 3.3rem); }
@media (max-width: 900px) {
  .hero { display: block; min-height: 0; padding-top: calc(38vw + 24px); }
  .hero::before { inset: 0 0 auto 0; width: 100%; height: 38vw; aspect-ratio: auto; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
  .hero > .hero-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 901px) {
  .hero::before { inset: 0 0 0 auto; width: 80%; aspect-ratio: auto; background-position: right center; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 20%); mask-image: linear-gradient(90deg, transparent 0, #000 20%); }
  .hero > .hero-grid { grid-template-columns: minmax(0, 460px); }
  .hero h1 { font-size: clamp(2rem, 1rem + 2.2vw, 3rem); }
  .hero .body { font-size: var(--step-0, 1.05rem); }
}
@media (min-width: 901px) {
  .hero::before { inset: 0; width: auto; background: url("../img/home-hero-v2.jpg") right center / cover no-repeat; -webkit-mask-image: none; mask-image: none; }
}
@media (max-width: 900px) { .hero::before { background-image: url("../img/home-hero.jpg"); } }
@media (min-width: 901px) {
  .hero { min-height: 0; padding-block: clamp(40px, 4vw, 64px); }
  .hero::before { inset: auto 0 0 auto; width: 82%; aspect-ratio: 2029 / 775; background: url("../img/home-hero.jpg") center / 100% 100% no-repeat; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24%), linear-gradient(180deg, transparent 0, #000 22%); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 24%), linear-gradient(180deg, transparent 0, #000 22%); mask-composite: intersect; }
}

/* Home hero: full-screen */
@media (min-width: 901px) {
  .hero { min-height: calc(100vh - 76px); min-height: calc(100svh - 76px); padding-block: 48px; }
  .hero::before { inset: 0; width: auto; aspect-ratio: auto; background: url("../img/home-hero-v3.jpg") right bottom / cover no-repeat; -webkit-mask-image: none; mask-image: none; }
}
@media (min-width: 901px) {
  .hero::before { inset: auto 0 0 auto; width: 94%; aspect-ratio: 2029 / 775; background: url("../img/home-hero.jpg") center / 100% 100% no-repeat; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 26%), linear-gradient(180deg, transparent 0, #000 30%); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 26%), linear-gradient(180deg, transparent 0, #000 30%); mask-composite: intersect; }
}
@media (min-width: 901px) { .hero > .hero-grid { grid-template-columns: minmax(0, 420px); } .hero h1 { font-size: clamp(2rem, 1rem + 2vw, 2.8rem); } }
@media (min-width: 901px) {
  .hero::before { inset: 0 0 0 auto; width: 94%; aspect-ratio: auto; background: url("../img/home-hero-v4.jpg") center bottom / cover no-repeat; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 26%); mask-image: linear-gradient(90deg, transparent 0, #000 26%); -webkit-mask-composite: source-over; mask-composite: add; }
}
@media (min-width: 901px) {
  .hero::before { inset: 0; width: auto; background: url("../img/home-hero.jpg") 40% center / cover no-repeat; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }
}
@media (min-width: 901px) {
  .hero::before { background-position: 8% center; -webkit-mask-image: none; mask-image: none; }
  .hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #f5ede2 0, rgba(245,237,226,.94) 28%, rgba(245,237,226,.55) 42%, rgba(245,237,226,0) 56%); pointer-events: none; }
}
@media (min-width: 901px) {
  .hero { background: linear-gradient(90deg, #E2CAB1 0%, #FAE8CF 8%, #F3E1C8 17%, #DFC8B2 25%, #B6B6A8 33%, #BFB5A5 42%, #725E40 50%, #4C4627 58%, #877764 67%, #C8C7C2 75%, #B7B2A6 88%, #756857 100%); }
  .hero::before { inset: auto 0 0 0; width: auto; aspect-ratio: 2029 / 775; background: url("../img/home-hero.jpg") center / 100% 100% no-repeat; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%); mask-image: linear-gradient(180deg, transparent 0, #000 16%); }
}
@media (min-width: 901px) { .hero::after { background: linear-gradient(90deg, rgba(245,237,226,.9) 0, rgba(245,237,226,.85) 20%, rgba(245,237,226,.4) 33%, rgba(245,237,226,0) 43%); } }
@media (min-width: 901px) { .hero::after { background: linear-gradient(90deg, rgba(245,237,226,.92) 0, rgba(245,237,226,.9) 30%, rgba(245,237,226,.5) 39%, rgba(245,237,226,0) 46%); } }
@media (min-width: 901px) {
  .hero { background: var(--bg-alt); }
  .hero::before { inset: 0; width: auto; aspect-ratio: auto; background: url("../img/home-hero.jpg") right center / cover no-repeat; -webkit-mask-image: none; mask-image: none; }
  .hero::after { background: linear-gradient(90deg, rgba(245,237,226,.95) 0, rgba(245,237,226,.9) 28%, rgba(245,237,226,.5) 38%, rgba(245,237,226,0) 46%); }
  .hero > .hero-grid { grid-template-columns: minmax(0, 400px); }
}
@media (min-width: 901px) {
  .hero { min-height: max(38.2vw, 580px); padding-block: 40px; }
  .hero::before { background-position: right center; }
  .hero::after { background: linear-gradient(90deg, rgba(245,237,226,.92) 0, rgba(245,237,226,.85) 24%, rgba(245,237,226,.4) 34%, rgba(245,237,226,0) 42%); }
  .hero > .hero-grid { grid-template-columns: minmax(0, 420px); }
  .hero h1 { font-size: clamp(1.9rem, 1rem + 1.8vw, 2.6rem); }
}
@media (min-width: 901px) {
  .hero::before { inset: 0 0 0 14%; background-position: right center; }
  .hero::after { background: linear-gradient(90deg, #f5ede2 0, rgba(245,237,226,.97) 30%, rgba(245,237,226,.8) 38%, rgba(245,237,226,.35) 46%, rgba(245,237,226,0) 54%); }
}
@media (min-width: 901px) and (max-width: 1199px) {
  .hero { display: block; min-height: 0; padding-top: calc(38.2vw + 28px); padding-bottom: 44px; }
  .hero::before { inset: 0 0 auto 0; height: 38.2vw; background-position: center; -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent); mask-image: linear-gradient(180deg, #000 78%, transparent); }
  .hero::after { display: none; }
  .hero > .hero-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Home hero: 16:9 photo */
.hero::before { background-image: url("../img/home-hero-v10.jpg"); }
@media (min-width: 1200px) {
  .hero { min-height: calc(100vh - 76px); min-height: calc(100svh - 76px); }
  .hero::before { inset: 0; background-size: cover; background-position: right center; -webkit-mask-image: none; mask-image: none; }
  .hero::after { background: linear-gradient(90deg, rgba(245,237,226,.9) 0, rgba(245,237,226,.8) 22%, rgba(245,237,226,.35) 34%, rgba(245,237,226,0) 44%); }
}
@media (max-width: 1199px) {
  .hero { padding-top: calc(56vw + 28px); }
  .hero::before { height: 56vw; background-size: cover; }
}
@media (min-width: 1200px) {
  .hero > .hero-grid { grid-template-columns: minmax(0, 400px); }
  .hero::after { background: linear-gradient(90deg, rgba(245,237,226,.93) 0, rgba(245,237,226,.88) 30%, rgba(245,237,226,.45) 38%, rgba(245,237,226,0) 46%); }
}

/* Laptop showing a real screenshot */
.monitor-screen--img { padding: 0 !important; overflow: hidden; background: #fff; border-radius: 6px; }
.monitor-screen--img img { display: block; width: 100%; height: auto; }

/* Hero supporting line */
.hero .hero-sub{margin:14px 0 0;font-family:var(--font-display);font-weight:600;font-size:clamp(1.15rem,1.8vw,1.45rem);line-height:1.35;color:var(--ink,#1f2326)}

/* Product screenshots on REALOFFICE example */
.shot-img{display:block;width:100%;height:auto;background:#fff}
.shot-img{cursor:zoom-in}
.lightbox{position:fixed;inset:0;z-index:1000;background:rgba(19,23,31,.88);display:flex;align-items:center;justify-content:center;padding:24px;cursor:zoom-out}
.lightbox[hidden]{display:none}
.lightbox img{max-width:min(96vw,1600px);max-height:92vh;width:auto;height:auto;border-radius:8px;background:#fff;box-shadow:0 20px 60px rgba(0,0,0,.5);cursor:default}
.lightbox-close{position:absolute;top:14px;right:18px;width:44px;height:44px;border:0;border-radius:50%;background:#fff;color:#1f2326;font-size:28px;line-height:1;cursor:pointer}

/* Home hero: keep header at one screen height; whole picture shown, left edge blends into matching colour */
@media (min-width:1200px){
  .hero{min-height:calc(100svh - 76px);background:linear-gradient(180deg,#FAF6F0 0,#FAF5EF 50%,#F6E9DC 75%,#F1E1D2 100%)}
  .hero::before{background-size:auto 100%;background-position:right center;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 140px);mask-image:linear-gradient(90deg,transparent 0,#000 140px)}
}

/* What We Manage hero: the picture IS the header; text sits in its empty top-left corner */
.page-hero--wm{position:relative;overflow:hidden;padding:0;min-height:56.25vw;background:#faf3ea}
.page-hero--wm .wm-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:0;display:block}
.page-hero--wm .wm-grid{display:block;padding-top:clamp(28px,3.4vw,56px)}
.page-hero--wm .wm-text{max-width:34vw;position:relative;z-index:1}
.page-hero--wm .wm-text h1{font-size:clamp(1.5rem,1rem + 1.6vw,2.4rem)!important;max-width:none}
.page-hero--wm .wm-text .lead{max-width:none;font-size:clamp(.9rem,.7rem + .5vw,1.1rem);margin-top:12px}
@media (max-width:900px){
  .page-hero--wm{min-height:0;padding-bottom:0}
  .page-hero--wm .wm-grid{padding-top:36px}
  .page-hero--wm .wm-text{max-width:none;padding-bottom:20px}
  .page-hero--wm .wm-text h1{font-size:clamp(1.8rem,6vw,2.4rem)!important}
  .page-hero--wm .wm-img{position:static;height:auto;margin-top:8px}
}
.page-hero--wm>.wrap,.page-hero--wm .wm-grid{position:static!important}
.page-hero--wm .wm-img{max-width:none!important}
.page-hero--wm{display:block!important;align-items:flex-start}
@media (min-width:901px){
  .page-hero--wm .wm-grid{padding-top:clamp(20px,2.2vw,40px)!important}
  .page-hero--wm .wm-text{max-width:31vw}
  .page-hero--wm .wm-text h1{font-size:clamp(1.4rem,.8rem + 1.4vw,2.2rem)!important;line-height:1.12}
  .page-hero--wm .wm-text .lead{font-size:clamp(.85rem,.6rem + .4vw,1rem);line-height:1.5;margin-top:10px}
}
@media (min-width:901px){.page-hero--wm .wm-text{max-width:24vw!important}}
@media (min-width:901px){
  .page-hero--wm{display:flex!important;align-items:center;min-height:min(56.25vw,760px)}
  .page-hero--wm .wm-grid{padding-top:0!important}
  .page-hero--wm .wm-text{max-width:34vw!important}
  .page-hero--wm .wm-text h1{font-size:clamp(1.8rem,1rem + 1.9vw,2.9rem)!important}
  .page-hero--wm .wm-text .lead{font-size:clamp(.95rem,.7rem + .5vw,1.15rem)}
  .page-hero--wm .wm-img{object-position:right center}
}
@media (min-width:901px){
  .page-hero--wm .wm-text{max-width:25vw!important}
  .page-hero--wm .wm-text h1{font-size:clamp(1.5rem,.8rem + 1.7vw,2.6rem)!important}
  .page-hero--wm .wm-text .lead{font-size:clamp(.88rem,.65rem + .45vw,1.05rem)}
}
@media (min-width:901px){.page-hero--wm .wm-text{max-width:min(25vw,330px)!important}}
@media (min-width:901px){
  .page-hero--wm{min-height:42vw!important;background:#faf3ea}
  .page-hero--wm .wm-img{inset:auto!important;top:0;right:0;height:100%!important;width:auto!important;aspect-ratio:16/9;object-fit:cover;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 18%);mask-image:linear-gradient(90deg,transparent 0,#000 18%)}
  .page-hero--wm .wm-text{max-width:min(30vw,380px)!important}
}
@media (min-width:901px){.page-hero--wm .wm-img{top:0!important;right:0!important;bottom:auto!important;left:auto!important;position:absolute!important}}
@media (min-width:901px){
  .page-hero--wm{min-height:clamp(460px,36vw,680px)!important}
  .page-hero--wm .wm-text{max-width:min(34vw,440px)!important}
  .page-hero--wm .wm-text h1{font-size:clamp(1.9rem,1rem + 2.2vw,3rem)!important}
  .page-hero--wm .wm-text .lead{font-size:clamp(.95rem,.7rem + .5vw,1.15rem)}
}
.spaths-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:16px}
.sp{background:var(--surface);border:1px solid var(--line);border-top:3px solid var(--accent);border-radius:var(--radius);padding:20px 20px 22px;display:flex;flex-direction:column;gap:10px;position:relative}
.sp-k{font-size:.85rem;color:var(--ink-2);order:2}
.sp-ic{order:1;width:44px;height:44px;border-radius:12px;background:#fff1e8;color:var(--accent);display:grid;place-items:center}
.sp-ic svg{width:24px;height:24px}
.sp b{order:3;font-family:var(--font-display);font-size:1.08rem;line-height:1.25}
.spaths-join{height:26px;margin:0 12.5%;border:2px dashed var(--accent);border-top:0;border-radius:0 0 14px 14px;opacity:.7}
.spaths-end{display:flex;justify-content:center;margin-top:-1px;position:relative}
.spaths-end::before{content:"";position:absolute;top:-1px;left:50%;height:14px;border-left:2px dashed var(--accent);opacity:.7;transform:translateY(-100%)}
.spaths-end span{background:var(--ink);color:#fff;padding:14px 28px;border-radius:999px;font-family:var(--font-display);font-weight:700;margin-top:14px}
@media (max-width:700px){.spaths-join,.spaths-end::before{display:none}.spaths-end{margin-top:16px}.spaths-end span{margin-top:0}}
.sp-ic{width:auto;height:auto;background:none;border-radius:0;display:block}
.sp-ic svg{width:34px;height:34px}
.sp-ic{align-self:flex-start;line-height:0}.sp-ic svg{display:block}
@media (max-width:900px){
  .page-hero--wm{overflow:hidden}
  .page-hero--wm .wm-img{position:static!important;display:block;width:165%!important;max-width:none!important;height:auto!important;margin:-6vw 0 -10vw -60%!important;-webkit-mask-image:none;mask-image:none;aspect-ratio:auto}
}
