/* ============================================================
   AXIS — takeaxis.com
   Dark + gold, committed. One signature system: the axis line.
   ============================================================ */

:root {
  --bg: oklch(0.13 0.012 290);
  --surface: oklch(0.17 0.014 290);
  --surface-2: oklch(0.2 0.016 290);
  --line: oklch(0.28 0.02 290);
  --ink: oklch(0.97 0.005 290);
  --body: oklch(0.85 0.01 290);
  --muted: oklch(0.66 0.015 290);
  --gold: oklch(0.75 0.12 90);
  --gold-bright: oklch(0.84 0.13 92);
  --gold-dim: oklch(0.75 0.12 90 / 0.35);

  --font-display: "Clash Display", "Almarai", sans-serif;
  --font-body: "Satoshi", "Almarai", sans-serif;

  --max: 1180px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --sect: clamp(6rem, 12vh, 10rem);

  /* z scale */
  --z-nav: 50;
  --z-toast: 80;
}

html[dir="rtl"] {
  --font-display: "Almarai", "Clash Display", sans-serif;
  --font-body: "Almarai", "Satoshi", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: oklch(0.15 0.02 290); }

h1, h2, h3 { color: var(--ink); font-family: var(--font-display); text-wrap: balance; line-height: 1.12; }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 600; letter-spacing: -0.02em; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { letter-spacing: 0; line-height: 1.3; }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.01em;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}
.btn--gold { background: var(--gold); color: oklch(0.17 0.03 90); }
.btn--gold:hover { background: var(--gold-bright); }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn--big { padding: 1.05rem 2.5rem; font-size: 1.1rem; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset-block-start: 0; inset-inline: 0;
  z-index: var(--z-nav);
  display: flex; align-items: center; gap: 2rem;
  padding: 0.9rem var(--pad);
  background: oklch(0.13 0.012 290 / 0.82);
  backdrop-filter: blur(14px);
  border-block-end: 1px solid oklch(0.28 0.02 290 / 0.5);
}
.nav__brand { display: flex; align-items: center; gap: 0.6rem; }
.nav__mark { width: 1.55rem; height: 1.55rem; fill: var(--gold); }
.nav__word { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--ink); letter-spacing: 0.01em; }
.nav__links { display: flex; gap: 1.9rem; margin-inline-start: auto; }
.nav__links a { color: var(--body); font-size: 0.98rem; transition: color 0.25s ease; }
.nav__links a:hover { color: var(--gold-bright); }
.nav__end { display: flex; align-items: center; gap: 1rem; }
.nav__cta {
  font-family: var(--font-display); font-weight: 500; font-size: 0.95rem;
  color: var(--gold); border: 1px solid var(--gold-dim);
  padding: 0.5rem 1.2rem; border-radius: 999px;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.nav__cta:hover { background: var(--gold); color: oklch(0.17 0.03 90); }

.lang {
  display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
}
.lang__opt {
  padding: 0.35rem 0.8rem; font-size: 0.85rem; font-weight: 700; color: var(--muted);
  transition: background-color 0.25s ease, color 0.25s ease;
}
.lang__opt[data-lang="ar"] { font-family: "Almarai", sans-serif; font-size: 1rem; line-height: 1; padding-block: 0.25rem; }
.lang__opt.is-active { background: var(--gold); color: oklch(0.17 0.03 90); }

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__end { margin-inline-start: auto; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 7rem var(--pad) 3rem;
  max-width: var(--max); margin-inline: auto;
}
.hero__a {
  position: absolute;
  inset-block-start: 50%; inset-inline-end: -4%;
  translate: 0 -52%;
  width: min(52vw, 560px); height: auto;
  pointer-events: none;
}
html[dir="rtl"] .hero__a { inset-inline-end: auto; inset-inline-start: -4%; }
.hero__a-path, .hero__a-bar {
  stroke: var(--gold); stroke-width: 2; fill: none;
  opacity: 0.34;
}
.hero__inner { position: relative; max-width: 42rem; }
.hero__signal {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--muted); font-size: 0.95rem; margin-block-end: 1.6rem;
}
.hero__dot {
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 var(--gold-dim);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--gold-dim); }
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.hero__title {
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  font-weight: 600; letter-spacing: -0.025em;
}
html[dir="rtl"] .hero__title { letter-spacing: 0; }
.hero__line { display: block; overflow: hidden; }
.hero__line > span { display: block; }
.hero__gold { color: var(--gold); }
.hero__sub {
  margin-block-start: 1.8rem;
  max-width: 36rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-block-start: 2.6rem; }

.hero__stats {
  display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 5vw, 4.5rem);
  margin-block-start: clamp(3rem, 8vh, 5.5rem);
  padding-block-start: 2.2rem;
  border-block-start: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; gap: 0.15rem; }
.stat__n { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 3.5vw, 2.6rem); color: var(--gold); }
.stat__l { color: var(--muted); font-size: 0.95rem; }

@media (max-width: 860px) {
  .hero__a { opacity: 0.5; inset-inline-end: -30%; width: 80vw; }
  html[dir="rtl"] .hero__a { inset-inline-end: auto; inset-inline-start: -30%; }
}

/* ============================================================
   SECTIONS (shared)
   ============================================================ */
.section { padding: var(--sect) var(--pad); max-width: var(--max); margin-inline: auto; }
.section__head { max-width: 44rem; margin-block-end: clamp(2.5rem, 6vh, 4.5rem); }
.section__lede { margin-block-start: 1.1rem; font-size: 1.1rem; }

/* ============================================================
   SERVICES — the ledger
   ============================================================ */
.ledger { border-block-start: 1px solid var(--line); }
.ledger__row { border-block-end: 1px solid var(--line); }
.ledger__head {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center; gap: 1.5rem;
  width: 100%;
  padding: 1.5rem 0.25rem;
  text-align: start;
  position: relative;
}
.ledger__head::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent, oklch(0.75 0.12 90 / 0.06));
  opacity: 0; transition: opacity 0.4s ease;
  pointer-events: none;
}
.ledger__head:hover::before { opacity: 1; }
.ledger__name {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.25rem, 2.6vw, 1.8rem); color: var(--ink);
  transition: color 0.3s ease, translate 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.ledger__head:hover .ledger__name { color: var(--gold-bright); translate: 0.4rem 0; }
html[dir="rtl"] .ledger__head:hover .ledger__name { translate: -0.4rem 0; }
.ledger__tag { color: var(--muted); font-size: 0.85rem; letter-spacing: 0.04em; }
.ledger__x {
  position: relative; width: 1rem; height: 1rem; flex: none;
}
.ledger__x::before, .ledger__x::after {
  content: ""; position: absolute; background: var(--gold); border-radius: 1px;
  transition: rotate 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.ledger__x::before { inset-block-start: calc(50% - 1px); inset-inline: 0; height: 2px; }
.ledger__x::after { inset-inline-start: calc(50% - 1px); inset-block: 0; width: 2px; }
.ledger__row.is-open .ledger__x::after { rotate: 90deg; }
.ledger__body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.ledger__body > p {
  overflow: hidden;
  max-width: 46rem;
  padding-inline-start: 0.25rem;
}
.ledger__row.is-open .ledger__body { grid-template-rows: 1fr; }
.ledger__row.is-open .ledger__body > p { padding-block-end: 1.6rem; }

@media (max-width: 640px) {
  .ledger__tag { display: none; }
  .ledger__head { grid-template-columns: 1fr auto; }
}

/* ============================================================
   WORK — cases pivot around the axis line
   ============================================================ */
.axis-track { position: relative; }
.axis-line {
  position: absolute; inset-block: 0; inset-inline-start: 50%;
  width: 1px; translate: -50% 0;
  background: var(--line);
}
.axis-line__fill {
  display: block; width: 100%; height: 100%;
  background: linear-gradient(to bottom, var(--gold), var(--gold-bright));
  transform-origin: top;
  scale: 1 0;
}
.case {
  position: relative;
  width: calc(50% - clamp(2rem, 5vw, 4rem));
  padding-block: clamp(2.2rem, 5vh, 3.6rem);
}
.case:nth-child(even) { margin-inline-start: auto; }
.case::before {
  content: "";
  position: absolute;
  inset-block-start: calc(clamp(2.2rem, 5vh, 3.6rem) + 0.55rem);
  inset-inline-end: calc(-1 * clamp(2rem, 5vw, 4rem));
  translate: 50% 0;
  width: 0.7rem; height: 0.7rem; border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--gold);
}
.case:nth-child(even)::before {
  inset-inline-end: auto;
  inset-inline-start: calc(-1 * clamp(2rem, 5vw, 4rem));
  translate: -50% 0;
}
.case__tag { color: var(--gold); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
html[dir="rtl"] .case__tag { letter-spacing: 0.02em; }
.case__name { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 600; margin-block: 0.5rem 0.9rem; }
.case__desc { max-width: 34rem; }
.case__proof { margin-block-start: 1.1rem; font-size: 1rem; }
.case__proof-k { color: var(--muted); }
.case__proof-v { color: var(--gold-bright); font-weight: 700; margin-inline-start: 0.4rem; }
.case__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-block-start: 1.4rem; }
.case__chips span {
  padding: 0.35rem 0.9rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 0.85rem; color: var(--body);
}

@media (max-width: 860px) {
  .axis-line { inset-inline-start: 0.35rem; translate: 0 0; }
  .case, .case:nth-child(even) { width: auto; margin-inline-start: 0; padding-inline-start: 2.2rem; }
  .case::before, .case:nth-child(even)::before {
    inset-inline-start: 0.35rem; inset-inline-end: auto; translate: -50% 0;
  }
}

/* ---------- more strip ---------- */
.more { margin-block-start: clamp(4rem, 8vh, 6rem); }
.more__title { font-size: 1.35rem; font-weight: 600; margin-block-end: 1.8rem; color: var(--ink); }
.more__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.more__grid li {
  background: var(--bg);
  padding: 1.4rem 1.5rem;
  display: flex; flex-direction: column; gap: 0.3rem;
  transition: background-color 0.35s ease;
}
.more__grid li:hover { background: var(--surface); }
.more__grid b { color: var(--ink); font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; }
.more__grid span { color: var(--muted); font-size: 0.92rem; line-height: 1.55; }

/* ============================================================
   ABOUT + WHY
   ============================================================ */
.about__grid {
  display: grid; grid-template-columns: 1.25fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.about__copy h2 { margin-block-end: 1.4rem; }
.about__copy p + p { margin-block-start: 1.1rem; }
.why {
  background: var(--surface);
  border: 1px solid var(--gold-dim);
  border-radius: 0.75rem;
  padding: clamp(1.6rem, 3vw, 2.4rem);
}
.why__k { color: var(--gold); font-size: 0.9rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
html[dir="rtl"] .why__k { letter-spacing: 0.02em; }
.why__title { color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.3; margin-block: 0.8rem 1rem; }
.why__body { font-size: 1rem; }

@media (max-width: 820px) { .about__grid { grid-template-columns: 1fr; } }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { text-align: center; }
.contact__inner { max-width: 44rem; margin-inline: auto; }
.contact__sub { margin-block-start: 1.2rem; font-size: 1.15rem; }
.contact__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-block-start: 2.6rem; }
.contact__meta { margin-block-start: 2rem; color: var(--muted); font-size: 0.98rem; direction: ltr; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-block-start: 1px solid var(--line);
  padding: 2.5rem var(--pad);
  max-width: var(--max); margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.5rem;
}
.footer__brand { display: flex; align-items: center; gap: 0.5rem; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.footer__line { color: var(--muted); font-size: 0.95rem; }
.footer__copy { margin-inline-start: auto; color: var(--muted); font-size: 0.9rem; direction: ltr; }
@media (max-width: 640px) { .footer__copy { margin-inline-start: 0; } }

/* ============================================================
   MOTION SAFETY
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .axis-line__fill { scale: 1 1 !important; }
}
