/* ============================================================
   Data Sorted — static port of data-sorted.com (Wix 1:1)
   Mobile-first, no frameworks.
   Palette extracted from Wix theme:
   white #FFFFFF · gray #CCCCCC · gray-mid #A0A09F · gray-dim #605E5E
   dark #2F2E2E · accent #DFE6BB (pale khaki) · bg #000000
   ============================================================ */

:root {
  --white: #ffffff;
  --gray: #cccccc;
  --gray-mid: #a0a09f;
  --gray-dim: #605e5e;
  --dark: #2f2e2e;
  --accent: #dfe6bb;
  --accent-bright: #f3ffb7;
  --black: #000000;
  --font-body: 'Josefin Sans', 'Segoe UI', sans-serif;
  --font-display: 'Montserrat', 'Josefin Sans', sans-serif;
  --font-title: 'Jost', 'Josefin Sans', sans-serif;
  --topbar-h: 34px;
  --header-h: 60px;
  --container: 980px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--gray);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style-position: inside; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* a11y */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: var(--black); padding: 8px 16px;
}
.skip-link:focus { left: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
[id] { scroll-margin-top: calc(var(--topbar-h) + var(--header-h) + 12px); }

/* ---------- top banner ---------- */
.topbar {
  background: var(--dark) url('../img/bg-topbanner.jpg') center / cover no-repeat;
  min-height: var(--topbar-h);
  display: flex; align-items: center; justify-content: center;
  padding: 6px 12px; text-align: center;
}
.topbar a {
  color: var(--white);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}
.topbar a:hover { color: var(--accent); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(0, 0, 0, 0.92);
  border-bottom: 1px solid #1c1c1c;
}
.header-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 8px 16px; min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 26px; height: auto; }
.brand-name {
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.18em;
  line-height: 1.15;
}

.main-nav ul { display: flex; gap: 4px; list-style: none; }
.main-nav a {
  display: block; padding: 8px 10px;
  color: var(--accent);
  font-size: 13px; letter-spacing: 0.12em;
  transition: color 0.2s;
}
.main-nav a:hover, .main-nav a:focus-visible { color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  padding: 10px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--white);
  transition: transform 0.25s, opacity 0.25s;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(0, 0, 0, 0.97);
    border-bottom: 1px solid #1c1c1c;
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 8px 0; }
  .main-nav a { padding: 12px 20px; font-size: 14px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- sections ---------- */
.section { padding: 56px 16px; }
.container { max-width: var(--container); margin: 0 auto; }
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--accent);
  text-align: center;
  font-size: clamp(34px, 7vw, 64px);
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: 28px;
}
.section-sub {
  text-align: center;
  font-size: clamp(18px, 3vw, 24px);
  color: var(--white);
  font-weight: 700;
  margin-bottom: 24px;
}
.accent-head { color: var(--accent); }
.accent-head::before {
  content: '';
  display: block;
  width: 100px; height: 2px;
  background: var(--accent);
  margin: 0 auto 20px;
}
.divider {
  border: 0; border-top: 1px solid var(--gray-dim);
  max-width: var(--container); margin: 0 auto;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--black);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  padding: 14px 26px;
  border: 1px solid var(--accent);
  transition: background 0.2s, color 0.2s;
}
.btn:hover, .btn:focus-visible { background: transparent; color: var(--accent); }
.btn-ghost {
  background: transparent; color: var(--white); border-color: var(--white);
}
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--white); color: var(--black); }

/* ---------- hero ---------- */
.hero {
  display: grid; gap: 32px;
  align-items: center;
  max-width: 1180px; margin: 0 auto;
  padding: 48px 16px 56px;
}
.hero-text h1 {
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(28px, 5vw, 48px);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.hero-text h1 .shout {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 800;
}
.hero-rotator {
  margin-top: 22px;
  font-size: clamp(22px, 4vw, 34px);
  color: var(--white);
  font-weight: 600;
}
.hero-word {
  color: var(--accent-bright);
  font-style: italic;
  display: inline-block;
  min-width: 9ch;
  transition: opacity 0.4s;
}
.hero-word.fading { opacity: 0; }
.hero-sub {
  margin-top: 14px;
  color: var(--gray);
  font-size: clamp(15px, 2.4vw, 18px);
  max-width: 46ch;
}
.hero-cta { margin-top: 26px; }

.hero-media { position: relative; }
.hero-media video {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  background: #111;
}
.mute-btn {
  position: absolute; right: 10px; bottom: 10px;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: var(--white);
  font-size: 15px;
}
.mute-btn:hover { background: rgba(0, 0, 0, 0.8); }

@media (min-width: 900px) {
  .hero { grid-template-columns: 1.05fr 1fr; gap: 48px; padding: 72px 24px 80px; }
}

/* ---------- about ---------- */
.about-cols {
  display: grid; gap: 32px;
  max-width: var(--container); margin: 0 auto;
}
.about-cols p { margin-bottom: 12px; font-size: 15px; }
.framework { margin-top: 40px; }
.framework-intro { text-align: center; max-width: 70ch; margin: 0 auto 28px; font-size: 15px; }
.aim-grid { display: grid; gap: 24px; }
.aim-card {
  background: rgba(47, 46, 46, 0.5);
  border: 1px solid #3a3a3a;
  padding: 24px;
}
.aim-card h3 {
  color: var(--white); font-size: 20px; font-weight: 700;
  margin-bottom: 10px; letter-spacing: 0.06em;
}
.aim-card p { font-size: 14px; }
@media (min-width: 760px) {
  .about-cols { grid-template-columns: 1fr 1fr; }
  .aim-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- solutions ---------- */
.solutions-intro { text-align: center; max-width: 78ch; margin: 0 auto 32px; font-size: 15px; }
.solutions-grid { display: grid; gap: 28px; max-width: var(--container); margin: 0 auto; }
.solution-col h3 {
  color: var(--white); font-size: 22px; font-weight: 700;
  text-align: center; margin-bottom: 16px;
}
.solution-col ul { list-style: none; }
.solution-col li {
  padding: 12px 16px;
  border-bottom: 1px solid #333;
  color: var(--gray);
  font-size: 15px;
  text-align: center;
}
@media (min-width: 700px) {
  .solutions-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
}

/* ---------- carousels (generic) ---------- */
.carousel { position: relative; }
.carousel-viewport { overflow: hidden; }
.carousel-track {
  display: flex;
  transition: transform 0.45s ease;
}
.carousel-slide { flex: 0 0 100%; min-width: 100%; }
.carousel-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 18px; margin-top: 18px;
}
.carousel-btn {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--gray-dim);
  color: var(--white);
  font-size: 18px; line-height: 1;
  transition: border-color 0.2s, color 0.2s;
}
.carousel-btn:hover { border-color: var(--accent); color: var(--accent); }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gray-dim);
  transition: background 0.2s, transform 0.2s;
}
.carousel-dot[aria-current="true"] { background: var(--accent); transform: scale(1.25); }

/* technologies carousel */
.tech-slide { padding: 12px 8px 20px; }
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 14px;
  max-width: 640px; margin: 0 auto;
}
.tech-grid figure { text-align: center; }
.tech-grid img {
  width: 64px; height: 64px;
  object-fit: contain; margin: 0 auto 8px;
}
.tech-grid figcaption { font-size: 13px; color: var(--gray); }
@media (min-width: 640px) {
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
  .tech-grid img { width: 84px; height: 84px; }
}

/* case studies */
.case-study { margin-top: 44px; }
.case-title {
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 500;
  color: var(--gray-mid);
  text-align: center;
  font-size: clamp(22px, 4vw, 38px);
  margin-bottom: 22px;
}
.case-slide {
  position: relative;
  min-height: 380px;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.case-slide::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}
.case-bg {
  position: absolute; inset: -24px;
  background-size: cover; background-position: center;
  filter: blur(10px);
  opacity: 0.7;
  z-index: 0;
}
.case-slide-inner {
  position: relative;
  z-index: 2;
  padding: 36px 24px;
  max-width: 760px;
}
.case-slide-inner h3 {
  color: #fafafa;
  font-size: 28px; font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
}
.case-slide-inner .rule {
  width: 60px; height: 2px; background: var(--accent);
  margin: 10px auto 20px;
}
.case-slide-inner ul { list-style: disc; list-style-position: inside; }
.case-slide-inner li {
  color: var(--gray);
  font-size: 15px;
  margin-bottom: 12px;
  text-align: center;
}
.case-note { font-style: italic; font-size: 13px; color: var(--gray-mid); }

/* partners carousel */
.partner-slide {
  min-height: 160px;
  background: #c9c9c9;
  display: flex; flex-wrap: wrap; gap: 28px;
  align-items: center; justify-content: center;
  padding: 28px 16px;
}
.partner-slide img { max-height: 84px; width: auto; }

/* testimonial */
.testimonial {
  position: relative;
  max-width: 820px; margin: 0 auto; text-align: center;
  background: #1c1c1c;
  padding: 48px 28px 40px;
}
.testimonial::before, .testimonial::after {
  font-family: var(--font-title);
  color: var(--accent);
  font-size: 72px;
  line-height: 1;
  position: absolute;
  top: 24px;
}
.testimonial::before { content: '\201C'; left: 22px; }
.testimonial::after { content: '\201D'; right: 22px; }
.testimonial blockquote {
  font-size: clamp(14px, 2.4vw, 17px);
  color: var(--gray);
  font-style: italic;
  line-height: 1.8;
}
.testimonial cite {
  display: block; margin-top: 22px;
  color: var(--white); font-style: normal; font-weight: 700;
  font-size: 14px;
}

/* ---------- contact / footer ---------- */
.contact { text-align: center; }
.footer-cta {
  display: inline-block;
  margin-bottom: 44px;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--white);
  font-size: clamp(24px, 5vw, 40px);
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-transform: uppercase;
}
.footer-cta span { color: var(--accent); }
.footer-cta:hover { opacity: 0.85; }
.contact h2 {
  font-family: var(--font-display); font-weight: 800;
  color: var(--white);
  font-size: clamp(26px, 5vw, 40px);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.contact-lines { font-size: 16px; line-height: 1.9; }
.contact-lines .label {
  color: var(--gray-mid); font-size: 13px; letter-spacing: 0.12em;
  text-transform: uppercase; display: block; margin-top: 14px;
}
.contact-lines a:hover { color: var(--accent); }

.site-footer {
  border-top: 1px solid #1c1c1c;
  padding: 20px 16px;
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  align-items: center; justify-content: center;
  font-size: 13px; color: var(--gray-dim);
}
.site-footer a:hover { color: var(--accent); }

/* ---------- team page ---------- */
.team-hero {
  background: url('../img/bg-team.jpg') center / cover no-repeat;
  position: relative;
  padding: 90px 16px;
}
.team-hero::before { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); }
.team-hero h1 {
  position: relative;
  font-family: var(--font-display); font-weight: 800;
  color: var(--accent);
  text-align: center;
  font-size: clamp(34px, 7vw, 64px);
}
.team-grid {
  display: grid; gap: 40px;
  max-width: 760px; margin: 0 auto;
  padding: 56px 16px;
}
.team-member { text-align: center; }
.team-member .photo {
  width: 183px; height: 177px;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 1px solid #3a3a3a;
}
.team-member h2 {
  color: var(--white);
  font-size: 15px; font-weight: 700;
  letter-spacing: 0.08em;
}
.team-member .role {
  display: block; margin-top: 4px;
  font-style: italic; font-size: 12px; color: var(--gray);
}
.team-member .bio { margin-top: 10px; font-size: 14px; color: var(--gray); }
@media (min-width: 680px) {
  .team-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- privacy page ---------- */
.prose {
  max-width: 780px; margin: 0 auto;
  padding: 56px 16px;
}
.prose h1 {
  color: var(--white); font-size: clamp(28px, 5vw, 40px);
  font-weight: 700; margin-bottom: 24px;
}
.prose h2 {
  color: var(--white); font-size: 24px; font-weight: 700;
  margin: 36px 0 14px;
}
.prose h3 {
  color: var(--white); font-size: 18px; font-weight: 700;
  margin: 24px 0 10px;
}
.prose p, .prose li { font-size: 15px; margin-bottom: 12px; }
.prose ul { padding-left: 22px; margin-bottom: 12px; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 120px 16px; }
.notfound h1 {
  font-family: var(--font-display); font-weight: 800;
  color: var(--accent); font-size: 64px;
}
.notfound p { margin: 16px 0 28px; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel-track { transition: none; }
  .hero-word { transition: none; }
}
