/* ============================================================
   نُقطة | Nuqta — Editorial Modernist Arabic
   Single restrained accent. Hairline rules. Massive type contrast.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --paper:        #FAFAF7;
  --paper-2:      #F2F1EC;
  --paper-3:      #EAE9E3;
  --ink:          #0A0A0A;
  --ink-soft:     #1A1A1A;
  --muted:        #6B6B6B;
  --muted-2:      #9A9A95;
  --hair:         #D9D8D2;
  --accent:       #E63946;
  --accent-soft:  #FBE3E5;

  --f-display:    "IBM Plex Sans Arabic", "Segoe UI", system-ui, sans-serif;
  --f-body:       "IBM Plex Sans Arabic", "Segoe UI", system-ui, sans-serif;
  --f-label:      "Reem Kufi", "IBM Plex Sans Arabic", sans-serif;
  --f-quote:      "Amiri", "IBM Plex Sans Arabic", serif;
  --f-mono:       "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --container:    1400px;
  --gutter:       clamp(1.25rem, 3.5vw, 3rem);
  --section-y:    clamp(5.5rem, 11vw, 10rem);
  --radius:       2px;

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

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--f-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "ss01", "ss02", "kern", "calt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

::selection { background: var(--ink); color: var(--paper); }

/* ---------- Skip link ---------- */
.skip-link {
  position: fixed;
  top: -100px;
  inset-inline-start: 1rem;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--paper);
  z-index: 999;
  font-weight: 500;
  border-radius: 999px;
  transition: top .2s ease;
}
.skip-link:focus { top: 1rem; outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Paper noise overlay ---------- */
.paper-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.2;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.03 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- Focus visible ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Container helper ---------- */
.section,
.site-header,
.hero,
.footer,
.strip {
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
  max-width: var(--container);
  margin-inline: auto;
  position: relative;
}

/* Decorative hairline ruler at top of every section */
.section::before {
  content: "";
  position: absolute;
  top: 0; right: var(--gutter); left: var(--gutter);
  height: 1px;
  background: var(--hair);
  transform-origin: right center;
  animation: rule-grow 1.4s var(--ease-out) both;
}

@keyframes rule-grow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ============================================================
   CURSOR DOT + AMBIENT
   ============================================================ */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 10px; height: 10px;
  background: var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width .25s var(--ease-out),
              height .25s var(--ease-out),
              background-color .2s ease;
  opacity: 0;
}
.cursor-dot.is-visible { opacity: 1; }
.cursor-dot.is-hover   { width: 48px; height: 48px; }
.cursor-dot.is-accent  { background: var(--accent); }

@media (hover: none), (pointer: coarse) {
  .cursor-dot { display: none; }
}

/* Ambient dots that float behind hero */
.ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.ambient span {
  position: absolute;
  width: 6px; height: 6px;
  background: var(--ink);
  border-radius: 50%;
  opacity: 0.12;
  animation: float 18s var(--ease-in-out) infinite;
}
.ambient span:nth-child(1)  { top: 12%; left: 8%;  width: 4px; height: 4px;  animation-delay: -2s; }
.ambient span:nth-child(2)  { top: 22%; left: 78%; width: 10px; height: 10px; animation-delay: -4s; background: var(--accent); opacity: 0.55; }
.ambient span:nth-child(3)  { top: 60%; left: 14%; width: 8px; height: 8px;  animation-delay: -6s; }
.ambient span:nth-child(4)  { top: 80%; left: 60%; width: 5px; height: 5px;  animation-delay: -8s; }
.ambient span:nth-child(5)  { top: 38%; left: 48%; width: 3px; height: 3px;  animation-delay: -1s; }
.ambient span:nth-child(6)  { top: 70%; left: 88%; width: 7px; height: 7px;  animation-delay: -10s; }
.ambient span:nth-child(7)  { top: 92%; left: 30%; width: 5px; height: 5px;  animation-delay: -3s; }
.ambient span:nth-child(8)  { top: 16%; left: 40%; width: 6px; height: 6px;  animation-delay: -7s; }
.ambient span:nth-child(9)  { top: 50%; left: 4%;  width: 4px; height: 4px;  animation-delay: -9s; }
.ambient span:nth-child(10) { top: 4%;  left: 60%; width: 5px; height: 5px;  animation-delay: -11s; }

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  25%      { transform: translate3d(20px, -30px, 0); }
  50%      { transform: translate3d(-15px, 18px, 0); }
  75%      { transform: translate3d(28px, 12px, 0); }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.1rem;
  background: rgba(250, 250, 247, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
  transition: border-color .35s ease, padding .35s ease, background .35s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--hair);
  padding-block: 0.85rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  animation: pulse 2.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.3); opacity: 0.6; }
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.4vw, 2.25rem);
}
.nav a {
  position: relative;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding-block: 0.5rem;
}
.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  inset-inline-end: 0;
  bottom: 0.2rem;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width .35s var(--ease-out);
}
.nav a:not(.nav-cta):hover::after { width: 100%; inset-inline-start: 0; inset-inline-end: auto; }

.nav a.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0;
  transition: background .25s ease, transform .25s var(--ease-out);
}
.nav a.nav-cta::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.nav a.nav-cta:hover { background: var(--accent); transform: translateY(-1px); }
.nav a.nav-cta:hover::before { background: var(--paper); }

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .3s var(--ease-out), opacity .2s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--container);
  margin-inline: auto;
  padding-top: 9rem;
  padding-bottom: 4rem;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-grid svg { width: 100%; height: 100%; }

.hero-tag {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.9rem 0.45rem 1rem;
  background: var(--paper-2);
  border: 1px solid var(--hair);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.03em;
  width: max-content;
  margin-bottom: 2.5rem;
  animation: fade-up 1s var(--ease-out) 0.05s both;
}
.hero-tag-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.2s ease-in-out infinite;
}

.hero-title {
  position: relative;
  z-index: 2;
  font-family: var(--f-display);
  font-size: clamp(3rem, 10vw, 9rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.15em;
  padding-block-end: 0.15em;
}
.hero-line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  animation: fade-up 1.1s var(--ease-out) forwards;
}
.hero-line:nth-of-type(1) { animation-delay: 0.15s; }
.hero-line:nth-of-type(2) { animation-delay: 0.32s; }

.hero-line--accent {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  width: max-content;
}
.hero-dot-final {
  display: inline-block;
  margin-inline-start: 0.05em;
  color: var(--accent);
  transform-origin: center;
  animation: dot-pop 1.4s var(--ease-out) 1.1s both, pulse 3s ease-in-out 2.5s infinite;
}
@keyframes dot-pop {
  0%   { transform: scale(0) translateY(0.1em); opacity: 0; }
  60%  { transform: scale(1.35) translateY(0); opacity: 1; }
  100% { transform: scale(1); }
}

@keyframes fade-up {
  to { opacity: 1; transform: translateY(0); }
}

.hero-sub {
  position: relative;
  z-index: 2;
  max-width: 38ch;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 300;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fade-up 1s var(--ease-out) 0.55s forwards;
}
.hero-sub br { display: none; }
@media (min-width: 700px) {
  .hero-sub br { display: inline; }
}

.hero-foot {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fade-up 1s var(--ease-out) 0.72s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  inset-inline-start: var(--gutter);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  z-index: 2;
}
.hero-scroll-line {
  width: 1px; height: 38px;
  background: var(--ink);
  animation: scroll-line 2.4s var(--ease-in-out) infinite;
  transform-origin: top;
}
@keyframes scroll-line {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
.hero-scroll-label { font-size: 0.65rem; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1.6rem;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 0.96rem;
  border-radius: 999px;
  transition: background .25s ease, color .25s ease, transform .35s var(--ease-out), border-color .25s ease;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease-out); }
.btn:hover svg { transform: translateX(-3px); }

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}

.btn-large { padding: 1.1rem 1.9rem; font-size: 1.02rem; }

/* ============================================================
   MARQUEE STRIP
   ============================================================ */
.strip {
  position: relative;
  padding-block: 1.5rem;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  border-block: 1px solid var(--ink);
}
.strip::before,
.strip::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.strip::before { right: 0; background: linear-gradient(to left, var(--ink), transparent); }
.strip::after  { left: 0;  background: linear-gradient(to right, var(--ink), transparent); }

.strip-track {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.5vw, 2.6rem);
  letter-spacing: -0.01em;
}
.strip-track span { display: inline-block; }
.strip-dot {
  color: var(--accent);
  font-size: 0.8em;
  transform: translateY(-0.15em);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(50%); }
}

/* ============================================================
   SECTION HEADS (numbered editorial)
   ============================================================ */
.section-head {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--hair);
}
.section-number {
  font-family: var(--f-mono);
  font-size: 1.6rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}
.section-label {
  font-family: var(--f-label);
  font-size: 1.75rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  line-height: 1;
}
.section-label::before {
  content: "—";
  margin-inline-end: 0.7rem;
  color: var(--muted-2);
  font-weight: 400;
}

.section-title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  max-width: 24ch;
  margin-bottom: 4rem;
  padding-block-end: 0.2em;
}
.section-title em {
  font-style: normal;
  font-family: var(--f-quote);
  font-weight: 400;
  color: var(--muted);
  font-size: 0.88em;
}

/* ============================================================
   MANIFESTO
   ============================================================ */
.manifesto-body {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 820px) {
  .manifesto-body { grid-template-columns: 1fr; }
}

.manifesto-lead {
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
  color: var(--ink);
}
.manifesto-lead .hl {
  position: relative;
  font-weight: 700;
  white-space: nowrap;
}
.manifesto-lead .hl::after {
  content: "";
  position: absolute;
  right: 0; left: 0;
  bottom: 0.08em;
  height: 0.32em;
  background: var(--accent-soft);
  z-index: -1;
}

.manifesto-text {
  font-size: 1.06rem;
  line-height: 1.85;
  color: var(--muted);
  max-width: 42ch;
}

.manifesto-quote {
  grid-column: 1 / -1;
  margin-top: 2.5rem;
  padding: 2.5rem clamp(1.5rem, 4vw, 3rem);
  font-family: var(--f-quote);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper-2);
  border-inline-start: 3px solid var(--accent);
  position: relative;
}
.manifesto-quote .quote-mark {
  position: absolute;
  top: 0.4rem;
  inset-inline-start: 1rem;
  font-size: 5rem;
  line-height: 1;
  color: var(--accent);
  font-family: var(--f-quote);
}

/* ============================================================
   CAPABILITIES
   ============================================================ */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 0;
  border-top: 1px solid var(--hair);
}
.cap-card {
  padding: 2.5rem clamp(1.25rem, 2.5vw, 2rem);
  border-bottom: 1px solid var(--hair);
  border-inline-start: 1px solid var(--hair);
  position: relative;
  background: var(--paper);
  transition: background .4s var(--ease-out);
  display: flex;
  flex-direction: column;
  min-height: 380px;
}
.cap-card:first-child { border-inline-start: 0; }
.cap-card:hover {
  background: var(--paper-2);
}
.cap-card:hover .cap-icon {
  transform: translateY(-3px) rotate(-2deg);
  color: var(--accent);
}
.cap-card::after {
  content: "→";
  position: absolute;
  bottom: 1.5rem;
  inset-inline-start: 1.5rem;
  font-size: 1.4rem;
  color: var(--ink);
  transform: rotate(180deg) translateX(0);
  transition: transform .4s var(--ease-out), color .3s ease;
  opacity: 0;
}
.cap-card:hover::after { opacity: 1; transform: rotate(180deg) translateX(6px); color: var(--accent); }

.cap-icon {
  width: 60px; height: 60px;
  margin-bottom: 2.25rem;
  color: var(--ink);
  transition: transform .5s var(--ease-out), color .3s ease;
}
.cap-icon svg { width: 100%; height: 100%; }

.cap-card h3 {
  font-family: var(--f-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 0.9rem;
  line-height: 1.5;
}
.cap-card p {
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 1.5rem;
  flex: 1;
}
.cap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.cap-tags li {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--hair);
  border-radius: 999px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ============================================================
   WORKS
   ============================================================ */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--hair);
  position: relative;
  cursor: default;
}
.work-card:hover .work-visual { transform: translateY(-6px); }
.work-card:hover .work-visual::after { opacity: 1; }
.work-card:hover .work-title { color: var(--accent); }

.work-visual {
  position: relative;
  aspect-ratio: 5 / 4;
  background: var(--paper-2);
  overflow: hidden;
  border-radius: var(--radius);
  transition: transform .55s var(--ease-out);
}
.work-visual svg { width: 100%; height: 100%; }
.work-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(230, 57, 70, 0.08));
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}

.work-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: none;
  padding-top: 0.5rem;
}
.work-sector { display: inline-flex; align-items: center; gap: 0.45rem; }
.work-sector::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
}
.work-year { color: var(--muted-2); }

.work-title {
  font-family: var(--f-display);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.5;
  transition: color .25s ease;
}

.work-desc {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--muted);
}

.work-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--hair);
}
.work-stats span {
  font-size: 0.84rem;
  color: var(--muted);
  font-family: var(--f-body);
}
.work-stats strong {
  font-family: var(--f-mono);
  font-weight: 600;
  color: var(--ink);
  margin-inline-end: 0.25rem;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.2rem;
}
.work-tags span {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  padding: 0.25rem 0.6rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 2px;
  letter-spacing: 0.04em;
}

.works-note {
  margin-top: 3rem;
  padding: 1.4rem 1.5rem;
  background: var(--paper-2);
  border-inline-start: 2px solid var(--accent);
  font-size: 0.92rem;
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  line-height: 1.7;
}
.works-note-dot { color: var(--accent); font-size: 0.7em; transform: translateY(0.3em); }

/* ============================================================
   METHOD
   ============================================================ */
.method-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 0;
  border-top: 1px solid var(--ink);
}
.step {
  padding: 2.5rem clamp(1.25rem, 2vw, 1.75rem);
  border-bottom: 1px solid var(--hair);
  border-inline-start: 1px solid var(--hair);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--paper);
  transition: background .4s var(--ease-out);
}
.step:first-child { border-inline-start: 0; }
.step:hover {
  background: var(--ink);
  color: var(--paper);
}
.step:hover h3 { color: var(--paper); }
.step:hover p { color: var(--paper-2); }
.step:hover .step-num { color: var(--accent); }
.step:hover .step-time { color: var(--muted-2); border-color: var(--muted); }

.step-num {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  transition: color .3s ease;
}
.step h3 {
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.5;
  transition: color .3s ease;
}
.step p {
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--muted);
  flex: 1;
  transition: color .3s ease;
}
.step-time {
  align-self: flex-start;
  font-family: var(--f-mono);
  font-size: 0.74rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--hair);
  border-radius: 999px;
  color: var(--muted);
  transition: color .3s ease, border-color .3s ease;
}

/* ============================================================
   NUMBERS
   ============================================================ */
.numbers {
  padding-block: clamp(4rem, 8vw, 7rem);
}
.numbers::before { display: none; }
.num-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  border-block: 1px solid var(--ink);
}
.num-cell {
  padding: 2.25rem 1.5rem;
  border-inline-start: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
  overflow: hidden;
  transition: background .35s ease;
}
.num-cell:first-child { border-inline-start: 0; }
.num-cell:hover { background: var(--paper-2); }
.num-cell:hover .num-value::after { transform: scaleX(1); }

.num-value {
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  position: relative;
  display: inline-block;
  width: max-content;
  padding-block-end: 0.05em;
}
.num-value::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -4px;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .55s var(--ease-out);
}
.num-label {
  font-family: var(--f-mono);
  font-size: 0.84rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  line-height: 1.5;
  max-width: 22ch;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact { padding-bottom: clamp(6rem, 10vw, 9rem); }

.contact-title {
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 7vw, 6.5rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  margin-bottom: 2rem;
  padding-block-end: 0.15em;
}
.contact-title em {
  font-style: normal;
  font-family: var(--f-quote);
  color: var(--accent);
  font-weight: 400;
  font-size: 0.85em;
}

.contact-sub {
  max-width: 48ch;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 3rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 4rem;
}
.contact-actions .btn-primary { background: #25D366; }
.contact-actions .btn-primary:hover { background: #1FB856; transform: translateY(-2px); }

.contact-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0;
  color: var(--muted-2);
  font-family: var(--f-mono);
  font-size: 0.8rem;
}
.contact-divider span {
  flex: 1;
  height: 1px;
  background: var(--hair);
}
.contact-divider::before { content: "أو اكتب لنا"; white-space: nowrap; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 720px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-label {
  font-family: var(--f-label);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}
.contact-form input,
.contact-form textarea {
  font-family: var(--f-body);
  font-size: 1.05rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 0.75rem 0;
  resize: none;
  transition: border-color .3s ease;
  outline: 0;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted-2);
  font-weight: 300;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom-color: var(--accent);
}
.contact-form button[type="submit"] {
  align-self: flex-start;
  margin-top: 1rem;
}

.form-success {
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.25rem;
  background: var(--paper-2);
  border-inline-start: 3px solid var(--accent);
  color: var(--ink);
  font-size: 0.96rem;
}
.form-success.is-visible { display: inline-flex; animation: fade-up .6s var(--ease-out); }
.form-success-dot { color: var(--accent); animation: pulse 1.6s ease-in-out infinite; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--hair);
  padding-block: 3rem 2rem;
  background: var(--paper);
  max-width: var(--container);
  margin-inline: auto;
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--hair);
  margin-bottom: 1.5rem;
}
.brand--footer { font-size: 1.15rem; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-nav a {
  font-size: 0.92rem;
  color: var(--muted);
  transition: color .25s ease;
}
.footer-nav a:hover { color: var(--ink); }

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--f-mono);
  font-size: 0.76rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.footer-divider { color: var(--accent); }

.en-num { font-family: var(--f-mono); }

/* ============================================================
   REVEAL-ON-SCROLL
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 820px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }

  .nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: 70px;
    right: 0; left: 0;
    background: var(--paper);
    padding: 1.5rem var(--gutter) 2rem;
    border-bottom: 1px solid var(--hair);
    gap: 0;
  }
  .nav.is-open a {
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--hair);
    font-size: 1.05rem;
  }
  .nav.is-open .nav-cta {
    margin-top: 1rem;
    justify-content: center;
    border: 0;
  }

  .hero-scroll { display: none; }

  .section-title { font-size: clamp(1.7rem, 7vw, 3rem); }
  .section { padding-block: 5rem; }

  .cap-card { min-height: auto; }
  .cap-card,
  .step,
  .num-cell {
    border-inline-start: 0;
    border-top: 1px solid var(--hair);
  }
  .cap-card:first-child,
  .step:first-child,
  .num-cell:first-child { border-top: 0; }
}

/* ============================================================
   SCROLL-TO-TOP BUTTON
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: 1.75rem;
  inset-inline-start: 1.75rem;
  z-index: 70;
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--paper);
  border-radius: 50%;
  transform: scale(0) rotate(-45deg);
  opacity: 0;
  pointer-events: none;
  transition: transform .45s var(--ease-out), opacity .35s ease, background .25s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.scroll-top.is-visible {
  transform: scale(1) rotate(0);
  opacity: 1;
  pointer-events: auto;
}
.scroll-top:hover {
  background: var(--accent);
  transform: scale(1.08) rotate(0);
}
.scroll-top svg { width: 18px; height: 18px; transition: transform .3s var(--ease-out); }
.scroll-top:hover svg { transform: translateY(-3px); }
.scroll-top-dot {
  position: absolute;
  top: 6px; inset-inline-end: 6px;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--ink);
  transition: background .25s ease, border-color .25s ease;
}
.scroll-top:hover .scroll-top-dot {
  background: var(--paper);
  border-color: var(--accent);
}

@media (max-width: 640px) {
  .scroll-top { width: 46px; height: 46px; bottom: 1.25rem; inset-inline-start: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .ambient { display: none; }
  .cursor-dot { display: none; }
}
