/* ============================================
   First Step — Linea-inspired, alive
   ============================================ */
:root {
  --bg: #FAFAFA;
  --white: #FFFFFF;
  --black: #1a1a1a;
  --dark: #121212;
  --dark-card: #1e1e1e;
  --grey-100: #F5F5F5;
  --grey-200: #EBEBEB;
  --grey-300: #D4D4D4;
  --grey-500: #9E9E9E;
  --grey-700: #616161;
  --accent: #E34400;
  --accent-light: rgba(227,68,0,0.08);
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --max-w: 1140px;
  --radius: 16px;
  --radius-sm: 10px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='12' cy='12' r='4' fill='none' stroke='%23E34400' stroke-width='1.5'/%3E%3Cline x1='12' y1='0' x2='12' y2='7' stroke='%23E34400' stroke-width='1'/%3E%3Cline x1='12' y1='17' x2='12' y2='24' stroke='%23E34400' stroke-width='1'/%3E%3Cline x1='0' y1='12' x2='7' y2='12' stroke='%23E34400' stroke-width='1'/%3E%3Cline x1='17' y1='12' x2='24' y2='12' stroke='%23E34400' stroke-width='1'/%3E%3C/svg%3E") 12 12, auto;
}
a, button {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='12' cy='12' r='8' fill='%23E34400' opacity='0.15'/%3E%3Ccircle cx='12' cy='12' r='4' fill='%23E34400'/%3E%3C/svg%3E") 12 12, pointer;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
em { font-family: var(--font-display); font-style: italic; font-weight: 400; }
::selection { background: var(--accent); color: white; }

/* Cursor glow */
.cursor-glow {
  position: fixed;
  width: 350px; height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227,68,0,0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s;
}
body:hover .cursor-glow { opacity: 1; }

/* Logo */
.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--black);
  letter-spacing: -0.5px;
}
.logo--sm { font-size: 1.2rem; }

/* ============================
   NAV
   ============================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0.8rem 2rem;
  background: transparent;
  transition: all 0.4s;
}
.nav.scrolled {
  background: rgba(250,250,250,0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--grey-200);
}
.nav.scrolled .logo { color: var(--black); }
.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
/* Nav starts transparent on dark hero */
.logo { color: white; transition: color 0.4s; }
.nav__pill {
  display: flex;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  padding: 0.25rem 0.35rem;
  transition: all 0.4s;
}
.nav.scrolled .nav__pill {
  background: var(--white);
  border-color: var(--grey-200);
  backdrop-filter: none;
}
.nav__pill a {
  font-size: 0.875rem; color: rgba(255,255,255,0.7);
  padding: 0.4rem 1.25rem; border-radius: 100px; transition: all 0.25s;
}
.nav__pill a:hover { color: white; background: rgba(255,255,255,0.1); }
.nav.scrolled .nav__pill a { color: var(--grey-700); }
.nav.scrolled .nav__pill a:hover { color: var(--black); background: var(--grey-100); }
.nav__cta {
  font-size: 0.875rem; font-weight: 500; color: white;
  background: var(--accent); padding: 0.55rem 1.5rem; border-radius: 100px;
  transition: all 0.25s;
}
.nav__cta:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(227,68,0,0.3); }
.nav__burger {
  display: none; background: none; border: none; width: 28px; height: 28px;
  position: relative; cursor: pointer;
}
.nav__burger span {
  display: block; width: 20px; height: 1.5px; background: white;
  position: absolute; left: 4px; transition: all 0.3s;
}
.nav.scrolled .nav__burger span { background: var(--black); }
.nav__burger span:first-child { top: 10px; }
.nav__burger span:last-child { top: 17px; }
.nav__burger.active span:first-child { top: 13px; transform: rotate(45deg); }
.nav__burger.active span:last-child { top: 13px; transform: rotate(-45deg); }

/* ============================
   HERO (dark)
   ============================ */
.hero {
  position: relative;
  padding: 10rem 2rem 6rem;
  text-align: center;
  background: var(--dark);
  color: white;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
#hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}
.hero__mesh {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse at 25% 30%, rgba(227,68,0,0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 70%, rgba(227,68,0,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 90%, rgba(227,68,0,0.1) 0%, transparent 40%);
  animation: meshShift 8s ease-in-out infinite alternate;
}
@keyframes meshShift {
  0% { opacity: 0.7; transform: scale(1) rotate(0deg); }
  100% { opacity: 1; transform: scale(1.08) rotate(1deg); }
}
.hero__inner { max-width: 780px; margin: 0 auto; position: relative; z-index: 2; }
.hero__label {
  font-size: 0.75rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.2em; color: rgba(255,255,255,0.5); margin-bottom: 2rem;
  opacity: 0; animation: fadeUp 0.8s 0.2s forwards;
}
.hero__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.8rem, 7vw, 5rem); line-height: 1.08;
  letter-spacing: -1px; margin-bottom: 1.5rem;
  opacity: 0; animation: fadeUp 0.8s 0.4s forwards;
}
.hero__title em { color: var(--accent); }
.hero__sub {
  font-size: 1.0625rem; color: rgba(255,255,255,0.55);
  max-width: 480px; margin: 0 auto 2.5rem; line-height: 1.7;
}
.hero__actions { display: flex; gap: 0.75rem; justify-content: center; }


@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}

/* ============================
   TEXT TICKER (static)
   ============================ */
.ticker {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--grey-200);
  background: var(--white);
  margin-top: 4rem;
}
.ticker__track {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}
.ticker__item {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-style: italic;
  color: var(--black);
  padding: 0 1rem;
  white-space: nowrap;
}
.ticker__sep {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: var(--black);
  padding: 0 0.25rem;
  opacity: 0.25;
}

/* ============================
   IMAGE MARQUEE
   ============================ */
.marquee {
  overflow: hidden; padding: 1.5rem 0 3rem;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}
.marquee__track {
  display: flex; gap: 1rem; width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee__track:hover { animation-play-state: paused; }
.marquee__img {
  width: 300px; height: 200px; object-fit: cover;
  border-radius: var(--radius); flex-shrink: 0;
  transition: transform 0.4s, box-shadow 0.4s;
}
.marquee__img:hover {
  transform: scale(1.04) translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================
   BUTTONS
   ============================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-size: 0.9375rem; font-weight: 500;
  padding: 0.75rem 1.75rem; border-radius: 100px; border: 1.5px solid var(--accent);
  background: var(--accent); color: white; cursor: pointer; transition: all 0.3s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(227,68,0,0.3); }
.btn:active { transform: translateY(0); }
.btn--white {
  background: white; color: var(--dark); border-color: white;
}
.btn--white:hover { box-shadow: 0 8px 24px rgba(255,255,255,0.2); }
.btn--ghost-white {
  background: transparent; color: white; border-color: rgba(255,255,255,0.3);
}
.btn--ghost-white:hover { border-color: white; background: rgba(255,255,255,0.08); box-shadow: none; }
.btn--outline {
  background: transparent; color: var(--accent);
}
.btn--outline:hover { background: var(--accent-light); box-shadow: none; }
.btn--large { font-size: 1rem; padding: 0.85rem 2.25rem; }

/* ============================
   SECTIONS
   ============================ */
.section { padding: clamp(4rem, 10vw, 7rem) 2rem; }
.section--dark { background: var(--dark); color: white; }
.section--dots { position: relative; overflow: hidden; }
.section--orange { background: var(--accent); color: white; }
.section__inner { max-width: var(--max-w); margin: 0 auto; position: relative; z-index: 1; }
.section__center { text-align: center; max-width: 720px; margin: 0 auto 3.5rem; }

.dot-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, var(--grey-300) 0.7px, transparent 0.7px);
  background-size: 22px 22px; pointer-events: none; z-index: 0; opacity: 0.6;
}

.label {
  font-size: 0.75rem; font-weight: 500; color: var(--grey-500);
  text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 1rem;
}
.label--light { color: rgba(255,255,255,0.4); }
.label--orange { color: rgba(255,255,255,0.6); }

.display {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.75rem, 4vw, 2.75rem); line-height: 1.2; letter-spacing: -0.3px;
}
.display em { color: var(--grey-500); }
.display--light { color: white; }
.display--light em { color: rgba(255,255,255,0.4); }
.display--white { color: white; }
.display--white em { color: rgba(255,255,255,0.6); }
.display--large { font-size: clamp(2rem, 5vw, 3.5rem); }

/* ============================
   SERVICE CARDS
   ============================ */
.service-stack { display: flex; flex-direction: column; gap: 1.5rem; }
.service-card {
  display: grid; grid-template-columns: 1fr 1.2fr; grid-template-rows: 1fr;
  background: var(--white); border: 1px solid var(--grey-200);
  border-radius: var(--radius); overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
}
.service-card:hover {
  border-color: var(--grey-300); transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}
.service-card--reverse { direction: rtl; }
.service-card--reverse > * { direction: ltr; }
.service-card__visual { overflow: hidden; min-height: 280px; align-self: stretch; }
.service-card__visual img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.service-card:hover .service-card__visual img { transform: scale(1.06); }
.service-card__content {
  padding: 2.5rem; display: flex; flex-direction: column; justify-content: center;
}
.service-card__content h3 {
  font-family: var(--font-display); font-size: 1.75rem; font-weight: 400; margin-bottom: 1rem;
}
.service-card__content p {
  font-size: 0.9375rem; color: var(--grey-700); line-height: 1.7; margin-bottom: 1.5rem;
}
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.8125rem; color: var(--black);
  background: var(--grey-100); padding: 0.35rem 0.85rem 0.35rem 0.5rem;
  border-radius: 100px; border: 1px solid var(--grey-200); transition: all 0.2s;
}
.tag:hover { background: var(--accent-light); border-color: var(--accent); }
.tag__check { width: 16px; height: 16px; flex-shrink: 0; }

/* Automation flow diagram */
/* Automation flow diagram */
.service-card__visual--flow {
  background:
    radial-gradient(circle at 20% 30%, rgba(227,68,0,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(227,68,0,0.06) 0%, transparent 50%),
    linear-gradient(135deg, #faf5f2 0%, #f5ede8 50%, #fef9f6 100%);
  background-size: 100% 100%, 100% 100%, 100% 100%;
  animation: flowBgShift 8s ease-in-out infinite alternate;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  min-height: 380px;
  overflow: hidden;
  position: relative;
}
.service-card__visual--flow::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(227,68,0,0.07) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  opacity: 0.5;
}
@keyframes flowBgShift {
  0% { background-position: 0% 0%, 100% 100%, 0% 0%; }
  100% { background-position: 100% 100%, 0% 0%, 0% 0%; }
}
.flow-diagram {
  display: flex;
  align-items: center;
  width: 100%;
  font-size: 0.72rem;
}
.flow-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}
.flow-node {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.7rem;
  background: var(--white);
  border: 1.5px solid var(--grey-200);
  border-radius: 8px;
  font-size: inherit;
  font-weight: 500;
  color: var(--grey-700);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.flow-node--process {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(227,68,0,0.2);
  padding: 0.7rem 0.9rem;
  font-size: 0.8rem;
}
.flow-node--output {
  border-color: #c3e6cb;
  background: #f0faf3;
  color: #276738;
}
.flow-icon { flex-shrink: 0; width: 16px; height: 16px; }
.flow-node--process .flow-icon { stroke: white; width: 18px; height: 18px; }
.flow-node--output .flow-icon { stroke: #276738; }

.flow-arrow-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0 0.3rem;
  flex-shrink: 0;
}
.flow-arrow {
  width: 24px;
  height: 2px;
  background: var(--grey-300);
  position: relative;
  overflow: hidden;
}
.flow-dot {
  position: absolute;
  top: -2px;
  left: -6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: flowPulse 1.8s ease-in-out infinite;
}
.flow-dot--1 { animation-delay: 0s; }
.flow-dot--2 { animation-delay: 0.35s; }
.flow-dot--3 { animation-delay: 0.7s; }

@keyframes flowPulse {
  0% { left: -6px; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { left: 24px; opacity: 0; }
}

/* ============================
   ORANGE BANNER
   ============================ */
.banner {
  background: var(--accent); padding: clamp(4rem, 10vw, 7rem) 2rem;
  position: relative; overflow: hidden;
}
.banner__waves {
  position: absolute; bottom: 0; left: 0; right: 0; height: 100%;
  pointer-events: none;
}
.banner__wave1 { animation: waveShift1 8s ease-in-out infinite alternate; }
.banner__wave2 { animation: waveShift2 10s ease-in-out infinite alternate-reverse; }
@keyframes waveShift1 {
  0% { transform: translateX(0); }
  100% { transform: translateX(-40px); }
}
@keyframes waveShift2 {
  0% { transform: translateX(0); }
  100% { transform: translateX(40px); }
}
.banner__inner {
  max-width: var(--max-w); margin: 0 auto; position: relative; z-index: 1;
}
.banner__headline { text-align: center; margin-bottom: 3rem; }
.banner__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.75rem, 4vw, 2.75rem); color: white; line-height: 1.2;
}
.banner__title em { color: rgba(255,255,255,0.7); }
.banner__stats {
  display: flex; align-items: center; justify-content: center; gap: 3rem;
}
.banner__stat { text-align: center; }
.banner__big {
  display: block; font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem); color: white; line-height: 1;
}
.banner__label {
  font-size: 0.875rem; color: rgba(255,255,255,0.65); margin-top: 0.35rem;
}

/* ============================
   CLIENTS (dark bg)
   ============================ */
.clients-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem;
}
.client-card {
  background: var(--dark-card); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius); padding: 1.75rem; position: relative;
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1); cursor: default; overflow: hidden;
}
.client-card:hover {
  border-color: var(--accent); transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(227,68,0,0.12);
}
.client-card__name {
  display: block; font-family: var(--font-display); font-size: 1.125rem;
  color: white; margin-bottom: 0.35rem;
}
.client-card__type { font-size: 0.8125rem; color: rgba(255,255,255,0.4); }
.client-card__arrow {
  position: absolute; top: 1.5rem; right: 1.5rem; font-size: 1.25rem;
  color: var(--accent); opacity: 0; transform: translateX(-8px);
  transition: all 0.3s;
}
.client-card:hover .client-card__arrow { opacity: 1; transform: translateX(0); }

/* ============================
   ABOUT
   ============================ */
.about {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start;
}
.about__right p {
  font-size: 1rem; color: var(--grey-700); line-height: 1.8; margin-bottom: 1rem;
}

/* ============================
   CTA
   ============================ */
.cta-sub {
  font-size: 1.0625rem; color: rgba(255,255,255,0.6);
  margin-top: 1rem; margin-bottom: 2.5rem;
}

/* ============================
   FOOTER
   ============================ */
.footer { border-top: 1px solid var(--grey-200); padding: 2rem; }
.footer__inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.footer .logo { color: var(--black); }
.footer__left { display: flex; align-items: center; gap: 1.5rem; }
.footer__copy { font-size: 0.8125rem; color: var(--grey-500); }
.footer__links { display: flex; gap: 2rem; }
.footer__links a { font-size: 0.8125rem; color: var(--grey-500); transition: color 0.2s; }
.footer__links a:hover { color: var(--black); }

/* ============================
   REVEAL
   ============================ */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: none; }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 900px) {
  .service-card, .service-card--reverse { grid-template-columns: 1fr; direction: ltr; }
  .service-card__visual { min-height: 220px; }
  .about { grid-template-columns: 1fr; gap: 2.5rem; }
  .banner__stats { flex-direction: column; gap: 2rem; }
}
@media (max-width: 640px) {
  .nav__pill, .nav__cta { display: none; }
  .nav__burger { display: block; z-index: 201; }
  .nav__pill {
    position: fixed; top: 0; right: -100%;
    width: 80%; max-width: 300px; height: 100vh;
    flex-direction: column; border-radius: 0; border: none;
    border-left: 1px solid var(--grey-200); background: var(--white);
    padding: 5rem 2rem; gap: 0.5rem; transition: right 0.3s; z-index: 200;
  }
  .nav__pill.open { display: flex; right: 0; }
  .nav__pill a { font-size: 1.125rem; padding: 0.75rem 0; border-radius: 0; color: var(--black); }
  .hero { padding: 8rem 1.5rem 6rem; min-height: auto; }
  .hero__actions { flex-direction: column; align-items: center; }
  .clients-grid { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; gap: 1.5rem; text-align: center; }
  .footer__left { flex-direction: column; gap: 1rem; }
  .footer__links { flex-wrap: wrap; justify-content: center; gap: 1.25rem; }
  .marquee__img { width: 220px; height: 150px; }
  .cursor-glow { display: none; }
}
