/* =====================================================================
   ace studio: shared styles
   Fonts matched to the Canva site:
     Righteous            -> outlined display titles (SALEH BUKHARI, HEY THERE…)
     Hanken Grotesk       -> profile page body
     League Spartan       -> booking page titles + body
     Archivo (expanded)   -> heavy outlined labels (DOOR CONCEPT, SHORT HAIRCUT, SELECT)
     IBM Plex Sans Arabic / Reem Kufi -> Arabic
   ===================================================================== */
:root {
  --home-bg: #f6f6f6;
  --ink: #000;
  --purple: #3a03a6;
  --neon: #78ff00;
  --lime: #c4ff00;
  --lime-soft: #dcff69;
  --dark: #000;
  --dark-2: #0c0c0c;
  --dark-line: #2c2c2c;
  --dark-muted: #9a9a9a;
  --radius: 16px;
  --f-display: "Righteous", "Reem Kufi", system-ui, sans-serif;
  --f-body: "Hanken Grotesk", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --f-spartan: "League Spartan", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --f-wide: "Archivo", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 0.84, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.wrap { width: min(1040px, 100% - 40px); margin-inline: auto; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* Arabic: Latin display fonts have no Arabic glyphs, so headings switch to solid Arabic fonts */
[lang="ar"] body { font-family: "IBM Plex Sans Arabic", system-ui, sans-serif; }
[lang="ar"] .outline, [lang="ar"] .outline-purple, [lang="ar"] .outline-lime, [lang="ar"] .outline-white {
  -webkit-text-stroke: 0 !important; letter-spacing: 0 !important;
}
[lang="ar"] .outline { color: var(--ink) !important; font-family: "Reem Kufi", "IBM Plex Sans Arabic", sans-serif; }
[lang="ar"] .theme-book .outline { color: #fff !important; }
[lang="ar"] .outline-purple { color: var(--purple) !important; font-family: "Reem Kufi", sans-serif !important; }
[lang="ar"] .outline-lime { color: var(--lime) !important; font-family: "Reem Kufi", sans-serif !important; }
[lang="ar"] .outline-white { color: #fff !important; font-family: "Reem Kufi", sans-serif !important; }
.latin { font-family: var(--f-display); direction: ltr; unicode-bidi: isolate; }

/* Outlined text (like the Canva outline fonts) */
.outline { color: transparent; -webkit-text-stroke: 1.6px var(--ink); font-family: var(--f-display); text-transform: uppercase; font-weight: 400; }
.outline-purple { color: transparent; -webkit-text-stroke: 1px var(--purple); }
.outline-lime { color: transparent; -webkit-text-stroke: 1.1px var(--lime); }
.outline-white { color: transparent; -webkit-text-stroke: 1px #fff; }
.wide { font-family: var(--f-wide); font-stretch: 125%; font-weight: 900; text-transform: uppercase; letter-spacing: 0.01em; }

/* ---------------------------------------------------------------- animations */
[data-reveal] {
  opacity: 0; transform: translateX(-28px);
  transition: opacity 1.1s ease, transform 1.5s var(--ease-out);
  transition-delay: var(--d, 0s);
}
[dir="rtl"] [data-reveal] { transform: translateX(28px); }
[data-reveal="up"] { transform: translateY(26px) !important; }
[data-reveal="fade"] { transform: none !important; }
[data-reveal="zoom"] { transform: scale(0.94) !important; }
[data-reveal].in { opacity: 1; transform: none !important; }
[data-words] .w { opacity: 0.16; transition: opacity 0.45s ease; transition-delay: calc(var(--i) * 38ms); }
[data-words].in .w { opacity: 1; }
@keyframes heroIn { from { opacity: 0; letter-spacing: 0.08em; filter: blur(6px); } to { opacity: 1; letter-spacing: 0.01em; filter: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes neon {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(120, 255, 0, 0.75)) drop-shadow(0 0 10px rgba(120, 255, 0, 0.35)); }
  45% { filter: drop-shadow(0 0 1px rgba(120, 255, 0, 0.5)) drop-shadow(0 0 4px rgba(120, 255, 0, 0.2)); }
  50% { filter: drop-shadow(0 0 3px rgba(120, 255, 0, 0.85)) drop-shadow(0 0 14px rgba(120, 255, 0, 0.45)); }
}
@keyframes limeGlow {
  0%, 100% { text-shadow: 0 0 6px rgba(196, 255, 0, 0.55), 0 0 18px rgba(196, 255, 0, 0.25); }
  50% { text-shadow: 0 0 3px rgba(196, 255, 0, 0.35), 0 0 8px rgba(196, 255, 0, 0.15); }
}
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  [data-words] .w { opacity: 1 !important; }
}

/* images that haven't loaded show a soft block instead of a broken icon */
img.img-missing { visibility: hidden; }

/* ---------------------------------------------------------------- top bar */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 64px;
  display: flex; align-items: center; transition: background 0.3s ease, box-shadow 0.3s ease;
}
.topbar .wrap { display: flex; align-items: center; gap: 16px; width: min(1180px, 100% - 32px); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 64px; height: auto; }
.brand .brand-name { font-family: var(--f-display); font-size: 20px; letter-spacing: 0.02em; direction: ltr; }
.brand .brand-logo { display: inline-flex; }
.topbar .actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.lang-btn {
  background: none; border: 1px solid currentColor; border-radius: 999px; padding: 5px 14px;
  font-size: 14px; line-height: 1.4; opacity: 0.85;
}
.lang-btn:hover { opacity: 1; }
.ace-link { display: inline-flex; align-items: center; color: #000; padding: 4px 2px; transition: opacity 0.2s ease, transform 0.2s ease; }
.ace-link svg { width: 78px; height: auto; }
.ace-link:hover { opacity: 0.7; transform: translateY(-1px); }

/* ---------------------------------------------------------------- buttons */
.pill-neon {
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
  background: #000; border-radius: 999px; padding: 6px 26px 4px; border: 0;
}
.pill-neon span {
  font-family: var(--f-display); text-transform: uppercase; color: transparent;
  -webkit-text-stroke: 1.2px var(--neon); font-size: 34px; line-height: 1.25; letter-spacing: 0.02em;
  animation: neon 3.2s ease-in-out infinite;
}
.pill-neon.sm { padding: 5px 16px 3px; }
.pill-neon.sm span { font-size: 15px; -webkit-text-stroke: 0.7px var(--neon); }
[lang="ar"] .pill-neon span { color: var(--neon); -webkit-text-stroke: 0; font-family: "Reem Kufi", sans-serif; }
.pill-neon:hover span { color: rgba(120, 255, 0, 0.12); }

.btn-lime {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--lime); color: #000; border: 1px solid var(--lime); border-radius: 999px;
  padding: 13px 26px; font-family: var(--f-wide); font-stretch: 125%; font-weight: 800; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.btn-lime:hover { transform: translateY(-1px); box-shadow: 0 0 22px rgba(196, 255, 0, 0.35); }
.btn-lime:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: transparent;
  border: 1px solid #555; color: #fff; border-radius: 999px; padding: 12px 22px; font-size: 14px; text-decoration: none;
}
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }
[lang="ar"] .btn-lime { font-family: "IBM Plex Sans Arabic", sans-serif; letter-spacing: 0; font-size: 15px; }

/* =====================================================================
   HOME: profile / portfolio (light)
   ===================================================================== */
/* Every section fills at least one whole screen, with its content centered (like the Canva pages).
   Longer sections simply grow. :where() keeps this rule weak, so a section's own display wins. */
:where(main > section:not([hidden])) { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }

.theme-home { background: var(--home-bg); color: var(--ink); }
.theme-home .topbar { color: #000; }
.theme-home .topbar.scrolled { background: rgba(246, 246, 246, 0.9); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06); }

.h-hero { position: relative; height: 100vh; height: 100svh; min-height: 420px; overflow: hidden; display: grid; place-items: center; }
.h-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; opacity: 0; transition: opacity 1.2s ease; }
.h-hero > img.img-loaded { opacity: 1; }
.h-hero .title-wrap { position: relative; text-align: center; padding: 0 16px; }
.h-hero h1 {
  margin: 0; font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(44px, 10.4vw, 150px); line-height: 1.05; color: transparent; -webkit-text-stroke: 1.6px #fff;
  /* the outline inverts what's behind it: black over the white backdrop, white over hair and clothes */
  mix-blend-mode: difference;
  animation: heroIn 1.6s var(--ease-out) both; direction: ltr; white-space: nowrap;
}
.h-hero .sub {
  display: block; text-align: right; margin-top: 2px; font-family: var(--f-display); text-transform: uppercase;
  color: var(--purple); font-size: clamp(12px, 1.4vw, 19px); letter-spacing: 0.02em; animation: fadeUp 1s 0.7s both;
  text-shadow: 0 0 6px #fff, 0 0 14px #fff, 0 0 22px #fff; /* stays readable where it crosses the photo */
}
[lang="ar"] .h-hero .sub { font-family: "Reem Kufi", sans-serif; }

.h-section { padding: clamp(60px, 9vw, 120px) 0; }
.brand-saleh { font-family: var(--f-display); font-size: 26px; text-decoration: none; letter-spacing: 0.02em; color: transparent; -webkit-text-stroke: 1.1px currentColor; text-transform: uppercase; }
.theme-home .brand-saleh { -webkit-text-stroke-color: #000; }
[lang="ar"] .brand-saleh { font-family: var(--f-display); }
.hey-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(40px, 6vw, 90px); align-items: center; }
.hey-grid .portrait { margin: 0; justify-self: center; }
.hey { font-size: clamp(54px, 8vw, 96px); line-height: 0.98; margin: 0 0 36px; }
.hey span { display: block; }
.intro { max-width: 620px; font-size: 16px; line-height: 1.55; letter-spacing: 0.02em; }
.intro h2 { font-size: 16px; font-weight: 700; margin: 26px 0 4px; }
.intro h2:first-child { margin-top: 0; }
.intro p { margin: 0; text-align: justify; hyphens: auto; }
[lang="ar"] .intro p { text-align: start; }
.portrait {
  width: min(320px, 78vw); aspect-ratio: 313 / 558; margin: 70px auto 0; border: 4px solid #000; border-radius: 20px;
  overflow: hidden; background: #ddd;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }

/* Zines: page-turning flipbooks (StPageFlip), styled like Heyzine */
/* the portfolio is a short, wide book: it takes only the space it needs (no full-screen height) */
.zine-1 { padding: clamp(24px, 6vw, 80px) 0; min-height: 0; }
.zine-2 { background: #000; padding: clamp(56px, 7vw, 96px) 0 clamp(48px, 6vw, 84px); color: #fff; }
/* portfolio frame: capped so the whole slide fits on the screen (the script sizes the book itself) */
.zine-frame { position: relative; width: min(94%, 1120px, calc((100vh - 200px) * var(--book-ratio, 1.78))); margin-inline: auto; outline: none; }
/* zine frame: the title card is always this wide; the book below it is sized by the script */
.zine-2 .zine-frame { width: min(92%, 820px); }
.book-stage { position: relative; width: 100%; margin-inline: auto; isolation: isolate; transition: transform 0.7s var(--ease-out); }
.book-stage.at-front { transform: translateX(-25%); }
.book-stage.at-back { transform: translateX(25%); }
.book { position: relative; width: 100%; aspect-ratio: var(--book-ratio, 1.78); }
.zine-frame .book, .zine-frame .stf__parent { min-width: 0 !important; }
.zine-frame:not(.fb-ready) .book { background: #e9e9e9; border-radius: 4px; }
.zine-2 .zine-frame:not(.fb-ready) .book { background: #151515; border-radius: 0; }
.zine-2 .zine-frame.fb-spread:not(.fb-ready) .book { background: linear-gradient(90deg, transparent 50%, #151515 50%); }
.zine-1 .book { filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.14)); }
.fb-page { background: #fff; overflow: hidden; }
.fb-page img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; }

/* zine: soft white glow, the cover overlapping the card, and the stack of page edges beside the pages */
.zine-2 .book-stage { margin-top: calc(-1 * clamp(26px, 4.4vw, 38px)); filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.38)); }
.zine-2 .book-stage::before, .zine-2 .book-stage::after { content: ""; position: absolute; top: 0; bottom: 0; z-index: -1; pointer-events: none; }
.zine-2 .book-stage::before { left: 0; right: 50%; box-shadow: var(--edge-l, none); }
.zine-2 .book-stage::after { left: 50%; right: 0; box-shadow: var(--edge-r, none); }
.zine-2 .zine-frame:not(.fb-spread) .book-stage::before { display: none; }
.zine-2 .zine-frame:not(.fb-spread) .book-stage::after { left: 0; }
.zine-2 .zine-frame:not(.fb-ready) .book-stage::before, .zine-2 .zine-frame:not(.fb-ready) .book-stage::after { display: none; }

/* curved page-turn arrows on the bottom corners of the book */
.fb-arrow { position: absolute; bottom: 2.5%; z-index: 5; width: clamp(34px, 5%, 52px); background: none; border: 0; padding: 0; transition: transform 0.2s ease; }
.fb-arrow svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3)); }
.fb-arrow:hover { transform: scale(1.1); }
.fb-arrow[hidden] { display: none; }
.fb-prev { left: 2%; }
.fb-next { right: 2%; }
.zine-2 .fb-arrow { width: clamp(34px, 6.5%, 50px); }
.zine-2 .zine-frame.fb-spread .fb-arrow { width: clamp(34px, 3.6%, 50px); }

/* white toolbar */
.fb-top { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.fb-toolbar { display: inline-flex; align-items: center; gap: 2px; background: #fff; color: #222; border-radius: 10px; padding: 4px 6px; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.14); }
.fb-tool { width: 36px; height: 36px; border: 0; background: none; border-radius: 8px; display: grid; place-items: center; color: inherit; padding: 0; }
.fb-tool svg { width: 22px; height: 22px; }
.fb-tool:hover:not(:disabled) { background: #f0f0f0; }
.fb-tool:disabled { opacity: 0.3; cursor: default; }
.fb-count { font-size: 13px; min-width: 62px; text-align: center; font-variant-numeric: tabular-nums; color: #444; font-family: var(--f-body); }
.fb-progress { height: 4px; background: #dcdcdc; border-radius: 4px; margin: 18px auto 0; width: min(60%, 520px); overflow: hidden; }
.fb-progress span { display: block; height: 100%; width: 0; background: #555; transition: width 0.5s ease; }

/* zine title card with its toolbar on the top corner (like the Heyzine page) */
.fb-card { position: relative; background: #e6e6e6; color: #7f7f7f; border-radius: 8px; padding: clamp(46px, 5.6vw, 60px) clamp(18px, 3.2vw, 27px) clamp(50px, 6.4vw, 64px); font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; }
.fb-card h3 { margin: 0 0 clamp(14px, 2.6vw, 28px); font-weight: 400; font-size: clamp(21px, 3.1vw, 29px); line-height: 1.22; }
.fb-card p { margin: 0; font-size: clamp(14px, 1.75vw, 17px); line-height: 1.72; text-align: justify; }
.fb-card .fb-toolbar { position: absolute; top: -24px; right: -10px; z-index: 2; }
.zine-2 .fb-toolbar { gap: clamp(2px, 0.9vw, 10px); padding: 7px 10px; border-radius: 9px; box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3); }
.zine-2 .fb-tool { width: 44px; height: 44px; color: #111; }
.zine-2 .fb-tool svg { width: 30px; height: 30px; stroke-width: 1.7; }
@media (max-width: 600px) {
  .zine-2 .fb-tool { width: 38px; height: 38px; }
  .zine-2 .fb-tool svg { width: 25px; height: 25px; }
  .fb-card .fb-toolbar { top: -20px; right: -6px; }
}

/* full-screen overlay */
html.fb-lock { overflow: hidden; }
.zine-frame.fb-fullscreen {
  position: fixed; inset: 0; z-index: 200; width: 100vw; max-width: none; margin: 0; padding: 16px;
  background: #0b0b0b; color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: center;
  opacity: 1 !important; transform: none !important;
}
.zine-frame.fb-fullscreen .book-stage { margin-top: 0 !important; }
.fb-fullscreen .fb-card { background: none; padding: 0; position: static; }
.fb-fullscreen .fb-card h3, .fb-fullscreen .fb-card p { display: none; }
.fb-fullscreen .fb-top { margin: 0; }
.fb-fullscreen .fb-toolbar { position: fixed !important; top: 14px; right: 14px; z-index: 6; }
.fb-fullscreen .fb-progress { position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%); margin: 0; }

/* "All pages" and "Zoom" pop-ups */
.fb-overlay { position: fixed; inset: 0; z-index: 300; outline: none; background: rgba(8, 8, 8, 0.97); color: #fff; display: flex; flex-direction: column; animation: fbFade 0.2s ease; }
@keyframes fbFade { from { opacity: 0; } }
.fb-ov-bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px clamp(12px, 3vw, 24px); }
.fb-ov-title { font-family: var(--f-body); font-size: 14px; color: #cfcfcf; letter-spacing: 0.02em; }
.fb-ov-close { flex: none; width: 44px; height: 44px; border: 0; border-radius: 9px; background: #fff; color: #111; display: grid; place-items: center; padding: 0; }
.fb-ov-close svg { width: 24px; height: 24px; }
.fb-thumbs {
  flex: 1; overflow: auto; overscroll-behavior: contain; display: grid; align-content: start;
  grid-template-columns: repeat(auto-fill, minmax(clamp(92px, 13vw, 132px), 1fr)); gap: clamp(16px, 2.2vw, 26px) clamp(12px, 2vw, 22px);
  padding: 10px max(clamp(14px, 4vw, 40px), (100% - 1180px) / 2) 48px;
}
.fb-thumb { background: none; border: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; color: #9a9a9a; font: 12px/1 var(--f-body); }
.fb-thumb img { display: block; width: 100%; aspect-ratio: var(--page-ratio); object-fit: cover; background: #1c1c1c; border-radius: 2px; outline: 2px solid transparent; outline-offset: 3px; transition: transform 0.18s ease, outline-color 0.18s ease; }
.fb-thumb:hover img { transform: translateY(-3px); }
.fb-thumb.is-current { color: #fff; }
.fb-thumb.is-current img { outline-color: #fff; }
.fb-thumb:focus-visible { outline: none; }
.fb-thumb:focus-visible img { outline-color: #8ab4ff; }
.fb-zoom-scroll { flex: 1; overflow: auto; overscroll-behavior: contain; display: flex; padding: 12px; cursor: zoom-in; }
.fb-zoom-view.is-zoomed .fb-zoom-scroll { cursor: grab; }
.fb-zoom-view.is-dragging .fb-zoom-scroll { cursor: grabbing; }
.fb-zoom-spread { margin: auto; flex: none; display: flex; background: #fff; box-shadow: 0 0 28px rgba(255, 255, 255, 0.14); }
.fb-zoom-spread img { display: block; flex: 1 1 0; min-width: 0; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }

/* Design theme: three columns on laptops (middle one lower), one column on phones */
.wrap-wide { width: min(1580px, 100% - 64px); }
.design-title { text-align: center; font-size: clamp(40px, 5.4vw, 84px); margin: 0 0 clamp(56px, 9vw, 160px); line-height: 1.05; }
.concepts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4.6vw, 90px); align-items: start; }
.concept:nth-child(2) { margin-top: clamp(44px, 4.7vw, 88px); }
.concept .img { border-radius: clamp(22px, 2.4vw, 44px); overflow: hidden; aspect-ratio: 465 / 343; background: #e7e7e7; }
.concept .img img { width: 100%; height: 100%; object-fit: cover; }
.concept h3 { margin: clamp(16px, 1.6vw, 28px) 0 8px; font-size: clamp(18px, 1.75vw, 33px); line-height: 1.1; }
.concept p { margin: 0; font-weight: 700; font-size: clamp(14px, 1.05vw, 19.5px); line-height: 1.45; }

/* Vision: the text slightly overlaps the photo */
.wrap-vision { width: min(1240px, 100% - 48px); }
.vision-grid { display: grid; grid-template-columns: clamp(240px, 26vw, 492px) minmax(0, 1fr); align-items: center; }
.vision-img { aspect-ratio: 492 / 852; border-radius: clamp(16px, 1.5vw, 26px); overflow: hidden; background: #ddd; width: 100%; }
.vision-img img { width: 100%; height: 100%; object-fit: cover; }
.vision-text { position: relative; z-index: 1; margin-inline-start: clamp(-34px, -1.5vw, -14px); max-width: 760px; }
.vision-text h2 { font-size: clamp(17px, 1.45vw, 27px); font-weight: 700; margin: 0 0 1.2em; }
.vision-text p { margin: 0 0 1.35em; font-size: clamp(16px, 1.35vw, 25px); line-height: 1.33; letter-spacing: 0.045em; text-align: justify; }
.vision-text p:last-child { margin-bottom: 0; }
[lang="ar"] .vision-text p { text-align: start; letter-spacing: 0; }

/* Work with me */
.work { padding-bottom: 50px; }
.work h2 { font-size: clamp(42px, 6.6vw, 68px); line-height: 1.02; margin: 0; }
.work h2 span { display: block; }
.work .cta { text-align: center; margin: 70px 0 90px; }
.contact-row { display: flex; justify-content: center; gap: clamp(28px, 7vw, 90px); flex-wrap: wrap; }
.contact-row a { display: grid; justify-items: center; gap: 6px; text-decoration: none; font-weight: 700; font-size: 14px; }
.contact-row svg { width: 20px; height: 20px; color: var(--purple); }

footer.site-foot { padding: 26px 0 34px; font-size: 13px; }
.theme-home footer.site-foot { border-top: 1px solid #e3e3e3; color: #666; }
footer.site-foot .wrap { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
footer.site-foot a { text-decoration: none; }

/* Floating WhatsApp */
.wa-fab { position: fixed; bottom: 18px; inset-inline-end: 18px; z-index: 40; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); }
.wa-fab svg { width: 26px; height: 26px; }
.theme-home .wa-fab { background: #000; color: var(--neon); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.35); }
.theme-book .wa-fab { background: var(--lime); color: #000; }
.ig-fab { bottom: 82px; } /* Instagram bubble, stacked above WhatsApp (booking page only) */

/* =====================================================================
   BOOKING PAGE (dark)
   ===================================================================== */
.theme-book { background: var(--dark); color: #fff; font-family: var(--f-spartan); }
[lang="ar"].theme-book, [lang="ar"] .theme-book { font-family: "IBM Plex Sans Arabic", sans-serif; }
.theme-book .topbar { color: #fff; }
.theme-book .topbar.scrolled { background: rgba(0, 0, 0, 0.82); backdrop-filter: blur(10px); box-shadow: 0 1px 0 #1c1c1c; }
.theme-book .back-link { font-size: 14px; text-decoration: none; opacity: 0.85; letter-spacing: 0.06em; text-transform: uppercase; }
.theme-book .back-link:hover { color: var(--lime); opacity: 1; }

/* the three-shape logo stays fixed behind the page, like the Canva site */
.watermark { position: fixed; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 0; }
.watermark svg { width: min(64vw, 640px); height: auto; color: #3a3a3a; }
.theme-book main { position: relative; z-index: 1; }

.b-section { position: relative; padding: clamp(80px, 11vw, 140px) 0; }
.b-title { font-family: var(--f-spartan); font-weight: 300; text-transform: uppercase; font-size: clamp(40px, 7.4vw, 82px); line-height: 1; text-align: center; margin: 0 0 clamp(36px, 6vw, 70px); letter-spacing: 0.01em; }
[lang="ar"] .b-title { font-family: "IBM Plex Sans Arabic", sans-serif; font-weight: 300; }
.lime { color: var(--lime); }

.b-hero { min-height: 100svh; display: grid; place-items: center; overflow: hidden; padding: 0; }
.b-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; filter: grayscale(1) brightness(0.55); transition: opacity 1.4s ease; }
.b-hero > img.img-loaded { opacity: 0.22; }
.b-hero .center { position: relative; text-align: center; }
.b-hero .kicker { font-family: var(--f-wide); font-stretch: 125%; font-weight: 800; color: var(--lime); font-size: 14px; letter-spacing: 0.3em; text-transform: uppercase; text-decoration: none; animation: limeGlow 3s ease-in-out infinite, fadeUp 1s 0.3s both; display: inline-block; }
.b-hero .scroll-cue { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: #8a8a8a; display: grid; justify-items: center; gap: 6px; text-decoration: none; }
.b-hero .scroll-cue::after { content: ""; width: 1px; height: 34px; background: linear-gradient(#8a8a8a, transparent); animation: drift 1.6s ease-in-out infinite alternate; }

.quote { max-width: 860px; margin-inline: auto; }
.quote blockquote { margin: 0; font-size: clamp(22px, 3.2vw, 34px); line-height: 1.35; color: var(--lime); }
.quote cite { display: block; text-align: end; margin-top: 22px; font-style: normal; letter-spacing: 0.13em; text-transform: uppercase; font-size: 15px; }

.photo-band { position: relative; overflow: hidden; }
.photo-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); opacity: 0.32; }
.photo-band .wrap { position: relative; }
.vision-b { max-width: 640px; margin-inline: auto; font-size: clamp(17px, 1.9vw, 20px); line-height: 1.45; }
.vision-b h2 { font-size: inherit; margin: 0 0 6px; }

/* Policy */
.policy-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(26px, 5vw, 60px); align-items: center; }
.policy-img { background: #efefef; border-radius: 26px; overflow: hidden; }
.policy-img img { width: 100%; height: auto; }
.policy h3 { font-size: 24px; margin: 0 0 8px; }
.policy p { margin: 0 0 26px; font-size: 16.5px; line-height: 1.5; }
.terms { margin-top: 36px; font-weight: 700; font-style: italic; color: var(--lime); font-size: 15.5px; }

/* Services */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 4vw, 44px); }
.svc-card { text-align: center; display: grid; align-content: start; justify-items: center; gap: 4px; padding: 10px 6px; }
.svc-card h3 { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.12; margin: 0 0 14px; min-height: 2.24em; display: grid; align-items: end; }
.svc-card .line { color: var(--lime); font-size: 16px; line-height: 1.45; }
.svc-card .dur { color: #d9d9d9; font-size: 15px; margin-top: 2px; }
.select-btn {
  margin-top: 18px; background: none; border: 0; padding: 6px 10px; color: var(--lime-soft);
  font-family: var(--f-wide); font-stretch: 125%; font-weight: 800; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase;
  animation: limeGlow 3.2s ease-in-out infinite;
}
.select-btn:hover, .select-btn.is-sel { color: #000; background: var(--lime); border-radius: 999px; text-shadow: none; animation: none; }
[lang="ar"] .select-btn { font-family: "IBM Plex Sans Arabic", sans-serif; font-weight: 700; font-size: 16px; }
.home-note { text-align: center; color: var(--lime); font-weight: 700; font-style: italic; margin: 44px auto 0; max-width: 760px; font-size: 16px; }
.home-note button { display: inline-block; margin-top: 10px; background: none; border: 0; color: #fff; text-decoration: underline; font-style: normal; font-weight: 500; }

/* "I was created to create" */
/* "I was created to create": one tight lockup like the Canva page. Everything is sized in em,
   so the whole block scales with the screen (about 78% of the width on laptops, 92% on phones). */
.created { overflow: hidden; }
.cr-lockup {
  width: fit-content; margin: 0 auto; font-family: var(--f-wide); font-stretch: 125%; font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.08em; line-height: 1; font-size: clamp(20px, 6.8vw, 124px); color: #fff;
}
.cr-line { margin: 0; display: flex; align-items: center; }
.cr-1 { justify-content: center; font-size: 1.1em; }
.cr-2 { justify-content: flex-end; gap: 0.24em; margin-top: 0.42em; }
.cr-3 { margin-top: 0.3em; }
.cr-word { white-space: nowrap; font-size: 1.06em; }
.cr-3 .cr-word { position: relative; margin-inline-start: -0.16em; } /* the words run a little over the photo */
.cr-glow { filter: drop-shadow(0 0 3px rgba(196, 255, 0, 0.7)) drop-shadow(0 0 12px rgba(196, 255, 0, 0.35)); }
.cr-photo { position: relative; display: block; flex: none; border-radius: 0.2em; overflow: hidden; background: #111; }
/* the same crops as the Canva page (measured there): each strip shows a zoomed-in part of its photo */
.cr-photo img { position: absolute; display: block; max-width: none; height: auto; }
.cr-photo-a { width: 3.55em; height: 1.234em; }                 /* shows 20-100% across, 29-71% down */
.cr-photo-a img { width: 125%; left: -25%; top: -69.95%; }
.cr-photo-b { width: 2.87em; height: 1.178em; }                 /* shows 5-89% across, 32-83% down */
.cr-photo-b img { width: 119.76%; left: -6.23%; top: -62.4%; }
[lang="ar"] .cr-lockup { font-family: "Reem Kufi", sans-serif; letter-spacing: 0; }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.review { border: 1px solid var(--dark-line); border-radius: 18px; padding: 22px; background: rgba(12, 12, 12, 0.88); }
.review .stars { color: var(--lime); letter-spacing: 3px; font-size: 13px; margin-bottom: 10px; }
.review p { margin: 0 0 12px; font-size: 16px; line-height: 1.45; }
.review .who { color: var(--dark-muted); font-size: 13px; direction: ltr; text-align: end; }
.reviews-sub { text-align: center; color: var(--dark-muted); margin: 0 0 clamp(28px, 5vw, 40px); font-size: 15px; }

/* Work with me (booking page) */
/* "Work with me": title at the top, contacts at the bottom; the chair flipped, zoomed in and faded on the right */
.work-b { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; }
.work-b .wrap { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.work-b .chair {
  position: absolute; right: -6vw; top: 8%; width: min(68vw, 1180px); transform: scaleX(-1);
  opacity: 0.26; filter: grayscale(1) blur(2.5px); pointer-events: none;
}
.contact-list { list-style: none; padding: 0; margin: 50px 0 0; display: grid; gap: 10px; position: relative; }
.contact-list a { display: inline-flex; align-items: center; gap: 12px; color: var(--lime); text-decoration: none; font-weight: 700; font-size: 16px; }
.contact-list svg { width: 18px; height: 18px; color: #fff; }
.theme-book footer.site-foot { position: relative; z-index: 1; border-top: 1px solid #1c1c1c; color: #8a8a8a; }

/* =====================================================================
   BOOKING FLOW (inside the dark page)
   ===================================================================== */
.flow { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 34px; align-items: start; }
.b-title.tight { margin-bottom: 14px; }
.flow-sub { text-align: center; color: var(--dark-muted); margin: 0 auto clamp(30px, 5vw, 46px); max-width: 560px; font-size: 16px; }
.block { background: rgba(10, 10, 10, 0.9); border: 1px solid var(--dark-line); border-radius: 22px; padding: clamp(18px, 3vw, 28px); margin-bottom: 18px; }
.block-h { display: flex; align-items: baseline; gap: 12px; margin: 0 0 16px; font-size: 19px; font-weight: 600; }
.block-h .num { font-family: var(--f-wide); font-stretch: 125%; font-weight: 800; color: var(--lime); font-size: 13px; letter-spacing: 0.08em; }
.block-h .hint { margin-inline-start: auto; font-size: 13px; font-weight: 400; color: var(--dark-muted); }
.muted-d { color: var(--dark-muted); font-size: 15px; margin: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid #3a3a3a; background: #0b0b0b; border-radius: 999px; padding: 9px 16px; font-size: 15px; line-height: 1.2; color: #fff; text-align: start; }
.chip small { display: block; color: var(--dark-muted); font-size: 12px; margin-top: 2px; }
.chip:hover { border-color: var(--lime); }
.chip.sel { background: var(--lime); border-color: var(--lime); color: #000; }
.chip.sel small { color: #2d3a00; }
.chip .tag { font-size: 11px; border: 1px solid currentColor; border-radius: 999px; padding: 0 7px; margin-inline-start: 6px; opacity: 0.8; }
/* TEMPORARY TRIAL: Saleh's Rekaz store inside the "Book now" section */
.rk-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.rk-bar .chips { flex: 1 1 auto; min-width: 0; }
.rk-back::before { content: "← "; }
[dir="rtl"] .rk-back::before { content: "→ "; }
.rk-open { color: var(--lime); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; margin-inline-start: auto; }
.rk-open:hover { text-decoration: underline; }
.rk-frame { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid #262626; background: #0b0b0b; }
.rk-frame iframe { display: block; width: 100%; height: calc(100svh - 190px); min-height: 520px; max-height: 1000px; border: 0; transition: opacity 0.25s ease; }
.rk-frame.loading iframe { opacity: 0; }
.rk-frame.loading::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border: 3px solid #333; border-top-color: var(--lime); border-radius: 50%; animation: rkSpin 0.8s linear infinite;
}
@keyframes rkSpin { to { transform: rotate(360deg); } }
.rk-stuck {
  position: absolute; inset: 0 0 auto 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px 12px; padding: 12px 44px; background: rgba(11, 11, 11, 0.96); border-bottom: 1px solid #333; color: var(--dark-muted);
  font-size: 14px; animation: fadeUp 0.25s ease both;
}
.rk-stuck .chip { padding: 7px 14px; font-size: 14px; }
.rk-stuck .rk-open { margin: 0; }
.rk-stuck-x {
  position: absolute; top: 50%; inset-inline-end: 8px; transform: translateY(-50%); width: 32px; height: 32px; border: 0;
  border-radius: 50%; background: none; color: #aaa; font-size: 22px; line-height: 1;
}
.rk-stuck-x:hover { color: #fff; background: #1c1c1c; }
.rk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.rk-card {
  display: flex; flex-direction: column; gap: 4px; padding: 12px 12px 14px; background: #0b0b0b; border: 1px solid #262626;
  border-radius: 18px; color: #fff; text-align: start; transition: border-color 0.15s ease, transform 0.15s ease;
}
.rk-card:hover { border-color: var(--lime); transform: translateY(-2px); }
a.rk-card { text-decoration: none; }
.rk-img { display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #000; margin-bottom: 8px; }
.rk-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.rk-img img.fit-contain { object-fit: contain; }
.rk-name { font-weight: 700; font-size: 16px; line-height: 1.25; }
.rk-price { color: var(--dark-muted); font-size: 14px; margin-bottom: 12px; }
.rk-btn {
  margin-top: auto; text-align: center; background: var(--lime); color: #000; border-radius: 999px; padding: 10px 12px;
  font-family: var(--f-wide); font-stretch: 125%; font-weight: 800; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
}
[lang="ar"] .rk-btn { font-family: "IBM Plex Sans Arabic", sans-serif; letter-spacing: 0; font-size: 15px; font-weight: 700; padding: 8px 12px; }
@media (max-width: 760px) {
  .rk-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .rk-card { padding: 10px 10px 12px; border-radius: 16px; }
  .rk-name { font-size: 15px; }
  /* the item buttons stay on one line and slide sideways */
  .rk-bar .chips {
    flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    margin-inline: -20px; padding-inline: 20px; /* slides right to the screen edges */
  }
  .rk-bar .chips::-webkit-scrollbar { display: none; }
  .rk-bar .chip { flex: none; white-space: nowrap; }
}

.when { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head strong { font-size: 17px; font-weight: 600; }
.cal-nav { width: 34px; height: 34px; border-radius: 50%; border: 1px solid #3a3a3a; background: none; color: #fff; font-size: 18px; line-height: 1; display: grid; place-items: center; }
.cal-nav:hover:not(:disabled) { border-color: var(--lime); color: var(--lime); }
.cal-nav:disabled { opacity: 0.25; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 2px; text-align: center; }
.cal-wd { font-size: 12px; color: var(--dark-muted); padding: 6px 0; }
.cal-cell { display: grid; place-items: center; height: 42px; }
.cal-day { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; border: 1px solid transparent; background: none; padding: 0; color: #fff; }
.cal-day.off { color: #474747; }
.cal-day.open { font-weight: 700; }
.cal-day.open:hover { border-color: var(--lime); }
.cal-day.today:not(.sel) { box-shadow: inset 0 0 0 1px #5a5a5a; }
.cal-day.sel { background: var(--lime); color: #000; }
.slot-day { margin: 0 0 10px; font-weight: 600; font-size: 16px; }
.slot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.slot { padding: 11px 4px; border: 1px solid #3a3a3a; border-radius: 10px; background: #0b0b0b; font-size: 15px; text-align: center; color: #fff; }
.slot:hover { border-color: var(--lime); }
.slot.sel { background: var(--lime); border-color: var(--lime); color: #000; font-weight: 700; }

.addons { display: grid; gap: 12px; }
.addon { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; align-items: center; border: 1px solid #2f2f2f; border-radius: 16px; padding: 10px; background: #0b0b0b; }
.addon.on { border-color: var(--lime); }
.addon .pic { width: 76px; height: 76px; border-radius: 12px; overflow: hidden; background: #1a1a1a; }
.addon .pic img { width: 100%; height: 100%; object-fit: cover; }
.addon h4 { margin: 0; font-size: 16px; font-weight: 600; }
.addon p { margin: 2px 0 0; font-size: 13.5px; color: var(--dark-muted); }
.addon .price { color: var(--lime); font-weight: 600; font-size: 15px; margin-top: 4px; }
.addon select { margin-top: 6px; background: #000; border: 1px solid #3a3a3a; border-radius: 8px; padding: 5px 8px; color: #fff; font-size: 14px; }
.qty { display: inline-flex; align-items: center; border: 1px solid #3a3a3a; border-radius: 999px; overflow: hidden; }
.qty button { width: 34px; height: 34px; background: none; border: 0; color: #fff; font-size: 18px; }
.qty button:hover:not(:disabled) { color: var(--lime); }
.qty button:disabled { opacity: 0.3; cursor: default; }
.qty output { min-width: 26px; text-align: center; font-weight: 700; }

.form { display: grid; gap: 14px; }
.field label { display: block; font-size: 14px; color: #cfcfcf; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid #3a3a3a; border-radius: 12px; background: #050505; color: #fff;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgba(196, 255, 0, 0.15); }
.field input::placeholder, .field textarea::placeholder { color: #666; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: #e8e8e8; }
.check input { margin-top: 5px; accent-color: var(--lime); width: 16px; height: 16px; flex: none; }
.error { color: #ff7a6b; font-size: 14px; min-height: 1em; }

.summary { position: sticky; top: 84px; }
.summary .block { margin: 0; }
.summary dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; font-size: 15px; }
.summary dt { color: var(--dark-muted); }
.summary dd { margin: 0; text-align: end; white-space: nowrap; }
.summary .total { border-top: 1px solid #2a2a2a; margin-top: 14px; padding-top: 14px; display: flex; justify-content: space-between; font-weight: 700; font-size: 18px; }
.summary .total span:last-child { color: var(--lime); }
.summary .total.total-all span:last-child { color: #fff; }
.summary .total + .total { border-top: 0; margin-top: 8px; padding-top: 0; }
.summary .note { color: var(--dark-muted); font-size: 13px; margin: 8px 0 0; }

.pay-demo { border: 1px dashed #4a4a4a; border-radius: 16px; padding: 18px; }
.pay-demo strong { color: var(--lime); }
.mysr-form { max-width: 460px; background: #fff; color: #000; border-radius: 16px; padding: 14px; }

.result { text-align: center; padding: 30px 10px; max-width: 560px; margin: 0 auto; }
.result h2 { font-family: var(--f-spartan); font-weight: 300; text-transform: uppercase; font-size: clamp(30px, 5vw, 46px); margin: 0 0 14px; line-height: 1.05; }
.result .detail { color: var(--lime); font-size: 18px; margin: 0 0 8px; }
.result .actions { display: flex; gap: 12px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.spinner { width: 30px; height: 30px; border: 3px solid #333; border-top-color: var(--lime); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }

.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: #111; color: #fff; padding: 11px 20px; border-radius: 12px; z-index: 100; font-size: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); animation: fadeUp 0.25s ease both; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 960px) {
  .flow { grid-template-columns: 1fr; }
  .summary { position: static; }
  .when { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .concepts { grid-template-columns: 1fr; justify-items: center; gap: 56px; }
  .concept { width: min(460px, 100%); }
  .concept:nth-child(2) { margin-top: 0; }
  .hey-grid { grid-template-columns: 1fr; }
  .hey-grid .portrait { margin-top: 50px; }
}
@media (max-width: 760px) {
  .vision-grid, .policy-grid { grid-template-columns: 1fr; }
  .vision-img { max-width: 300px; margin-inline: auto; }
  .vision-text { margin: 32px 0 0; }
  .svc-grid, .reviews { grid-template-columns: 1fr; }
  .svc-card h3 { min-height: 0; }
  .two { grid-template-columns: 1fr; }
  .brand .brand-name { display: none; }
  .h-hero h1 { -webkit-text-stroke-width: 1.2px; }
  .work-b .chair { width: 85vw; right: -12vw; top: 40%; opacity: 0.32; }
  .cr-lockup { font-size: 8.1vw; }
  .created { min-height: 0; padding: 56px 0; } /* on phones: no full screen of black around it */
}
@media (max-width: 420px) {
  .slot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .addon { grid-template-columns: 60px minmax(0, 1fr); }
  .addon .pic { width: 60px; height: 60px; }
  .addon .qty { grid-column: 1 / -1; justify-self: end; }
}
