:root {
  --bg: #ffffff;
  --bg-2: #faf7ff;
  --lavender: #ab8be6;
  --violet: #7952c0;
  --mist: #ede3ff;
  --ink: #111014;
  --muted: #4b4556;
  --card: #ffffff;
  --pink: #ff7eb6;
  --yellow: #ffd23f;
  --line: #d9cdf5;
  --display: "Fraunces", Georgia, serif;
  --body: "Readex Pro", system-ui, sans-serif;
  --r: 22px;
}
[lang="ar"] { --display: "Readex Pro", system-ui, sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
.vh, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; top: 8px; inset-inline-start: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 10; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.1; font-variation-settings: "SOFT" 100; margin: 0 0 .5em; }
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3 { font-weight: 700; line-height: 1.35; }
h1 { font-size: clamp(2.4rem, 7vw, 4.8rem); }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); }
h3 { font-size: 1.3rem; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px clamp(16px, 4vw, 48px); flex-wrap: wrap; }
.logo { font-family: "Fraunces", Georgia, serif; font-weight: 900; font-size: 1.5rem; text-decoration: none; font-variation-settings: "SOFT" 100; }
.top nav { display: flex; gap: 18px; flex-wrap: wrap; }
.top nav a { text-decoration: none; font-weight: 500; }
.top nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.lang { background: var(--ink); color: #fff !important; padding: 4px 12px; border-radius: 999px; }

main > section, .project, .post, .blog { padding: clamp(40px, 7vw, 90px) clamp(16px, 4vw, 48px); max-width: 1200px; margin: 0 auto; }

.hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(24px, 5vw, 64px); align-items: center; padding-top: 24px !important; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 36ch; }
.who { font-weight: 600; margin-top: 1.5em; }



.btn { display: inline-block; background: var(--ink); color: #fff; text-decoration: none; padding: 12px 22px; border-radius: 999px; font-weight: 600; transition: transform .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn.big { font-size: clamp(1rem, 3.5vw, 1.4rem); padding: 16px 28px; word-break: break-all; }

.services ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.services li { background: var(--card); border: 1px solid var(--line); padding: 10px 18px; border-radius: 999px; font-weight: 500; }
.services li:nth-child(3n+1) { background: #fff4c7; }
.services li:nth-child(3n+2) { background: #ffe0ee; }

.grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.grid a { display: block; text-decoration: none; background: var(--card); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); height: 100%; transition: transform .2s ease, box-shadow .2s ease; }
.grid a:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -25px rgba(80, 40, 160, .5); }
.grid img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.grid h3 { margin: 16px 18px 4px; }
.grid p { margin: 0 18px 18px; color: var(--muted); font-size: .95rem; }

.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.about img { border-radius: var(--r); aspect-ratio: 4/5; object-fit: cover; width: 100%; }

.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: .6em 0 0; color: var(--muted); }

.nl { background: var(--ink); color: #fff; border-radius: 28px; text-align: center; margin: 0 clamp(16px, 4vw, 48px) !important; max-width: 1104px !important; }
.nl p { color: #ddd5ee; max-width: 52ch; margin: 0 auto 1.2em; }
.nl form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.nl input { padding: 12px 18px; border-radius: 999px; border: 0; min-width: min(100%, 280px); font: inherit; }
.nl button { padding: 12px 22px; border-radius: 999px; border: 0; background: var(--yellow); font: inherit; font-weight: 600; cursor: pointer; }
@media (min-width: 1200px) { .nl { margin: 0 auto !important; } }



.back { display: inline-block; margin-bottom: 1em; text-decoration: none; font-weight: 600; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 18px; margin-top: 2em; }
.gallery figure { margin: 0; background: var(--card); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; margin-top: 2em; }
.video { position: relative; aspect-ratio: 9/16; max-height: 640px; background: #000; border-radius: var(--r); overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cta-line { margin-top: 2.5em; text-align: center; }

.posts { list-style: none; padding: 0; display: grid; gap: 16px; }
.posts a { display: block; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; }
.posts p { margin: 0; color: var(--muted); }
.post { max-width: 760px !important; }
.post .meta { color: var(--muted); }

.foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; padding: 48px clamp(16px, 4vw, 48px) 32px; border-top: 1px solid var(--line); max-width: 1200px; margin: 40px auto 0; }
.foot p { margin: 0 0 6px; }
.foot-brand { font-family: "Fraunces", Georgia, serif; font-weight: 900; font-size: 1.3rem; }
.foot-h { font-weight: 600; }
.social { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.build { grid-column: 1 / -1; color: var(--muted); font-size: .85rem; }

@media (max-width: 760px) {
  .hero, .about { grid-template-columns: 1fr; }
  .arch { max-width: 360px; margin: 0 auto; }
  body { font-size: 16px; }
}

/* ---- Arwa's signature elements ---- */
.hero-wrap { background: radial-gradient(60% 70% at 70% 60%, #d9c6ff 0%, transparent 70%), linear-gradient(180deg, var(--mist) 0%, #f4eeff 100%); overflow: hidden; }
.top { background: transparent; }
.marquee { height: clamp(90px, 13vw, 170px); margin-top: 8px; pointer-events: none; }
.marquee svg { width: 100%; height: 100%; overflow: visible; }
.marquee text { font-family: "Fraunces", Georgia, serif; font-weight: 800; font-size: 56px; fill: var(--ink); font-variation-settings: "SOFT" 100; }
[lang="ar"] .marquee text { font-family: var(--body); font-weight: 700; }

.arch { margin: 0; position: relative; }
.arch img { border-radius: 999px 999px 0 0; aspect-ratio: 2/3; object-fit: cover; width: 100%; max-width: 420px; margin-inline: auto; }
.hero .arch img { max-width: 360px; }
.arch-sm img { max-width: 340px; position: relative; }
.dot { position: absolute; border-radius: 50%; background: var(--lavender); z-index: 0; }
.arch-sm .dot { width: 46%; aspect-ratio: 1; inset-inline-start: -4%; bottom: 8%; }
.arch-sm img, .circle-photo img { position: relative; z-index: 1; }

.circled { position: relative; display: inline-block; white-space: nowrap; }
.scribble { position: absolute; inset: -18% -10% -22% -8%; width: 118%; height: 140%; overflow: visible; pointer-events: none; }
.scribble path { fill: none; stroke: var(--ink); stroke-width: 1.7; vector-effect: non-scaling-stroke; stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.2s .4s ease forwards; }
.hl { color: var(--lavender); position: relative; display: inline-block; }
.underline { position: absolute; left: 0; right: 0; bottom: -0.12em; width: 100%; height: .3em; overflow: visible; }
.underline path { fill: none; stroke: var(--lavender); stroke-width: 2.6; vector-effect: non-scaling-stroke; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .scribble path { animation: none; stroke-dashoffset: 0; } html { scroll-behavior: auto; } }

.intro { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.intro h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
.intro p { max-width: 58ch; font-size: 1.1rem; }

.grid a { background: var(--mist); }
.grid img { background: var(--mist); }

.contact { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.contact p { max-width: 55ch; }
.circle-photo { margin: 0; position: relative; max-width: 320px; margin-inline: auto; width: 100%; }
.circle-photo img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; object-position: center 30%; width: 100%; }
.circle-photo .dot { width: 70%; aspect-ratio: 1; inset-inline-end: -10%; top: -8%; }

@media (max-width: 760px) {
  .intro, .contact { grid-template-columns: 1fr; }
  .arch-sm img { max-width: 260px; }
  .circle-photo { max-width: 240px; }
}
.hero-wrap > .hero { padding: 8px clamp(16px, 4vw, 48px) clamp(40px, 6vw, 72px); max-width: 1200px; margin: 0 auto; padding-top: 0 !important; }
.hero-wrap > .marquee { margin-bottom: -10px; }
.marquee, .marquee text { direction: ltr; }
@media (max-width: 760px) { .hero .arch img { max-width: 260px; } }
