/* ============================================================
   QWEB DIGITAL — Redesign
   Design system: Qatar maroon · warm ivory · kinetic editorial
   ============================================================ */

:root {
  /* Color */
  --bone:        #F4EFE8;   /* warm ivory canvas */
  --bone-2:      #ECE5DA;   /* slightly deeper panel */
  --ink:         #1C1614;   /* warm near-black */
  --ink-soft:    #5C534E;
  --maroon:      #8A1538;   /* Qatar maroon — signature */
  --maroon-deep: #5A0E26;
  --maroon-dark: #3A0A19;   /* dark sections */
  --sand:        #C9A86A;   /* warm metallic accent */
  --line:        rgba(28, 22, 20, 0.14);

  /* Type */
  --display: "Bricolage Grotesque", Georgia, serif;
  --body:    "Hanken Grotesk", system-ui, sans-serif;
  --mono:    "Space Mono", ui-monospace, monospace;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Layout */
  --pad: clamp(20px, 5vw, 80px);
  --maxw: 1600px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--bone);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Hide native cursor on capable devices; custom cursor takes over */
@media (hover: hover) and (pointer: fine) {
  body.custom-cursor, body.custom-cursor * { cursor: none !important; }
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; background: none; border: none; }
img { display: block; max-width: 100%; }

::selection { background: var(--maroon); color: var(--bone); }

/* ---------- Reusable utilities ---------- */
.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--maroon);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--maroon);
  display: inline-block;
}

.section {
  position: relative;
  padding: clamp(80px, 11vw, 180px) var(--pad);
}
.section-inner { max-width: var(--maxw); margin: 0 auto; }

.eyebrow-num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* line-by-line clip reveal for big headings */
.line-mask { display: block; overflow: hidden; }
.line-mask > span {
  display: block;
  transform: translateY(110%);
  transition: transform 1s var(--ease);
}
.reveal.in .line-mask > span,
.line-mask.in > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .line-mask > span { transform: none; }
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
}
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--maroon);
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 40px; height: 40px;
  border: 1.5px solid var(--maroon);
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease), height 0.3s var(--ease),
              background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.cursor-ring.hover { width: 64px; height: 64px; background: rgba(138,21,56,0.10); }
.cursor-ring.label {
  width: 86px; height: 86px;
  background: var(--maroon);
  border-color: var(--maroon);
}
.cursor-ring .cur-text {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.1em;
  color: #fff; text-transform: uppercase;
  opacity: 0; transition: opacity 0.2s;
}
.cursor-ring.label .cur-text { opacity: 1; }
/* adapt to dark sections */
.cursor-dot.on-dark { background: var(--bone); }
.cursor-ring.on-dark { border-color: var(--bone); }
.cursor-ring.on-dark.hover { background: rgba(244,239,232,0.12); }
.cursor-ring.label, .cursor-ring.on-dark.label {
  background: var(--ink); border-color: var(--ink);
}
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 22px var(--pad);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease),
              box-shadow 0.4s var(--ease), color 0.4s var(--ease);
  mix-blend-mode: normal;
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav.scrolled {
  background: rgba(244, 239, 232, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
  padding-top: 16px; padding-bottom: 16px;
}
.brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.03em;
  display: flex; align-items: center; gap: 2px;
}
.brand-logo {
  height: 34px; width: auto; display: block;
  transition: transform 0.4s var(--ease);
}
.brand:hover .brand-logo { transform: scale(1.05); }
.brand .dot { color: var(--maroon); }
.nav-links {
  display: flex; align-items: center; justify-content: flex-end;
  flex-wrap: wrap; gap: clamp(14px, 1.8vw, 32px);
}
.lang-toggle {
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1;
  padding: 10px 14px;
  border-radius: 100px;
  border: 1px solid var(--line);
  cursor: pointer;
}
.lang-toggle:hover { border-color: var(--maroon); color: var(--maroon); }
.nav-links a {
  font-family: var(--mono);
  font-size: 12.5px; letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: inline-block; }
.nav .btn { padding: 16px 30px; }
@media (max-width: 860px) {
  .nav-links .nav-link-hide { display: none; }
}

/* magnetic button */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono);
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 15px 26px;
  border-radius: 100px;
  background: var(--maroon);
  color: var(--bone);
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
  border-radius: 100px;
}
.btn:hover::before { transform: translateY(0); }
.btn .arrow { transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translate(4px, -4px); }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn.ghost::before { background: var(--maroon); }
.btn.ghost:hover { color: var(--bone); }
.btn.lg { padding: 20px 34px; font-size: 14px; }
.btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}
.btn:disabled::before,
.btn:disabled:hover::before { transform: translateY(101%); }
.btn:disabled:hover .arrow { transform: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px var(--pad) 0;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  overflow: hidden;
}
.hero-blob {
  position: absolute;
  width: 80vw; height: 80vw; max-width: 1100px; max-height: 1100px;
  /* soft glow comes from the gradient falloff itself — no blur filter */
  background: radial-gradient(circle at 50% 50%,
              rgba(138,21,56,0.42) 0%,
              rgba(138,21,56,0.22) 32%,
              rgba(138,21,56,0) 68%);
  top: -22%; right: -14%;
  border-radius: 50%;
  animation: float1 18s ease-in-out infinite;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.hero-blob.two {
  background: radial-gradient(circle at 50% 50%,
              rgba(201,168,106,0.36) 0%,
              rgba(201,168,106,0.18) 34%,
              rgba(201,168,106,0) 70%);
  top: auto; bottom: -30%; right: auto; left: -16%;
  width: 64vw; height: 64vw; max-width: 820px; max-height: 820px;
  animation: float2 22s ease-in-out infinite;
}
@keyframes float1 {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(-4%, 5%, 0) scale(1.08); }
}
@keyframes float2 {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(6%, -4%, 0) scale(1.12); }
}
.hero-grain {
  position: absolute; inset: 0;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

.hero-inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; width: 100%; }
.hero-top {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 24px; margin-bottom: clamp(24px, 4vw, 50px);
}
.hero-tagline {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-soft); max-width: 360px;
}
.align-end { text-align: end; }
.hero-h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(50px, 11vw, 172px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.hero-h1 .row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 0.18em; }
.hero-h1 .maroon { color: var(--maroon); }
.hero-h1 .outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
  /* Italic "s" paints past the line box; the mask would clip it. */
  padding-right: 0.28em;
}
.hero-h1 em {
  font-style: italic;
  font-weight: 400;
}
.hero-bottom {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 30px; margin-top: clamp(34px, 5vw, 64px);
}
.hero-lead {
  max-width: 420px; font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.5; color: var(--ink-soft);
}
.hero-scroll {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-soft);
  display: flex; align-items: center; gap: 10px;
}
.hero-scroll .ln { width: 1px; height: 40px; background: var(--ink); position: relative; overflow: hidden; }
.hero-scroll .ln::after {
  content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%;
  background: var(--maroon); animation: scrolldown 1.8s var(--ease) infinite;
}
@keyframes scrolldown { 0%{ top:-100%; } 60%,100%{ top:100%; } }

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  overflow: hidden;
  white-space: nowrap;
  background: var(--ink);
  color: var(--bone);
}
.marquee-track { display: inline-flex; gap: 0; animation: marquee 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(20px, 3vw, 40px); letter-spacing: -0.02em;
  text-transform: uppercase; padding: 0 28px;
  display: inline-flex; align-items: center; gap: 28px;
}
.marquee span::after { content: "✳"; color: var(--maroon); font-size: 0.7em; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   PROJECTS
   ============================================================ */
.proj-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 24px; margin-bottom: clamp(40px, 6vw, 80px);
}
.section-title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(40px, 7vw, 110px); line-height: 0.9;
  letter-spacing: -0.03em; text-transform: uppercase;
}
.section-desc { max-width: 460px; font-size: clamp(15px,1.3vw,18px); line-height: 1.55; color: var(--ink-soft); }

.proj-list { border-top: 1px solid var(--line); }
.proj-row {
  position: relative;
  display: block;
  border-bottom: 1px solid var(--line);
  transition: color 0.5s var(--ease);
}
.proj-row-media { display: none; }
.proj-row-body {
  display: grid;
  grid-template-columns: 0.5fr 2fr 1.3fr auto;
  align-items: center;
  gap: 20px;
  padding: clamp(22px, 3vw, 40px) 8px;
  transition: padding-left 0.5s var(--ease);
}
.proj-row .p-index { font-family: var(--mono); font-size: 13px; color: var(--ink-soft); }
.proj-row .p-name {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(26px, 4vw, 58px); letter-spacing: -0.02em;
  transition: transform 0.5s var(--ease);
}
.proj-row .p-cat { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.proj-row .p-arrow {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  transition: background 0.5s var(--ease), color 0.5s var(--ease), transform 0.5s var(--ease);
}
.proj-row::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: var(--maroon); transition: width 0.5s var(--ease);
}
.proj-row:hover { color: var(--maroon); }
.proj-row:hover .proj-row-body { padding-left: 28px; }
.proj-row:hover::before { width: 4px; }
.proj-row:hover .p-name { transform: translateX(6px); }
.proj-row:hover .p-arrow { background: var(--maroon); color: var(--bone); border-color: var(--maroon); transform: rotate(-45deg); }


.proj-row .p-price {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--maroon); white-space: nowrap;
}
.proj-list.grouped .proj-row-body {
  grid-template-columns: 0.45fr 2.4fr auto;
}
.proj-list.priced .proj-row-body {
  grid-template-columns: 0.4fr 1.6fr 1.2fr auto auto;
}

.proj-break {
  display: flex; align-items: flex-end; gap: 18px;
  padding: 28px 8px 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--maroon);
}
.proj-break.spaced { margin-top: 56px; }

/* Tablet & mobile — card layout with visible previews */
@media (max-width: 1024px) {
  .proj-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(16px, 3vw, 24px);
    border-top: none;
  }
  .proj-row {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bone);
  }
  .proj-row::before { display: none; }
  .proj-row:hover { color: inherit; }
  .proj-row:hover .proj-row-body { padding-left: 20px; }
  .proj-row:hover .p-name { transform: none; }
  .proj-row-media {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--ink);
  }
  .proj-row-media img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    transition: transform 0.6s var(--ease);
  }
  .proj-row:active .proj-row-media img,
  .proj-row:hover .proj-row-media img { transform: scale(1.03); }
  .proj-row-body {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    gap: 6px 14px;
    padding: clamp(16px, 3vw, 22px);
    flex: 1;
  }
  .proj-row .p-name {
    font-size: clamp(20px, 4vw, 28px);
    grid-column: 2;
    grid-row: 1;
  }
  .proj-row .p-index { grid-column: 1; grid-row: 1; align-self: start; padding-top: 4px; }
  .proj-row .p-cat {
    grid-column: 2 / -1;
    grid-row: 2;
    font-size: 11px;
    line-height: 1.4;
  }
  .proj-row .p-arrow {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
    width: 42px; height: 42px;
  }
  .proj-row:hover .p-arrow {
    background: var(--maroon); color: var(--bone);
    border-color: var(--maroon); transform: rotate(-45deg);
  }
  .proj-list.grouped .proj-row-body {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto;
  }
  .proj-break {
    grid-column: 1 / -1;
    border-bottom: none;
    padding: 4px 4px 0;
    margin-top: 8px;
  }
  .proj-break.spaced { margin-top: 28px; }
  .proj-list.priced .proj-row-body {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto auto;
  }
  .proj-list.priced .proj-row .p-cat { grid-column: 2; grid-row: 2; }
  .proj-list.priced .proj-row .p-price {
    grid-column: 2; grid-row: 3; font-size: 11px;
  }
  .proj-list.priced .proj-row .p-arrow { grid-row: 1 / span 3; }

}
@media (max-width: 640px) {
  .proj-list { grid-template-columns: 1fr; }
}

/* floating preview that follows cursor */
.proj-preview {
  position: fixed; top: 0; left: 0;
  width: 380px; height: 300px;
  pointer-events: none; z-index: 800;
  opacity: 0; transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.proj-preview.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.proj-preview-card {
  position: relative; width: 100%; height: 100%;
  border-radius: 8px; overflow: hidden;
  background: var(--ink);
  box-shadow: 0 30px 80px rgba(58,10,25,0.4);
}
.pp-image,
.pp-fallback {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0;
  pointer-events: none;
}
.pp-image.on,
.pp-fallback.on { opacity: 1; }
.pp-bar {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  background: #0b0b0b; color: #fff;
  border-radius: 100px;
  padding: 11px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  font-family: var(--body); font-size: 11px; letter-spacing: 0.01em;
  white-space: nowrap;
}
.pp-bar > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.pp-bar .pp-name { font-weight: 600; opacity: 0.95; flex-shrink: 0; }


.work-fallback {
  width: 100%; height: 100%;
  display: grid; place-items: end start;
  padding: 28px;
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(201,168,106,0.28), transparent 50%),
    var(--maroon-dark);
  color: var(--bone);
  font-family: var(--display); font-weight: 800;
  letter-spacing: -0.03em; text-transform: uppercase;
  font-size: clamp(28px, 4vw, 56px);
}
.systems-band { background: var(--bone-2); }


/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--ink); color: var(--bone); }
.services .section-desc { color: rgba(244,239,232,0.6); }
.services .kicker { color: var(--sand); }
.services .kicker::before { background: var(--sand); }
.svc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: rgba(244,239,232,0.14);
  border: 1px solid rgba(244,239,232,0.14);
  margin-top: clamp(40px,5vw,70px);
}
@media (max-width: 900px) { .svc-grid { grid-template-columns: 1fr; } }
.svc-card {
  position: relative;
  background: var(--ink);
  padding: clamp(28px, 3vw, 48px);
  min-height: 420px;
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: background 0.6s var(--ease);
}
.svc-card::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: var(--maroon);
  transform: translateY(100%);
  transition: transform 0.6s var(--ease);
}
.svc-card:hover::after { transform: translateY(0); }
.svc-card > * { position: relative; z-index: 1; }
.svc-num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.15em; color: var(--sand); transition: color 0.6s; }
.svc-card:hover .svc-num { color: var(--bone); }
.svc-icon {
  width: 56px; height: 56px; margin: 28px 0;
  display: grid; place-items: center;
  border-radius: 50%; border: 1px solid rgba(244,239,232,0.3);
  transition: transform 0.6s var(--ease), border-color 0.6s;
}
.svc-card:hover .svc-icon { transform: rotate(360deg) scale(1.1); border-color: var(--bone); }
.svc-name {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.02em;
  margin-bottom: 14px; line-height: 1.02;
}
.svc-text { font-size: 15px; line-height: 1.55; color: rgba(244,239,232,0.6); transition: color 0.6s; margin-bottom: 24px; }
.svc-card:hover .svc-text { color: rgba(244,239,232,0.92); }
.svc-list { margin-top: auto; list-style: none; display: flex; flex-direction: column; gap: 11px; }
.svc-list li {
  font-size: 14px; padding-left: 22px; position: relative;
  color: rgba(244,239,232,0.78);
  border-top: 1px solid rgba(244,239,232,0.12); padding-top: 11px;
}
.svc-list li::before {
  content: "→"; position: absolute; left: 0; top: 11px; color: var(--sand);
  transition: color 0.6s;
}
.svc-card:hover .svc-list li::before { color: var(--bone); }

/* ============================================================
   WHY US / STATS
   ============================================================ */
.why { background: var(--maroon-dark); color: var(--bone); overflow: hidden; }
.why .kicker { color: var(--sand); }
.why .kicker::before { background: var(--sand); }
.why-lead {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(28px, 4.2vw, 64px); line-height: 1.04;
  letter-spacing: -0.02em; max-width: 16ch; margin: 24px 0 0;
}
.why-lead .hl { color: var(--sand); font-style: italic; }
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; margin-top: clamp(50px, 7vw, 100px);
  border-top: 1px solid rgba(244,239,232,0.2);
}
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } }
.stat { padding: clamp(28px,3vw,44px) 0; padding-right: 30px; }
.stat .num {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(64px, 9vw, 150px); line-height: 0.9;
  letter-spacing: -0.04em; color: var(--bone);
}
.stat .num .plus { color: var(--sand); }
.stat .lbl { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(244,239,232,0.6); margin-top: 14px; }

/* CTA band */
.cta-band {
  position: relative;
  padding: clamp(60px, 9vw, 140px) var(--pad);
  background: var(--maroon);
  color: var(--bone);
  text-align: center;
  overflow: hidden;
  cursor: pointer;
}
.cta-band a { display: block; }
.cta-band h2 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(40px, 8vw, 150px); line-height: 0.92;
  letter-spacing: -0.03em; text-transform: uppercase;
  position: relative; z-index: 2;
  transition: transform 0.5s var(--ease);
}
.cta-band:hover h2 { transform: scale(1.02); }
.cta-band .cta-sub { font-family: var(--mono); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; margin-top: 24px; opacity: 0.8; position: relative; z-index: 2; }
.cta-band .glow {
  position: absolute; width: 120%; height: 200%; left: -10%; top: -50%;
  background: radial-gradient(ellipse at center, rgba(201,168,106,0.4), transparent 60%);
  opacity: 0; transition: opacity 0.6s; pointer-events: none;
}
.cta-band:hover .glow { opacity: 1; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-grid { display: grid; grid-template-columns: 0.8fr 2fr; gap: clamp(30px, 5vw, 80px); }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: start;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: clamp(22px, 2.6vw, 34px) 0;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(19px, 2.2vw, 30px); letter-spacing: -0.01em;
  transition: color 0.4s var(--ease);
}
.faq-q:hover { color: var(--maroon); }
.faq-icon { flex-shrink: 0; width: 26px; height: 26px; position: relative; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; background: currentColor;
  left: 50%; top: 50%; transform: translate(-50%,-50%);
}
.faq-icon::before { width: 100%; height: 2px; }
.faq-icon::after { width: 2px; height: 100%; transition: transform 0.4s var(--ease); }
.faq-item.open .faq-icon::after { transform: translate(-50%,-50%) scaleY(0); }
.faq-a { overflow: hidden; height: 0; transition: height 0.5s var(--ease); }
.faq-a-inner { padding-bottom: clamp(22px,2.6vw,34px); max-width: 60ch; font-size: clamp(15px,1.3vw,18px); line-height: 1.6; color: var(--ink-soft); }

/* ============================================================
   CONTACT
   ============================================================ */
body:has(.book-page),
body:has(.book-page) #root {
  height: 100%;
  overflow: hidden;
}
.book-page {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #fff;
  overflow: hidden;
}
.book-bar {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 16px var(--pad);
  background:
    linear-gradient(var(--maroon), var(--maroon)) top / 100% 4px no-repeat,
    var(--bone);
  border-bottom: 1px solid var(--line);
}
.book-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.book-mark .kicker { letter-spacing: 0.18em; }
.book-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(18px, 2vw, 28px);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 0.95;
  color: var(--ink);
}
.book-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}
.book-back {
  padding: 12px 18px;
  font-size: 11px;
}
@media (max-width: 700px) {
  .book-mark .kicker { display: none; }
  .book-title { font-size: 16px; }
  .book-back { padding: 10px 14px; }
}
.booking-page-frame {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  border: 0;
  background: #fff;
}
.book-fallback {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bone);
  padding: var(--pad);
}

.contact { background: var(--ink); color: var(--bone); }
.contact .kicker { color: var(--sand); }
.contact .kicker::before { background: var(--sand); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px,6vw,90px); margin-top: clamp(40px,5vw,70px); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-left h2 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(40px, 6vw, 96px); line-height: 0.9; letter-spacing: -0.03em;
  text-transform: uppercase;
}
.contact-left .lead { margin-top: 26px; max-width: 40ch; font-size: clamp(15px,1.3vw,18px); line-height: 1.55; color: rgba(244,239,232,0.65); }
.contact-meta { margin-top: 44px; display: flex; flex-direction: column; gap: 18px; }
.contact-meta a, .contact-meta .row {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 12px; color: rgba(244,239,232,0.85);
  width: fit-content;
  transition: color 0.3s, gap 0.3s;
}
.contact-meta a:hover { color: var(--sand); gap: 18px; }

.field { position: relative; margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; background: transparent; border: none;
  border-bottom: 1px solid rgba(244,239,232,0.25);
  color: var(--bone); font-family: var(--body); font-size: 17px;
  padding: 22px 0 14px;
  outline: none; resize: none;
  transition: border-color 0.4s var(--ease);
}
.field label {
  position: absolute; left: 0; top: 22px;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(244,239,232,0.45);
  pointer-events: none;
  transition: all 0.35s var(--ease);
}
.field input:focus ~ label, .field.filled label,
.field textarea:focus ~ label {
  top: 0; font-size: 10.5px; color: var(--sand);
}
.field input:focus, .field textarea:focus { border-color: var(--sand); }
.field .underline {
  position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--sand); transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.field input:focus ~ .underline, .field textarea:focus ~ .underline { transform: scaleX(1); }
.form-msg {
  font-family: var(--mono); font-size: 13px; color: var(--sand);
  margin-top: 18px; min-height: 18px;
  opacity: 0; transform: translateY(6px); transition: all 0.4s var(--ease);
}
.form-msg.show { opacity: 1; transform: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink); color: var(--bone);
  padding: 0 var(--pad) 40px;
  border-top: 1px solid rgba(244,239,232,0.12);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}
.footer-huge {
  display: flex; justify-content: center;
  padding: clamp(40px,6vw,90px) 0 clamp(20px,3vw,40px);
}
.footer-wordmark {
  width: 100%; height: auto; display: block;
  opacity: 0.96;
}
.footer-bot {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 18px;
  padding-top: 30px; border-top: 1px solid rgba(244,239,232,0.12);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: rgba(244,239,232,0.55);
}
.footer-bot .socials { display: flex; gap: 24px; }
.footer-bot a { transition: color 0.3s; }
.footer-bot a:hover { color: var(--sand); }

/* placeholder image styling */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.article-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-height: 100%;
  padding: clamp(22px, 2.4vw, 32px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bone-2);
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.article-card:hover { border-color: var(--maroon); transform: translateY(-4px); }
.article-card h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.article-card p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}
.article-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--maroon);
}
.article-page { min-height: 100vh; background: var(--bone); }
.article-page .book-bar { position: sticky; top: 0; z-index: 20; }
.article-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 110px) var(--pad) clamp(80px, 12vw, 160px);
}
.article-wrap h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 18px 0 22px;
}
.article-lead {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 28px;
}
.article-wrap p {
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.7;
  color: var(--ink-soft);
  margin-top: 18px;
}
.article-back {
  display: inline-flex;
  margin-top: 36px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--maroon);
}
.article-back:hover { color: var(--ink); }
@media (max-width: 900px) {
  .article-grid { grid-template-columns: 1fr; }
}

.ph {
  background: repeating-linear-gradient(45deg, var(--bone-2), var(--bone-2) 10px, var(--bone) 10px, var(--bone) 20px);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-soft);
  width: 100%; height: 100%;
}
.ph.dark {
  background: repeating-linear-gradient(45deg, #2a211e, #2a211e 10px, #1c1614 10px, #1c1614 20px);
  color: rgba(244,239,232,0.5);
}

/* ============================================================
   ARABIC / RTL
   ============================================================ */
html[dir="rtl"] {
  --display: "Noto Kufi Arabic", "Bricolage Grotesque", sans-serif;
  --body: "IBM Plex Sans Arabic", "Hanken Grotesk", sans-serif;
  --mono: "IBM Plex Sans Arabic", "Hanken Grotesk", sans-serif;
}
html[dir="rtl"] body { line-height: 1.7; }
html[dir="rtl"] .kicker,
html[dir="rtl"] .btn,
html[dir="rtl"] .nav-links a,
html[dir="rtl"] .hero-tagline,
html[dir="rtl"] .hero-scroll,
html[dir="rtl"] .hero-h1,
html[dir="rtl"] .section-title,
html[dir="rtl"] .p-cat,
html[dir="rtl"] .p-price,
html[dir="rtl"] .proj-break,
html[dir="rtl"] .stat .lbl,
html[dir="rtl"] .faq-q,
html[dir="rtl"] .field label,
html[dir="rtl"] .book-title,
html[dir="rtl"] .cta-band h2,
html[dir="rtl"] .cta-band .cta-sub,
html[dir="rtl"] .footer-bot,
html[dir="rtl"] .article-more,
html[dir="rtl"] .article-back,
html[dir="rtl"] .cursor-ring .cur-text,
html[dir="rtl"] .svc-name,
html[dir="rtl"] .contact-left h2 {
  letter-spacing: 0;
  text-transform: none;
}
html[dir="rtl"] .hero-h1 {
  line-height: 1.25;
  font-size: clamp(40px, 8.2vw, 120px);
}
html[dir="rtl"] .hero-h1 .outline {
  padding-right: 0;
  padding-inline-end: 0.08em;
  font-style: normal;
}
html[dir="rtl"] .section-title,
html[dir="rtl"] .contact-left h2,
html[dir="rtl"] .cta-band h2,
html[dir="rtl"] .article-wrap h1,
html[dir="rtl"] .article-card h3 {
  line-height: 1.25;
}
html[dir="rtl"] .why-lead {
  max-width: 18em;
  line-height: 1.45;
}
html[dir="rtl"] .why-lead .hl { font-style: normal; }
html[dir="rtl"] .arrow { transform: scaleX(-1); }
html[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translate(4px, -4px); }
html[dir="rtl"] .nav-links a::after { left: auto; right: 0; transform-origin: left; }
html[dir="rtl"] .nav-links a:hover::after { transform-origin: right; }
html[dir="rtl"] .marquee,
html[dir="rtl"] .marquee-track { direction: rtl; }
html[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
@keyframes marquee-rtl {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}
html[dir="rtl"] .proj-row::before { left: auto; right: 0; }
html[dir="rtl"] .proj-row:hover .proj-row-body { padding-left: 8px; padding-right: 28px; }
html[dir="rtl"] .proj-row:hover .p-name { transform: translateX(-6px); }
html[dir="rtl"] .proj-row:hover .p-arrow { transform: rotate(45deg); }
html[dir="rtl"] .svc-list li { padding-left: 0; padding-right: 22px; }
html[dir="rtl"] .svc-list li::before { content: "←"; left: auto; right: 0; }
html[dir="rtl"] .stat { padding-right: 0; padding-left: 30px; }
html[dir="rtl"] .field label { left: auto; right: 0; }
html[dir="rtl"] .field .underline { left: auto; right: 0; transform-origin: right; }
html[dir="rtl"] .cursor-ring.label { width: 104px; height: 104px; }
html[dir="rtl"] .cursor-ring .cur-text { font-family: var(--body); font-size: 13px; }
@media (max-width: 1024px) {
  html[dir="rtl"] .proj-row:hover .proj-row-body { padding-right: 20px; padding-left: 20px; }
}
