/* ==========================================================================
   Kodiqjo — main stylesheet
   1. Fonts  2. Tokens  3. Base  4. Layout  5. Components  6. Sections
   7. Motion  8. Responsive
   ========================================================================== */

/* 1. Fonts — self-hosted Arabic + Latin subsets
   -------------------------------------------------------------------------- */
/* arabic */
@font-face {
  font-family: 'Alexandria';
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url(../fonts/alexandria-arabic-500-900.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin */
@font-face {
  font-family: 'Alexandria';
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url(../fonts/alexandria-latin-500-900.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* arabic */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/ibm-arabic-400.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/ibm-latin-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* arabic */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/ibm-arabic-600.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/ibm-latin-600.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/jetbrains-latin-500.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* 2. Tokens
   -------------------------------------------------------------------------- */
:root {
  color-scheme: dark;

  --c-bg: #09080c;
  --c-bg-raised: #0e0d13;
  --c-surface: #131119;
  --c-field: #0b0a0f;
  --c-ink: #f3f0f7;
  --c-ink-soft: #b9b2c6;
  --c-muted: #8f88a0;
  --c-line: rgb(243 240 247 / 0.08);
  --c-line-strong: rgb(243 240 247 / 0.16);
  --c-accent: #ff4fb8;
  --c-violet: #7b5cff;
  --c-success: #3ddc97;
  --c-danger: #ff6b81;

  --gradient-brand: linear-gradient(100deg, #e0249a 0%, #a62be0 50%, #5b3bf5 100%);
  --gradient-text: linear-gradient(100deg, #ff5dbf 0%, #c14bff 55%, #7a63ff 100%);

  --font-display: "Alexandria", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --step-3: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  --step-4: clamp(2.125rem, 1.5rem + 3vw, 3.5rem);
  --step-5: clamp(2.75rem, 1.6rem + 5.4vw, 5.75rem);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 22px;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 72px;
  --section-space: clamp(5rem, 11vw, 8.75rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Writing direction helpers; flipped for LTR below. */
  --dir: -1;
  --start: right;
}

[dir="ltr"] {
  --dir: 1;
  --start: left;
}

/* 3. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--c-bg);
  color: var(--c-ink);
  font: 400 var(--step-0) / 1.75 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* Film grain keeps the large dark areas from looking flat. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { padding: 0; border: 0; min-width: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
  text-wrap: balance;
}

:lang(en) :is(h1, h2, h3) { letter-spacing: -0.025em; line-height: 1.08; }

p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

::selection { background: rgb(255 79 184 / 0.35); color: #fff; }

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: fixed;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--c-ink);
  color: var(--c-bg);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease-out);
}
.skip:focus { transform: none; }

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The arrow glyph points left (RTL forward); mirror it for LTR. */
[dir="ltr"] .icon--arrow { scale: -1 1; }

/* 4. Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(1200px + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-space); }

.section--alt {
  background: var(--c-bg-raised);
  border-block: 1px solid var(--c-line);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.split__aside {
  position: sticky;
  top: calc(var(--header-h) + 40px);
}

/* 5. Components
   -------------------------------------------------------------------------- */

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: 600 0.9375rem / 1 var(--font-display);
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-position 0.5s var(--ease-out),
    background-color 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.button .icon { width: 18px; height: 18px; stroke-width: 2; transition: translate 0.35s var(--ease-out); }
.button:hover .icon--arrow { translate: calc(var(--dir) * 4px) 0; }
.button:active { transform: translateY(1px); }
.button[disabled] { opacity: 0.6; cursor: progress; }

.button--primary {
  background: var(--gradient-brand);
  background-size: 160% 100%;
  background-position: 0% 0;
  color: #fff;
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.18) inset, 0 10px 30px -14px rgb(192 38 211 / 0.8);
}
.button--primary:hover { background-position: 100% 0; }

.button--ghost {
  border-color: var(--c-line-strong);
  color: var(--c-ink);
}
.button--ghost:hover { border-color: rgb(243 240 247 / 0.4); background-color: rgb(243 240 247 / 0.04); }

.button--small { min-height: 42px; padding: 0 18px; font-size: 0.875rem; border-radius: 10px; }
.button--block { width: 100%; }

/* Brand lockup */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark {
  width: 34px;
  height: 34px;
  padding: 5px 6px;
  border: 1px solid var(--c-line-strong);
  border-radius: 9px;
  background: #000;
}
.brand__name { font: 800 1.25rem / 1 var(--font-display); }
:lang(en) .brand__name { letter-spacing: -0.02em; }

/* Section heading */
.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-block-end: 20px;
  color: var(--c-ink-soft);
  font-size: var(--step--1);
  font-weight: 600;
}
.kicker__n {
  font: 500 0.75rem / 1 var(--font-mono);
  color: var(--c-accent);
}
.kicker::after {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--c-line-strong);
}

.section-head h2 { font-size: var(--step-4); }
.section-head__sub {
  max-width: 36ch;
  margin-block-start: 18px;
  color: var(--c-ink-soft);
  font-size: var(--step-1);
}
.section-head--wide { margin-block-end: clamp(3rem, 6vw, 5rem); }
.section-head--wide .section-head__sub { max-width: 52ch; }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  padding: 5px 10px;
  border: 1px solid var(--c-line-strong);
  border-radius: 999px;
  color: var(--c-ink-soft);
  font: 500 0.6875rem / 1.2 var(--font-mono);
  letter-spacing: 0.02em;
  direction: ltr;
}

/* 6. Sections
   -------------------------------------------------------------------------- */

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-block-end: 1px solid transparent;
  transition:
    transform 0.45s var(--ease-out),
    background-color 0.3s,
    border-color 0.3s;
}
.site-header.is-scrolled {
  background: rgb(9 8 12 / 0.82);
  border-color: var(--c-line);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}
.site-header.is-hidden { transform: translateY(-100%); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.primary-nav { margin-inline: auto; }
.primary-nav ul { display: flex; gap: 4px; }
.primary-nav a {
  position: relative;
  display: block;
  padding: 8px 14px;
  color: var(--c-ink-soft);
  font-size: 0.9375rem;
  transition: color 0.2s;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  inset-inline: 14px;
  bottom: 2px;
  height: 1px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: var(--start);
  transition: transform 0.4s var(--ease-out);
}
.primary-nav a:hover,
.primary-nav a[aria-current="true"] { color: var(--c-ink); }
.primary-nav a[aria-current="true"]::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 10px; }

.lang-toggle {
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--c-line-strong);
  border-radius: 10px;
  background: transparent;
  font: 600 0.8125rem / 1 var(--font-display);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.lang-toggle:hover { border-color: rgb(243 240 247 / 0.4); background-color: rgb(243 240 247 / 0.04); }

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--c-line-strong);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}
.menu-toggle__bars,
.menu-toggle__bars::before {
  display: block;
  width: 18px;
  height: 1.5px;
  margin-inline: auto;
  background: currentColor;
  transition: transform 0.35s var(--ease-out);
}
.menu-toggle__bars { position: relative; transform: translateY(-3px); }
.menu-toggle__bars::before { content: ""; position: absolute; top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { transform: translateY(0) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(-6px) rotate(-90deg); }

/* Hero */
.hero {
  position: relative;
  padding-block: calc(var(--header-h) + clamp(3.5rem, 9vw, 7.5rem)) clamp(4rem, 8vw, 6.5rem);
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 55% at 85% 0%, rgb(123 92 255 / 0.16), transparent 70%),
    radial-gradient(40% 40% at 15% 10%, rgb(255 79 184 / 0.08), transparent 70%);
}
[dir="ltr"] .hero::before { scale: -1 1; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: clamp(3rem, 6vw, 5.5rem);
  align-items: center;
}

.hero__title { font-size: var(--step-5); font-weight: 800; line-height: 1.18; }
.hero__title .line { display: block; overflow: hidden; padding-block: 0.04em 0.1em; }
.hero__title .line > span { display: inline-block; }
.hero__title em,
.contact__title em {
  font-style: normal;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lede {
  max-width: 34em;
  margin-block-start: 28px;
  color: var(--c-ink-soft);
  font-size: var(--step-1);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 36px; }

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-block-start: 44px;
  padding-block-start: 22px;
  border-block-start: 1px solid var(--c-line);
  color: var(--c-muted);
  font-size: var(--step--1);
}
.hero__facts li { display: flex; align-items: center; gap: 10px; }
.hero__facts li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-accent);
}

/* Hero: project tracker illustration */
.tracker figcaption {
  margin-block-start: 14px;
  color: var(--c-muted);
  font-size: 0.8125rem;
  text-align: center;
}

.tracker__card {
  padding: 24px;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.035), transparent 40%), var(--c-surface);
  box-shadow: 0 40px 80px -40px rgb(0 0 0 / 0.9), 0 0 0 1px rgb(0 0 0 / 0.4);
}

.tracker__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block-end: 18px;
  border-block-end: 1px solid var(--c-line);
}
.tracker__id { color: var(--c-muted); font: 500 0.75rem / 1 var(--font-mono); }
.tracker__live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--c-ink-soft);
  font-size: 0.75rem;
}
.tracker__live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-success);
  box-shadow: 0 0 0 0 rgb(61 220 151 / 0.5);
  animation: pulse 2.4s var(--ease-out) infinite;
}

.tracker__title { margin-block: 22px 18px; font: 700 var(--step-2) / 1.3 var(--font-display); }

.tracker__steps { display: grid; gap: 4px; }
.tracker__steps li {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 4px 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  color: var(--c-ink-soft);
  font-size: 0.9375rem;
}
.tracker__steps small { color: var(--c-muted); font-size: 0.75rem; }
.tracker__steps .is-active { background: rgb(243 240 247 / 0.04); color: var(--c-ink); }
.tracker__steps .is-active small { color: var(--c-accent); font-family: var(--font-mono); }

.tracker__dot {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--c-line-strong);
  border-radius: 50%;
}
.tracker__dot .icon { width: 13px; height: 13px; stroke-width: 2.6; }
.is-done .tracker__dot { border-color: transparent; background: var(--gradient-brand); color: #fff; }
.is-active .tracker__dot { border: 2px solid var(--c-accent); }

.tracker__bar {
  grid-column: 2 / -1;
  height: 3px;
  margin-block-start: 6px;
  border-radius: 3px;
  background: var(--c-line);
  overflow: hidden;
}
.tracker__bar span {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: var(--gradient-brand);
}

.tracker__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-block-start: 18px;
  padding-block-start: 18px;
  border-block-start: 1px solid var(--c-line);
  color: var(--c-muted);
  font-size: 0.8125rem;
}
.tracker__logo { width: 18px; height: 24px; }

/* Ticker */
.ticker {
  overflow: hidden;
  border-block: 1px solid var(--c-line);
  padding-block: 20px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track { display: flex; width: max-content; }
.ticker__group { display: flex; flex: none; }
.ticker__group li {
  display: flex;
  align-items: center;
  color: var(--c-ink-soft);
  font: 600 var(--step-1) / 1 var(--font-display);
  white-space: nowrap;
}
.ticker__group li::after {
  content: "/";
  margin-inline: 32px;
  color: var(--c-accent);
  font-weight: 400;
  opacity: 0.7;
}

/* Services */
.service {
  position: relative;
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr) minmax(0, 13rem);
  gap: 8px 24px;
  align-items: start;
  padding-block: 32px;
  border-block-start: 1px solid var(--c-line);
}
.service:last-child { border-block-end: 1px solid var(--c-line); }
.service::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: -1px;
  height: 1px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transform-origin: var(--start);
  transition: transform 0.7s var(--ease-out);
}
.service:hover::before { transform: scaleX(1); }

.service__n {
  padding-block-start: 8px;
  color: var(--c-muted);
  font: 500 0.8125rem / 1 var(--font-mono);
  transition: color 0.3s;
}
.service:hover .service__n { color: var(--c-accent); }
.service h3 { font-size: var(--step-2); font-weight: 700; }
.service__body p { max-width: 44ch; margin-block-start: 10px; color: var(--c-ink-soft); }
.service .tags { justify-content: flex-end; padding-block-start: 6px; }

/* Process timeline */
.timeline {
  --rail-y: 7px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}
.timeline::before,
.timeline::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: var(--rail-y);
  height: 1px;
  background: var(--c-line-strong);
}
.timeline::after {
  background: var(--gradient-brand);
  transform-origin: var(--start);
}

.timeline__step { position: relative; padding-block-start: 44px; }
.timeline__step::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  z-index: 1;
  width: 15px;
  height: 15px;
  border: 2px solid var(--c-accent);
  border-radius: 50%;
  background: var(--c-bg-raised);
}
.timeline__when {
  display: block;
  margin-block-end: 12px;
  color: var(--c-accent);
  font-size: 0.8125rem;
  font-weight: 600;
}
.timeline__step h3 { font-size: var(--step-2); font-weight: 700; }
.timeline__step p { margin-block-start: 10px; color: var(--c-ink-soft); font-size: 0.9375rem; }

/* About */
.about {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
}
.about__statement { font-size: var(--step-3); font-weight: 700; line-height: 1.35; max-width: 22ch; }
:lang(en) .about__statement { line-height: 1.15; }
.about__copy { display: grid; gap: 16px; color: var(--c-ink-soft); }

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-block-start: clamp(3.5rem, 7vw, 5.5rem);
  border-block-start: 1px solid var(--c-line);
}
.facts__item {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 8px;
  padding: 32px 32px 0;
  border-inline-start: 1px solid var(--c-line);
}
.facts__item:first-child { padding-inline-start: 0; border-inline-start: 0; }
.facts dd { font: 800 var(--step-3) / 1.1 var(--font-display); }
.facts dt { color: var(--c-muted); font-size: 0.9375rem; }

/* FAQ accordion */
.accordion { border-block-start: 1px solid var(--c-line); }
.accordion__item { border-block-end: 1px solid var(--c-line); }
.accordion__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 24px;
  font: 600 var(--step-1) / 1.5 var(--font-display);
  list-style: none;
  cursor: pointer;
  transition: color 0.2s;
}
.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__item summary:hover { color: #fff; }
.accordion__item summary .icon {
  width: 18px;
  height: 18px;
  color: var(--c-muted);
  transition: rotate 0.4s var(--ease-out), color 0.2s;
}
.accordion__item[open] summary .icon { rotate: 45deg; color: var(--c-accent); }
.accordion__panel { overflow: hidden; }
.accordion__panel p { max-width: 60ch; padding-block-end: 26px; color: var(--c-ink-soft); }

/* Contact */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}
.contact__title { font-size: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.contact__sub { max-width: 34ch; margin-block-start: 22px; color: var(--c-ink-soft); font-size: var(--step-1); }

.channels { margin-block-start: 44px; border-block-start: 1px solid var(--c-line); }
.channel {
  display: grid;
  grid-template-columns: 20px auto 1fr;
  align-items: center;
  gap: 14px;
  padding-block: 18px;
  border-block-end: 1px solid var(--c-line);
  color: var(--c-ink-soft);
}
.channel .icon { color: var(--c-muted); transition: color 0.2s; }
.channel__label { color: var(--c-muted); font-size: var(--step--1); }
.channel__value { justify-self: end; color: var(--c-ink); font-weight: 600; }
a.channel:hover .icon { color: var(--c-accent); }

.form-panel {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
}

.lead-form { display: grid; gap: 22px; }
.lead-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.lead-form__note { color: var(--c-muted); font-size: 0.8125rem; text-align: center; }

.field label,
.field legend {
  display: block;
  margin-block-end: 8px;
  padding: 0;
  color: var(--c-ink-soft);
  font-size: var(--step--1);
  font-weight: 600;
}
.field input,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius);
  background: var(--c-field);
  line-height: 1.5;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #6c6679; }
.field input:hover,
.field textarea:hover { border-color: rgb(243 240 247 / 0.28); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 4px rgb(255 79 184 / 0.14);
}
.field input[dir="ltr"] { text-align: start; }
[dir="rtl"] .field input[dir="ltr"] { text-align: right; }

.field__error { min-height: 0; margin-block-start: 6px; color: var(--c-danger); font-size: 0.8125rem; }
.field__error:empty { display: none; }
.field.has-error input { border-color: var(--c-danger); }
.field.has-error input:focus { box-shadow: 0 0 0 4px rgb(255 107 129 / 0.16); }

.choices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: block;
  padding: 12px 8px;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius);
  color: var(--c-ink-soft);
  font-size: 0.9375rem;
  text-align: center;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.choice:hover span { border-color: rgb(243 240 247 / 0.3); }
.choice input:checked + span {
  border-color: var(--c-accent);
  background: rgb(255 79 184 / 0.08);
  color: var(--c-ink);
}
.choice input:focus-visible + span { outline: 2px solid var(--c-accent); outline-offset: 2px; }

.form-success { display: grid; justify-items: center; gap: 14px; padding-block: 48px; text-align: center; }
.form-success:focus { outline: none; }
.form-success h3 { font-size: var(--step-3); }
.form-success p { max-width: 36ch; color: var(--c-ink-soft); }
.form-success__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
}
.form-success__icon .icon { width: 26px; height: 26px; stroke-width: 2.4; }

.honeypot { position: absolute; inset-inline-start: -9999px; }

/* Footer */
.site-footer { border-block-start: 1px solid var(--c-line); }
.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: clamp(3rem, 7vw, 4.5rem);
  border-block-end: 1px solid var(--c-line);
}
.site-footer__pitch { font: 800 var(--step-4) / 1.2 var(--font-display); }
:lang(en) .site-footer__pitch { letter-spacing: -0.025em; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding-block: 28px calc(28px + env(safe-area-inset-bottom));
}
.site-footer__links { display: flex; flex-wrap: wrap; gap: 6px 24px; color: var(--c-ink-soft); font-size: var(--step--1); }
.site-footer__links a:hover { color: var(--c-ink); }
.site-footer__copy { color: var(--c-muted); font-size: 0.8125rem; }

/* Floating WhatsApp */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 12px 28px -10px rgb(37 211 102 / 0.6);
  transition: transform 0.35s var(--ease-out);
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { transform: scale(1.06); }

/* Toasts */
.toasts {
  position: fixed;
  left: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 60;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 104px));
}
.toast {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid var(--c-line-strong);
  border-inline-start: 3px solid var(--c-success);
  border-radius: var(--radius);
  background: var(--c-surface);
  box-shadow: 0 20px 40px -20px rgb(0 0 0 / 0.9);
  font-size: 0.875rem;
  animation: toast-in 0.45s var(--ease-out);
}
.toast--error { border-inline-start-color: var(--c-danger); }
.toast span { color: var(--c-ink-soft); }
.toast.is-leaving { opacity: 0; translate: 0 8px; transition: opacity 0.3s, translate 0.3s; }

/* 7. Motion
   -------------------------------------------------------------------------- */
@keyframes pulse {
  70% { box-shadow: 0 0 0 7px rgb(61 220 151 / 0); }
  100% { box-shadow: 0 0 0 0 rgb(61 220 151 / 0); }
}
@keyframes rise { from { transform: translateY(105%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } }
@keyframes grow { from { width: 0; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes ticker { to { transform: translateX(calc(var(--dir) * -50%)); } }
@keyframes rail-x { from { transform: scaleX(0); } }
@keyframes rail-y { from { transform: scaleY(0); } }
@keyframes toast-in { from { opacity: 0; translate: 0 12px; } }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .hero__title .line > span { animation: rise 1.1s var(--ease-out) both; }
  .hero__title .line:nth-child(2) > span { animation-delay: 0.08s; }
  .hero__lede { animation: fade-up 0.9s 0.25s var(--ease-out) both; }
  .hero__actions { animation: fade-up 0.9s 0.35s var(--ease-out) both; }
  .hero__facts { animation: fade-up 0.9s 0.45s var(--ease-out) both; }
  .tracker { animation: fade-up 1.1s 0.3s var(--ease-out) both; }
  .tracker__bar span { animation: grow 1.6s 0.9s var(--ease-in-out) both; }
  .tracker .logo-cursor { animation: blink 1.1s steps(1) infinite; }

  .ticker__track { animation: ticker 48s linear infinite; }
  .ticker:hover .ticker__track { animation-play-state: paused; }

  .js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition:
      opacity 0.9s var(--ease-out) var(--reveal-delay, 0s),
      transform 0.9s var(--ease-out) var(--reveal-delay, 0s);
  }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }

  /* The process rail draws itself as the section scrolls through view. */
  @supports (animation-timeline: view()) {
    .timeline::after {
      animation: rail-x linear both;
      animation-timeline: view();
      animation-range: entry 30% cover 50%;
    }
  }
}

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

/* 8. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .tracker { max-width: 460px; }
  .service { grid-template-columns: 3.25rem minmax(0, 1fr); }
  .service .tags { grid-column: 2; justify-content: flex-start; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }

  .menu-toggle { display: grid; place-items: center; }

  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    margin: 0;
    padding: 12px var(--gutter) 28px;
    border-block-end: 1px solid var(--c-line);
    background: var(--c-bg);
    box-shadow: 0 24px 48px -12px rgb(0 0 0 / 0.7);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s, transform 0.4s var(--ease-out), visibility 0s 0.3s;
  }
  .primary-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.3s, transform 0.4s var(--ease-out);
  }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav a {
    padding: 16px 0;
    border-block-end: 1px solid var(--c-line);
    color: var(--c-ink);
    font: 600 1.25rem / 1.3 var(--font-display);
  }
  .primary-nav a::after { display: none; }
  .header__actions { margin-inline-start: auto; }

  .split,
  .about,
  .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .split__aside { position: static; }

  .timeline { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .timeline::before,
  .timeline::after {
    inset-inline: 7px auto;
    top: 0;
    bottom: 0;
    width: 1px;
    height: auto;
  }
  .timeline::after { transform-origin: top; }
  .timeline__step { padding-block-start: 0; padding-inline-start: 44px; }
  @supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
      .timeline::after { animation-name: rail-y; animation-range: entry 10% cover 70%; }
    }
  }

  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts__item { padding: 24px 0; border-inline-start: 0; border-block-end: 1px solid var(--c-line); }
}

@media (max-width: 560px) {
  .header__cta { display: none; }
  .hero__actions .button { flex: 1 1 100%; }
  .lead-form__row { grid-template-columns: minmax(0, 1fr); }
  .choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service { grid-template-columns: minmax(0, 1fr); padding-block: 26px; }
  .service__n { padding: 0; }
  .service .tags { grid-column: 1; }
  .channel { grid-template-columns: 20px 1fr; }
  .channel__label { display: none; }
  .channel__value { justify-self: start; }
  .site-footer__top .button { width: 100%; }
}
