/* Noor — personal editorial, dark by default. A big typographic name, one accent, generous
   margins; the work reads as an index whose covers float beside the cursor. */
:root {
    --accent: #e0563b;
    --accent-ink: #fff;
    --bg: #f3f3f1;
    --bg-2: #e9e8e5;
    --surface: #ffffff;
    --ink: #141414;
    --ink-soft: #66635f;
    --line: #d9d7d3;
    --glow: color-mix(in srgb, var(--accent) 22%, transparent);
    --serif: "DM Serif Display", "Noto Naskh Arabic", Georgia, serif;
    --sans: "DM Sans", "Noto Naskh Arabic", system-ui, sans-serif;
    --wrap: 1200px;
    color-scheme: light;
}
:root[data-theme="dark"] {
    --bg: #0e0e0f;
    --bg-2: #151516;
    --surface: #18181a;
    --ink: #ece9e3;
    --ink-soft: #8e8a84;
    --line: #262628;
    --glow: color-mix(in srgb, var(--accent) 30%, transparent);
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--ink); font: 400 1rem/1.75 var(--sans); }
:is(:lang(ar), :lang(ku)) body { line-height: 1.95; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.05; letter-spacing: -.01em; text-wrap: balance; }
:is(:lang(ar), :lang(ku)) :is(h1, h2, h3) { font-weight: 600; line-height: 1.45; letter-spacing: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(var(--wrap), 100% - 3rem); margin-inline: auto; }
.hide, .is-empty { display: none !important; }

.eyebrow { margin: 0 0 1.1rem; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 50px; padding: .7rem 1.6rem; border-radius: 999px; font: 500 .96rem/1 var(--sans); border: 1px solid transparent; cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: color-mix(in srgb, var(--accent) 85%, #fff); transform: translateY(-2px); }
.btn-line { border-color: var(--line); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.link-under { display: inline-flex; align-items: center; gap: .5rem; padding-bottom: .25rem; border-bottom: 1px solid var(--line); color: var(--ink-soft); transition: color .2s, border-color .2s; }
.link-under:hover { color: var(--ink); border-color: var(--accent); }

/* Availability pill */
.status { display: inline-flex; align-items: center; gap: .6rem; padding: .45rem 1rem .45rem .85rem; border: 1px solid var(--line); border-radius: 999px; font-size: .86rem; color: var(--ink); background: color-mix(in srgb, var(--surface) 60%, transparent); transition: border-color .2s; }
.status:hover { border-color: var(--accent); }
.status i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #3ecf8e; flex: none; }
.status i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid #3ecf8e; animation: ping 2.4s ease-out infinite; }

/* Header */
.hdr { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); transition: box-shadow .3s; }
.hdr.is-stuck { box-shadow: 0 1px 0 var(--line); }
.hdr-in { display: flex; align-items: center; gap: 2rem; min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; font: 400 1.35rem/1.2 var(--serif); }
:is(:lang(ar), :lang(ku)) .brand { font-weight: 600; font-size: 1.15rem; }
.brand-logo { height: 36px; width: auto; }
.brand-logo--dark { display: none; }
:root[data-theme="dark"] .brand-logo--light { display: none; }
:root[data-theme="dark"] .brand-logo--dark { display: block; }
.nav { display: flex; gap: 2rem; margin-inline-start: auto; font-size: .93rem; }
.nav a { color: var(--ink-soft); transition: color .2s; }
.nav a:hover { color: var(--ink); }
.hdr-tools { display: flex; align-items: center; gap: .6rem; }
.theme-toggle { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }

/* Hero — the name is the design */
.hero { position: relative; padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem); overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 60vw; height: 60vw; max-width: 820px; max-height: 820px; inset-inline-end: -18vw; top: -22vw; border-radius: 50%; background: radial-gradient(circle, var(--glow), transparent 65%); pointer-events: none; }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.hero-where { font-size: .9rem; color: var(--ink-soft); }
.name { position: relative; font-size: clamp(3.6rem, 12.5vw, 11.5rem); line-height: .9; letter-spacing: -.035em; margin-inline-start: -.04em; overflow-wrap: anywhere; }
:is(:lang(ar), :lang(ku)) .name { font-size: clamp(3rem, 9.5vw, 8.5rem); line-height: 1.3; font-weight: 700; letter-spacing: 0; margin: 0; }
.hero-foot { display: grid; grid-template-columns: 1fr minmax(240px, 330px); gap: clamp(2rem, 6vw, 6rem); align-items: start; margin-top: clamp(2.5rem, 5vw, 4rem); }
.tagline { margin: .3rem 0 2rem; font-size: clamp(1.15rem, 1.8vw, 1.45rem); font-weight: 300; color: var(--ink-soft); max-width: 34ch; line-height: 1.55; }
.hero-cta { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.portrait { position: relative; aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden; background-size: cover; background-position: center;
    background-color: var(--bg-2);
    background-image: radial-gradient(circle at 70% 25%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 60%), radial-gradient(circle at 20% 90%, color-mix(in srgb, var(--accent) 25%, transparent), transparent 55%); }
.portrait-mark { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.portrait:not([style*="url("])::after { content: attr(data-initial); position: absolute; inset: 0; display: grid; place-items: center; font: 400 clamp(7rem, 14vw, 11rem)/1 var(--serif); color: color-mix(in srgb, var(--ink) 88%, transparent); }
.portrait:not([style*="url("])::before { content: ""; position: absolute; inset: 14px; border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); border-radius: 2px; }
.portrait[style*="url("] { filter: grayscale(.25) contrast(1.02); }

/* Sections */
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.sec-head { margin-bottom: clamp(2.2rem, 4vw, 3.5rem); }
.sec-head h2 { font-size: clamp(2.3rem, 5vw, 4rem); }
:is(:lang(ar), :lang(ku)) .sec-head h2 { font-size: clamp(2rem, 4vw, 3.1rem); }

/* Work index — hover a row and its cover floats near the cursor */
.worklist { border-top: 1px solid var(--line); counter-reset: w; }
.pcard { position: relative; display: grid; grid-template-columns: 1fr; border-bottom: 1px solid var(--line); transition: opacity .35s; }
.pcard > .pcard-cover { display: none; }
.pcard-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto 28px; gap: 2rem; align-items: center; padding: 1.7rem 0; }
.pcard-body::after { content: ""; grid-column: 4; width: 22px; height: 22px; background: currentColor; opacity: .5;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform .35s, opacity .35s, background .35s; }
[dir="rtl"] .pcard-body::after { transform: scaleX(-1); }
.pcard h3 { grid-column: 1; font-size: clamp(1.7rem, 3.4vw, 2.75rem); transition: transform .45s cubic-bezier(.2, .7, .2, 1), color .3s; }
:is(:lang(ar), :lang(ku)) .pcard h3 { font-size: clamp(1.45rem, 2.8vw, 2.2rem); }
.pcard p { grid-column: 2; margin: 0; color: var(--ink-soft); font-size: .95rem; line-height: 1.6; }
.pcard-price { grid-column: 3; font-size: .9rem; color: var(--ink-soft); white-space: nowrap; }
@media (hover: hover) {
    .worklist:hover .pcard:not(:hover) { opacity: .38; }
    .pcard:hover h3 { transform: translateX(14px); color: var(--accent); }
    [dir="rtl"] .pcard:hover h3 { transform: translateX(-14px); }
    .pcard:hover .pcard-body::after { opacity: 1; background: var(--accent); transform: rotate(45deg); }
    [dir="rtl"] .pcard:hover .pcard-body::after { transform: scaleX(-1) rotate(45deg); }
}
.float { position: fixed; top: 0; left: 0; z-index: 40; width: 300px; aspect-ratio: 4 / 5; pointer-events: none; opacity: 0; border-radius: 4px; overflow: hidden; transform: translate3d(-50%, -50%, 0) scale(.9); transition: opacity .3s, transform .3s; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); }
.float.is-on { opacity: 1; }
.float > * { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Blank covers become a designed card: accent wash + the work's initial */
.pcard-cover--blank { position: relative; background: radial-gradient(circle at 75% 20%, color-mix(in srgb, var(--accent) 70%, transparent), transparent 60%), linear-gradient(160deg, var(--bg-2), color-mix(in srgb, var(--accent) 25%, var(--bg-2))); }
.pcard-cover--blank::after { content: attr(data-initial); position: absolute; inset: 0; display: grid; place-items: center; font: 400 7rem/1 var(--serif); color: var(--ink); opacity: .9; }
/* Touch screens: no hover, so the cover sits in the row as a thumbnail */
@media (hover: none), (max-width: 760px) {
    .float { display: none; }
    .pcard { grid-template-columns: 76px 1fr; column-gap: 1.1rem; align-items: center; padding: 1.2rem 0; }
    .pcard > .pcard-cover { display: block; width: 76px; height: 92px; object-fit: cover; border-radius: 3px; }
    .pcard > .pcard-cover--blank::after { font-size: 2.4rem; }
    .pcard-body { grid-template-columns: 1fr auto; gap: .2rem 1rem; padding: 0; }
    .pcard-body::after { display: none; }
    .pcard h3 { grid-column: 1 / -1; font-size: 1.6rem; }
    .pcard p { grid-column: 1; font-size: .9rem; }
    .pcard-price { grid-column: 2; grid-row: 2; }
}

/* About */
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.about-grid:not(:has(.about-photo)) { grid-template-columns: 1fr; max-width: 900px; }
.about-media:empty { display: none; }
.about-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; filter: grayscale(.2); }
.about-text { margin: 0 0 2.4rem; font: 400 clamp(1.5rem, 2.6vw, 2.2rem)/1.35 var(--serif); }
:is(:lang(ar), :lang(ku)) .about-text { font-weight: 500; line-height: 1.85; font-size: clamp(1.3rem, 2.2vw, 1.75rem); }
.about-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 0; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.about-facts dt { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.about-facts dd { margin: .2rem 0 0; overflow-wrap: anywhere; }
.about-facts a:hover { color: var(--accent); }

/* Moments — an editorial, uneven grid */
.mgrid { columns: 3; column-gap: 1rem; }
.gallery-item { margin: 0 0 1rem; overflow: hidden; border-radius: 4px; break-inside: avoid; background: var(--bg-2); aspect-ratio: 4 / 5; }
.gallery-item:nth-child(3n+2) { aspect-ratio: 1; }
.gallery-item:nth-child(3n) { aspect-ratio: 3 / 4; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.15); transition: transform 1s cubic-bezier(.2, .7, .2, 1), filter .6s; }
.gallery-item:hover img { transform: scale(1.03); filter: none; }

/* People */
.team-grid { display: grid; grid-template-columns: 4fr 8fr; gap: 3rem; align-items: start; }
.tlist { border-top: 1px solid var(--line); }
.tcard { display: grid; grid-template-columns: 46px 1fr auto; gap: 1.2rem; align-items: center; padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.tcard-avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font: 400 1.05rem/1 var(--serif); background: var(--bg-2); color: var(--ink); border: 1px solid var(--line); }
.tcard h3 { font-size: 1.45rem; }
:is(:lang(ar), :lang(ku)) .tcard h3 { font-size: 1.2rem; }
.tcard p { margin: 0; color: var(--ink-soft); font-size: .9rem; text-align: end; }

/* "Why" band (builder markup) */
.why:empty { display: none; }
.why h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4vw, 3rem) !important; }
:is(:lang(ar), :lang(ku)) .why h2 { font-weight: 600; }

/* Contact */
.contact { border-top: 1px solid var(--line); text-align: start; position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; width: 50vw; height: 50vw; inset-inline-start: -20vw; bottom: -30vw; border-radius: 50%; background: radial-gradient(circle, var(--glow), transparent 65%); pointer-events: none; }
.contact .wrap { position: relative; }
.contact-title { margin: 2rem 0 1.4rem; font-size: clamp(3rem, 8.5vw, 7.5rem); line-height: .95; letter-spacing: -.03em; max-width: 12ch; }
:is(:lang(ar), :lang(ku)) .contact-title { font-size: clamp(2.5rem, 6.5vw, 5.5rem); line-height: 1.35; letter-spacing: 0; }
.contact-mail { display: inline-block; font: italic 400 clamp(1.5rem, 3.6vw, 2.8rem)/1.2 var(--serif); color: var(--accent); border-bottom: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); overflow-wrap: anywhere; transition: border-color .2s; }
.contact-mail:hover { border-color: var(--accent); }
.contact-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 2rem; margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: 1.5rem; border-top: 1px solid var(--line); align-items: start; }
.cr > span { display: block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .4rem; }
.cr p { margin: 0; }
.cr-cta { display: flex; gap: .6rem; flex-wrap: wrap; }

/* Footer */
.ftr { border-top: 1px solid var(--line); padding: 3rem 0 0; font-size: .92rem; color: var(--ink-soft); }
.ftr-in { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: flex-start; }
.footer-logo { height: 36px; width: auto; margin-bottom: .6rem; }
.footer-logo.brand-logo--dark { display: none; }
:root[data-theme="dark"] .footer-logo.brand-logo--light { display: none; }
:root[data-theme="dark"] .footer-logo.brand-logo--dark { display: block; }
.footer-name { display: block; font: 400 1.6rem/1.2 var(--serif); color: var(--ink); }
:is(:lang(ar), :lang(ku)) .footer-name { font-weight: 600; font-size: 1.3rem; }
.ftr-links { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.ftr-links a:hover { color: var(--ink); }
.socials { display: flex; gap: .4rem; margin-top: 1rem; }
.socials a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--ink); transition: border-color .2s, color .2s; }
.socials a:hover { border-color: var(--accent); color: var(--accent); }
.socials svg { width: 16px; height: 16px; }
.ftr-base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; padding: 1.3rem 0 1.6rem; border-top: 1px solid var(--line); font-size: .84rem; }
.footer-credit a { color: var(--ink); border-bottom: 1px solid var(--accent); }

.wa { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 60; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5); transition: transform .2s; }
.wa:hover { transform: translateY(-3px); }

:is(:lang(ar), :lang(ku)) :is(.eyebrow, .about-facts dt, .cr > span) { letter-spacing: 0; text-transform: none; font-size: .92rem; }
:is(:lang(ar), :lang(ku)) .contact-mail { font-style: normal; }

/* Motion */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s ease, transform 1s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 80%, 100% { transform: scale(1.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
    .float { display: none; }
    html { scroll-behavior: auto; }
}

@media (max-width: 960px) {
    .nav { display: none; }
    .hdr-tools { margin-inline-start: auto; }
    .about-grid, .team-grid { grid-template-columns: 1fr; }
    .about-photo { aspect-ratio: 4 / 3; }
    .contact-row { grid-template-columns: 1fr 1fr; }
    .cr-cta { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .wrap { width: min(var(--wrap), 100% - 2.25rem); }
    .hero-foot { grid-template-columns: 1fr; }
    .portrait { max-width: 300px; }
    .mgrid { columns: 2; column-gap: .7rem; }
    .gallery-item { margin-bottom: .7rem; }
    .about-facts, .contact-row { grid-template-columns: 1fr; }
    .tcard { grid-template-columns: 46px 1fr; }
    .tcard { row-gap: 0; }
    .tcard-avatar { grid-row: span 2; }
    .tcard p { grid-column: 2; text-align: start; }
    .ftr-in { flex-direction: column; }
}
@media (max-width: 640px) {
    .brand { min-width: 0; }
    .brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46vw; }
}
