.home {
    --p: 275 100% 25%;
    --p-fg: 0 0% 100%;
    --p-light: 274 74% 41%;
    --p-dark: 275 100% 18%;
    --p-glow: 261 100% 62%;
    --fg: 270 50% 10%;
    --muted: 270 15% 45%;
    --bg: 270 20% 98%;
    --card: 0 0% 100%;
    --accent: 267 75% 92%;
    --line: 270 20% 90%;
    --shadow-card: 0 4px 20px -4px hsl(275 100% 25% / 0.12);
    --shadow-elegant: 0 10px 40px -10px hsl(274 74% 41% / 0.3);
    box-sizing: border-box;
    min-height: 100vh;
    background: hsl(var(--bg));
    color: hsl(var(--fg));
    font-family: "Cairo", "Noto Kufi Arabic", "Traditional Arabic", "Segoe UI", sans-serif;
    line-height: 1.5;
}

.home *,
.home *::before,
.home *::after {
    box-sizing: border-box;
}

.home a {
    color: inherit;
    text-decoration: none;
}

.home h1,
.home h2,
.home h3,
.home h4,
.home p {
    margin: 0;
}

.home button,
.home input {
    font: inherit;
    color: inherit;
}

.home form.guest-open {
    display: flex;
    margin: 0;
    min-width: 0;
}

.home button.service-card,
.home button.result-card {
    width: 100%;
    margin: 0;
    text-align: start;
    cursor: pointer;
    color: hsl(var(--fg));
    background: hsl(var(--card));
    border: 1px solid hsl(var(--line));
}

.home :focus-visible {
    outline: 2px solid hsl(var(--p-light));
    outline-offset: 2px;
}

.glyph {
    width: 1em;
    height: 1em;
    display: block;
    flex: none;
}

.home [hidden] {
    display: none !important;
}

.band {
    width: 100%;
    margin-inline: auto;
    padding-inline: 1rem;
}

.band-search {
    max-width: 42rem;
}

.band-hero {
    max-width: 64rem;
}

.band-wide {
    max-width: 72rem;
}

@media (min-width: 1400px) {
    .band {
        max-width: 1400px;
    }

    .band.band-search {
        max-width: 42rem;
    }

    .band.band-hero {
        max-width: 64rem;
    }

    .band.band-wide {
        max-width: 72rem;
    }
}

.home-header {
    position: relative;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 1.25rem;
    padding-inline-end: 4rem;
}

.cluster {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    height: 2.25rem;
    padding: 0 0.85rem;
    border-radius: 999px;
    border: 1px solid hsl(var(--line));
    background: hsl(var(--card));
    color: hsl(var(--p));
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.pill .glyph {
    font-size: 1rem;
}

.pill-solid {
    border-color: hsl(var(--p));
    background: hsl(var(--p));
    color: white;
}

.pill-quiet:hover {
    background: hsl(var(--accent));
}

.profile-pill {
    max-width: 160px;
    background: hsl(267 75% 95%);
    color: hsl(var(--p));
    border-color: transparent;
}

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 999px;
    background: hsl(var(--p));
    color: white;
    font-size: 10px;
    font-weight: 700;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.where {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: hsl(var(--p));
    font-size: 0.875rem;
    font-weight: 700;
}

.where .glyph {
    font-size: 1.25rem;
}

.lang {
    position: relative;
}

.lang summary {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    list-style: none;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    color: hsl(var(--fg) / 0.8);
    font-size: 0.875rem;
    font-weight: 500;
}

.lang summary::-webkit-details-marker {
    display: none;
}

.lang summary:hover {
    background: hsl(var(--accent));
}

.lang summary .glyph {
    font-size: 1rem;
}

.lang-menu {
    position: absolute;
    inset-inline-end: 0;
    top: calc(100% + 0.25rem);
    z-index: 50;
    min-width: 160px;
    padding: 0.25rem 0;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--line));
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px hsl(275 100% 25% / 0.12);
}

.lang-menu a {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    text-align: start;
}

.lang-menu a:hover,
.lang-menu a[aria-current="true"] {
    background: hsl(var(--p) / 0.1);
    color: hsl(var(--p));
    font-weight: 600;
}

.logo-row {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

.logo-row img {
    height: 7rem;
    width: auto;
}

.home p.home-where {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    margin-top: -0.5rem;
    margin-bottom: 0.75rem;
    color: hsl(var(--p));
    font-size: 0.875rem;
    font-weight: 700;
}

.home p.home-where .glyph {
    font-size: 1.25rem;
}

.search-wrap {
    position: relative;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 3rem;
    padding-inline: 1rem;
    border: 1px solid hsl(var(--line));
    border-radius: 999px;
    background: hsl(var(--card));
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
}

.search-bar .glyph {
    font-size: 1.25rem;
    color: hsl(var(--p));
}

.search-bar input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    outline: none;
    font-size: 0.875rem;
}

.search-bar input::placeholder {
    color: hsl(var(--muted));
}

.clear-x,
.filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: hsl(var(--muted));
    cursor: pointer;
    padding: 0;
}

.filter-btn {
    background: hsl(var(--p) / 0.1);
    color: hsl(var(--p));
}

.filter-check {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.filter-check:checked ~ .search-bar .filter-btn,
.filter-btn.is-on {
    background: hsl(var(--p));
    color: white;
}

.search-bar input:placeholder-shown + .clear-x {
    display: none;
}

.filter-panel {
    display: none;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.filter-check:checked ~ .filter-panel {
    display: flex;
}

.chip,
.chip-clear {
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.chip {
    padding: 0.375rem 0.75rem;
    border: 1px solid hsl(var(--line));
    background: hsl(var(--card));
    color: hsl(var(--fg));
}

.chip.is-on {
    background: hsl(var(--p));
    border-color: hsl(var(--p));
    color: white;
}

.chip-clear {
    border: 0;
    background: transparent;
    color: hsl(var(--p));
    padding: 0.25rem 0.35rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    scroll-margin-top: 6rem;
}

.section-title .bar {
    width: 0.25rem;
    height: 1.5rem;
    border-radius: 999px;
    background: hsl(var(--p));
}

.section-title h2 {
    color: hsl(var(--p));
    font-size: 1.125rem;
    font-weight: 800;
}

.results {
    display: none;
    margin-top: 2rem;
}

.home.is-searching .results {
    display: block;
}

.empty {
    color: hsl(var(--muted));
    font-size: 0.875rem;
}

.hero {
    position: relative;
    height: 18rem;
    margin-top: 1.5rem;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-elegant);
}

.hero-photo,
.hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-photo {
    object-fit: cover;
}

.hero-shade {
    background: linear-gradient(135deg, hsl(275 100% 18% / 0.95), hsl(274 74% 41% / 0.88));
}

.hero-copy {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 28rem;
    padding: 1.5rem;
}

.hero-copy h1 {
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.35;
}

.hero-copy p {
    margin-top: 0.5rem;
    color: rgb(255 255 255 / 0.9);
    font-size: 0.875rem;
    font-weight: 500;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.cta,
.ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

.cta {
    border: 0;
    color: white;
    background-image: linear-gradient(100deg, hsl(var(--p)) 0%, hsl(var(--p-light)) 25%, hsl(var(--p-glow)) 50%, hsl(var(--p-light)) 75%, hsl(var(--p)) 100%);
    background-size: 300% 100%;
    animation: cta-shift 6s ease-in-out infinite;
    box-shadow: 0 8px 24px -10px hsl(var(--p-glow) / 0.7);
}

.cta:hover {
    color: white;
    transform: translateY(-1px);
}

.cta .glyph {
    font-size: 1rem;
    animation: cta-nudge 3s ease-in-out infinite;
}

.ghost {
    border: 1px solid rgb(255 255 255 / 0.6);
    background: rgb(255 255 255 / 0.1);
    color: white;
}

.ghost:hover {
    background: rgb(255 255 255 / 0.2);
    color: white;
}

.hero-dots {
    position: absolute;
    z-index: 1;
    left: 0;
    right: 0;
    bottom: 1rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.hero-dots span {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.6);
}

.hero-dots span:first-child {
    width: 1.5rem;
    background: white;
}

.block {
    margin-top: 2.5rem;
}

.home p.lead {
    margin-top: -0.75rem;
    margin-bottom: 1.25rem;
    color: hsl(var(--muted));
    font-size: 0.875rem;
}

.project-grid,
.service-grid,
.result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.service-grid,
.result-grid {
    gap: 1rem;
}

.project-card,
.service-card,
.result-card,
.photo-card,
.step-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--line));
    border-radius: 1rem;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.project-card:hover,
.service-card:hover,
.result-card:hover,
.photo-card:hover {
    box-shadow: var(--shadow-elegant);
}

.project-card img,
.photo-card img,
.result-card img {
    width: 100%;
    height: 6rem;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover img,
.photo-card:hover img,
.result-card:hover img {
    transform: scale(1.05);
}

.project-card div {
    padding: 0.75rem;
}

.project-card strong,
.service-card h3,
.result-card h3 {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
}

.project-card span,
.service-card p,
.result-card p {
    display: block;
    margin-top: 0.15rem;
    color: hsl(var(--muted));
    font-size: 0.6875rem;
    line-height: 1.35;
}

.service-card p,
.result-card p {
    font-size: 0.75rem;
    line-height: 1.6;
}

.journey {
    margin-top: 1.5rem;
    padding: 1rem;
    border: 1px solid hsl(var(--line));
    border-radius: 1rem;
    background: hsl(var(--card));
    box-shadow: var(--shadow-card);
}

.journey strong {
    display: block;
    margin-bottom: 0.75rem;
    color: hsl(var(--p));
    font-size: 0.875rem;
    font-weight: 800;
}

.flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.flow > span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.flow i {
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    background: hsl(var(--p) / 0.1);
    color: hsl(var(--p));
    font-style: normal;
    font-size: 0.75rem;
    font-weight: 600;
}

.flow .glyph {
    font-size: 0.875rem;
    color: hsl(var(--muted));
}

.journey p {
    margin-top: 0.75rem;
    color: hsl(var(--muted));
    font-size: 0.6875rem;
}

.service-card {
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.service-card .glyph-lg {
    font-size: 2.5rem;
    color: hsl(var(--p));
    margin-bottom: 0.75rem;
}

.service-card h3 {
    font-size: 0.875rem;
}

.service-card p {
    flex: 1;
}

.arrow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    margin-top: 0.75rem;
    border-radius: 999px;
    background: hsl(var(--p));
    color: white;
}

.arrow-btn .glyph {
    font-size: 0.875rem;
}

.service-card:hover .arrow-btn {
    background: hsl(var(--p-glow));
}

[dir="rtl"] .home .arrow-btn .glyph,
[dir="rtl"] .home .flow .glyph,
[dir="rtl"] .home .cta .glyph {
    transform: scaleX(-1);
}

.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.step-card {
    padding: 1rem;
    text-align: center;
}

.step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.75rem;
    border-radius: 999px;
    background: hsl(var(--p) / 0.1);
    color: hsl(var(--p));
    font-size: 1.5rem;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    margin-bottom: 0.5rem;
    border-radius: 999px;
    background: hsl(var(--p));
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
}

.step-card h3 {
    font-size: 0.875rem;
}

.step-card p {
    margin-top: 0.25rem;
    color: hsl(var(--muted));
    font-size: 0.75rem;
}

.scroller {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.scroller::-webkit-scrollbar {
    display: none;
}

.photo-card {
    flex: none;
    width: 10rem;
    scroll-snap-align: start;
}

.photo-card img {
    height: 7rem;
}

.photo-card div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    color: hsl(var(--p));
    font-size: 1rem;
}

.photo-card span {
    color: hsl(var(--fg));
    font-size: 0.875rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-grid .result-card {
    padding: 1rem;
}

.result-card:not(.photo) .glyph {
    font-size: 2rem;
    color: hsl(var(--p));
    margin-bottom: 0.5rem;
}

.result-card.photo .glyph {
    font-size: 1rem;
    color: hsl(var(--p));
}

.result-card.photo {
    padding: 0;
}

.result-card.photo img {
    height: 6rem;
}

.result-card.photo div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    color: hsl(var(--p));
}

.result-card.photo span {
    color: hsl(var(--fg));
    font-size: 0.875rem;
    font-weight: 600;
}

.trust {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    padding: 1.5rem;
    border-radius: 1.5rem;
    background: hsl(var(--accent));
}

.trust article {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.trust .glyph {
    font-size: 2rem;
    color: hsl(var(--p));
}

.trust h3 {
    font-size: 0.875rem;
}

.trust p {
    color: hsl(var(--muted));
    font-size: 0.75rem;
}

.provider {
    display: grid;
    gap: 1.5rem;
    margin-top: 3.5rem;
    padding: 1.5rem;
    border: 1px solid hsl(var(--p) / 0.3);
    border-radius: 1.5rem;
    background: hsl(var(--p) / 0.05);
}

.provider-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 0.75rem;
    border-radius: 999px;
    background: hsl(var(--p) / 0.1);
    color: hsl(var(--p));
    font-size: 1.25rem;
}

.provider h2 {
    margin-bottom: 0.25rem;
    color: hsl(var(--p));
    font-size: 1.125rem;
    font-weight: 800;
}

.provider .intro {
    color: hsl(var(--muted));
    font-size: 0.875rem;
}

.provider ul {
    margin: 0 0 0.75rem;
    padding: 0;
    list-style: none;
}

.provider li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.provider li .glyph {
    margin-top: 0.15rem;
    font-size: 1rem;
    color: hsl(var(--p));
}

.provider .cta {
    width: 100%;
}

.home-footer {
    margin-top: 3rem;
    padding: 3rem 0;
    background: hsl(var(--fg));
    color: hsl(var(--bg));
}

.footer-grid {
    display: grid;
    gap: 2rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 2rem;
    padding-inline: 1rem;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.brand-lockup img {
    height: 2.5rem;
    width: auto;
    border-radius: 0.5rem;
}

.home-footer h3 {
    font-size: 1.125rem;
    font-weight: 700;
}

.home-footer h4 {
    margin: 0 0 1rem;
    font-size: 0.875rem;
}

.tagline,
.blurb,
.home-footer a,
.home-footer span {
    color: hsl(var(--bg) / 0.6);
    font-size: 0.875rem;
}

.tagline {
    font-size: 0.75rem;
    color: hsl(var(--bg) / 0.5);
}

.blurb {
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.home-footer a:hover {
    color: hsl(var(--bg));
}

.contact-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.wa {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 0;
    background: transparent;
    padding: 0;
    color: hsl(var(--bg) / 0.6);
    cursor: pointer;
    font-size: 0.875rem;
}

.wa .glyph {
    font-size: 1rem;
    color: #25d366;
}

.copy {
    width: min(1400px, calc(100% - 2rem));
    margin: 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid hsl(var(--bg) / 0.1);
    text-align: center;
    color: hsl(var(--bg) / 0.4);
    font-size: 0.75rem;
}

.edge {
    position: fixed;
    z-index: 40;
    top: 50%;
    inset-inline-start: 0.125rem;
    width: 0.5rem;
    height: 4rem;
    transform: translateY(-50%);
    border: 0;
    border-radius: 999px;
    background: hsl(var(--p) / 0.4);
    cursor: pointer;
    padding: 0;
}

.edge:hover,
.edge[aria-expanded="true"] {
    background: hsl(var(--p));
}

.backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgb(0 0 0 / 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.drawer {
    position: fixed;
    z-index: 80;
    top: 0;
    bottom: 0;
    inset-inline-start: 0;
    width: min(20rem, 88vw);
    padding: 0.75rem;
    overflow: auto;
    background: hsl(var(--p));
    color: white;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
}

[dir="rtl"] .drawer {
    transform: translateX(100%);
}

.drawer.is-open {
    transform: translateX(0);
}

.drawer-head {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.25rem;
}

.drawer-head button {
    border: 0;
    background: transparent;
    color: white;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
}

.nav-section + .nav-section {
    margin-top: 0.25rem;
}

.nav-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 2.5rem;
    padding: 0 0.5rem;
    border: 0;
    border-radius: 0.375rem;
    background: transparent;
    color: white;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
}

.nav-toggle span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-toggle .glyph {
    font-size: 1rem;
}

.nav-toggle:hover {
    background: hsl(var(--p-light));
}

.nav-section.is-open .chevron {
    transform: rotate(180deg);
}

.nav-links {
    display: none;
    padding: 0.25rem 0.5rem 0.25rem 1.5rem;
}

.nav-section.is-open .nav-links {
    display: grid;
    gap: 0.125rem;
}

.nav-links a {
    display: block;
    padding: 0.375rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: white;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    background: hsl(var(--p-light));
}

.tabbar {
    display: none;
}

.home-bell {
    position: relative;
    flex: none;
}

.header-bell .bell-menu {
    inset-inline-start: auto;
    inset-inline-end: 0;
    width: min(380px, calc(100vw - 4.5rem));
}

.home-bell summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.375rem;
    list-style: none;
    cursor: pointer;
    color: hsl(var(--muted));
}

.home-bell summary::-webkit-details-marker {
    display: none;
}

.home-bell summary:hover {
    background: hsl(var(--accent));
}

.home-bell summary .glyph {
    font-size: 1rem;
}

.bell-count {
    position: absolute;
    top: 0;
    inset-inline-end: 0;
    min-width: 1.125rem;
    height: 1.125rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: hsl(0 84% 60%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.125rem;
    text-align: center;
}

.bell-menu {
    position: absolute;
    z-index: 50;
    top: calc(100% + 0.5rem);
    inset-inline-start: 0;
    width: min(380px, calc(100vw - 2rem));
    max-height: 70vh;
    overflow: auto;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--line));
    border-radius: 0.75rem;
    box-shadow: 0 12px 40px hsl(275 100% 25% / 0.16);
    color: hsl(var(--fg));
}

.bell-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid hsl(var(--line));
}

.bell-head strong {
    font-size: 0.875rem;
}

.bell-head button,
.home .bell-head button,
.bell-menu .text-btn,
.home .bell-menu .text-btn {
    border: 0;
    background: transparent;
    color: hsl(var(--p));
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
}

.bell-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bell-menu li {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid hsl(var(--line) / 0.7);
    font-size: 0.75rem;
}

.bell-menu li.unread {
    background: hsl(var(--p) / 0.05);
    font-weight: 700;
}

.bell-menu .muted {
    display: block;
    color: hsl(var(--muted));
    font-weight: 400;
}

.bell-menu .row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.35rem;
}

.bell-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: hsl(var(--muted));
    font-size: 0.875rem;
}

.bell-foot {
    display: block;
    padding: 0.75rem 1rem;
    color: hsl(var(--p));
    font-size: 0.75rem;
    font-weight: 700;
}

@keyframes cta-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes cta-nudge {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(2px); }
}

[dir="rtl"] .home .cta .glyph {
    animation: none;
}

@media (prefers-reduced-motion: reduce) {
    .cta,
    .cta .glyph,
    .project-card img,
    .photo-card img,
    .result-card img {
        animation: none;
        transition: none;
    }
}

@media (min-width: 640px) {
    .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .logo-row img {
        height: 9rem;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .hero {
        height: 24rem;
    }

    .hero-copy {
        padding: 2.5rem;
    }

    .hero-copy h1 {
        font-size: 2.25rem;
    }

    .hero-copy p {
        font-size: 1.125rem;
    }

    .project-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .photo-card {
        width: 12rem;
    }

    .photo-card img {
        height: 8rem;
    }

    .provider {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        padding: 2rem;
    }

    .provider h2 {
        font-size: 1.25rem;
    }

    .trust {
        padding: 2rem;
    }

    .footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .service-grid,
    .result-grid,
    .steps,
    .trust {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .steps {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.home a.pill {
    color: hsl(var(--p));
}

.home a.pill-solid,
.home a.cta,
.home a.ghost {
    color: white;
}

.home a.profile-pill,
.home a.chip-clear,
.home a.bell-foot {
    color: hsl(var(--p));
}

.home a.project-card,
.home a.service-card,
.home a.result-card,
.home a.photo-card {
    color: hsl(var(--fg));
}

.home a.wa {
    color: hsl(var(--bg) / 0.6);
}

@media (max-width: 767px) {
    .tabbar {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        position: fixed;
        z-index: 40;
        inset-inline: 0;
        bottom: 0;
        background: hsl(var(--bg) / 0.95);
        border-top: 1px solid hsl(var(--line));
        backdrop-filter: blur(8px);
        padding-bottom: env(safe-area-inset-bottom);
    }

    .tabbar a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.125rem;
        padding: 0.5rem 0.15rem;
        color: hsl(var(--muted));
        font-size: 10px;
    }

    .tabbar a .glyph {
        font-size: 1.25rem;
    }

    .tabbar a[aria-current="page"] {
        color: hsl(var(--p));
        font-weight: 600;
    }

    .home {
        padding-bottom: 4.25rem;
    }
}
