/* Altilia — site stylesheet
   Palette: Altilia brand slate + teal on paper. One type family: Instrument Sans. */

:root {
  --paper: #ffffff;
  --mist: #f2f5f6;
  --mist-2: #e9eef0;
  --ink: #151b21;
  --slate: #202830;
  --slate-2: #2a343e;
  --steel: #5a6570;
  --line: #e1e7ea;
  --line-dark: rgba(255, 255, 255, 0.12);
  --teal: #14e4cc;
  --teal-ink: #0c8f86;
  --teal-soft: rgba(20, 228, 204, 0.16);
  --amber: #f2b234;

  --font: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
  --pill: 999px;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --section-s: clamp(48px, 7vw, 88px);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "ss01", "cv05";
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--teal-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--teal-soft);
}

/* ---------- Type scale ---------- */

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-wrap: balance;
}

.display {
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.display-m {
  font-size: clamp(2.2rem, 4.8vw, 3.9rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
}

h2,
.h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.06;
}

h3,
.h3 {
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h4,
.h4 {
  font-size: 1.1rem;
  line-height: 1.3;
}

.lead {
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.45;
  color: var(--steel);
  max-width: 34em;
}

.lead strong {
  color: var(--ink);
  font-weight: 500;
}

.muted {
  color: var(--steel);
}

.small {
  font-size: 0.925rem;
}

.measure {
  max-width: 66ch;
}

.ink-link {
  border-bottom: 1px solid var(--line);
  transition: border-color 0.2s;
}

.ink-link:hover {
  border-color: var(--ink);
}

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.container.wide {
  max-width: 1440px;
}

.section {
  padding-top: var(--section);
  padding-bottom: var(--section);
}

.section.tight {
  padding-top: var(--section-s);
  padding-bottom: var(--section-s);
}

.section.mist {
  background: var(--mist);
}

.section.dark {
  background: var(--slate);
  color: #fff;
}

.section.dark .lead,
.section.dark .muted {
  color: rgba(255, 255, 255, 0.68);
}

.section-head {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section-head.split {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: end;
  gap: 48px;
}

.section-head h2 {
  max-width: 20ch;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stack > * + * {
  margin-top: 16px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--pill);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.btn-primary:hover {
  background: var(--slate-2);
  border-color: var(--slate-2);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: rgba(21, 27, 33, 0.28);
}

.btn-outline:hover {
  border-color: var(--ink);
  background: rgba(21, 27, 33, 0.04);
}

.btn-teal {
  background: var(--teal);
  color: var(--slate);
  border-color: var(--teal);
}

.btn-teal:hover {
  background: #2ff0da;
}

.dark .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
}

.dark .btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.dark .btn-primary {
  background: #fff;
  color: var(--slate);
  border-color: #fff;
}

.dark .btn-primary:hover {
  background: #eef2f4;
}

.btn-sm {
  padding: 10px 16px;
  font-size: 0.925rem;
}

/* ---------- Announcement bar ---------- */

.announce {
  background: var(--slate);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.875rem;
  text-align: center;
  padding: 9px var(--gutter);
}

.announce a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--teal);
  text-underline-offset: 3px;
  margin-left: 8px;
}

/* whole bar is the link (tappable on mobile, where the text is truncated); the label keeps the underline */
.announce .announce-link {
  color: inherit;
  text-decoration: none;
  margin-left: 0;
}

.announce .announce-link span {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--teal);
  text-underline-offset: 3px;
  margin-left: 8px;
}

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s;
}

.nav.scrolled {
  border-color: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}

.brand img {
  height: 30px;
  width: auto;
  flex: none;
  min-width: 90px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
}

.nav-links > li {
  position: relative;
  flex: none;
}

.nav-links .chev {
  flex: none;
}

.nav-links a,
.nav-links button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 9px;
  white-space: nowrap;
  border-radius: var(--pill);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  background: none;
  border: 0;
  cursor: pointer;
  transition: background 0.2s;
}

.nav-links a:hover,
.nav-links button:hover,
.nav-links > li.open > button,
.nav-links a.active {
  background: var(--mist);
}

.nav-links a.active {
  color: var(--teal-ink);
}

.nav-links .chev {
  width: 10px;
  height: 10px;
  transition: transform 0.2s;
}

.nav-links > li.open .chev {
  transform: rotate(180deg);
}

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 300px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 10px;
  box-shadow: 0 24px 60px -30px rgba(21, 27, 33, 0.35);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}

.nav-links > li.open .dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* rightmost entries (Azienda, Risorse; the last <li> is the phone-only language switch):
   open towards the left, or the hidden panel overflows the page on 1180-1300px screens */
.nav-links > li:nth-last-child(-n+3) > .dropdown {
  left: auto;
  right: 0;
}

.dropdown a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
}

.dropdown a .t {
  display: block;
  font-weight: 500;
}

.dropdown a .d {
  display: block;
  font-size: 0.875rem;
  color: var(--steel);
  font-weight: 400;
  margin-top: 2px;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 1.6px;
  background: var(--ink);
  position: relative;
  transition: transform 0.25s, top 0.25s;
}

.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;
}

/* language links inside the mobile menu, used only on narrow phones (see max-width: 480px) */
.nav-links > li.nav-langs {
  display: none;
}

/* ---------- Hero ---------- */

.hero {
  padding-top: clamp(56px, 8vw, 104px);
  padding-bottom: clamp(40px, 5vw, 64px);
}

.hero h1 {
  max-width: 15ch;
}

.hero .lead {
  margin-top: 28px;
}

.hero-actions {
  margin-top: 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 48px;
  align-items: end;
}

.hero-aside {
  color: var(--steel);
  max-width: 34ch;
  font-size: 1.05rem;
  padding-bottom: 8px;
}

.hero-aside strong {
  color: var(--ink);
  font-weight: 500;
}

.sub-hero {
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(40px, 6vw, 72px);
}

.sub-hero h1 {
  max-width: 17ch;
}

/* ---------- OS window (hero visual) ---------- */

.os-window {
  margin-top: clamp(40px, 6vw, 72px);
  background: var(--slate);
  border-radius: var(--radius-l);
  padding: 14px;
  position: relative;
  overflow: hidden;
  color: #fff;
  box-shadow: 0 60px 120px -60px rgba(21, 27, 33, 0.55);
}

.os-window::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 40% at 80% 0%, rgba(20, 228, 204, 0.18), transparent 70%);
  pointer-events: none;
}

.os-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px 14px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  position: relative;
}

.os-dots {
  display: flex;
  gap: 7px;
}

.os-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: block;
}

.os-dots i:first-child {
  background: var(--teal);
}

.os-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.os-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(20, 228, 204, 0.6);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(20, 228, 204, 0.55);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(20, 228, 204, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(20, 228, 204, 0);
  }
}

.os-screen {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.os-screen img {
  width: 100%;
  height: auto;
}

.os-dock {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 16px 0 6px;
  position: relative;
}

.dock-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  transition: background 0.2s, transform 0.2s var(--ease);
}

.dock-item:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.dock-item .ic {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--slate);
  background: var(--teal);
}

.dock-item .ic.w {
  background: #9fd8ff;
}

.dock-item .ic.s {
  background: #b3f0b1;
}

.dock-item .ic.p {
  background: #ffcf8a;
}

.dock-item .ic.x {
  background: var(--teal);
}

.ic-img,
.app-tile-lg .glyph.ic-img,
.app-copy .app-id .glyph.ic-img {
  background: none;
  padding: 0;
  object-fit: cover;
  display: block;
}

.app-tile.ic-img {
  width: 100%;
  height: auto;
}

/* ---------- Marquees ---------- */

.marquee {
  overflow: hidden;
  position: relative;
  -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;
  gap: var(--mq-gap, 64px);
  width: max-content;
  animation: marquee var(--mq-dur, 48s) linear infinite;
}

/* pause under the pointer; not on touch screens, where a tap leaves :hover stuck and stopped the loop */
@media (hover: hover) {
  .marquee:hover .marquee-track {
    animation-play-state: paused;
  }
}

.marquee-track > * {
  flex: 0 0 auto;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - var(--mq-gap, 64px) / 2));
  }
}

.logo-strip {
  padding: 40px 0 56px;
}

.logo-strip .label {
  text-align: center;
  color: var(--steel);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.logo-strip img {
  height: 34px;
  width: auto;
  filter: grayscale(1) contrast(0.9);
  opacity: 0.6;
  transition: opacity 0.2s, filter 0.2s;
}

.logo-strip img:hover {
  filter: none;
  opacity: 1;
}

.logo-strip img.tall {
  height: 44px;
}

.proof-ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  --mq-gap: 48px;
  --mq-dur: 70s;
}

.proof-ticker a {
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--ink);
}

.proof-ticker a .arr {
  color: var(--teal-ink);
  font-size: 0.9em;
}

.proof-ticker a:hover {
  color: var(--teal-ink);
}

.chip-marquee {
  --mq-gap: 12px;
  --mq-dur: 36s;
}

.chip-marquee.reverse .marquee-track {
  animation-direction: reverse;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--pill);
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

.chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

/* ---------- Statement / OS section ---------- */

.statement {
  font-size: clamp(1.6rem, 3.3vw, 2.9rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 24ch;
}

.statement em {
  font-style: normal;
  color: var(--teal);
}

.os-layers {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.layer {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-m);
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.layer h3 {
  font-size: 1.15rem;
}

.layer p {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.95rem;
}

.layer .tag {
  color: var(--teal);
  font-size: 0.85rem;
}

.layer.full {
  grid-column: 1 / -1;
  min-height: 0;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px 28px;
}

.layer.full h3 {
  margin-right: 12px;
}

/* ---------- Product triad ---------- */

.triad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  border-radius: var(--radius-l);
  background: var(--mist);
  padding: 28px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: background 0.25s;
}

.product-card:hover {
  background: var(--mist-2);
}

.product-card .kicker {
  color: var(--teal-ink);
  font-weight: 500;
}

.product-card h3 {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  max-width: 14ch;
}

.product-card p {
  color: var(--steel);
}

.product-card .visual {
  margin-top: auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  aspect-ratio: 16 / 9;
}

.product-card .visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.product-card .visual.dark {
  background: var(--slate);
  border-color: transparent;
}

.product-card .link {
  font-weight: 500;
  border-bottom: 1px solid rgba(21, 27, 33, 0.25);
  align-self: flex-start;
}

.product-card:hover .link {
  border-color: var(--ink);
}

/* mini app tiles inside product card */
.app-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 18px;
  height: 100%;
  align-content: center;
}

.app-tile {
  aspect-ratio: 1;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--slate);
}

/* ---------- Metrics ---------- */

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.metric {
  padding: 32px 24px 32px 0;
  border-right: 1px solid var(--line);
  margin-right: 24px;
}

.metric:last-child {
  border-right: 0;
  margin-right: 0;
}

.metric .n {
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.metric .l {
  margin-top: 10px;
  font-weight: 500;
}

.metric .s {
  color: var(--steel);
  font-size: 0.9rem;
  margin-top: 4px;
}

.dark .metrics {
  border-color: var(--line-dark);
}

.dark .metric {
  border-color: var(--line-dark);
}

.dark .metric .s {
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Industry tabs ---------- */

.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.tab {
  padding: 10px 16px;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--ink);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.tab:hover {
  border-color: var(--ink);
}

.tab[aria-selected="true"] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.industry-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
}

.industry-panel h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  max-width: 18ch;
}

.industry-panel .lead {
  font-size: 1.1rem;
  margin-top: 16px;
}

.agent-list {
  display: grid;
  gap: 10px;
}

.agent-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: #fff;
  transition: border-color 0.2s, background 0.2s;
}

.agent-row:hover {
  border-color: var(--ink);
}

.agent-row .t {
  font-weight: 500;
}

.agent-row .d {
  color: var(--steel);
  font-size: 0.925rem;
  margin-top: 2px;
}

.agent-row .m {
  text-align: right;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  max-width: 180px;
}

.agent-row .m span {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  line-height: 1.3;
  margin-top: 2px;
}

/* ---------- Agent catalog ---------- */

.filters {
  position: sticky;
  top: 72px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.filters-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 2px;
}

@media (max-width: 960px) {
  .filters-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
}

.filters-row::-webkit-scrollbar {
  display: none;
}

.filters-row .tab {
  flex: 0 0 auto;
}

.filters-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--steel);
}

.cap-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cap-filters button {
  font: inherit;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  background: var(--mist);
  color: var(--ink);
  cursor: pointer;
}

.cap-filters button[aria-pressed="true"] {
  background: var(--teal-soft);
  border-color: var(--teal-ink);
  color: var(--teal-ink);
}

.industry-section {
  padding-top: var(--section-s);
  padding-bottom: var(--section-s);
  border-bottom: 1px solid var(--line);
}

.industry-section:last-child {
  border-bottom: 0;
}

.industry-section .ind-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 36px;
}

.industry-section .ind-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.industry-section .ind-head p {
  color: var(--steel);
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.agent-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: #fff;
  min-height: 250px;
  transition: border-color 0.2s, transform 0.2s var(--ease);
}

.agent-card:hover {
  border-color: var(--ink);
}

.agent-card .caps {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cap {
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: var(--pill);
  background: var(--mist);
  color: var(--steel);
}

.cap.teal {
  background: var(--teal-soft);
  color: var(--teal-ink);
}

.agent-card h3 {
  font-size: 1.2rem;
  margin-top: 4px;
}

.agent-card p {
  color: var(--steel);
  font-size: 0.95rem;
}

.agent-card .stat {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.agent-card .stat b {
  font-weight: 600;
  color: var(--ink);
}

.agent-card .stat span {
  color: var(--steel);
}

.agent-card.hidden {
  display: none;
}

.empty-note {
  display: none;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-m);
  color: var(--steel);
}

/* ---------- Agent detail ---------- */

.agent-hero {
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(32px, 5vw, 56px);
}

.crumbs {
  display: flex;
  gap: 8px;
  color: var(--steel);
  font-size: 0.9rem;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.crumbs a:hover {
  color: var(--ink);
}

.crumbs .sep {
  opacity: 0.5;
}

.agent-hero h1 {
  font-size: clamp(2.2rem, 4.8vw, 4rem);
  letter-spacing: -0.035em;
  max-width: 18ch;
}

.agent-hero .lead {
  margin-top: 20px;
}

.agent-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: start;
}

.detail-block + .detail-block {
  margin-top: 40px;
}

.detail-block h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.detail-block ul {
  display: grid;
  gap: 8px;
}

.detail-block li {
  padding-left: 22px;
  position: relative;
  color: var(--ink);
}

.detail-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--teal);
}

.facts {
  position: sticky;
  top: 96px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 28px;
  background: var(--mist);
}

.facts dl {
  margin: 0;
  display: grid;
  gap: 18px;
}

.facts dt {
  font-size: 0.85rem;
  color: var(--steel);
}

.facts dd {
  margin: 4px 0 0;
  font-weight: 500;
}

.facts dd .n {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  display: block;
  margin-bottom: 4px;
}

.facts .apps-in {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.facts .apps-in a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.9rem;
}

.facts .apps-in a:hover {
  border-color: var(--ink);
}

.facts .apps-in .ic {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.7rem;
  color: var(--slate);
}

.ic.w {
  background: #9fd8ff;
}

.ic.s {
  background: #b3f0b1;
}

.ic.p {
  background: #ffcf8a;
}

.ic.x {
  background: var(--teal);
}

/* ---------- Apps page ---------- */

.app-hero-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(36px, 5vw, 56px);
}

.app-tile-lg {
  border-radius: var(--radius-l);
  padding: 28px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--slate);
  transition: transform 0.25s var(--ease);
}

.app-tile-lg:hover {
  transform: translateY(-4px);
}

.app-tile-lg .glyph {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(32, 40, 48, 0.12);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.4rem;
}

.app-tile-lg h3 {
  font-size: 1.5rem;
  margin-top: 40px;
}

.app-tile-lg p {
  margin-top: 6px;
  opacity: 0.8;
}

.app-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: var(--section-s) 0;
  border-top: 1px solid var(--line);
}

.app-section:nth-child(even) .app-copy {
  order: 2;
}

.app-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.app-visual .stack2 {
  display: grid;
  gap: 12px;
}

.app-copy .app-id {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.app-copy .app-id .glyph {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--slate);
}

.app-copy .app-id span {
  font-weight: 500;
}

.app-copy h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.app-copy .lead {
  font-size: 1.1rem;
  margin-top: 16px;
}

.feature-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.feature-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}

.feature-list li i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  margin-top: 2px;
  flex: none;
}

.feature-list li i::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.feature-list b {
  font-weight: 500;
}

.feature-list span {
  display: block;
  color: var(--steel);
  font-size: 0.95rem;
}

.app-visual {
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--slate);
  padding: 12px;
}

.app-visual img {
  border-radius: 16px;
  width: 100%;
}

.app-visual .fake {
  border-radius: 16px;
  background: #fff;
  aspect-ratio: 4 / 3;
  padding: 22px;
  color: var(--ink);
  display: grid;
  gap: 14px;
  align-content: start;
}

.app-agents {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.app-agents .l {
  font-size: 0.9rem;
  color: var(--steel);
  margin-bottom: 10px;
}

.app-agents .row a {
  font-size: 0.9rem;
  padding: 6px 12px;
  border-radius: var(--pill);
  border: 1px solid var(--line);
}

.app-agents .row a:hover {
  border-color: var(--ink);
}

/* Fake doc/sheet/slide renderings for apps */
.doc-lines {
  display: grid;
  gap: 10px;
}

.doc-lines i {
  display: block;
  height: 10px;
  border-radius: 5px;
  background: var(--mist-2);
}

.doc-lines i.h {
  height: 16px;
  width: 60%;
  background: var(--ink);
}

.doc-lines i.hl {
  background: var(--teal-soft);
  outline: 1px solid var(--teal-ink);
}

.sheet {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  font-size: 0.8rem;
}

.sheet div {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.sheet div:nth-child(4n) {
  border-right: 0;
}

.sheet .hd {
  background: var(--mist);
  font-weight: 500;
}

.sheet .ok {
  color: var(--teal-ink);
  font-weight: 500;
}

.sheet .warn {
  color: #b7791f;
  font-weight: 500;
}

.slidepilot-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.slidepilot-preview div {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  display: grid;
  gap: 5px;
  align-content: start;
}

.slidepilot-preview i {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: var(--mist-2);
}

.slidepilot-preview i.h {
  background: var(--ink);
  width: 70%;
  height: 7px;
}

.slidepilot-preview i.bar {
  height: 22px;
  background: var(--teal-soft);
  border: 1px solid var(--teal-ink);
}

.agent-chat {
  border-radius: 12px;
  background: var(--mist);
  padding: 12px 14px;
  font-size: 0.85rem;
  display: grid;
  gap: 6px;
}

.agent-chat b {
  color: var(--teal-ink);
  font-weight: 500;
}

/* ---------- Feature rows (platform) ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.pillar {
  padding: 32px 28px 36px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pillar .k {
  color: var(--teal-ink);
  font-size: 0.9rem;
  font-weight: 500;
  order: 2;
}

.pillar p {
  order: 3;
}

.pillar h3 {
  font-size: 1.3rem;
}

.pillar p {
  color: var(--steel);
  font-size: 0.975rem;
}

.dark .pillars,
.dark .pillar {
  border-color: var(--line-dark);
}

.dark .pillar p {
  color: rgba(255, 255, 255, 0.66);
}

.dark .pillar .k {
  color: var(--teal);
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.frame {
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--slate);
  padding: 12px;
}

.frame img {
  border-radius: 16px;
}

.frame.light {
  background: var(--mist);
}

/* Architecture diagram */
.arch {
  display: grid;
  gap: 10px;
  color: #fff;
}

.arch .band {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.03);
}

.arch .band .n {
  font-weight: 500;
  font-size: 0.95rem;
}

.arch .band .n small {
  display: block;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
  margin-top: 2px;
}

.arch .items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.arch .items span {
  font-size: 0.82rem;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.9);
}

.arch .band.core {
  background: rgba(20, 228, 204, 0.08);
  border-color: rgba(20, 228, 204, 0.35);
}

.arch .band.core .items span {
  background: rgba(20, 228, 204, 0.14);
}

/* Comparison table */
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.compare th,
.compare td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.compare th {
  font-weight: 500;
  color: var(--steel);
  font-size: 0.875rem;
}

.compare td:first-child {
  font-weight: 500;
}

.compare .y {
  color: var(--teal-ink);
  font-weight: 600;
}

.compare .n {
  color: var(--steel);
}

.compare .p {
  color: #b7791f;
}

.compare td small {
  display: block;
  color: var(--steel);
  font-weight: 400;
  font-size: 0.8rem;
  margin-top: 2px;
}

.compare thead th:nth-child(2) {
  color: var(--ink);
  font-weight: 600;
}

.compare td:nth-child(2) {
  background: var(--mist);
}

.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}

/* Steps (true sequence: lending pipeline) */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
}

.step {
  counter-increment: step;
  padding: 26px 24px;
  border-radius: var(--radius-m);
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  gap: 10px;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  font-size: 0.85rem;
  color: var(--teal-ink);
  font-weight: 600;
}

.step h3 {
  font-size: 1.15rem;
}

.step p {
  color: var(--steel);
  font-size: 0.95rem;
}

.step .save {
  font-weight: 500;
  color: var(--ink);
  font-size: 0.95rem;
}

/* ---------- Quote ---------- */

.quote {
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.25;
  max-width: 30ch;
}

.quote-by {
  margin-top: 24px;
  color: var(--steel);
}

.dark .quote-by {
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Team ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 20px;
}

.person {
  display: grid;
  gap: 12px;
}

.person img {
  width: 128px;
  height: 128px;
  object-fit: cover;
  border-radius: 50%;
  filter: grayscale(1);
  background: var(--mist);
}

/* Hide the dark fringe baked into these circular portraits. */
img[src$="/antonio-colasante.jpg"],
img[src$="/massimo-ruffolo.jpg"] {
  clip-path: circle(48% at 50% 50%);
}

/* Compensate for the empty margin inside Laura's source portrait.
   The visible circle and layout footprint remain 128px, like the other photos. */
.person img[src$="/laura-amerise.png"] {
  width: 176px;
  height: 176px;
  max-width: none;
  margin: -24px;
  clip-path: circle(64px at center);
}

.person .n {
  font-weight: 500;
}

.person .r {
  color: var(--steel);
  font-size: 0.925rem;
}

.person .b {
  color: var(--steel);
  font-size: 0.875rem;
}

/* ---------- FAQ ---------- */

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  font-size: 1.15rem;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  line-height: 1;
  color: var(--steel);
  transition: transform 0.2s;
  flex: none;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq .a {
  padding: 0 0 24px;
  color: var(--steel);
  max-width: 70ch;
}

/* ---------- Blog ---------- */

.blog-featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s;
}

.blog-featured:hover {
  border-color: var(--slate);
}

.blog-featured img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-m);
}

.blog-featured .copy {
  padding: 16px 20px 16px 0;
  display: grid;
  gap: 16px;
  align-content: center;
}

.blog-featured h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.blog-featured p {
  color: var(--steel);
  font-size: 1.05rem;
}

.blog-featured .ink-link {
  justify-self: start;
}

.blog-featured + .blog-cats {
  margin-top: 48px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  color: var(--steel);
  font-size: 0.875rem;
}

.post-meta .cat {
  color: var(--teal-ink);
  font-weight: 500;
}

.post-meta .dot::before {
  content: "·";
}

.posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.post {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s;
}

.post:hover {
  border-color: var(--slate);
}

.post img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.post .copy {
  padding: 22px 24px 24px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.post h3 {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.post p {
  color: var(--steel);
  font-size: 0.95rem;
}

.post .more {
  color: var(--teal-ink);
  font-weight: 500;
  font-size: 0.925rem;
  margin-top: auto;
}

.blog-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

/* article */
.article-head {
  padding: 56px 0 28px;
}

.article-head .kicker {
  color: var(--teal-ink);
  font-weight: 500;
  font-size: 0.925rem;
  margin-bottom: 14px;
}

.article-head h1 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1.06;
  max-width: 20ch;
}

.article-head .post-meta {
  margin-top: 22px;
  font-size: 0.95rem;
}

.article-cover {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: var(--radius-l);
  display: block;
}

.article {
  display: grid;
  grid-template-columns: minmax(0, 720px) 280px;
  gap: 64px;
  justify-content: space-between;
  padding: 48px 0 24px;
}

.article-body {
  font-size: 1.125rem;
  line-height: 1.7;
}

.article-body > * + * {
  margin-top: 1.25em;
}

.article-body h2 {
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-top: 2em;
}

.article-body p.lede {
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--slate);
}

.article-body ul,
.article-body ol {
  padding-left: 1.3em;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.6em;
  list-style: disc;
}

.article-body ol {
  list-style: decimal;
}

.article-body li::marker {
  color: var(--teal-ink);
  font-weight: 600;
}

.article-body blockquote {
  border-left: 3px solid var(--teal);
  padding: 6px 0 6px 24px;
  font-size: 1.4rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-top: 1.8em;
}

.article-body blockquote footer {
  font-size: 0.925rem;
  color: var(--steel);
  margin-top: 12px;
  letter-spacing: 0;
}

.article-body figure {
  margin-top: 2em;
}

.article-body figure img {
  width: 100%;
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
  display: block;
}

.article-body figcaption {
  font-size: 0.875rem;
  color: var(--steel);
  margin-top: 10px;
}

.article-body .box {
  background: var(--mist);
  border-radius: var(--radius-m);
  padding: 24px 28px;
  margin-top: 2em;
}

.article-body .box h3 {
  font-size: 1rem;
  margin-bottom: 12px;
}

.article-body .box ul {
  font-size: 1rem;
  gap: 0.5em;
}

.article-body .closing {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  margin-top: 2.5em;
  font-weight: 600;
  font-size: 1.15rem;
}

.article-body .closing .row {
  margin-top: 16px;
}

.article-side {
  position: sticky;
  top: 96px;
  align-self: start;
  display: grid;
  gap: 24px;
}

.author {
  display: flex;
  gap: 14px;
  align-items: center;
}

.author img,
.author .ph {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(1);
  background: var(--mist);
  flex: none;
}

.author .ph {
  display: grid;
  place-items: center;
  font-weight: 600;
  color: var(--slate);
  filter: none;
}

.author .n {
  font-weight: 600;
}

.author .r {
  color: var(--steel);
  font-size: 0.875rem;
}

.side-block h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--steel);
  margin-bottom: 12px;
}

.toc {
  display: grid;
  gap: 8px;
  font-size: 0.925rem;
}

.toc a {
  color: var(--slate);
  text-decoration: none;
}

.toc a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.share {
  display: flex;
  gap: 8px;
}

.share button,
.share a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  background: #fff;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--ink);
  text-decoration: none;
}

.share button:hover,
.share a:hover {
  border-color: var(--slate);
}

.newsletter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.newsletter form {
  display: grid;
  gap: 12px;
}

.newsletter .row-in {
  display: flex;
  gap: 10px;
}

.newsletter .row-in input {
  flex: 1;
}

a.card .ink-link,
.card > .ink-link {
  width: max-content;
  max-width: 100%;
  margin-top: auto;
}

/* metrics inside a half-width column */
.two-col .metrics {
  grid-template-columns: repeat(2, 1fr);
}

.two-col .metrics .n {
  font-size: 2.2rem;
}

/* ---------- Footer certification badges ---------- */

.footer-bottom .certs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom .certs img {
  width: auto;
  height: 70px;
  max-width: 188px;
  display: block;
  opacity: 0.92;
}

/* IMQ (parità di genere): logo verticale, va più grande e staccato */
.footer-bottom .certs img:last-child {
  height: 100px;
  margin-left: 10px;
}

/* ---------- Legal pages ---------- */

.legal {
  max-width: 820px;
  font-size: 1rem;
  line-height: 1.65;
}

.legal > * + * {
  margin-top: 1em;
}

.legal h2 {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  margin-top: 2.2em;
}

.legal h3 {
  font-size: 1.05rem;
  margin-top: 1.6em;
}

.legal ol,
.legal ul {
  padding-left: 1.4em;
  display: grid;
  gap: 0.5em;
  list-style: lower-alpha;
}

.legal ul {
  list-style: disc;
}

.legal ul.plain {
  list-style: none;
  padding-left: 0;
  word-break: break-all;
}

.legal .note {
  color: var(--steel);
  font-size: 0.9rem;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.legal-table th,
.legal-table td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}

.legal-table th {
  width: 160px;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Training pipeline ---------- */

.pipeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  counter-reset: pipe;
}

.pipe-step {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 22px 20px 24px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.pipe-step .n {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal-ink);
  letter-spacing: 0.06em;
}

.pipe-step h3 {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.pipe-step p {
  color: var(--steel);
  font-size: 0.9rem;
  line-height: 1.5;
}

.pipe-step:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -12px;
  top: 30px;
  width: 8px;
  height: 8px;
  border-top: 1.5px solid var(--teal-ink);
  border-right: 1.5px solid var(--teal-ink);
  transform: rotate(45deg);
}

@media (max-width: 1100px) {
  .pipeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pipe-step:nth-child(3)::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .pipeline {
    grid-template-columns: 1fr;
  }

  .pipe-step::after {
    display: none;
  }
}

/* ---------- Language menu ---------- */

.lang-menu {
  position: relative;
}

.lang-menu > button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lang-menu > button:hover,
.lang-menu.open > button {
  border-color: var(--slate);
}

.lang-menu .dropdown {
  left: auto;
  right: 0;
  min-width: 180px;
  z-index: 1; /* above the open mobile menu panel */
}

.lang-menu.open .dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.lang-menu .chev {
  width: 10px;
  height: 10px;
  transition: transform 0.2s;
}

.lang-menu.open .chev {
  transform: rotate(180deg);
}

.lang-menu .dropdown a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
}

.lang-menu .dropdown a.current {
  color: var(--teal-ink);
  font-weight: 500;
}

.lang-menu .dropdown a .code {
  font-size: 0.75rem;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* current language first */
.footer-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 14px;
  line-height: 1.2;
  margin-top: 32px;
}

.footer-langs a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-langs a.current {
  order: -1;
  color: #fff;
  font-weight: 500;
}

/* ---------- Personal AI / Harness ---------- */

.steps.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.step .k {
  color: var(--teal-ink);
  font-size: 0.9rem;
  font-weight: 500;
}

.code-card {
  background: var(--slate);
  color: #e6ecef;
  border-radius: var(--radius-m);
  padding: 22px 24px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.6;
  overflow-x: auto;
  border: 1px solid var(--line-dark);
}

.code-card .cm {
  color: #8a97a0;
}

.code-card .kw {
  color: var(--teal);
}

.code-card pre {
  margin: 0;
  white-space: pre;
}

.code-card .title {
  font-family: inherit;
  color: #8a97a0;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.tech-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 32px;
  display: grid;
  gap: 18px;
  align-content: start;
  background: #fff;
}

.tech-card .k {
  color: var(--teal-ink);
  font-size: 0.9rem;
  font-weight: 500;
}

.tech-card h3 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.tech-card ul {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.tech-card li {
  position: relative;
  padding-left: 18px;
  font-size: 0.95rem;
  color: var(--slate);
}

.tech-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

.role {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 28px;
  display: grid;
  gap: 10px;
  align-content: start;
  background: #fff;
}

.role .tag {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}

.role .tag b {
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--ink);
}

.role h3 {
  font-size: 1.2rem;
}

.role p {
  color: var(--steel);
  font-size: 0.95rem;
}

.phases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  position: relative;
}

.phases::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 5px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--slate) 0%, var(--teal) 100%);
}

.phase {
  padding-top: 26px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.phase .n {
  color: var(--teal-ink);
  font-size: 0.85rem;
  font-weight: 600;
}

.phase h3 {
  font-size: 1.25rem;
}

.phase p {
  color: var(--steel);
  font-size: 0.95rem;
}

.phase .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.phase .tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.8rem;
}

.phase-ends {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--steel);
  margin-bottom: 12px;
}

.chips-static {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips-static span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.9rem;
  background: #fff;
}

.open-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.open-grid .card {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-dark);
  color: #fff;
}

.open-grid .card .k {
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.open-grid .card h3 {
  color: #fff;
}

.open-grid .card p {
  color: rgba(255, 255, 255, 0.7);
}

.dual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.dual .card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-content: start;
}

.dual .card .k {
  color: var(--teal-ink);
  font-size: 0.9rem;
  font-weight: 500;
}

.dual .card h3 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

/* ---------- Forms ---------- */

.form {
  display: grid;
  gap: 16px;
}

.form .f2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--steel);
}

.form input,
.form select,
.form textarea {
  font: inherit;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  /* a select with long options must not widen the form on phones */
  min-width: 0;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--teal-ink);
  outline-offset: 0;
  border-color: transparent;
}

.form .check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.875rem;
}

.form .check input {
  margin-top: 4px;
}

.form-note {
  display: none;
  padding: 16px;
  border-radius: 12px;
  background: var(--teal-soft);
  color: var(--teal-ink);
  font-weight: 500;
}

.form.sent .form-note {
  display: block;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 32px;
  background: #fff;
}

.card.mist {
  background: var(--mist);
  border-color: transparent;
}

/* ---------- CTA band ---------- */

/* Figma "Section / Footer" (1440px): CTA band, sitemap, offices band, certifications, copyright */

.cta-band {
  position: relative;
  overflow: hidden;
  padding-top: clamp(72px, 11vw, 158px);
  padding-bottom: clamp(56px, 8.4vw, 120px);
  /* overlap the footer by 1px: on a fractional edge in a scaled view (device preview, page zoom)
     the white page background leaked through between the two slate backgrounds as a light line */
  box-shadow: 0 1px 0 var(--slate);
}

/* 670px glow centred near the top edge, right of the heading */
.cta-band::after {
  content: "";
  position: absolute;
  left: 43.75%;
  top: -228px;
  width: 670px;
  height: 670px;
  background: radial-gradient(circle closest-side, rgba(20, 228, 204, 0.2), rgba(20, 228, 204, 0));
  pointer-events: none;
}

.cta-band .container {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  font-size: clamp(2rem, 4.45vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 12em;
}

.cta-band .row {
  margin-top: 44px;
}

/* 48px tall, border included */
.cta-band .btn {
  padding: 15px 24px;
}

.cta-band .btn-outline {
  border-color: #a3b4bd;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--slate);
  color: rgba(255, 255, 255, 0.8);
  padding: 80px 0 24px;
  font-size: 14px;
  line-height: 1.4;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 376fr) repeat(4, minmax(0, 180fr));
  gap: 40px 16px;
  padding-bottom: 80px;
}

.footer .brand {
  display: block;
  width: fit-content;
}

.footer .brand img {
  display: block;
  height: 58px;
}

.footer .tag {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.6);
}

.footer h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 12px;
  letter-spacing: 0;
}

.footer li + li {
  margin-top: 12px;
}

.footer a:hover {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--teal);
  text-underline-offset: 3px;
}

/* Column headings are accordion toggles on phones only (max-width: 640px);
   here they read exactly like the plain headings. */
.footer-acc {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: default;
  pointer-events: none;
}

.footer-acc .chev {
  display: none;
}

/* offices on a full-width, slightly lighter band */
.footer-offices {
  background: rgba(255, 255, 255, 0.03);
}

.footer-mid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 16px;
  padding: 80px 0;
}

.footer-mid b {
  color: #fff;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

/* certifications, then copyright */
.footer-bottom {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 40px;
  padding-top: 40px;
  color: rgba(255, 255, 255, 0.7);
}

.certs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.certs span {
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- Utilities ---------- */

.center {
  text-align: center;
}

.mt-1 {
  margin-top: 16px;
}

.mt-2 {
  margin-top: 32px;
}

.mt-3 {
  margin-top: 48px;
}

.mb-2 {
  margin-bottom: 32px;
}

.divider {
  height: 1px;
  background: var(--line);
}

.pad-top {
  padding-top: var(--section-s);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal 0.9s var(--ease) forwards;
}

.reveal.d1 {
  animation-delay: 0.08s;
}

.reveal.d2 {
  animation-delay: 0.16s;
}

.reveal.d3 {
  animation-delay: 0.28s;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .footer-top {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .app-hero-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1440px) {
  .nav-cta .btn-outline {
    display: none;
  }
}

@media (max-width: 1180px) {
  .nav-links,
  .nav-cta .btn-outline {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 24px;
    gap: 2px;
    max-height: calc(100vh - 72px);
    overflow: auto;
  }

  .nav.menu-open .nav-links a,
  .nav.menu-open .nav-links button {
    width: 100%;
    justify-content: space-between;
    padding: 14px 12px;
    font-size: 1.05rem;
  }

  /* only the menu entries become an accordion; the language dropdown in the bar keeps floating over the open menu */
  .nav.menu-open .nav-links .dropdown {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    box-shadow: none;
    border: 0;
    padding: 0 0 8px 12px;
    display: none;
  }

  .nav.menu-open .nav-links > li.open .dropdown {
    display: block;
  }

  .nav.menu-open .nav-toggle span {
    background: transparent;
  }

  .nav.menu-open .nav-toggle span::before {
    transform: rotate(45deg);
    top: 0;
  }

  .nav.menu-open .nav-toggle span::after {
    transform: rotate(-45deg);
    top: 0;
  }

  .hero-grid,
  .section-head.split,
  .industry-panel,
  .two-col,
  .detail-grid,
  .app-section,
  .industry-section .ind-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-section:nth-child(even) .app-copy {
    order: 0;
  }

  .os-layers,
  .triad,
  .agent-grid,
  .pillars,
  .steps,
  .blog-featured,
  .newsletter,
  .steps.four,
  .open-grid,
  .posts,
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric:nth-child(2) {
    border-right: 0;
  }

  .facts {
    position: static;
  }

  .arch .band {
    grid-template-columns: 1fr;
  }

  .footer-mid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Narrow phones: logo + language dropdown + CTA + menu button need ~420px.
   The language switch moves into the mobile menu and the CTA gets tighter. */
@media (max-width: 480px) {
  .nav-inner {
    gap: 8px;
  }

  .nav-cta .lang-menu {
    display: none;
  }

  .nav-cta .btn-primary {
    padding: 9px 14px;
    font-size: 0.875rem;
  }

  /* last entry of the open menu; column-reverse puts its list of languages above the entry */
  .nav.menu-open .nav-links > li.nav-langs {
    display: flex;
    flex-direction: column-reverse;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }

  /* the list opens upwards, so the chevron points up while closed */
  .nav.menu-open .nav-links > li.nav-langs .chev {
    transform: rotate(180deg);
  }

  .nav.menu-open .nav-links > li.nav-langs.open .chev {
    transform: none;
  }

  .nav-langs > button > span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }

  .nav-langs .globe {
    width: 18px;
    height: 18px;
    color: var(--steel);
  }

  .nav.menu-open .nav-links > li.nav-langs .dropdown a.current {
    color: var(--teal-ink);
    font-weight: 500;
  }
}

@media (max-width: 960px) {
  .article {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .article-side {
    position: static;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .blog-featured {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .blog-featured .copy {
    padding: 8px 6px 10px;
  }

  .newsletter {
    grid-template-columns: 1fr;
  }

  .newsletter .row-in {
    flex-direction: column;
  }

  .announce {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .os-titlebar > div:nth-child(2) {
    display: none;
  }

  .os-layers,
  .triad,
  .agent-grid,
  .pillars,
  .steps,
  .steps.four,
  .phases,
  .posts,
  .grid-2,
  .grid-3,
  .grid-4,
  .app-hero-tiles,
  .team-grid,
  .footer-top,
  .dual,
  .form .f2 {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Long labels and compound words (FR/DE/ES) must wrap instead of
     widening the page */
  body {
    overflow-wrap: break-word;
  }

  :lang(de) :is(h1, h2, h3) {
    -webkit-hyphens: auto;
    hyphens: auto;
  }

  .btn {
    white-space: normal;
    text-align: center;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .metric {
    border-right: 0;
    margin-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 22px 0;
  }

  .os-dock {
    flex-wrap: wrap;
  }

  .agent-row {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: 0;
  }

  .hero-actions .btn,
  .cta-band .btn {
    width: 100%;
    justify-content: center;
  }

  .filters {
    top: 72px;
  }
}

/* ---------- Footer on phones (Figma "Footer Mobile" 458:5753, 402px) ---------- */

@media (max-width: 640px) {
  /* 16px side margins, as in the frame; the CTA block sits 24px further in */
  .cta-band .container,
  .footer .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .cta-band .container {
    padding-left: 40px;
    padding-right: 40px;
  }

  /* CTA band: buttons stacked full width, glow in the top-right corner */
  .cta-band {
    padding-top: 56px;
    padding-bottom: 64px;
    /* the glow fades into the footer below: clip it sideways (overflow, so it adds no
       horizontal scroll) and at the top edge, where it leaked onto the white section above */
    overflow-x: clip;
    overflow-y: visible;
    clip-path: inset(0 0 -800px 0);
  }

  .cta-band h2 {
    font-size: 2rem;
    line-height: 1.2;
    letter-spacing: -0.0285em;
    text-wrap: wrap;
  }

  .cta-band .row {
    margin-top: 13px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .cta-band .btn {
    justify-content: center;
    padding: 15px 24px;
    white-space: normal;
    text-align: center;
    line-height: 1;
  }

  .cta-band::after {
    left: auto;
    top: -335px;
    right: -335px;
  }

  .footer {
    padding: 0 0 32px;
  }

  .footer-top {
    row-gap: 8px;
    padding-bottom: 32px;
  }

  .footer-top > div:first-child {
    margin-bottom: 24px;
  }

  .footer .brand img {
    height: 40px;
  }

  .footer .tag {
    margin-top: 15px;
    font-size: 15px;
    letter-spacing: 0;
  }

  /* sitemap columns as an accordion, one open at a time (site.js) */
  .footer-col h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
  }

  .footer-acc {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    cursor: pointer;
    pointer-events: auto;
  }

  .footer-acc .chev {
    display: block;
    flex: none;
    width: 16px;
    height: 16px;
    color: rgba(255, 255, 255, 0.7);
    transition: transform 0.2s;
  }

  .footer-col.open .footer-acc .chev {
    transform: rotate(180deg);
  }

  .footer-col > ul {
    display: none;
    padding: 16px 16px 32px;
  }

  .footer-col.open > ul {
    display: block;
  }

  /* offices: no band, 8px further in, an inset rule below */
  .footer-offices {
    background: none;
  }

  .footer-mid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin: 0 8px;
    padding: 0 0 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
  }

  .footer-mid b {
    font-size: 14px;
    margin-bottom: 4px;
  }

  /* certifications two by two, IMQ centred below; copyright last */
  .footer-bottom {
    gap: 40px;
    padding-top: 34px;
    color: rgba(255, 255, 255, 0.55);
  }

  .footer-bottom .certs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: center;
    align-items: center;
    gap: 30px 7px;
    width: 100%;
  }

  .footer-bottom .certs img:nth-child(-n+3) {
    width: 173px;
    max-width: 100%;
    height: auto;
  }

  .footer-bottom .certs img:last-child {
    grid-column: 1 / -1;
    margin: 4px 0 0;
  }

  .footer-bottom .copyright span {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }

  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .os-live::before {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Book a demo: Calendly inline widget */
.calendly-card {
  padding: 24px 16px 8px;
}
.calendly-intro {
  margin: 0 16px 8px;
  color: var(--steel);
  font-size: 0.95rem;
}
.calendly-inline-widget {
  width: 100%;
  border-radius: var(--radius-m);
  overflow: hidden;
}
@media (max-width: 720px) {
  .calendly-inline-widget {
    height: 1000px !important;
  }
}

/* 320px phones (iPhone SE 1st gen): logo, CTA and menu button must fit in one row,
   and the inline style min-width:320px of the Calendly embed would overflow the card */
@media (max-width: 360px) {
  .nav-cta {
    gap: 4px;
  }

  .brand img {
    height: 26px;
    min-width: 0;
  }

  .nav-cta .btn-primary {
    padding: 8px 10px;
    font-size: 0.8125rem;
  }

  .calendly-inline-widget {
    min-width: 0 !important;
  }
}
.calendly-fallback {
  margin: 4px 16px 12px;
  color: var(--steel);
  font-size: 0.9rem;
  text-align: center;
}

/* Newsletter form: Mailchimp states */
.form .hp {
  position: absolute;
  left: -5000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-error {
  display: none;
  padding: 16px;
  border-radius: 12px;
  background: rgba(242, 178, 52, 0.18);
  color: #7a5200;
  font-weight: 500;
}
.form.error .form-error {
  display: block;
}

.form.sent.already .form-note:not(.form-note-already) { display: none; }
.form.sent:not(.already) .form-note-already { display: none; }

/* ---------- Platform page (Figma "New landing", 2026-09) ---------- */

.pf-hero {
  padding-top: clamp(56px, 8vw, 120px);
  padding-bottom: clamp(48px, 6vw, 84px);
}

.pf-hero-text {
  max-width: 964px;
  margin: 0 auto;
}

.pf-hero h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.875rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-wrap: wrap;
}

.pf-hero .lead {
  margin-top: 24px;
  max-width: none;
  font-size: clamp(1.1rem, 1.5vw, 1.3125rem);
  line-height: 1.55;
}

.pf-hero .hero-actions {
  margin-top: 32px;
}

.pf-mockup {
  margin-top: clamp(48px, 6vw, 84px);
}

.pf-mockup-frame {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1160 / 800;
  background: #21272d;
}

.pf-mockup[data-mode="light"] .pf-mockup-frame {
  background: #ecf0f3;
}

.pf-mockup-img {
  width: 100%;
  height: auto;
}

.pf-mockup[data-mode="light"] .pf-mockup-img.is-dark,
.pf-mockup:not([data-mode="light"]) .pf-mockup-img.is-light {
  display: none;
}

.pf-theme-toggle {
  display: flex;
  gap: 4px;
  width: max-content;
  margin: 32px auto 0;
  padding: 4px;
  border: 1px solid #d6dbe0;
  border-radius: var(--pill);
  background: #fff;
}

.pf-theme-toggle button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #576770;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.pf-theme-toggle button:hover {
  background: #f3f6f8;
}

.pf-theme-toggle button[aria-pressed="true"] {
  background: #ecf0f3;
  color: #1f262d;
}

.pf-theme-toggle svg {
  width: 24px;
  height: 24px;
}

/* centred section head used by every block of the page */
.pf-head {
  display: grid;
  gap: 12px;
  text-align: center;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.pf-head .lead {
  max-width: none;
}

/* card rows: "three ways" (light) and "beyond IDP, RPA, BPA" (dark) */
.pf-modes {
  background: #fafafa;
}

.pf-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pf-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 32px;
  background: #fff;
}

.pf-card h3 {
  font-size: 1.5rem;
  line-height: 1.2;
}

.pf-card p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.4;
  color: rgba(32, 40, 48, 0.8);
}

.pf-card .pf-card-sub {
  margin: 4px 0 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  line-height: 1.2;
  color: var(--steel);
}

.pf-compare.section.dark {
  background: #21272d;
}

.pf-compare .pf-head .lead {
  color: #a3b4bd;
}

.pf-compare .pf-card {
  background: #263039;
  border-color: #303841;
  color: #fff;
}

.pf-compare .pf-card p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.pf-compare .pf-card .pf-card-kicker {
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #4b5762;
  font-size: 0.9375rem;
  line-height: 1.2;
  color: #15e6cd;
}

.pf-compare .compare-wrap {
  margin-top: clamp(48px, 8vw, 120px);
  border-color: #303841;
}

.pf-compare .compare {
  min-width: 880px;
}

.pf-compare .compare th,
.pf-compare .compare td {
  border-bottom-color: #303841;
}

.pf-compare .compare tbody tr:last-child td {
  border-bottom: 0;
}

.pf-compare .compare th {
  color: rgba(255, 255, 255, 0.8);
}

.pf-compare .compare thead th:nth-child(2) {
  color: #5cd6cc;
  text-align: center;
}

.pf-compare .compare td {
  color: #fff;
}

.pf-compare .compare td:nth-child(2) {
  background: #263039;
  text-align: center;
}

.pf-compare .compare .y {
  color: #5cd6cc;
}

.pf-compare .compare .n {
  color: #cc6767;
}

.pf-compare .compare .p {
  color: #e5961f;
}

.pf-compare .compare td small {
  color: rgba(255, 255, 255, 0.8);
}

/* "turn your data into value": five numbered steps with arrows */
.pf-steps {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pf-step {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border: 1px solid #ececec;
  border-radius: 16px;
  background: #fff;
}

.pf-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -21px;
  width: 14px;
  height: 12px;
  transform: translateY(-50%);
  background: url("../img/platform/step-arrow.svg") no-repeat center / contain;
}

.pf-step-n {
  position: absolute;
  top: 7px;
  left: 7px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(26, 178, 175, 0.1);
  color: #1ab2af;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
}

.pf-step-img {
  height: 100px;
  width: auto;
  max-width: 100%;
}

.pf-step-txt {
  width: 100%;
  flex: 1;
}

.pf-step h3 {
  font-size: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.pf-step p {
  margin: 4px 0 0;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--steel);
}

.pf-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px 4px 4px;
  border: 1px solid #1ab2af;
  border-radius: 4px;
  background: rgba(26, 178, 175, 0.2);
  color: #1f262d;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  white-space: nowrap;
}

/* The icon is drawn in the chip's text colour instead of the <img> (lazy, and
   left alone by browsers' forced dark modes, it could show up white on phones) */
.pf-chip img {
  display: none;
}

.pf-chip::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask: url("../img/platform/ic-user.svg") no-repeat center / contain;
  mask: url("../img/platform/ic-user.svg") no-repeat center / contain;
}

/* platform architecture infographic */
.pf-scroll-hint {
  display: none; /* shown below 1100px, when the infographic scrolls */
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 0 24px;
  font-size: 0.75rem;
  line-height: 16px;
  color: var(--steel);
}

.pf-scroll-hint img {
  flex: none;
  width: 16px;
  height: 16px;
}

.pf-infographic {
  display: grid;
  gap: 16px;
}

.pf-arch-top {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 180px;
  gap: 16px;
}

/* pipeline and knowledge graph share one light panel; the boxes on it are lighter and tighter */
.pf-arch-core {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 8px;
  border-radius: 16px;
  background: rgba(238, 241, 246, 0.6);
}

.pf-arch-flow {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.pf-arch-core .pf-box {
  border-color: rgba(162, 173, 192, 0.25);
  border-radius: 8px;
}

.pf-arch-out {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.pf-arch-out .pf-box:not(:last-child) {
  flex: 1;
}

.pf-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(162, 173, 192, 0.5);
  border-radius: 16px;
  background: #fff;
}

.pf-box.split {
  justify-content: space-between;
}

.pf-box-input {
  border-color: #1ab2af;
  background: linear-gradient(rgba(230, 246, 246, 0.5), rgba(230, 246, 246, 0.5)), #fff;
}

.pf-box-soft {
  border-color: #d1d5db;
  background: linear-gradient(rgba(238, 241, 246, 0.4), rgba(238, 241, 246, 0.4)), #fff;
}

.pf-ic {
  width: 24px;
  height: 24px;
  margin-bottom: 8px;
}

.pf-box h3 {
  font-size: 0.8125rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.pf-box p {
  margin: 4px 0 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--steel);
}

.pf-box p + p {
  margin-top: 6px;
}

.pf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 4px;
}

.pf-tags li {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px 2px 2px;
  border: 0.5px solid rgba(26, 178, 175, 0.3);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.8);
  color: #1f262d;
  font-size: 0.625rem;
  font-weight: 500;
  line-height: 1.2;
}

.pf-tags img {
  flex: none;
  width: 16px;
  height: 16px;
}

.pf-tags.list {
  flex-direction: column;
  gap: 4px;
}

.pf-tags.list li {
  border-color: rgba(26, 178, 175, 0.2);
  background: rgba(26, 178, 175, 0.02);
}

.pf-logos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
  gap: 4px;
}

.pf-logos li {
  display: grid;
  place-items: center;
  height: 22px;
  border: 0.5px solid rgba(162, 173, 192, 0.3);
  border-radius: 2px;
  background: rgba(249, 249, 249, 0.5);
}

.pf-logos img {
  max-width: 84%;
  height: auto;
}

.pf-box-kg {
  flex-direction: row;
  align-items: center;
  gap: 38px;
  padding: 24px;
  border-color: #d1d5db;
}

.pf-kg-img {
  flex: none;
  width: 238px;
  height: auto;
}

.pf-box-kg h3,
.pf-band h3 {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.pf-box-kg p {
  max-width: 420px;
}

.pf-band {
  flex-direction: row;
  align-items: center;
  gap: 24px;
  padding: 24px;
  border-color: #d1d5db;
}

.pf-band-head {
  flex: 0 0 366px;
}

.pf-band h3 {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pf-band h3 img {
  width: 24px;
  height: 24px;
}

.pf-band-items,
.pf-deploy-logos {
  flex: 1;
  align-self: stretch;
  padding-left: 24px;
  border-left: 1px solid #d1d5db;
}

.pf-band-items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-content: center;
  gap: 16px;
}

.pf-band-items li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.pf-band-items img {
  flex: none;
  width: 24px;
  height: 24px;
}

.pf-band-items b {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink);
}

.pf-band-items span {
  display: block;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--steel);
}

.pf-deploy-types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 16px;
}

.pf-deploy-types li {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.625rem;
  font-weight: 700;
  color: #4b5563;
}

.pf-deploy-types img {
  width: 24px;
  height: 24px;
}

.pf-deploy-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pf-deploy-logos img {
  height: auto;
}

@media (max-width: 1100px) {
  .pf-steps {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .pf-step {
    flex: 0 1 calc((100% - 32px) / 3);
  }

  .pf-step:not(:last-child)::after {
    display: none;
  }

  /* Below 1100px the infographic keeps its desktop layout (it only reads as a
     left-to-right flow) and scrolls sideways, bleeding to the screen edges. */
  .pf-scroll-hint {
    display: flex;
  }

  .pf-arch-scroll {
    display: flex;
    margin: 0 calc(-1 * var(--gutter));
    padding: 0 var(--gutter) 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-padding-inline: var(--gutter);
  }

  .pf-arch-scroll > .pf-infographic {
    flex: none;
    width: 1160px;
  }
}

@media (max-width: 960px) {
  .pf-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .pf-steps {
    flex-direction: column;
    gap: 36px;
  }

  .pf-step {
    flex: none;
  }

  .pf-step:not(:last-child)::after {
    display: block;
    top: auto;
    right: auto;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%) rotate(90deg);
  }

  /* Figma mobile "Card list" (475:30572): illustration left, text right.
     The mobile illustrations are recomposed at 120x100 (step-N-m.svg): being
     decorative (alt=""), they replace the <img> as a background, so the page
     content in WordPress is the same for desktop and mobile. */
  .pf-step {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    padding: 15.5px;
  }

  .pf-step-img {
    display: none;
  }

  .pf-step::before {
    content: "";
    grid-column: 1;
    grid-row: 1;
    width: 120px;
    height: 100px;
    background: url("../img/platform/step-1-m.svg") no-repeat center / contain;
  }

  .pf-step:nth-child(2)::before {
    background-image: url("../img/platform/step-2-m.svg");
  }

  .pf-step:nth-child(3)::before {
    background-image: url("../img/platform/step-3-m.svg");
  }

  .pf-step:nth-child(4)::before {
    background-image: url("../img/platform/step-4-m.svg");
  }

  .pf-step:nth-child(5)::before {
    background-image: url("../img/platform/step-5-m.svg");
  }

  .pf-step-txt,
  .pf-chip {
    grid-column: 2;
  }

  /* step 4: the chip sits under the text, the pair centred beside the illustration */
  .pf-step:has(.pf-chip)::before {
    grid-row: 1 / span 2;
  }

  .pf-step:has(.pf-chip) .pf-step-txt {
    align-self: end;
  }

  .pf-step:has(.pf-chip) .pf-chip {
    align-self: start;
    justify-self: start;
  }

  .pf-step-n {
    top: 7.5px;
    left: 7.5px;
  }

  .pf-step h3 {
    line-height: 1.1;
    text-wrap: wrap; /* as the Figma text box, not the site-wide balance */
  }

  .pf-step p {
    font-size: 0.75rem;
    line-height: 1.3;
  }

  .pf-card {
    padding: 24px;
  }

  /* Figma mobile frame: the architecture head is left-aligned, above the sideways-scrolling infographic */
  .pf-arch .pf-head {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .pf-theme-toggle {
    margin-top: 24px;
  }
}

/* below the 390px Figma frame the flow cards keep the text column readable */
@media (max-width: 380px) {
  .pf-step {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .pf-step::before {
    width: 96px;
    height: 80px;
  }

  .pf-chip {
    white-space: normal;
  }
}

/* ---------- Home (Figma "New landing", frame "Homepage", 2026-09) ----------
   Desktop frame 1440px (container 1160px), mobile frame 390px (16px margins).
   Content from build/home_page.py; every section carries the class `hm`. */

.hm {
  --hm-card-bg: #fcfcfd;
  --hm-card-line: rgba(214, 219, 224, 0.2);
  --hm-rule: #d6dbe0;
  --hm-cta: #1ab2af;
  --hm-text: #1f262d;
  --hm-soft: #f7f8f8;
}

.hm.section {
  padding-top: clamp(40px, 8.4vw, 120px);
  padding-bottom: clamp(40px, 8.4vw, 120px);
}

/* headings wrap like the Figma text boxes (the site-wide `balance` breaks them earlier) */
.hm h2,
.hm h3 {
  text-wrap: wrap;
}

.hm h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hm .lead {
  max-width: none;
  font-size: clamp(1.125rem, 1.55vw, 1.375rem);
  line-height: 1.4;
  color: var(--steel);
}

.hm .btn {
  padding: 15px 24px;
}

.hm-head {
  display: grid;
  gap: 12px;
  margin-bottom: clamp(40px, 4.5vw, 64px);
}

.hm-head.center {
  text-align: center;
}

/* head with a text link beside the lead (blog, FAQ) */
.hm-head-link {
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 32px;
}

.hm-head-link h2 {
  grid-column: 1 / -1;
}

.hm-head-link .hm-more {
  align-self: start;
  margin-top: 2px;
}

/* teal-underlined text link with ↗ */
.hm-more {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  align-self: flex-start;
  width: max-content;
  max-width: 100%;
  border-bottom: 1px solid var(--hm-cta);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--hm-text);
  transition: color 0.2s;
}

.hm-arrow {
  font-weight: 700;
  color: var(--hm-cta);
}

a.hm-more:hover,
a:hover > .hm-more,
a:hover .hm-more {
  color: var(--teal-ink);
}

/* hero */
.hm-hero {
  padding-top: clamp(40px, 8.4vw, 120px);
}

.hm-hero > .container {
  display: flex;
  flex-direction: column;
}

.hm-hero-text,
.hm-hero-aside {
  width: 100%;
  max-width: 964px;
  margin: 0 auto;
}

.hm-hero h1 {
  font-size: clamp(2.5rem, 6vw, 5.375rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-wrap: wrap;
}

.hm-hero .lead {
  margin-top: 24px;
}

.hm-actions {
  margin-top: 48px;
}

.hm-hero-aside {
  margin-top: 64px;
}

.hm-hero-aside p {
  max-width: 670px;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--steel);
}

.hm-hero-aside strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
}

.hm-window {
  position: relative;
  margin-top: 80px;
  border-radius: var(--radius-l);
  background: radial-gradient(60% 40% at 80% 0%, rgba(20, 228, 204, 0.18), transparent 70%), var(--slate);
  box-shadow: 0 30px 60px rgba(21, 27, 33, 0.1);
  color: #fff;
  overflow: hidden;
}

.hm-window-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  font-size: 0.8rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}

.hm-dots {
  display: flex;
  gap: 7px;
}

.hm-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.hm-dots i:first-child {
  background: var(--teal);
}

.hm-window-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.hm-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hm-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 2.4s infinite;
}

.hm-window-shot {
  width: calc(100% - 32px);
  height: auto;
  margin: 0 16px;
}

.hm-dock {
  display: flex;
  justify-content: safe center;
  align-items: center;
  gap: 8px;
  padding: 24px 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.hm-dock::-webkit-scrollbar {
  display: none;
}

.hm-app {
  display: flex;
  flex: none;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 8px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  transition: background 0.2s;
}

.hm-app:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hm-app-ic {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.hm-app-a {
  display: grid;
  place-items: center;
  background: var(--teal);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--slate);
}

.hm-dock-sep {
  flex: none;
  width: 1px;
  height: 24px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
}

/* client logos and proof ticker */
.hm-logos {
  padding: 40px 0;
  margin-top: 48px;
}

.hm-logos-label {
  margin: 0 0 32px;
  text-align: center;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--steel);
}

.hm-logos img {
  height: 34px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.6;
  transition: opacity 0.2s, filter 0.2s;
}

.hm-logos img.tall {
  height: 44px;
}

.hm-logos img:hover {
  filter: none;
  opacity: 1;
}

/* logos run left to right, against the proof ticker below */
.hm-logos .marquee-track {
  align-items: center;
  animation-direction: reverse;
}

.hm-ticker {
  --mq-gap: 35px;
  --mq-dur: 70s;
  padding: 26px 0;
  border-top: 1px solid rgba(214, 219, 224, 0.2);
  border-bottom: 1px solid rgba(214, 219, 224, 0.2);
  background: var(--hm-soft);
}

.hm-ticker a {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 4px 0;
  font-size: clamp(1rem, 1.55vw, 1.375rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink);
}

.hm-ticker .arr {
  font-size: 0.88em;
  color: var(--teal-ink);
}

.hm-ticker a:hover {
  color: var(--teal-ink);
}

/* cards: "three ways" (with a visual) and Personal AI / Harness Engineering */
.hm-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hm-cards.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hm-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px;
  border: 1px solid var(--hm-card-line);
  border-radius: var(--radius-l);
  background: var(--hm-card-bg);
  color: var(--hm-text);
  transition: border-color 0.2s;
}

.hm-card:hover {
  border-color: var(--hm-rule);
}

.hm-card p {
  margin: 0;
}

.hm-kicker {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hm-rule);
  font-size: 0.9375rem;
  line-height: 1.2;
  color: var(--hm-cta);
}

.hm-card h3 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hm-card h3 + p {
  font-size: 1.0625rem;
  line-height: 1.4;
  color: rgba(31, 38, 45, 0.8);
}

.hm-modes .hm-card h3 + p {
  margin-bottom: 16px;
}

.hm-visual {
  margin-top: auto;
  aspect-ratio: 310 / 173;
  border-radius: 8px;
  overflow: hidden;
}

.hm-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.hm-visual-apps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(214, 219, 224, 0.3);
  background: #fff;
}

.hm-visual-apps img {
  width: 64px;
  height: 64px;
  flex: 0 1 64px;
  min-width: 0;
  border-radius: 14px;
  object-fit: contain;
}

.hm-personal .hm-more {
  margin-top: auto;
}

/* industries: pill tabs, text on the left, agent rows on the right */
.hm-sectors {
  background: var(--hm-soft);
}

.hm-sectors .hm-head {
  max-width: 768px;
  margin-bottom: 80px;
}

.hm-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 40px;
}

.hm-tab {
  flex: none;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: #fff;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.hm-tab:hover {
  border-color: var(--ink);
}

.hm-tab[aria-selected="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.hm-panel {
  display: none;
  grid-template-columns: 474fr 670fr;
  gap: 16px;
  align-items: start;
}

.hm-panel.active {
  display: grid;
}

.hm-panel-txt h3 {
  font-size: 2rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hm-panel-txt p {
  margin: 8px 0 40px;
  font-size: 1.0625rem;
  line-height: 1.4;
  color: rgba(32, 40, 48, 0.8);
}

.hm-agents {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hm-agent {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: #fff;
  transition: border-color 0.2s;
}

.hm-agent:hover {
  border-color: #c3ccd1;
}

.hm-agent-txt {
  flex: 1;
  min-width: 0;
}

.hm-agent-txt b {
  display: block;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 22px;
  color: #12171b;
}

.hm-agent-txt span {
  display: block;
  margin-top: 4px;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--hm-text);
}

.hm-agent-m {
  flex: none;
  width: 99px;
  text-align: center;
  color: var(--hm-text);
}

.hm-agent-m b {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hm-agent-m span {
  display: block;
  margin-top: 3px;
  font-size: 0.75rem;
  letter-spacing: -0.014em;
  line-height: 1.4;
}

/* metrics */
.hm-metrics .hm-head {
  max-width: 767px;
  margin-bottom: 48px;
}

.hm-metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.hm-metric {
  padding: 32px 40px;
  border-right: 1px solid var(--line);
}

.hm-metric:last-child {
  border-right: 0;
}

.hm-metric p {
  margin: 4px 0 0;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--hm-text);
}

.hm-metric .hm-metric-n {
  margin: 0 0 16px;
  font-size: clamp(2.5rem, 4.3vw, 3.875rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
  white-space: nowrap;
}

.hm-metric .hm-metric-l {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 22px;
  color: #12171b;
}

/* sovereign by design: text in the container, photo bleeding to the right edge */
.hm-sovereign {
  display: grid;
  grid-template-columns: calc(max(var(--gutter), (100% - 1160px) / 2) + 670px) minmax(0, 1fr);
  gap: 16px;
  background: var(--hm-soft);
}

.hm-sov-text {
  width: 670px;
  max-width: 100%;
  justify-self: end;
  padding: 120px 98px 120px 0;
}

.hm-sov-text .lead {
  margin-top: 16px;
}

.hm-checks {
  display: grid;
  gap: 24px;
  margin: 40px 0;
}

.hm-checks li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.hm-checks i {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.hm-checks i::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.hm-checks b {
  display: block;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
}

.hm-checks span {
  display: block;
  margin-top: 4px;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--steel);
}

/* the photo fills the row the text sets, without adding its own height */
.hm-sov-img {
  position: relative;
}

.hm-sov-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* testimonial */
.hm-quote-text {
  max-width: 768px;
  margin: 0 auto;
  font-size: clamp(1.375rem, 2.45vw, 2.2rem);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--ink);
}

.hm-quote-by {
  max-width: 768px;
  margin: 24px auto 0;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--steel);
}

.hm-personal.section {
  padding-top: clamp(40px, 4.5vw, 64px);
}

.hm-personal .hm-head {
  margin-bottom: 56px;
}

/* company */
.hm-co {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.hm-co-img {
  display: block;
  height: 462px;
  padding: 12px;
  border-radius: var(--radius-l);
  background: var(--hm-soft);
}

.hm-co-img img {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
}

.hm-co-text {
  padding: 24px;
}

.hm-co-text .lead {
  margin-top: 12px;
}

.hm-co-text .hm-actions {
  margin-top: 32px;
}

/* blog */
.hm-blog {
  background: var(--hm-soft);
}

.hm-posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hm-post {
  display: flex;
  flex-direction: column;
  min-height: 550px;
  border: 1px solid #e3e7ea;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  color: var(--hm-text);
}

.hm-post-img {
  position: relative;
  display: block;
  aspect-ratio: 368.66 / 230.41;
  overflow: hidden;
}

.hm-post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.hm-post:hover .hm-post-img img {
  transform: scale(1.03);
}

.hm-post-cat,
.hm-post-time {
  position: absolute;
  left: 16px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.875rem;
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.05), 0 12px 18px rgba(0, 0, 0, 0.07);
}

.hm-post-cat {
  top: 16px;
  border: 1px solid rgba(20, 228, 204, 0.2);
  background: rgba(38, 48, 57, 0.9);
  font-weight: 500;
  line-height: 1.6;
  color: #5cd6cc;
}

.hm-post-time {
  bottom: 16px;
  border: 1px solid var(--hm-rule);
  background: #ecf0f3;
  line-height: 1.4;
}

.hm-post-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.hm-post-date {
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--steel);
}

.hm-post-body b {
  margin-top: 8px;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 22px;
}

.hm-post-excerpt {
  margin: 4px 0 24px;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--steel);
}

.hm-post .hm-more {
  margin-top: auto;
}

/* FAQ */
.hm-faqs {
  border-top: 1px solid var(--line);
}

.hm-faqs details {
  border-bottom: 1px solid var(--line);
}

.hm-faqs summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 22px;
  color: var(--hm-text);
  list-style: none;
  cursor: pointer;
}

.hm-faqs summary::-webkit-details-marker {
  display: none;
}

.hm-faqs summary::after {
  content: "+";
  flex: none;
  width: 24px;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 24px;
  text-align: center;
  color: var(--steel);
  transition: transform 0.2s var(--ease);
}

.hm-faqs details[open] summary::after {
  transform: rotate(45deg);
}

.hm-faqs details p {
  margin: 4px 0 0;
  padding: 0 294px 24px 0;
  font-size: 1.0625rem;
  line-height: 1.4;
  color: rgba(31, 38, 45, 0.8);
}

@media (max-width: 1100px) {
  .hm-metric {
    padding: 32px 24px;
  }

  .hm-faqs details p {
    padding-right: 0;
    max-width: 866px;
  }
}

@media (max-width: 960px) {
  .hm-cards,
  .hm-cards.two,
  .hm-posts,
  .hm-panel.active,
  .hm-co {
    grid-template-columns: minmax(0, 1fr);
  }

  .hm-post {
    min-height: 0;
  }

  /* one full-width card per row on tablets: a lower image */
  .hm-post-img {
    aspect-ratio: 2 / 1;
  }

  .hm-metric-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hm-metric:nth-child(2) {
    border-right: 0;
  }

  .hm-metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .hm-panel.active {
    gap: 40px;
  }

  /* photo band on top, text below (Figma mobile "Section / Sovrana") */
  .hm-sovereign {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .hm-sov-img {
    order: -1;
    height: 350px;
  }

  .hm-sov-img img {
    object-position: 50% 100%;
  }

  .hm-sov-text {
    width: 100%;
    padding: clamp(40px, 8.4vw, 80px) var(--gutter);
  }

  .hm-company.section {
    padding-top: 0;
  }

  .hm-co {
    gap: 0;
    margin: 0 calc(-1 * var(--gutter));
  }

  .hm-co-img {
    height: 350px;
    padding: 0;
    border-radius: 0;
  }

  .hm-co-img img {
    border-radius: 0;
  }

  .hm-co-text {
    padding: clamp(40px, 8.4vw, 80px) var(--gutter) 0;
  }
}

/* Figma mobile frame (390px) */
@media (max-width: 640px) {
  .hm > .container,
  .hm-sov-text,
  .hm-co-text {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hm-co {
    margin: 0 -16px;
  }

  .hm h2 {
    letter-spacing: -0.0285em;
    line-height: 1.2;
  }

  .hm .btn {
    width: 100%;
    justify-content: center;
  }

  .hm-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hm-head-link {
    grid-template-columns: minmax(0, 1fr);
  }

  .hm-head-link .hm-more {
    margin-top: 12px;
  }

  /* hero: headline, buttons, full-bleed window, then the proof line */
  .hm-hero .lead {
    margin-top: 16px;
  }

  .hm-hero .hm-actions {
    margin-top: 48px;
  }

  .hm-hero-aside {
    order: 1;
    margin-top: 24px;
    padding-bottom: 32px;
  }

  .hm-window {
    margin: 32px -16px 0;
    border-radius: 0;
    box-shadow: none;
  }

  .hm-window-bar {
    padding: 14px 16px;
  }

  .hm-window-title {
    display: none;
  }

  .hm-window-shot {
    width: calc(100% - 32px);
    margin: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
  }

  .hm-dock {
    justify-content: flex-start;
    padding: 16px;
    margin-top: 8px;
  }

  .hm-logos {
    margin-top: 0;
  }

  .hm-logos-label {
    margin-bottom: 32px;
  }

  /* smaller logos and gaps make a shorter loop: 34s keeps the desktop speed (about 72px/s) */
  .hm-logos .marquee-track {
    --mq-gap: 24px;
    --mq-dur: 34s;
  }

  .hm-logos img {
    height: 30px;
  }

  .hm-logos img.tall {
    height: 36px;
  }

  .hm-ticker {
    padding: 24px 0;
    border-color: var(--line);
  }

  .hm-ticker a {
    padding: 0;
    line-height: 1.4;
  }

  .hm-head.center {
    text-align: left;
  }

  .hm-modes .hm-head,
  .hm-metrics .hm-head,
  .hm-personal .hm-head {
    margin-bottom: 48px;
  }

  .hm-modes .hm-card {
    gap: 16px;
  }

  .hm-modes .hm-card h3 + p {
    margin-bottom: 0;
  }

  .hm-personal .hm-card {
    padding: 24px;
  }

  .hm-personal .hm-card h3 + p {
    margin-bottom: 16px;
  }

  .hm-personal .hm-cards {
    gap: 12px;
  }

  /* industries: tabs scroll sideways to the screen edges, fading on the right */
  .hm-sectors .hm-head {
    margin-bottom: 40px;
  }

  .hm-tabs {
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0 -16px 40px;
    padding: 0 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 60px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 60px), transparent);
  }

  .hm-tabs::-webkit-scrollbar {
    display: none;
  }

  .hm-tab {
    padding: 0 17px;
  }

  .hm-panel-txt h3 {
    font-size: 1.5rem;
  }

  .hm-panel-txt p {
    margin: 12px 0 24px;
    font-size: 1.125rem;
    color: var(--steel);
  }

  .hm-agents {
    gap: 12px;
  }

  .hm-agent {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .hm-agent-txt b {
    font-size: 1rem;
    letter-spacing: 0;
    line-height: 1.3;
  }

  .hm-agent-txt span {
    margin-top: 8px;
  }

  .hm-agent-m {
    display: flex;
    align-items: baseline;
    gap: 8px;
    width: auto;
    text-align: left;
  }

  .hm-agent-m b {
    font-size: 1rem;
    letter-spacing: -0.01em;
    line-height: 1.4;
  }

  .hm-agent-m span {
    margin: 0;
  }

  /* metrics: one per row */
  .hm-metric-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .hm-metric,
  .hm-metric:nth-child(-n + 2) {
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hm-metric:last-child {
    border-bottom: 0;
  }

  .hm-metric .hm-metric-n {
    font-size: 2.5rem;
    letter-spacing: -0.038em;
    line-height: 1;
  }

  .hm-metric .hm-metric-l {
    font-size: 1rem;
    letter-spacing: 0;
    line-height: 1.3;
  }

  .hm-sov-text {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .hm-sov-text .lead {
    margin-top: 12px;
  }

  .hm-checks {
    gap: 16px;
  }

  .hm-checks li {
    gap: 8px;
    padding: 2px 0;
  }

  .hm-checks b {
    font-size: 1rem;
  }

  .hm-checks span {
    margin-top: 8px;
  }

  .hm-quote.section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .hm-quote-text {
    line-height: 1.4;
  }

  .hm-co-text {
    padding-top: 40px;
  }

  .hm-co-text .hm-actions {
    margin-top: 40px;
  }

  .hm-post-img {
    aspect-ratio: 368.66 / 230.41;
  }

  .hm-faqs {
    border-top: 0;
  }

  .hm-faqs summary {
    gap: 8px;
  }

  .hm-faqs details p {
    margin-top: 0;
  }
}
