/* SelTroniX public site — single stylesheet.
   Tokens are documented in DESIGN_SYSTEM.md. Mobile-first only where it keeps
   things simpler; the main breakpoints are 992px (columns stack) and 768px. */

/* ---------- Fonts (self-hosted Barlow, SIL OFL) ---------- */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 300; font-display: swap; src: url("assets/fonts/barlow-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/barlow-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/barlow-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: italic; font-weight: 700; font-display: swap; src: url("assets/fonts/barlow-latin-700-italic.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  /* Surfaces */
  --c-page: #efeeee;          /* default section background */
  --c-white: #ffffff;
  --c-dark: #333333;          /* dark panels (Values, Experience, cards) */
  --c-sky: #b2ccd2;           /* hero back panel, clients */
  --c-blue: #55b4d4;          /* Business, Industries back panel, accents */
  --c-teal: #073b4c;          /* text on blue, Network panel */
  --c-stats: #cccccc;
  --c-input: #efefef;
  /* Text */
  --c-ink: #333333;
  --c-ink-strong: #232323;
  --c-ink-join: #282124;
  --c-ink-black: #111111;
  --c-muted: #5f5f5f;         /* was #767676: darker for long texts */
  --c-muted-2: #666666;
  --c-grey: #c1c1c1;
  --c-cream: #f9f6e0;         /* FAQ text */
  --c-faq-line: #72716b;
  /* Brand / actions */
  --c-primary: #149dcc;
  --c-primary-hover: #40c0ec;
  --c-secondary: #ea1a21;
  --c-secondary-hover: #f06065;
  /* Product icon colors */
  --c-icon-pink: #ff6d99;  --c-icon-pink-ring: #ff7ca4;
  --c-icon-rose: #dc84ba;  --c-icon-rose-ring: #df8fbf;
  --c-icon-lilac: #b1a1e3; --c-icon-lilac-ring: #b7a8e5;
  /* Image overlays */
  --ov-light: rgba(255, 255, 255, .8);
  --ov-dark: rgba(51, 51, 51, .8);
  --ov-quote: rgba(135, 154, 159, .8);
  --ov-faq: rgba(70, 80, 82, .8);
  --ov-contact: rgba(0, 0, 0, .4);

  /* Typography */
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-display: clamp(2.33rem, 1.2rem + 4.6vw, 4.8rem);   /* 76.8px  hero title, stats */
  --fs-h2: clamp(1.56rem, 1.1rem + 1.9vw, 2.6rem);         /* 41.6px  section titles */
  --fs-lead: clamp(1.14rem, 1.05rem + .45vw, 1.4rem);      /* 22.4px  large body */
  --fs-body: 1.1rem;                                        /* 17.6px  body */
  --fs-small: .9rem;                                        /* 14.4px  nav, labels, buttons */

  /* Spacing & layout */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-6: 48px;
  --space-8: 64px;
  --space-12: 96px;
  --gutter: clamp(16px, 4.5vw, 64px);   /* side padding of full-bleed blocks */
  --container: 1240px;
  --header-h: 72px;
  --radius-btn: 3px;
  --t-fast: .3s ease-in-out;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--c-ink);
  background: var(--c-page);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, blockquote, figure { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
button, input, textarea { font: inherit; color: inherit; }
strong, b { font-weight: 700; }
:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 300;
  padding: 10px 16px; background: var(--c-white); color: var(--c-ink); font-weight: 600;
}
.skip-link:focus { top: 8px; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.center { text-align: center; }

/* ---------- Typography helpers ---------- */
.section-title { font-size: var(--fs-h2); font-weight: 600; line-height: 1.2; padding-bottom: var(--space-3); }
.lead { font-size: var(--fs-lead); line-height: 1.5; letter-spacing: -1px; }
.lead p + p, .lead p + ul, .lead ul + p { margin-top: 1.5em; }
.eyebrow { font-size: var(--fs-small); line-height: 1.3; padding-bottom: var(--space-1); }

/* Vertical "SelTroniX/ LABEL" written along the right edge of a section. */
.side-label {
  position: absolute; right: var(--gutter); bottom: var(--space-12); z-index: 1;
  writing-mode: vertical-rl;
  font-size: var(--fs-small); line-height: 1.3; letter-spacing: normal; white-space: nowrap;
  opacity: .6; /* decorative; hidden from screen readers (aria-hidden) */
}
.side-label-left { right: auto; left: var(--gutter); bottom: auto; top: var(--space-4); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 48px; border: 1px solid transparent; border-radius: 0;
  font-size: var(--fs-small); font-weight: 500; line-height: 1; text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.btn-lg { padding: 25.6px 32px; border-radius: var(--radius-btn); }
.btn-primary { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-white); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--c-primary-hover); border-color: var(--c-primary-hover); }
.btn-secondary { background: var(--c-secondary); border-color: var(--c-secondary); color: var(--c-white); }
.btn-secondary:hover, .btn-secondary:focus-visible { background: var(--c-secondary-hover); border-color: var(--c-secondary-hover); }
.btn[disabled] { opacity: .7; cursor: wait; }
.btn-outline-dark { background: transparent; border-color: var(--c-ink); color: var(--c-ink); }
.btn-outline-dark:hover, .btn-outline-dark:focus-visible { background: var(--c-ink); color: var(--c-white); }
.btn-icon { width: 22px; height: 22px; transition: transform var(--t-fast); }
.btn:hover .btn-icon { transform: translateX(4px); }

/* Image that slowly zooms on hover (original Mobirise effect, 5s). */
.zoom-frame { overflow: hidden; }
.zoom-frame img { width: 100%; transition: transform 5s; }
.zoom-frame:hover img, .platform-card:hover .zoom-frame img { transform: scale(1.1); }

/* ---------- Header & navigation ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  background: var(--c-white);
  transition: box-shadow var(--t-fast);
}
.site-header.is-scrolled { box-shadow: 0 2px 12px rgba(0, 0, 0, .08); }
.nav-shell { display: flex; align-items: center; min-height: var(--header-h); padding: 8px var(--space-2) 8px var(--space-2); }
.brand { display: flex; align-items: center; gap: var(--space-2); margin-right: auto; text-decoration: none; }
.brand img { width: auto; height: 48px; }
.brand-tagline { color: var(--c-primary); font-size: var(--fs-small); font-weight: 600; line-height: 1.2; }
.nav-list { display: flex; align-items: center; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 0 var(--space-4); padding: 11px 0;
  background: none; border: 0; cursor: pointer;
  color: #000; font-size: var(--fs-small); font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: color .2s ease-in-out;
}
.nav-link:hover, .nav-link:focus-visible { color: var(--c-primary); }
/* Current section (set by app.js while scrolling). */
.nav-link[aria-current], .nav-drop-trigger.is-current, .dropdown-menu a[aria-current] { color: var(--c-primary); }
/* "Contact" is a button, not a plain link. */
.nav-cta {
  margin-right: 0; padding: 12px 24px;
  background: var(--c-primary); color: var(--c-white);
  transition: background-color .2s ease-in-out;
}
.nav-cta:hover, .nav-cta:focus-visible, .nav-cta[aria-current] { background: var(--c-primary-hover); color: var(--c-white); }
.nav-drop-trigger::after {
  content: ""; border-top: .3em solid; border-right: .3em solid transparent; border-left: .3em solid transparent;
  transition: transform .2s;
}
.nav-drop-trigger[aria-expanded="true"]::after { transform: rotate(180deg); }
.nav-dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: 100%; left: var(--space-4); min-width: 230px;
  padding: 22px 0; background: var(--c-white); box-shadow: 0 0 15px rgba(0, 0, 0, .1);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.nav-dropdown.open > .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 992px) {
  .nav-dropdown:hover > .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
}
.dropdown-menu a {
  display: block; padding: 3px var(--space-4); white-space: nowrap;
  color: var(--c-ink); font-size: var(--fs-small); font-weight: 500; line-height: 1.9; text-decoration: none;
  transition: color .2s ease-in-out;
}
.dropdown-menu a:hover, .dropdown-menu a:focus-visible { color: var(--c-primary); }
.nav-toggle { display: none; }

/* Language switch (EN / RO), right of the menu; next to the hamburger on mobile. */
.lang-switch { display: flex; align-items: center; margin-left: var(--space-3); }
.lang-switch a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px;
  color: #000; font-size: var(--fs-small); font-weight: 600; line-height: 1; text-decoration: none;
  transition: color .2s ease-in-out;
}
.lang-switch a + a { position: relative; }
.lang-switch a + a::before { content: ""; position: absolute; left: 0; top: 50%; height: 14px; margin-top: -7px; border-left: 1px solid #b5b5b5; }
.lang-switch a:hover, .lang-switch a:focus-visible, .lang-switch a[aria-current] { color: var(--c-primary); }
.lang-switch a[aria-current] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* Tighter menu on narrower desktops, so logo, menu and EN / RO fit on one 72 px line. */
@media (max-width: 1399.98px) {
  .nav-link { margin: 0 12px; }
}
@media (max-width: 1199.98px) {
  .nav-link { margin: 0 var(--space-1); }
  .lang-switch { margin-left: var(--space-1); }
}
@media (max-width: 991.98px) {
  .lang-switch { order: 1; margin-left: 0; }
  .nav-toggle { order: 2; }
}
/* Small phones: logo + EN / RO + menu leave no room for the tagline. */
@media (max-width: 479.98px) {
  .brand-tagline { display: none; }
}
@media (max-width: 991.98px) {
  .brand img { height: 40px; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; padding: 10px; margin-left: var(--space-1);
    background: none; border: 0; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--c-ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    background: var(--c-white); box-shadow: 0 12px 20px rgba(0, 0, 0, .1);
    display: none;
  }
  .main-nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; padding: var(--space-1) 0 var(--space-2); }
  .nav-link { width: 100%; margin: 0; padding: 14px var(--gutter); justify-content: space-between; }
  .dropdown-menu {
    position: static; min-width: 0; padding: 0 0 var(--space-1); box-shadow: none;
    opacity: 1; visibility: visible; transform: none; display: none;
  }
  .nav-dropdown.open > .dropdown-menu { display: block; }
  .dropdown-menu a { padding: 8px calc(var(--gutter) + var(--space-2)); }
  .nav-cta-item { padding: var(--space-1) var(--gutter) 0; }
  .nav-cta { justify-content: center; padding: 14px 24px; }
}
@media (max-width: 479.98px) {
  .brand { gap: 10px; }
  .brand img { height: 34px; }
  .brand-tagline { font-size: .75rem; max-width: 7.5em; }
}

/* ---------- Sections ---------- */
main { padding-top: var(--header-h); }
.section { position: relative; }

/* Full-bleed background image + colored overlay (Objectives, More Than Just Code,
   Testimonials, FAQ, Contact). */
.banner-bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; }
.banner-bg::after { content: ""; position: absolute; inset: 0; background: var(--overlay, transparent); }
.section > .container, .banner-inner { position: relative; z-index: 1; }
@media (hover: hover) and (min-width: 992px) {
  .banner-fixed { background-attachment: fixed; }
}

/* Hero & Industries: image on the left, copy over a colored back panel on the right. */
.split-hero { position: relative; overflow: hidden; padding: 105px 0; background: var(--c-page); }
.split-hero-back { position: absolute; top: 0; right: 0; bottom: 0; width: 64.3%; background: var(--c-sky); }
.split-hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 560px; }
.split-hero-media img { width: 100%; }
.split-hero-copy { padding: var(--space-12) 128px 0 var(--space-4); }
/* The hero is shorter than the Industries block that shares this layout. */
.hero { display: flex; align-items: center; padding: 96px 0; }
.hero .split-hero-grid { width: 100%; min-height: 0; }
.hero .split-hero-copy { padding-top: 0; }
.hero.split-hero .lead { padding-top: var(--space-3); }
.hero-kicker { font-size: var(--fs-lead); font-weight: 400; line-height: 1.5; letter-spacing: -1px; padding-bottom: var(--space-1); }
.hero-title { font-size: var(--fs-display); font-weight: 600; line-height: 1.2; letter-spacing: -1px; padding-bottom: var(--space-3); }
.split-hero .lead { padding-top: var(--space-8); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); padding-top: var(--space-4); }

.business .lead, #more-than-code .lead { max-width: 860px; }

/* About: Objectives (left, photo under a light overlay) + Values (right, dark) */
.about { display: grid; grid-template-columns: 1fr 1fr; }
.about-objectives { position: relative; --overlay: var(--ov-light); }
.about-inner { position: relative; z-index: 1; max-width: 640px; margin-left: auto; padding: 96px var(--space-8); font-size: var(--fs-body); line-height: 1.5; }
.about-inner p + p { margin-top: 1em; }
.about-values { padding: 96px var(--space-8); background: var(--c-dark); color: var(--c-grey); }
.about-values .section-title { color: var(--c-white); }
.about-values .eyebrow { color: var(--c-white); opacity: .6; }
.about .eyebrow { opacity: .6; }
.values-list { max-width: 560px; font-size: var(--fs-body); line-height: 1.5; }
.values-list dt { font-weight: 700; color: var(--c-white); }
.values-list dd + dt { margin-top: .7em; }

/* Team tiles */
.team-row { display: grid; }
.team-row-top { grid-template-columns: 1fr 2fr 1fr; min-height: 515px; }
.team-row-bottom { grid-template-columns: 1fr 1fr; min-height: 472px; background: var(--c-white); }
.tile-label { font-size: var(--fs-small); font-weight: 500; line-height: 1.3; padding-bottom: var(--space-1); }
.tile-text { font-size: var(--fs-lead); line-height: 1.5; letter-spacing: -1px; }

/* Photo tile: colored cover fades out on hover and reveals the photo. */
.tile { position: relative; overflow: hidden; background: var(--tile-img) center / cover no-repeat; }
.tile::before { content: ""; position: absolute; inset: 0; background: var(--tile-cover); transition: opacity var(--t-fast); }
.tile:hover::before { opacity: 0; }
.tile-body { position: relative; padding: var(--space-4); color: var(--c-ink); }
.tile-grey { --tile-cover: var(--c-grey); }
.tile-blue { --tile-cover: var(--c-blue); }

/* Reveal block: empty left half + colored text box on the right half;
   on hover the photo covers the whole block. */
.reveal { position: relative; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.reveal::before {
  content: ""; position: absolute; inset: 0;
  background: var(--reveal-img) center / cover no-repeat;
  opacity: 0; transition: opacity var(--t-fast);
}
.reveal-box { position: relative; grid-column: 2; padding: var(--space-4); background: var(--box-bg); color: var(--box-fg); transition: background-color var(--t-fast), color var(--t-fast); }
.reveal:hover::before { opacity: 1; }
.reveal:hover .reveal-box { background-color: transparent; color: var(--box-fg-hover); }
.reveal-teal { --box-bg: var(--c-teal); --box-fg: #cccccc; --box-fg-hover: #cccccc; }
.reveal-blue { --box-bg: var(--c-blue); --box-fg: var(--c-ink); --box-fg-hover: var(--c-ink); }
.reveal-dark { --box-bg: var(--c-dark); --box-fg: var(--c-sky); --box-fg-hover: var(--c-sky); }

.experience { padding: var(--space-8); background: var(--c-dark); color: var(--c-white); }
.experience p { font-size: var(--fs-body); line-height: 1.4; max-width: 540px; margin-left: auto; margin-right: var(--space-8); }
.experience .section-title { padding-bottom: var(--space-6); }

/* Smart Touch / Apollo / Smart Portal: white full-bleed panel */
.product-story { background: var(--c-page); }
.product-story-first { padding-top: 60px; }
.product-story-last { padding-bottom: 60px; }
.story-box { background: var(--c-white); }
.story-media { position: relative; }
.btn-banner {
  position: absolute; right: 0; bottom: 0; transform: translateY(50%);
  padding: 25.6px 32px; font-size: var(--fs-h2); font-weight: 500;
}
.story-rule { margin: 0; border: 0; border-top: 2px solid #222; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); padding: 88px var(--space-8) var(--space-8); }
.story-title .section-title { padding-bottom: 0; color: var(--c-ink); }
.story-title a { color: var(--c-primary); text-decoration: none; }
.story-title a:hover { text-decoration: underline; }
.title-rest { font-weight: 400; }
.story-text { max-width: 68ch; color: var(--c-muted); font-size: var(--fs-body); line-height: 1.5; }
.story-text p + p { margin-top: 1.4em; }
.story-text strong { color: var(--c-muted); }
.saas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); padding: 88px var(--space-8) var(--space-8); }
.saas-card { display: flex; flex-direction: column; gap: var(--space-2); padding-top: var(--space-3); border-top: 2px solid #222; font-size: var(--fs-body); line-height: 1.5; color: var(--c-muted); }
.saas-title { font-size: var(--fs-lead); font-weight: 400; line-height: 1.35; letter-spacing: -.5px; color: var(--c-ink); }
.saas-name { display: block; font-weight: 600; color: var(--c-primary); }
.saas-steps li + li { margin-top: .4em; }
.saas-steps strong { color: var(--c-ink); }
.saas-more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: var(--space-1); color: var(--c-primary); font-weight: 600; text-decoration: none; }
.saas-more .btn-icon { width: 20px; height: 20px; }
.saas-more:hover .btn-icon { transform: translateX(4px); }
.saas-more:hover { text-decoration: underline; }

/* Product pages (smart-touch, apollo, smart-portal) */
.breadcrumb { padding-bottom: var(--space-2); font-size: var(--fs-small); color: var(--c-muted); }
.breadcrumb a { color: var(--c-primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.product-page { padding-bottom: 96px; }
.product-page .story-box { max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; }
.product-page .story-media + .story-grid { padding-top: 88px; }
.product-page .story-grid { padding-top: var(--space-6); }
.story-ext { padding-top: var(--space-3); font-size: var(--fs-body); }
.story-ext a { color: var(--c-primary); }
.product-cta { display: flex; flex-wrap: wrap; gap: var(--space-2); padding: 0 var(--space-8) var(--space-8); }

/* Transform Your Company */
.transform { padding: 120px 0 75px; }
.transform-inner { padding-left: calc(var(--gutter) + 40px); }
.transform-kicker { font-size: var(--fs-lead); line-height: 1.5; letter-spacing: -1px; padding-bottom: var(--space-1); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); font-size: var(--fs-body); line-height: 1.5; }
.two-col p { max-width: 68ch; }

/* Business Solutions */
.business { padding: 60px 0; background: var(--c-blue); color: var(--c-teal); }
.dash-list li::before { content: "- "; }

/* Platform Solutions */
.platforms { padding: 45px 0 60px; }
.platform-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); padding-top: var(--space-2); }
.platform-card { position: relative; display: flex; flex-direction: column; }
.platform-card .zoom-frame img { aspect-ratio: 3 / 2; object-fit: cover; }
.platform-body { flex: 1; padding: var(--space-6) var(--space-4) 96px; }
.platform-body h3 { font-size: var(--fs-lead); font-weight: 700; line-height: 1.5; letter-spacing: -1px; color: var(--c-grey); padding-bottom: 4px; }
.platform-body p { font-size: var(--fs-small); line-height: 1.5; }
.platform-dark { background: var(--c-dark); color: var(--c-page); }
.platform-light { background: var(--c-white); color: var(--c-ink); }
.platform-icon { position: absolute; right: 0; bottom: 0; display: grid; place-items: center; width: 69px; height: 69px; background: var(--c-blue); color: var(--c-ink); }
.platform-icon svg { width: 22px; height: 22px; }

/* Products */
.products { padding: var(--space-6) 0 var(--space-2); background: var(--c-white); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: var(--space-4); row-gap: var(--space-8); max-width: calc(1140px + 2 * var(--gutter)); padding-bottom: var(--space-6); }
.product { text-align: center; padding: 0 var(--space-2); font-size: var(--fs-body); line-height: 1.4; }
.product-icon {
  display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto var(--space-4);
  border: 4px solid var(--ring); border-radius: 50%; background: var(--fill); box-shadow: 0 18px 32px -8px var(--fill);
  color: var(--c-white);
}
.product-icon svg { width: 28px; height: 28px; }
.icon-pink { --fill: var(--c-icon-pink); --ring: var(--c-icon-pink-ring); }
.icon-rose { --fill: var(--c-icon-rose); --ring: var(--c-icon-rose-ring); }
.icon-lilac { --fill: var(--c-icon-lilac); --ring: var(--c-icon-lilac-ring); }
.product h3 { font-size: var(--fs-body); font-weight: 700; color: var(--c-ink-black); padding-bottom: var(--space-2); }
.product h3 a { color: var(--c-primary); text-decoration: none; }
.product h3 a:hover, .product h3 a:focus-visible { text-decoration: underline; }
.product p { color: var(--c-ink-black); }
.product .product-text { margin-top: 1.4em; color: var(--c-muted-2); }

/* Technology */
.technology { display: grid; grid-template-columns: 1fr 1fr; min-height: 482px; background: var(--c-page); }
.technology-copy { padding: var(--space-8); font-size: var(--fs-body); line-height: 1.4; }
.tech-list { font-size: var(--fs-lead); font-weight: 700; line-height: 1.5; letter-spacing: -1px; padding-top: var(--space-6); }

/* More Than Just Code */
#more-than-code { padding: 45px 0; color: var(--c-white); --overlay: var(--ov-dark); }
#more-than-code .side-label { bottom: 45px; }

/* Industries */
.industries .split-hero-back { background: var(--c-blue); }
.industries-title { font-size: var(--fs-h2); font-weight: 400; line-height: 1.3; padding-bottom: var(--space-1); }
.industries-intro, .industries-lead, .plain-list { font-size: var(--fs-body); line-height: 1.4; }
.industries-intro { padding-bottom: var(--space-3); }
.industries .split-hero-copy { padding-top: 0; }
.industries-lead { padding-top: var(--space-8); }

/* Clients */
.clients { padding: 60px 0 45px; background: var(--c-sky); color: var(--c-ink-strong); }
.clients .section-title { padding-bottom: var(--space-2); }
.clients-sub { text-align: center; font-size: var(--fs-lead); font-weight: 500; line-height: 1.5; letter-spacing: -1px; padding-bottom: var(--space-6); }

/* Carousels (shared) */
.carousel { position: relative; }
.carousel-viewport { overflow: hidden; }
.carousel-track { display: flex; transition: transform .6s ease; will-change: transform; }
.carousel-track > li { flex: 0 0 calc(100% / var(--per-view, 1)); min-width: 0; }
.carousel-controls { display: flex; justify-content: center; gap: 20px; padding-top: var(--space-4); }
.round-btn {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 1px solid #000; border-radius: 50%; background: #000; color: var(--c-white);
  opacity: .6; cursor: pointer; transition: opacity .15s;
}
.round-btn:hover, .round-btn:focus-visible { opacity: 1; }
.round-btn svg { width: 18px; height: 18px; }
@media (prefers-reduced-motion: reduce) { .carousel-track { transition: none; } }

.logo-carousel { --per-view: 6; }
.logo-slide { display: grid; place-items: center; height: 140px; padding: 0 var(--space-2); }
.logo-slide img { max-height: 110px; max-width: 100%; width: auto; object-fit: contain; }

/* Stats */
/* A compact band under the hero: one row of six on wide screens. */
.stats { padding: var(--space-4) 0; background: var(--c-stats); }
.stats-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-3) var(--space-3); }
.stats-grid li { display: flex; flex-direction: column; }
.stat-number { font-size: clamp(2rem, 1.4rem + 1.6vw, 3rem); font-weight: 300; line-height: 1; letter-spacing: -1px; color: #0f0f0f; font-variant-numeric: tabular-nums; }
.stat-label { padding-top: 6px; font-size: var(--fs-small); font-weight: 500; line-height: 1.35; color: var(--c-muted-2); }
@media (max-width: 1199.98px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }

/* Testimonials */
.testimonials { padding: 90px 0 120px; text-align: center; --overlay: var(--ov-quote); }
.quote-carousel { max-width: 960px; margin: 0 auto; padding: 0 64px; }
.quote-slide { padding: 0 var(--space-2); }
.quote-icon { width: 48px; height: 48px; margin: 0 auto var(--space-2); color: var(--c-primary); }
.quote-slide blockquote { color: var(--c-white); font-size: var(--fs-lead); line-height: 1.5; letter-spacing: -1px; }
.quote-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
  background: none; border: 0; color: var(--c-white); opacity: .8; cursor: pointer;
}
.quote-arrow:hover, .quote-arrow:focus-visible { opacity: 1; }
.quote-arrow svg { width: 36px; height: 36px; }
.quote-prev { left: 0; }
.quote-next { right: 0; }
.carousel-dots { display: flex; justify-content: center; gap: 4px; padding-top: var(--space-4); }
.quote-nav { display: flex; justify-content: center; align-items: center; gap: var(--space-1); padding-top: var(--space-4); }
.quote-nav .carousel-dots { padding-top: 0; }
.carousel-pause svg { width: 16px; height: 16px; }
.carousel-pause .i-play, .carousel-pause[aria-pressed="true"] .i-pause { display: none; }
.carousel-pause[aria-pressed="true"] .i-play { display: block; }
.quote-pause {
  display: grid; place-items: center; width: 32px; height: 32px; padding: 0;
  background: none; border: 1px solid var(--c-white); border-radius: 50%; color: var(--c-white);
  opacity: .8; cursor: pointer; transition: opacity .15s;
}
.quote-pause:hover, .quote-pause:focus-visible { opacity: 1; }
.quote-pause svg { width: 12px; height: 12px; }
.carousel-pause[hidden] { display: none; }
.carousel-dots button { width: 22px; height: 22px; padding: 0; background: none; border: 0; cursor: pointer; display: grid; place-items: center; }
.carousel-dots button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c-teal); opacity: .5; transition: opacity .3s; }
.carousel-dots button[aria-current="true"]::before, .carousel-dots button:hover::before { opacity: 1; }

/* FAQ */
.faq { padding: var(--space-6) 0; --overlay: var(--ov-faq); }
.faq-grid { display: grid; grid-template-columns: 1fr 2fr; gap: var(--space-4); }
.faq-intro { text-align: right; color: var(--c-cream); padding-right: var(--space-4); padding-top: var(--space-4); font-size: var(--fs-body); line-height: 1.4; }
.faq-intro .section-title { font-weight: 300; padding-bottom: var(--space-1); }
.faq-intro .btn { margin-top: var(--space-4); text-transform: uppercase; }
.faq-list details { border-top: 1px solid var(--c-faq-line); }
.faq-list details:last-child { border-bottom: 1px solid var(--c-faq-line); }
.faq-list summary {
  display: block; cursor: pointer; list-style: none;
  padding: 32px var(--space-4) 32px var(--space-2); border-left: 1px solid transparent;
  color: var(--c-primary); font-size: var(--fs-lead); font-weight: 500; line-height: 1.5; letter-spacing: -1px;
  transition: border-color var(--t-fast);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary b { color: var(--c-cream); }
.faq-list details[open] summary { border-left-color: var(--c-blue); }
.faq-list details p { padding: 0 var(--space-4) var(--space-4) var(--space-2); color: var(--c-cream); font-size: var(--fs-body); line-height: 1.4; }

/* Join our team */
.join { display: grid; grid-template-columns: 1fr 1fr; background: var(--c-page); color: var(--c-ink-join); }
.join-copy { align-self: center; padding: var(--space-8) var(--space-8) var(--space-8) 128px; font-size: var(--fs-body); line-height: 1.4; }
.join-copy .eyebrow { font-size: var(--fs-body); }
.jobs dt { font-weight: 700; }
.jobs dd + dt { margin-top: 1.4em; }
.join-media { position: relative; min-height: 650px; }
.join-media .zoom-frame { position: absolute; inset: 0; }
.join-media img { height: 100%; object-fit: cover; }
.join-btn { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 78px; height: 300px; padding: 0; }
.join-btn svg { width: 24px; height: 24px; transition: transform var(--t-fast); }
.join-btn:hover svg { transform: translateX(6px); }

/* Contact */
.contact { padding: 60px 0; color: var(--c-white); --overlay: var(--ov-contact); }
.contact .section-title { font-weight: 300; padding-bottom: var(--space-6); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); max-width: 1110px; margin: 0 auto; }
.contact-intro { padding-bottom: var(--space-3); font-size: var(--fs-body); font-weight: 300; line-height: 1.4; }
.field { padding-bottom: var(--space-2); }
.field label { display: block; padding-bottom: var(--space-1); font-size: var(--fs-body); line-height: 1.4; }
.field input, .field textarea {
  display: block; width: 100%; min-height: 62px; padding: 8px 16px;
  border: 2px solid transparent; border-radius: 0; background: var(--c-input); color: #000;
  font-size: var(--fs-body); line-height: 1.4;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select {
  display: block; width: 100%; min-height: 62px; padding: 8px 44px 8px 16px;
  border: 2px solid transparent; border-radius: 0; color: #000; font: inherit; font-size: var(--fs-body);
  appearance: none; cursor: pointer;
  background: var(--c-input) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 20px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.optional { font-size: var(--fs-small); opacity: .8; }
.char-count { padding-top: 4px; font-size: var(--fs-small); opacity: .8; text-align: right; }
.char-count.is-near { opacity: 1; color: #ffe08a; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--c-primary); }
.field [aria-invalid="true"] { border-color: var(--c-secondary); }
.field-error { min-height: 0; padding-top: 4px; color: #ffd0d1; font-size: var(--fs-small); }
.field-error:empty { display: none; }
.turnstile-box:not(:empty) { margin-bottom: var(--space-2); }
.form-note { margin-bottom: var(--space-2); font-size: var(--fs-small); line-height: 1.4; }
.form-note a { color: inherit; text-decoration: underline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { margin-bottom: var(--space-2); padding: 12px 16px; font-size: var(--fs-body); line-height: 1.4; }
.form-alert.is-success { background: #d4edda; color: #155724; }
.form-alert.is-error { background: #f8d7da; color: #721c24; }
.map-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 400px; padding: var(--space-4); text-align: center;
  background: rgba(7, 59, 76, .55); border: 1px solid rgba(255, 255, 255, .35);
  font-size: var(--fs-body); line-height: 1.4;
}
.map-pin { width: 48px; height: 48px; color: var(--c-white); }
.map-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn-outline { background: transparent; border-color: var(--c-white); color: var(--c-white); }
.btn-outline:hover, .btn-outline:focus-visible { background: var(--c-white); color: var(--c-ink); }
.map-note { max-width: 360px; font-size: var(--fs-small); opacity: .85; }
.map-card.is-loaded { display: block; min-height: 0; padding: 0; border: 0; background: none; }
.map-card iframe { display: block; width: 100%; height: 400px; border: 0; }
@media (max-width: 991.98px) { .map-card iframe { height: 300px; } }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); padding-top: var(--space-2); }
.info-list li { display: flex; gap: var(--space-2); min-height: 46px; padding: 10px; border-bottom: 1px solid var(--c-white); font-size: var(--fs-body); line-height: 1.4; }
.info-title { flex: 0 0 auto; min-width: 70px; }
.info-value { color: var(--c-input); text-decoration: none; overflow-wrap: anywhere; }
a.info-value:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-page); border-top: 1px solid #e2e1e1; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); padding: 24px var(--gutter) 28px; }
/* Keep the right edge free for the fixed back-to-top button (48 px + 16 px offset). */
.footer-inner { padding-right: max(var(--gutter), 80px); }
.copyright { color: var(--c-ink-strong); font-size: var(--fs-small); font-weight: 300; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); }
.footer-links a { position: relative; color: #000; font-size: var(--fs-small); text-decoration: none; }
.footer-links a::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform var(--t-fast);
}
.footer-links a:hover::before, .footer-links a:focus-visible::before, .footer-links a[aria-current="page"]::before { transform: scaleX(1); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  display: grid; place-items: center; width: 48px; height: 48px;
  background: var(--c-primary); color: var(--c-white); box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s, visibility .25s, transform .25s, background-color .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover, .to-top:focus-visible { background: var(--c-primary-hover); }
.to-top svg { width: 24px; height: 24px; }

/* ---------- Quick contact bar (phones only) ---------- */
.call-bar { display: none; }
@media (max-width: 767.98px) {
  .call-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    display: grid; grid-template-columns: 1fr 1fr;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--c-dark); box-shadow: 0 -4px 14px rgba(0, 0, 0, .18);
  }
  .call-bar a {
    display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px;
    color: var(--c-white); font-size: var(--fs-body); font-weight: 600; text-decoration: none;
  }
  .call-bar a + a { border-left: 1px solid rgba(255, 255, 255, .2); background: var(--c-primary); }
  .call-bar svg { width: 22px; height: 22px; }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  .to-top { bottom: calc(72px + env(safe-area-inset-bottom)); }
}

/* ---------- Legal pages & 404 ---------- */
.page-head { position: relative; padding: 180px 0 72px; background: var(--c-page); }
.page-head .section-title { padding-bottom: 0; }
.page-head .side-label { bottom: 40px; }
.legal { padding: 0 0 96px; background: var(--c-page); }
.legal-body { max-width: 72ch; font-size: var(--fs-body); line-height: 1.6; }
.legal-body h2 { padding: 1.6em 0 .5em; font-size: var(--fs-lead); font-weight: 600; letter-spacing: -.5px; }
.legal-body .legal-sub { padding: 1.2em 0 .3em; font-size: var(--fs-body); font-weight: 700; }
.legal-body p + p, .legal-body ul + p, .legal-body p + ul { margin-top: 1em; }
.legal-body ul { padding-left: 1.3em; }
.legal-body li + li { margin-top: .3em; }
.legal-body a { color: var(--c-primary); }
.not-found { min-height: calc(100vh - var(--header-h) - 80px); display: grid; place-items: center; padding: 96px 0; text-align: center; }
.not-found .hero-title { padding-bottom: var(--space-2); }
.not-found p { font-size: var(--fs-lead); padding-bottom: var(--space-4); }
.not-found .not-found-ro { padding: var(--space-4) 0 0; font-size: var(--fs-body); }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .split-hero-copy { padding-right: 96px; }
  .join-copy { padding-left: var(--space-8); }
  .logo-carousel { --per-view: 4; }
}

@media (max-width: 991.98px) {
  .split-hero { padding: 0 0 var(--space-8); }
  .hero { min-height: 0; display: block; }
  .split-hero-back { top: 25vw; width: 100%; }
  .split-hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .split-hero-copy { padding: var(--space-6) var(--gutter) 0; text-align: center; }
  .split-hero .lead { padding-top: var(--space-4); }
  .hero-actions { justify-content: center; }
  .hero .split-hero-copy { padding-top: var(--space-4); }
  .hero-actions { gap: 12px; }
  .hero-actions .btn { padding: 16px 22px; }
  .industries .plain-list { display: inline-block; text-align: left; }

  .about { grid-template-columns: 1fr; }
  .about-inner { max-width: none; padding: 72px var(--gutter); }
  .about-values { padding: 72px var(--gutter); }
  .saas-grid { grid-template-columns: 1fr; padding: 64px var(--gutter) var(--space-6); }
  .product-cta { padding: 0 var(--gutter) var(--space-6); }

  .team-row-top, .team-row-bottom { grid-template-columns: 1fr; min-height: 0; }
  .tile { min-height: 300px; }
  .tile-body, .reveal-box { padding: var(--space-6) var(--gutter); text-align: center; }
  /* No hover on touch screens: show the photos, keep the text readable. */
  .reveal { grid-template-columns: 1fr; min-height: 340px; }
  .reveal::before { opacity: 1; }
  .reveal-box { grid-column: 1; display: flex; flex-direction: column; justify-content: center; background: rgba(7, 59, 76, .72); color: var(--c-white); }
  .reveal-blue .reveal-box { background: rgba(85, 180, 212, .82); color: var(--c-ink); }
  .reveal-dark .reveal-box { background: rgba(51, 51, 51, .78); color: var(--c-sky); }
  .reveal:hover .reveal-box { background-color: rgba(7, 59, 76, .72); color: var(--c-white); }
  .reveal-blue:hover .reveal-box { background-color: rgba(85, 180, 212, .82); color: var(--c-ink); }
  .reveal-dark:hover .reveal-box { background-color: rgba(51, 51, 51, .78); color: var(--c-sky); }
  .tech-list { padding-top: 0; }
  .experience { padding: var(--space-6) var(--gutter); }
  .experience p { margin: 0; max-width: none; }

  .story-grid { grid-template-columns: 1fr; padding: 64px var(--gutter) var(--space-6); gap: var(--space-3); }
  .btn-banner { position: static; transform: none; display: flex; width: 100%; font-size: var(--fs-lead); padding: 18px 24px; }
  .two-col { grid-template-columns: 1fr; }
  .transform { padding: 72px 0 60px; }
  .transform-inner { padding-left: var(--gutter); }

  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); row-gap: var(--space-6); }

  .technology { grid-template-columns: 1fr; }
  .technology-copy { padding: var(--space-6) var(--gutter); }

  .faq-grid { grid-template-columns: 1fr; }
  .faq-intro { text-align: center; padding: 0 0 var(--space-4); }

  .join { grid-template-columns: 1fr; }
  .join-copy { padding: var(--space-6) var(--gutter); }
  .join-media { min-height: 0; aspect-ratio: 2 / 1; }
  .join-btn { width: 60px; height: 160px; }

  .contact-grid { grid-template-columns: 1fr; }
  .map-card { min-height: 260px; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767.98px) {
  /* The vertical labels become a regular line above the text. */
  .side-label, .side-label-left {
    position: static; writing-mode: horizontal-tb; white-space: normal;
    padding-bottom: var(--space-2);
  }
  .split-hero .side-label { padding-top: var(--space-2); }
  .page-head { padding: 72px 0 40px; }
  .logo-carousel { --per-view: 3; }
  .logo-slide { height: 110px; }
  .logo-slide img { max-height: 80px; }
  .quote-carousel { padding: 0 40px; }
  .quote-arrow { width: 36px; }
  .quote-arrow svg { width: 28px; height: 28px; }
  .testimonials { padding: 64px 0 72px; }
  .faq-list summary { padding: 22px var(--space-2) 22px var(--space-2); }
  .info-grid { grid-template-columns: 1fr; gap: 0; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-inner { flex-direction: column; text-align: center; padding-left: 80px; padding-right: 80px; }
  .footer-links { justify-content: center; }
}

@media (max-width: 575.98px) {
  .platform-grid, .product-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); text-align: center; }
  .logo-carousel { --per-view: 2; }
}

/* ---------- Scroll reveal (classes set by app.js) ---------- */
.fx-wait { opacity: 0; }
.fx-in { animation: fx-rise .6s cubic-bezier(.2, .7, .3, 1) both; }
@keyframes fx-rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@media print { .fx-wait { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
