/* =====================================================================
   tel-it d.o.o. — main stylesheet
   Brand colours taken from the tel-it logo: charcoal #2E2B22, red #A01C22.
   Shapes echo the logo letterforms: rounded corners with one square corner.
   ===================================================================== */

:root {
  --ink: #2E2B22;
  --ink-2: #3A372D;
  --ink-3: #4A463A;
  --ink-deep: #1F1D17;
  --red: #A01C22;
  --red-hover: #861419;
  --red-bright: #D23A42;
  --red-tint: #F8ECEC;
  --paper: #FFFFFF;
  --sand: #F6F5F2;
  --sand-2: #EDEBE6;
  --line: #E4E1DA;
  --text: #2E2B22;
  --muted: #5F5B51;
  --on-dark: rgba(255, 255, 255, .74);

  --shape: 22px 22px 4px 22px;
  --shape-sm: 12px 12px 3px 12px;
  --shadow-sm: 0 1px 2px rgba(31, 29, 23, .05), 0 4px 14px rgba(31, 29, 23, .05);
  --shadow: 0 2px 6px rgba(31, 29, 23, .06), 0 18px 40px rgba(31, 29, 23, .12);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --banner-overlap: clamp(64px, 10vw, 150px);

  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Roboto, "Noto Sans", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Roboto, "Noto Sans", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--red-hover); }
:focus-visible { outline: 3px solid var(--red-bright); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 0 0 .6em;
  text-wrap: balance;
}
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
address { font-style: normal; }
.i {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
/* words that contain a hyphen or dash (Tel-it, Wi-Fi, E-mail, 0–24) never break at the dash */
.nw { white-space: nowrap; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.small { font-size: .875rem; line-height: 1.6; color: var(--muted); }

/* stretched link: whole card clickable, accessible name = title */
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }

/* ---------- eyebrow (red square = the "i" dot of the logo) ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .65em; margin: 0 0 18px;
  font: 600 .78rem/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--red);
}
.eyebrow::before { content: ""; width: .75em; height: .75em; background: var(--red); flex: none; }
.eyebrow--light { color: rgba(255, 255, 255, .78); }
.eyebrow--light::before { background: var(--red-bright); }

/* ---------- buttons ---------- */
.btn {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px;
  border: 1.5px solid transparent; border-radius: var(--shape-sm);
  font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn .i { transition: transform .2s; }
.btn:hover .i { transform: translateX(3px); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-hover); color: #fff; box-shadow: 0 10px 24px rgba(160, 28, 34, .28); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
/* the blur lives on a pseudo-element: a backdrop-filter on the header itself would
   trap the fixed-position mobile menu inside the header box */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
}
.nav-open .site-header::before { background: #fff; }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 28px rgba(31, 29, 23, .06); }
.header-inner { display: flex; align-items: center; gap: 14px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; color: var(--ink); flex: none; margin-right: auto; border-radius: 6px; }
.brand .logo { height: 30px; width: auto; }
.brand--light { color: #fff; }

.nav-list, .sub-list { list-style: none; margin: 0; padding: 0; }
.nav-link { color: var(--ink); text-decoration: none; font-weight: 600; }
.sub-toggle {
  display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0;
  border: 0; border-radius: 8px; background: transparent; color: var(--ink); cursor: pointer;
}
.sub-toggle .i { width: 18px; height: 18px; transition: transform .2s; }
.sub-toggle[aria-expanded="true"] .i { transform: rotate(180deg); }
.sub-list a { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); text-decoration: none; line-height: 1.35; }
.sub-list .i { color: var(--red); margin-top: 1px; }
.sub-list a[aria-current="page"] { color: var(--red); }

.lang { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; flex: none; }
.lang a {
  padding: 5px 9px; border-radius: 7px; font-size: .78rem; font-weight: 700; letter-spacing: .05em;
  color: var(--muted); text-decoration: none; line-height: 1.2;
}
.lang a:hover { color: var(--ink); background: var(--sand); }
.lang a[aria-current="true"] { background: var(--ink); color: #fff; }

.menu-toggle {
  display: none; place-items: center; width: 46px; height: 46px; padding: 0; flex: none;
  border: 1px solid var(--line); border-radius: var(--shape-sm); background: #fff; color: var(--ink); cursor: pointer;
}
.menu-toggle .i { width: 24px; height: 24px; }
.menu-toggle .i-close, .nav-open .menu-toggle .i-open { display: none; }
.nav-open .menu-toggle .i-close { display: block; }

/* desktop navigation */
@media (min-width: 1080px) {
  .nav-list { display: flex; align-items: center; gap: 2px; }
  .nav-item { position: relative; display: flex; align-items: center; }
  .nav-link { display: inline-flex; align-items: center; padding: 10px 10px; font-size: .95rem; border-radius: 10px; }
  .has-sub .nav-link { padding-right: 2px; }
  .nav-link:hover, .nav-item:hover > .nav-link, .nav-link[aria-current="page"], .nav-link[data-active] { color: var(--red); }
  .nav-cta { margin-left: 10px; padding: 10px 18px; background: var(--red); color: #fff; border-radius: var(--shape-sm); }
  .nav-cta:hover, .nav-cta[aria-current="page"] { background: var(--red-hover); color: #fff !important; }
  .sub {
    position: absolute; top: calc(100% + 12px); left: 50%; z-index: 10;
    width: min(660px, 92vw); padding: 12px;
    background: #fff; border: 1px solid var(--line); border-radius: 20px 20px 4px 20px; box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
    transition: opacity .18s, transform .18s, visibility .18s;
  }
  .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
  .sub--narrow { width: 360px; }
  .nav-item:hover > .sub, .nav-item:focus-within > .sub, .nav-item.open > .sub {
    opacity: 1; visibility: visible; transform: translate(-50%, 0);
  }
  .sub-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
  .sub--narrow .sub-list { grid-template-columns: 1fr; }
  .sub-list a { padding: 11px 12px; border-radius: 12px; font-size: .92rem; font-weight: 550; }
  .sub-list a:hover { background: var(--sand); color: var(--red); }
}

/* mobile navigation */
@media (max-width: 1079.98px) {
  .js .menu-toggle { display: inline-grid; }
  .js .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 90;
    overflow-y: auto; overscroll-behavior: contain;
    padding: 8px var(--gutter) 48px; background: #fff; border-top: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  html.nav-open { overflow: hidden; }
  .nav-item { display: grid; grid-template-columns: 1fr auto; align-items: center; border-bottom: 1px solid var(--line); }
  .nav-link { display: block; padding: 16px 2px; font-size: 1.15rem; font-weight: 650; }
  .nav-link[aria-current="page"] { color: var(--red); }
  .sub-toggle { width: 46px; height: 46px; }
  .sub { grid-column: 1 / -1; display: none; padding: 0 0 14px; }
  .nav-item.open > .sub { display: block; }
  .sub-list a { padding: 10px 2px; font-size: 1rem; }
  .nav-cta { color: var(--red); }
  /* without JavaScript the menu is simply shown under the header */
  html:not(.js) .header-inner { flex-wrap: wrap; height: auto; padding-block: 14px; }
  html:not(.js) .main-nav { order: 3; width: 100%; }
  html:not(.js) .sub { display: block; }
  html:not(.js) .sub-toggle { display: none; }
}
@media (max-width: 420px) {
  .brand .logo { height: 26px; }
  .header-inner .lang a { padding: 5px 7px; }
}

/* ---------- hero (dark, with grid pattern + red glow) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ink); color: var(--on-dark);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 72% 25%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 85% 75% at 72% 25%, #000 25%, transparent 78%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; width: 760px; height: 760px; right: -260px; top: -320px;
  background: radial-gradient(circle, rgba(160, 28, 34, .55), rgba(160, 28, 34, 0) 62%);
}
.hero h1 { color: #fff; }
.hero-grid { display: grid; gap: 48px; align-items: center; padding-block: clamp(56px, 9vw, 116px); }
/* query container: the hero title is sized to this column (cqi units) */
.hero-copy { min-width: 0; container-type: inline-size; }
.hero-lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.22rem); line-height: 1.6; color: var(--on-dark); max-width: 38em; margin: 22px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
/* Words are never hyphenated. The size follows the width of the text column, so the longest
   word ("Telekomunikacijsko", "Telecommunication") always fits on one line, also in wider
   system fonts (Arial / Helvetica / SF Pro: about 10.25em at this weight and tracking). */
.hero-title {
  font-size: clamp(1.25rem, 9.4vw - .35rem, 3.75rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.04;
  margin: 0; hyphens: manual; -webkit-hyphens: manual; overflow-wrap: break-word;
}
@media (min-width: 960px) { .hero-title { font-size: clamp(2.2rem, 4.6vw, 3.6rem); } }
@supports (font-size: 1cqi) { .hero-title { font-size: clamp(1.25rem, 9.6cqi, 3.75rem); } }
.hero-title::first-letter { text-transform: uppercase; }
.cursor { color: var(--red-bright); margin-left: .03em; animation: blink 1.15s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 64px; }
}

/* home hero photos: one tall portrait + two landscapes. The square corners face each other
   and the red square sits above the right column like the dot of the logo's "i". */
.mosaic {
  display: grid; grid-template-columns: 1.08fr 1fr; gap: 14px;
  width: 100%; max-width: 560px; justify-self: center;
}
.mosaic .m { position: relative; margin: 0; min-width: 0; }
.mosaic img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  background: var(--ink-2); box-shadow: 0 26px 54px -12px rgba(0, 0, 0, .45);
}
.m-a { grid-row: 1 / span 2; }
.m-b { margin-top: 46px; }
.m-b img, .m-c img { aspect-ratio: 4 / 3; }
.m-a img { border-radius: 26px 4px 26px 26px; }
.m-b img { border-radius: 26px 26px 26px 4px; }
.m-c img { border-radius: 4px 26px 26px 26px; }
.m-b::before { content: ""; position: absolute; left: 0; top: -46px; width: 30px; height: 30px; background: var(--red); }
@media (max-width: 959.98px) {
  .mosaic { max-width: 480px; gap: 10px; }
  .m-b { margin-top: 34px; }
  .m-b::before { top: -34px; width: 22px; height: 22px; }
  .m-a img { border-radius: 20px 4px 20px 20px; }
  .m-b img { border-radius: 20px 20px 20px 4px; }
  .m-c img { border-radius: 4px 20px 20px 20px; }
}

/* page hero */
.page-hero .hero-grid { padding-block: clamp(36px, 6vw, 84px); }
.page-hero h1 { font-size: clamp(1.85rem, 1.15rem + 2.8vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; margin: 0; overflow-wrap: break-word; hyphens: manual; -webkit-hyphens: manual; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 26px; padding: 0; font-size: .875rem; color: rgba(255, 255, 255, .58); }
.breadcrumb li + li::before { content: "/"; margin: 0 10px; color: rgba(255, 255, 255, .35); }
.breadcrumb a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
/* subpage photo: a wide banner that overlaps the bottom edge of the dark hero,
   framed per photo (object-position in --pos / --pos-m) so faces stay in view */
.page-hero--banner .hero-grid { grid-template-columns: minmax(0, 1fr); padding-bottom: calc(var(--banner-overlap) + clamp(44px, 5vw, 68px)); }
.page-hero--banner .hero-copy { max-width: 820px; }
.hero-banner { position: relative; z-index: 2; margin-top: calc(var(--banner-overlap) * -1); }
.banner-fig { position: relative; max-width: 1100px; margin: 0 auto; }
.banner-fig img {
  display: block; width: 100%; aspect-ratio: 2.35 / 1; object-fit: cover; object-position: var(--pos, 50% 50%);
  border-radius: 28px 28px 4px 28px; background: var(--ink-2);
  box-shadow: 0 34px 70px -26px rgba(31, 29, 23, .6);
}
.banner-fig::before { content: ""; position: absolute; right: 0; top: -46px; width: 30px; height: 30px; background: var(--red); }
.hero-banner + .page-body { padding-top: clamp(52px, 6vw, 90px); }
@media (max-width: 639.98px) {
  .banner-fig img { aspect-ratio: 2 / 1; object-position: var(--pos-m, var(--pos, 50% 50%)); border-radius: 18px 18px 3px 18px; }
  .banner-fig::before { top: -32px; width: 20px; height: 20px; }
}
.hero-art {
  display: none; position: relative; width: min(100%, 340px); aspect-ratio: 1; justify-self: center;
  grid-template-columns: 1fr 1fr .62fr; grid-template-rows: .62fr 1fr 1fr; gap: 14px;
}
.art-tile { border-radius: 22px 22px 4px 22px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); }
.art-main {
  grid-column: 1 / 3; grid-row: 1 / 4; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--ink-3), var(--ink-2)); box-shadow: 0 30px 60px rgba(0, 0, 0, .3);
}
.art-main .i { width: 44%; height: 44%; color: #fff; stroke-width: 1.2; }
.art-stem { grid-column: 3; grid-row: 2 / 4; border-radius: 4px 4px 4px 22px; }
.art-dot { grid-column: 3; grid-row: 1; background: var(--red); }
@media (min-width: 960px) { .hero-art { display: grid; } }

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 8vw, 112px); }
.section--sand { background: var(--sand); }
.section--dark { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: var(--on-dark); }
.section--dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
  mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.section--dark h2 { color: #fff; }

.icon-tile {
  display: inline-grid; place-items: center; flex: none; width: 52px; height: 52px;
  border-radius: 14px 14px 3px 14px; background: var(--red-tint); color: var(--red);
}
.icon-tile .i { width: 26px; height: 26px; }
.icon-tile--red { background: var(--red); color: #fff; }
.more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 18px; font-weight: 650; color: var(--red); }
.more .i { width: 18px; height: 18px; transition: transform .2s; }

/* highlights (former slider) */
.hl-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.hl-card, .tile {
  position: relative; display: flex; flex-direction: column; padding: 28px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--shape);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.hl-card:hover, .tile:hover, .ind-card.is-link:hover, .sol-card.is-link:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.hl-card:hover .more .i, .tile:hover .more .i, .ind-card:hover .more .i { transform: translateX(4px); }
.hl-top { display: flex; justify-content: space-between; align-items: flex-start; }
.hl-num { font: 600 .8rem var(--mono); letter-spacing: .08em; color: #9a958a; }
.hl-card h2, .tile-title { font-size: 1.2rem; line-height: 1.3; margin: 22px 0 10px; }
.hl-card h2 a, .tile-title a, .ind-body h2 a, .sol-card h2 a { color: inherit; text-decoration: none; }
.hl-card p, .tile p { color: var(--muted); font-size: .98rem; }

/* industries */
.ind-grid { display: grid; gap: 24px; }
@media (min-width: 760px) { .ind-grid { grid-template-columns: 1fr 1fr; } }
.ind-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--shape);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.ind-card img { width: 100%; aspect-ratio: 473 / 209; object-fit: cover; background: var(--sand-2); }
.ind-body { display: flex; flex-direction: column; flex: 1; padding: 26px 28px 30px; }
.ind-body h2 { font-size: 1.35rem; margin-bottom: 12px; }
.ind-body p { color: var(--muted); }

/* solutions on dark */
.sol-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.sol-card {
  position: relative; padding: 30px; border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--shape);
  background: rgba(255, 255, 255, .03); transition: transform .25s, background-color .25s, border-color .25s;
}
.sol-card.is-link:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .22); box-shadow: none; }
.sol-card h2 { font-size: 1.25rem; margin: 22px 0 10px; }

/* directory */
.dir-grid { display: grid; gap: 44px 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: start; }
.dir-col h2 { display: flex; align-items: center; gap: 14px; font-size: 1.35rem; margin-bottom: 18px; }
.dir-col h2 a { color: var(--ink); text-decoration: none; }
.dir-col h2 a:hover { color: var(--red); }
.link-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.link-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 2px;
  border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 550; line-height: 1.4;
}
.link-list a:hover { color: var(--red); }
.link-list .i { width: 18px; height: 18px; color: var(--red); opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .2s; }
.link-list a:hover .i, .link-list a:focus-visible .i { opacity: 1; transform: none; }

/* ---------- page body ---------- */
.page-body { padding-block: clamp(56px, 7vw, 100px); }
.stack > * + * { margin-top: clamp(48px, 6vw, 84px); }
.prose { max-width: 760px; margin-inline: auto; }
.prose h2, .media-copy h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.95rem); }
.prose--intro > p:first-child { font-size: clamp(1.1rem, 1.02rem + .3vw, 1.25rem); color: var(--ink); }
.list { list-style: none; margin: 0 0 1.1em; padding: 0; display: grid; gap: 10px; }
.list:last-child { margin-bottom: 0; }
.list li { position: relative; padding-left: 26px; }
.list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 9px; height: 9px; background: var(--red); }
.checklist li { padding-left: 32px; }
.checklist li::before {
  left: 0; top: .28em; width: 20px; height: 20px; background: var(--red-bright);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.5l4.8 4.8L19.5 7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.5l4.8 4.8L19.5 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.media-row { display: grid; gap: 32px; align-items: center; max-width: 1100px; margin-inline: auto; }
@media (min-width: 900px) { .media-row { grid-template-columns: 1fr 1fr; gap: 64px; } }
.media-fig {
  margin: 0; padding: clamp(12px, 2vw, 22px); background: #fff;
  border: 1px solid var(--line); border-radius: var(--shape); box-shadow: var(--shadow-sm);
}
.media-fig img { width: 100%; border-radius: 10px; }
.media-fig--small { display: grid; place-items: center; }
.media-fig--small img { width: auto; max-width: 100%; max-height: 300px; border-radius: 0; }
.media-fig--photo { padding: 0; border: 0; overflow: hidden; background: var(--sand-2); box-shadow: var(--shadow); }
.media-fig--photo img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 40% 50%; border-radius: 0; }

.callout {
  position: relative; max-width: 920px; margin-inline: auto;
  padding: clamp(28px, 4vw, 44px) clamp(26px, 5vw, 64px);
  background: var(--sand); border-radius: var(--shape);
  font-family: var(--font-display); font-size: clamp(1.15rem, 1rem + .75vw, 1.55rem); font-weight: 650;
  line-height: 1.42; letter-spacing: -.012em; color: var(--ink);
}
.callout::before { content: ""; position: absolute; left: 0; top: clamp(30px, 4vw, 48px); width: 6px; height: 1.6em; background: var(--red); }
.callout p { margin: 0; }

.card-grid { display: grid; gap: 20px; max-width: 1100px; margin-inline: auto; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
@media (min-width: 1000px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.card { padding: clamp(26px, 3vw, 36px); background: #fff; border: 1px solid var(--line); border-radius: var(--shape); }
.card h2 { font-size: 1.3rem; margin-bottom: 14px; }
.card p { color: var(--muted); }
.card--dark { background: var(--ink); border-color: var(--ink); color: rgba(255, 255, 255, .86); }
.card--dark h2 { color: #fff; }

.tile-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }

/* pricing */
.pricing { max-width: 1100px; margin-inline: auto; }
.plans { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); align-items: start; }
.plan {
  position: relative; display: flex; flex-direction: column; padding: 34px 28px 30px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--shape);
}
.plan--featured { border: 2px solid var(--red); box-shadow: var(--shadow); }
.plan-head { min-height: 54px; }
.plan-name { font-size: 1.55rem; margin: 0; }
.plan-tag { margin: 8px 0 0; font: 600 .75rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.plan--featured .plan-tag { position: absolute; top: -13px; left: 26px; margin: 0; padding: 4px 12px; background: var(--red); color: #fff; border-radius: 999px; }
.plan-features { list-style: none; display: grid; gap: 11px; margin: 24px 0 28px; padding: 22px 0 0; border-top: 1px solid var(--line); font-size: .96rem; line-height: 1.4; }
.plan-features li { display: flex; align-items: flex-start; gap: 10px; }
.plan-features .i { width: 19px; height: 19px; margin-top: 1px; }
.plan-features .is-yes .i { color: var(--red); stroke-width: 2.2; }
.plan-features .is-no { color: #9d998f; }
.plan-features .is-no span:first-of-type { text-decoration: line-through; text-decoration-color: rgba(46, 43, 34, .25); }
.plan-features .is-no .i { color: #bbb7ad; }
.plan-features .is-value { justify-content: space-between; padding-bottom: 11px; border-bottom: 1px dashed var(--line); }
.plan-features .is-value strong { color: var(--ink); }
.plan .btn { margin-top: auto; }

/* ---------- AI integrations (badge, home/overview band, page panel) ---------- */
.ai-badge {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  padding: 6px 12px 6px 9px; border-radius: 999px; background: var(--red); color: #fff;
  font: 700 .78rem/1 var(--mono); letter-spacing: .12em;
}
.ai-badge .i { width: 17px; height: 17px; stroke-width: 1.9; }
.section--ai { padding-bottom: 0; }
.ai-band, .ai-panel {
  position: relative; overflow: hidden; max-width: 1100px; margin-inline: auto;
  padding: clamp(28px, 4vw, 56px);
  border: 1.5px solid transparent; border-radius: var(--shape);
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, var(--red) 0%, rgba(160, 28, 34, .18) 45%, var(--ink) 100%) border-box;
  box-shadow: 0 34px 70px -42px rgba(160, 28, 34, .55);
}
.ai-band::after, .ai-panel::after {
  content: ""; position: absolute; right: -36px; top: -36px; width: 230px; height: 230px;
  background: var(--red); opacity: .06; pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 3.5q1 7.5 8 8.5-7 1-8 8.5-1-7.5-8-8.5 7-1 8-8.5z'/%3E%3Cpath d='M19 2q.4 2.6 3 3-2.6.4-3 3-.4-2.6-3-3 2.6-.4 3-3z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 3.5q1 7.5 8 8.5-7 1-8 8.5-1-7.5-8-8.5 7-1 8-8.5z'/%3E%3Cpath d='M19 2q.4 2.6 3 3-2.6.4-3 3-.4-2.6-3-3 2.6-.4 3-3z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ai-copy { position: relative; z-index: 1; max-width: 760px; }
.ai-copy h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.95rem); margin: 18px 0 12px; }
.ai-copy p { color: var(--muted); }
.ai-grid { position: relative; z-index: 1; display: grid; gap: 18px; margin-top: 34px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.ai-item {
  position: relative; display: flex; flex-direction: column; padding: 24px;
  background: var(--sand); border: 1px solid var(--sand); border-radius: 18px 18px 3px 18px;
  transition: transform .25s, border-color .25s, background-color .25s;
}
.ai-item:hover { transform: translateY(-3px); border-color: var(--red); background: #fff; }
.ai-item:hover .more .i { transform: translateX(4px); }
.ai-item .icon-tile { background: #fff; }
.ai-item h3 { font-size: 1.15rem; margin: 16px 0 8px; }
.ai-item h3 a { color: var(--ink); text-decoration: none; }
.ai-item p { color: var(--muted); font-size: .96rem; line-height: 1.6; }
.ai-item .more { padding-top: 14px; }
.ai-panel { display: grid; gap: 26px 56px; }
@media (min-width: 900px) { .ai-panel { grid-template-columns: 1.15fr 1fr; align-items: center; } }
.ai-panel .list { position: relative; z-index: 1; margin: 0; }
.sparklist li { padding-left: 32px; }
.sparklist li::before {
  left: 0; top: .2em; width: 20px; height: 20px; background: var(--red);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 3.5q1 7.5 8 8.5-7 1-8 8.5-1-7.5-8-8.5 7-1 8-8.5z'/%3E%3Cpath d='M19 2q.4 2.6 3 3-2.6.4-3 3-.4-2.6-3-3 2.6-.4 3-3z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 3.5q1 7.5 8 8.5-7 1-8 8.5-1-7.5-8-8.5 7-1 8-8.5z'/%3E%3Cpath d='M19 2q.4 2.6 3 3-2.6.4-3 3-.4-2.6-3-3 2.6-.4 3-3z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* related pages */
.related { padding-block: clamp(48px, 6vw, 84px); background: var(--sand); }
.related-title { font-size: clamp(1.35rem, 1.2rem + .6vw, 1.7rem); margin-bottom: 22px; }
.related-title a { color: var(--ink); text-decoration: none; }
.related-title a:hover { color: var(--red); }
.related-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.related-list a {
  display: flex; align-items: center; gap: 14px; height: 100%; padding: 16px 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px 14px 3px 14px;
  color: var(--ink); text-decoration: none; font-weight: 600; line-height: 1.35; transition: border-color .2s, color .2s;
}
.related-list a:hover { border-color: var(--red); color: var(--red); }
.related-list .i { color: var(--red); }
.related-list .arrow { margin-left: auto; width: 18px; height: 18px; opacity: .5; }
.related-list a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.related-list a[aria-current="page"] .i { color: #fff; }

/* contact band */
.cta-band { position: relative; isolation: isolate; overflow: hidden; background: var(--red); color: #fff; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .09) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(90deg, transparent 10%, #000 90%);
  mask-image: linear-gradient(90deg, transparent 10%, #000 90%);
}
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 40px; padding-block: clamp(44px, 6vw, 76px); }
.cta-band h2 { margin: 0; font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); color: #fff; }
.cta-band h2 a { color: #fff; text-decoration: none; }
.cta-band .eyebrow { margin-bottom: 10px; }
.cta-band .eyebrow::before { background: #fff; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-link {
  display: flex; align-items: center; gap: 14px; padding: 14px 24px 14px 18px;
  background: rgba(0, 0, 0, .16); border: 1px solid rgba(255, 255, 255, .25); border-radius: 14px 14px 3px 14px;
  color: #fff; text-decoration: none; font-weight: 700; font-size: 1.12rem; line-height: 1.25;
  transition: background-color .2s, color .2s;
}
.cta-link small { display: block; font: 600 .7rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.cta-link .i { width: 26px; height: 26px; }
.cta-link:hover { background: #fff; color: var(--red); }

/* contact page */
.contact-grid { display: grid; gap: 24px; max-width: 1100px; margin-inline: auto; align-items: start; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1.1fr .9fr; } }
.contact-card { padding: clamp(28px, 4vw, 46px); background: #fff; border: 1px solid var(--line); border-radius: var(--shape); box-shadow: var(--shadow-sm); }
.contact-card--muted { background: var(--sand); border-color: var(--sand); box-shadow: none; }
.contact-card h2 { font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); }
.contact-list, .company-data { display: grid; gap: 22px; margin: 0; }
.contact-list dt, .company-data dt { display: flex; align-items: center; gap: 10px; font: 600 .75rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-list dt .i { color: var(--red); width: 20px; height: 20px; }
.contact-list dd, .company-data dd { margin: 6px 0 0; font-size: 1.1rem; font-weight: 600; color: var(--ink); line-height: 1.5; overflow-wrap: anywhere; }
.contact-list dd { padding-left: 30px; }
.contact-list a { color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--red); text-decoration: underline; }
.company-data { gap: 18px; margin-bottom: 26px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink-deep); color: rgba(255, 255, 255, .64); font-size: .95rem; }
.footer-grid { display: grid; gap: 44px; padding-block: clamp(56px, 7vw, 88px); }
@media (min-width: 960px) { .footer-grid { grid-template-columns: minmax(240px, 1fr) 2.4fr; gap: 64px; } }
.footer-brand .logo { height: 34px; width: auto; margin-bottom: 24px; }
.footer-brand address { line-height: 1.75; }
.footer-contact { display: grid; gap: 8px; margin-top: 18px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 10px; }
.footer-contact .i { width: 18px; height: 18px; color: var(--red-bright); }
.site-footer a { color: rgba(255, 255, 255, .86); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-nav { display: grid; gap: 34px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer-nav h2 { margin-bottom: 16px; font: 600 .78rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.footer-nav h2 a { color: #fff; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; line-height: 1.4; }
.footer-bottom { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px 26px; font-size: .875rem; }
.footer-bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid rgba(255, 255, 255, .1); }
.lang--dark { border-color: rgba(255, 255, 255, .16); }
.lang--dark a { color: rgba(255, 255, 255, .7); }
.lang--dark a:hover { background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; }
.lang--dark a[aria-current="true"] { background: #fff; color: var(--ink); }

/* ---------- 404: big code with the logo's underscore cursor, a terminal window and quick links ---------- */
.nf {
  min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h));
  display: flex; flex-direction: column; justify-content: center; padding-block: clamp(48px, 7vw, 96px);
}
.nf-grid { display: grid; gap: 40px 64px; align-items: center; }
@media (min-width: 960px) { .nf-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }
.nf-code {
  margin: 0 0 clamp(14px, 2vw, 26px); color: #fff;
  font: 800 clamp(5rem, 3.2rem + 8vw, 10rem)/1.05 var(--font-display); letter-spacing: -.05em;
}
.nf h1 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem); margin: 0; }
.nf-term {
  overflow: hidden; background: #1A1813; border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px 18px 4px 18px; box-shadow: 0 34px 70px -24px rgba(0, 0, 0, .65);
}
.nf-term-bar { display: flex; gap: 8px; padding: 14px 18px; background: rgba(255, 255, 255, .03); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.nf-term-bar span { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.nf-term-bar span:first-child { background: var(--red-bright); }
.nf-term-body {
  margin: 0; padding: 22px 24px 28px; color: rgba(255, 255, 255, .86);
  font: 500 clamp(.85rem, .8rem + .25vw, 1rem)/1.9 var(--mono);
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.nf-prompt { color: #9a958a; }
.nf-path { color: #fff; }
.nf-err { color: var(--red-bright); }
.nf-more { margin-top: clamp(44px, 6vw, 76px); }
.nf-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.nf-links a {
  display: flex; align-items: center; gap: 12px; height: 100%; padding: 16px 18px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px 14px 3px 14px;
  color: #fff; font-weight: 600; line-height: 1.35; text-decoration: none;
  transition: background-color .2s, border-color .2s;
}
.nf-links a:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .3); color: #fff; }
.nf-links .i { color: var(--red-bright); }
.nf-links .arrow { margin-left: auto; width: 18px; height: 18px; color: rgba(255, 255, 255, .55); transition: transform .2s; }
.nf-links a:hover .arrow { transform: translateX(3px); }

/* ---------- reveal on scroll (only when JS is running) ---------- */
/* uses the separate `translate` property so hover effects that use `transform` still work */
.js .reveal {
  opacity: 0; translate: 0 18px;
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), translate .7s cubic-bezier(.2, .7, .2, 1),
              transform .25s, box-shadow .25s, border-color .25s, background-color .25s;
}
.js .reveal.in { opacity: 1; translate: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; translate: none; }
}

@media print {
  .site-header, .cta-band, .related, .mosaic, .hero-art, .site-footer .footer-nav, .lang { display: none !important; }
  .hero, .section--dark, .card--dark { background: none !important; color: #000 !important; }
  .hero h1, .section--dark h2, .card--dark h2 { color: #000 !important; }
  .js .reveal { opacity: 1 !important; translate: none !important; }
}
