*,*::before,*::after{box-sizing:border-box}
/* Layout: sticky bar, one dark walnut hero with the gold logo, light stone pages below. Lotus-petal corners on photo frames echo the logo. */
:root {
  --bg: #F3F0EC; --surface: #FFFFFF; --fg: #1F1713; --muted: #675A52; --line: #E1D8CF;
  --gold: #9A7424; --gold-bright: #D4AF5F; --on-gold: #1B120C;
  --walnut: #22170F; --walnut-2: #2E2016; --walnut-fg: #F3EAE2; --walnut-muted: #BCAB9E; --walnut-line: #48362A;
  --bar: #F3F0EC;
  --f-hero: "Aref Ruqaa", "Amiri", serif; --f-head: "Amiri", "Noto Naskh Arabic", serif;
  --f-body: "IBM Plex Sans Arabic", system-ui, sans-serif; --f-latin: "Cormorant Garamond", Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #181210; --surface: #231A15; --fg: #F1E8E1; --muted: #B4A398; --line: #3A2C23; --gold: #D4AF5F; --bar: #181210; color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #181210; --surface: #231A15; --fg: #F1E8E1; --muted: #B4A398; --line: #3A2C23; --gold: #D4AF5F; --bar: #181210; color-scheme: dark; }
* { box-sizing: border-box; }
html { margin:0; scroll-behavior: smooth; }
body { margin:0; background: var(--bg); color: var(--fg); font-family: var(--f-body); font-size: 16px; line-height: 1.85;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 0; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--bar); z-index: 60; }
h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.35; margin: 0; text-wrap: balance; font-weight: 700; }
p { margin: 0; } ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
.wrap { max-width: 1120px; margin-inline: auto; }
.full { margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding-inline: max(16px, env(safe-area-inset-left, 0px)); }
.eyebrow { font-size: 13px; letter-spacing: .08em; color: var(--gold); font-weight: 500; margin-bottom: 8px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px; font: 500 15px var(--f-body); text-decoration: none; border: 1px solid var(--gold); color: var(--gold); background: transparent; cursor: pointer; border-radius: 2px; }
.btn.solid { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--on-gold); }
.btn:hover { filter: brightness(1.08); }
.btn.wa { background: #1F8F4E; border-color: #1F8F4E; color: #fff; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }

/* header */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--bar); border-bottom: 1px solid var(--line); }
.bar .in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); }
.brand svg { width: 38px; height: 38px; color: var(--gold); flex: none; }
.brand b { font-family: var(--f-latin); font-size: 25px; letter-spacing: .26em; font-weight: 600; direction: ltr; color: var(--gold); line-height: 1; }
.nav ul { display: flex; gap: 6px; }
.nav a { display: block; padding: 8px 14px; color: var(--fg); text-decoration: none; font-size: 15px; font-weight: 500; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.on { color: var(--gold); border-bottom-color: var(--gold); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--fg); width: 44px; height: 44px; cursor: pointer; border-radius: 2px; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 20px; height: 2px; background: currentColor; margin: auto; position: relative; content: ""; }
.menu-btn span::before { position: absolute; top: -6px; } .menu-btn span::after { position: absolute; top: 6px; }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { position: absolute; inset: 100% 0 auto 0; background: var(--bar); border-bottom: 1px solid var(--line); display: none; padding: 8px max(16px, env(safe-area-inset-left, 0px)) 16px; }
  .nav.open { display: block; } .nav ul { flex-direction: column; gap: 0; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
}

/* hero */
.hero { background: radial-gradient(120% 80% at 80% 20%, #3A2819 0%, var(--walnut) 60%); color: var(--walnut-fg); position: relative; overflow: hidden; }
.hero::before, .band::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .6;
  background: repeating-linear-gradient(92deg, transparent 0 18px, rgba(255,255,255,.022) 18px 19px, transparent 19px 47px, rgba(0,0,0,.16) 47px 49px, transparent 49px 90px); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(20px, 5vw, 64px); align-items: center; padding-block: clamp(40px, 7vw, 92px); }
.hero h1 { font-family: var(--f-hero); font-size: clamp(36px, 6.4vw, 70px); line-height: 1.3; font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--gold-bright); }
.hero .lead { margin-top: 18px; color: var(--walnut-muted); font-size: 17px; max-width: 32em; }
.hero .row { margin-top: 28px; }
.hero .btn { color: var(--gold-bright); border-color: var(--gold-bright); } .hero .btn.solid { color: var(--on-gold); }
.hero .logo { width: 100%; max-width: 400px; height: auto; margin-inline: auto; display: block; filter: drop-shadow(0 18px 40px rgba(0,0,0,.45)); }
@media (max-width: 800px) { .hero .wrap { grid-template-columns: 1fr; } .hero .logo { max-width: 240px; order: -1; } }

/* pages */
.page { display: none; } .page.show { display: block; }
.pg-head { padding-block: clamp(36px, 6vw, 72px) clamp(20px, 3vw, 32px); max-width: 46em; }
.pg-head h1 { font-size: clamp(32px, 5vw, 52px); }
.pg-head p { color: var(--muted); margin-top: 14px; font-size: 17px; }
.sec { padding-block: clamp(36px, 6vw, 72px); border-top: 1px solid var(--line); }
.sec > h2, .sec-h h2 { font-size: clamp(26px, 3.6vw, 38px); }
.sec-h { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.sec-h p { color: var(--muted); max-width: 30em; font-size: 15px; }
.lotus-div { display: flex; align-items: center; gap: 14px; color: var(--gold); margin-block: 0; }
.lotus-div::before, .lotus-div::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.lotus-div svg { width: 30px; height: 30px; }

/* petal photo frame */
.ph { position: relative; overflow: hidden; border-radius: 0 56px 0 56px; background-color: #7B5238; min-width: 0; max-width: 100%;
  background-image: repeating-linear-gradient(90deg, transparent 0 10px, rgba(0,0,0,.10) 10px 11px, rgba(255,255,255,.045) 11px 26px, rgba(0,0,0,.07) 26px 28px), linear-gradient(160deg, var(--a, #A57550), var(--b, #5E3B27)); }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph .lb { position: absolute; inset-inline-start: 12px; bottom: 12px; font-size: 12px; padding: 2px 12px; border-radius: 99px; background: rgba(20,12,8,.6); color: #F6EDE8; }
.t2 { --a: #BF9468; --b: #8A5F3E; } .t3 { --a: #6D4A36; --b: #3B2518; } .t4 { --a: #C9A67F; --b: #9B7653; } .t5 { --a: #8A6246; --b: #4F3323; }
.r16 { aspect-ratio: 16/10; } .r43 { aspect-ratio: 4/3; } .r34 { aspect-ratio: 3/4; }

/* achievements */
.ach { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.ach > div { padding: 26px 18px; border-inline-start: 1px solid var(--line); }
.ach > div:first-child { border-inline-start: 0; }
.ach b { display: block; font-family: var(--f-head); font-size: clamp(32px, 4vw, 46px); color: var(--gold); line-height: 1.1; }
.ach span { font-size: 14px; color: var(--muted); display: block; margin-top: 6px; line-height: 1.6; }
@media (max-width: 760px) { .ach { grid-template-columns: 1fr 1fr; } .ach > div:nth-child(3) { border-inline-start: 0; } .ach > div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 22px; }
.card { background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.card .ph { border-radius: 0 0 0 56px; } .card .ph.r43 { aspect-ratio: 4/3; }
.card .bd { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .cat { font-size: 12px; color: var(--gold); font-weight: 500; letter-spacing: .06em; }
.card h3 { font-size: 21px; } .card p { font-size: 14.5px; color: var(--muted); line-height: 1.75; }
.card .btn { margin-top: auto; align-self: flex-start; padding: 9px 18px; font-size: 14px; }
.card .bd .btn { margin-top: 12px; }
.svc a.card { text-decoration: none; color: inherit; } .svc a.card:hover { border-color: var(--gold); }
.svc .go { margin-top: 10px; color: var(--gold); font-weight: 500; font-size: 14px; }

/* filter */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { font: 500 14px var(--f-body); padding: 7px 18px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 99px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--on-gold); }

/* split / lists */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.split p + p { margin-top: 14px; } .split p { color: var(--muted); }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.ticks li { padding-block: 10px; border-bottom: 1px solid var(--line); display: flex; gap: 12px; }
.ticks li::before { content: ""; width: 9px; height: 9px; margin-top: 11px; background: var(--gold); transform: rotate(45deg); flex: none; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.steps li { counter-increment: s; padding: 18px 18px 0 0; border-top: 2px solid var(--gold); }
.steps li::before { content: counter(s); font-family: var(--f-head); font-size: 28px; color: var(--gold); display: block; }
.steps h4 { font-size: 19px; } .steps p { font-size: 14px; color: var(--muted); line-height: 1.7; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr 1fr; gap: 16px; } }

/* walnut band */
.band { position: relative; background: var(--walnut); color: var(--walnut-fg); overflow: hidden; }
.band .wrap { position: relative; padding-block: clamp(40px, 6vw, 80px); }
.band h2 { font-size: clamp(26px, 3.6vw, 40px); } .band p { color: var(--walnut-muted); margin-top: 12px; max-width: 36em; }
.band .eyebrow { color: var(--gold-bright); } .band .btn { color: var(--gold-bright); border-color: var(--gold-bright); } .band .btn.solid { color: var(--on-gold); } .band .row { margin-top: 22px; }

/* gallery */
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; }

/* masonry gallery + lightbox */
.mas { columns: 3 250px; column-gap: 16px; }
.mi { break-inside: avoid; margin: 0 0 18px; }
.mi .ph { cursor: zoom-in; } .mi .ph img { position: static; height: auto; display: block; }
.mi figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.mi figcaption small { display: block; color: var(--gold); font-weight: 500; font-size: 12px; letter-spacing: .06em; }
.kgrp { margin-top: 34px; } .kgrp h3 { font-size: 24px; } .kgrp > p { color: var(--muted); font-size: 15px; margin: 4px 0 16px; max-width: 40em; }
dialog#lb { border: 0; padding: 0; background: transparent; max-width: min(92vw, 900px); max-height: 92vh; color: #fff; text-align: center; }
dialog#lb::backdrop { background: rgba(10,6,4,.88); }
dialog#lb img { max-width: 100%; max-height: 80vh; display: block; margin: auto; }
dialog#lb p { margin-top: 10px; font-size: 14px; }
/* contact */
.ctc { display: grid; grid-template-columns: minmax(0,620px); justify-content: center; gap: clamp(24px, 4vw, 48px); }
@media (max-width: 760px) { .ctc { grid-template-columns: 1fr; } }
.info { display: grid; gap: 0; }
.info div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.info small { display: block; color: var(--muted); font-size: 13px; }
.info strong { font-size: 19px; font-weight: 500; direction: ltr; unicode-bidi: plaintext; display: block; text-align: start; overflow-wrap: anywhere; }
.map { min-height: 300px; border: 1px solid var(--line); display: grid; place-items: center; text-align: center; padding: 28px; position: relative; overflow: hidden;
  background: linear-gradient(var(--line) 1px, transparent 1px) 0 0/44px 44px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0/44px 44px, var(--surface); }
.map .pin { width: 46px; height: 46px; color: var(--gold); margin-inline: auto; }
.map h3 { margin: 8px 0; font-size: 26px; } .map p { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; }

/* footer */
footer { background: var(--walnut); color: var(--walnut-fg); }
footer .wrap { padding-block: clamp(36px, 5vw, 60px) 24px; }
.fgrid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 32px; }
@media (max-width: 860px) { .fgrid { grid-template-columns: 1fr 1fr; } } @media (max-width: 520px) { .fgrid { grid-template-columns: 1fr; } }
footer h4 { font-size: 18px; color: var(--gold-bright); margin-bottom: 10px; } footer a { color: var(--walnut-fg); text-decoration: none; } footer a:hover { color: var(--gold-bright); }
footer li { padding-block: 3px; font-size: 14.5px; color: var(--walnut-muted); } footer li a { color: var(--walnut-muted); }
footer .flogo { width: 120px; height: auto; display: block; margin-bottom: 10px; } footer .about { font-size: 14px; color: var(--walnut-muted); max-width: 22em; }
footer .ltr { direction: ltr; unicode-bidi: plaintext; display: inline-block; }
.copy { border-top: 1px solid var(--walnut-line); margin-top: 28px; padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--walnut-muted); }
.wa-fab { position: fixed; z-index: 40; inset-inline-start: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); background: #1F8F4E; color: #fff; padding: 11px 18px; border-radius: 99px; text-decoration: none; font-weight: 500; font-size: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.3); }

.ic { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: -.2em; }
.soc { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; padding-top: 30px; }
.soc a { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; border: 1px solid var(--walnut-line); background: rgba(255,255,255,.06); color: var(--gold-bright); transition: transform .15s, background .15s; }
.soc a:hover { transform: translateY(-2px); background: rgba(255,255,255,.12); color: var(--gold-bright); }
@media (max-width: 600px) { footer .copy { padding-bottom: 64px; } }
.soc .ic { width: 26px; height: 26px; }
.info .ic { color: var(--gold); width: 22px; height: 22px; }
.wa-fab { width: 56px; height: 56px; padding: 0 !important; display: grid; place-items: center; }
.wa-fab .ic { width: 28px; height: 28px; vertical-align: 0; }

/* intro: book-page opening */
#intro { position: fixed; inset: 0; z-index: 999; perspective: 1800px; overflow: hidden; animation: introHide 2.9s linear forwards; }
#intro .pg { position: absolute; inset: 0; transform-origin: 100% 50%; display: grid; place-items: center; align-content: center; gap: 22px;
  background: radial-gradient(90% 70% at 50% 40%, #3A2819 0%, #1B120C 70%); animation: introFlip 2.9s linear forwards; backface-visibility: hidden; box-shadow: -30px 0 60px rgba(0,0,0,.5); }
#intro .pg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.45), transparent 35%); opacity: 0; animation: introShade 2.9s linear forwards; pointer-events: none; }
#intro img { width: min(46vw, 230px); height: auto; filter: drop-shadow(0 14px 34px rgba(0,0,0,.5)); animation: introLogo 1.1s ease-out both; }
#intro .ln { width: min(46vw, 230px); height: 2px; background: rgba(212,175,95,.22); overflow: hidden; border-radius: 2px; }
#intro .ln i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #D4AF5F, #F0D58A); transform-origin: 100% 50%; transform: scaleX(0); animation: introBar 1.7s cubic-bezier(.5,.1,.3,1) .15s forwards; }
@keyframes introLogo { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes introBar { to { transform: scaleX(1); } }
@keyframes introFlip { 0%, 60% { transform: rotateY(0); animation-timing-function: cubic-bezier(.55,.05,.25,1); } 100% { transform: rotateY(-102deg); } }
@keyframes introShade { 0%, 60% { opacity: 0; } 85% { opacity: 1; } 100% { opacity: 1; } }
@keyframes introHide { 0% { visibility: visible; pointer-events: auto; } 60% { pointer-events: none; } 99% { visibility: visible; } 100% { visibility: hidden; pointer-events: none; } }
@media (prefers-reduced-motion: reduce) { #intro { display: none; } }
/* luxe buttons */
.btn { border-radius: 99px; padding: 12px 28px; }
.btn.solid { background: linear-gradient(135deg, #E2C477, #B08B45); border-color: transparent; box-shadow: 0 6px 20px rgba(176,139,69,.28); }
.hcta { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 99px; background: linear-gradient(135deg, #E2C477, #B08B45); color: var(--on-gold); text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; box-shadow: 0 4px 14px rgba(176,139,69,.3); margin-inline-start: auto; }
.hcta .ic { width: 18px; height: 18px; }
@media (min-width: 861px) { .bar .in { gap: 20px; } .hcta { margin-inline-start: 0; } }
@media (max-width: 380px) { .hcta { padding: 8px 12px; font-size: 13px; } .brand b { font-size: 21px; } }
/* ornament + scroll cue */
.orn { display: flex; align-items: center; gap: 12px; color: var(--gold-bright); margin-bottom: 18px; max-width: 280px; }
.orn::before, .orn::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--gold-bright)); }
.orn::after { transform: scaleX(-1); }
.down { display: inline-block; margin-top: 26px; color: var(--gold-bright); text-decoration: none; font-size: 26px; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .down { animation: none; } }
/* chooser */
.pick { display: flex; flex-wrap: wrap; gap: 10px; }
.pick a { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border: 1px solid var(--line); border-radius: 99px; color: var(--fg); text-decoration: none; background: var(--surface); font-size: 15px; transition: border-color .15s, color .15s, transform .15s; }
.pick a:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.pick .ic { width: 18px; height: 18px; color: var(--gold); }
/* marquee */
.mq { overflow: hidden; direction: ltr; padding-block: 4px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.mq .tr { display: flex; gap: 14px; width: max-content; animation: mq 70s linear infinite; }
.mq:hover .tr { animation-play-state: paused; }
.mq a { display: block; flex: none; width: clamp(150px, 22vw, 230px); aspect-ratio: 3/4; overflow: hidden; border-radius: 0 40px 0 40px; background: var(--surface); }
.mq img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; } .mq a:hover img { transform: scale(1.05); }
@keyframes mq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .mq { overflow-x: auto; } .mq .tr { animation: none; } }
.copy .fl-doc { flex-basis: 100%; text-align: center; padding-top: 6px; letter-spacing: .02em; }
.addons { margin-top: 40px; padding: 18px 20px; text-align: center; border-block: 1px solid var(--line); color: var(--muted); font-size: 15px; line-height: 2; }
.addons b { color: var(--gold); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
