/* ==========================================================================
   Hashtag Developments - design system
   One stylesheet serves Arabic and English: every directional rule uses CSS
   logical properties, so switching dir="rtl" is enough to flip the layout.
   ========================================================================== */

:root {
    /* Palette sampled from the printed profile. */
    --ink: #0d0d0d;
    --ink-raised: #161616;
    --ink-line: #262626;
    --paper: #f7f5f2;
    --paper-sunk: #ebe7e0;
    --paper-line: #ddd7cd;

    --gold: #c89b4a;
    --gold-soft: #e3be7c;
    --gold-deep: #8f6524;

    --on-dark: #f4f1ec;
    --on-dark-dim: rgba(244, 241, 236, 0.62);
    --on-light: #14110d;
    --on-light-dim: rgba(20, 17, 13, 0.62);

    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', 'Times New Roman', serif;

    --step--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.9rem);
    --step-0: clamp(0.98rem, 0.94rem + 0.2vw, 1.08rem);
    --step-1: clamp(1.15rem, 1.06rem + 0.42vw, 1.4rem);
    --step-2: clamp(1.4rem, 1.2rem + 0.95vw, 2rem);
    --step-3: clamp(1.85rem, 1.45rem + 1.9vw, 3rem);
    --step-4: clamp(2.4rem, 1.6rem + 3.6vw, 4.6rem);
    --step-5: clamp(3rem, 1.7rem + 5.8vw, 6.5rem);

    --shell: 78rem;
    --gutter: clamp(1.15rem, 4vw, 3rem);
    --section: clamp(4rem, 9vw, 8.5rem);
    --radius: 2px;
    --radius-lg: 4px;

    --bar-height: 4.35rem;
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

:root[lang='ar'] {
    --font-body: 'Tajawal', system-ui, sans-serif;
    --font-display: 'Amiri', 'Tajawal', serif;

    /* Arabic sits lower and needs more leading than Latin at the same size. */
    --step-4: clamp(2.2rem, 1.5rem + 3.2vw, 4.2rem);
    --step-5: clamp(2.7rem, 1.6rem + 5vw, 5.6rem);
}

/* --------------------------------------------------------------- reset ---- */

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

* {
    margin: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-block-start: 6rem;
}

body {
    background: var(--paper);
    color: var(--on-light);
    font-family: var(--font-body);
    font-size: var(--step-0);
    line-height: 1.7;
    min-height: 100svh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

:root[lang='ar'] body {
    line-height: 1.9;
}

img,
svg,
video {
    display: block;
    max-width: 100%;
}

/* The <picture> wrapper should never take part in layout, otherwise an <img>
   sized with block-size:100% has nothing to resolve against. */
picture {
    display: contents;
}

img {
    height: auto;
    background-size: cover;
    background-position: center;
}

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

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    background: none;
    border: 0;
    cursor: pointer;
}

ul,
ol {
    list-style: none;
    padding: 0;
}

table {
    border-collapse: collapse;
    width: 100%;
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

::selection {
    background: var(--gold);
    color: var(--ink);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link {
    position: fixed;
    inset-block-start: 0.5rem;
    inset-inline-start: 0.5rem;
    z-index: 200;
    padding: 0.7rem 1.2rem;
    background: var(--gold);
    color: var(--ink);
    font-weight: 600;
    transform: translateY(-150%);
    transition: transform 0.25s var(--ease);
}

.skip-link:focus {
    transform: none;
}

/* ------------------------------------------------------------- typography - */

h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.1;
    text-wrap: balance;
}

:root[lang='ar'] h1,
:root[lang='ar'] h2,
:root[lang='ar'] h3 {
    line-height: 1.35;
}

.display {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.015em;
}

:root[lang='ar'] .display {
    letter-spacing: 0;
}

.display--xl {
    font-size: var(--step-5);
}

.display--lg {
    font-size: var(--step-4);
}

.display--md {
    font-size: var(--step-3);
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-block-end: 1.1rem;
    color: var(--gold);
    font-family: var(--font-body);
    font-size: var(--step--1);
    font-weight: 600;
    letter-spacing: 0.22em;
    line-height: 1.4;
    text-transform: uppercase;
}

:root[lang='ar'] .eyebrow {
    letter-spacing: 0;
    text-transform: none;
}

.eyebrow::before {
    content: '';
    inline-size: clamp(1.5rem, 4vw, 2.75rem);
    block-size: 1px;
    flex: none;
    background: currentColor;
}

.lead {
    font-size: var(--step-1);
    line-height: 1.65;
    color: var(--on-light-dim);
    max-inline-size: 46ch;
    text-wrap: pretty;
}

.prose p + p {
    margin-block-start: 1.1em;
}

.prose {
    color: var(--on-light-dim);
    max-inline-size: 62ch;
    text-wrap: pretty;
}

.gold {
    color: var(--gold);
}

/* ----------------------------------------------------------------- layout - */

.shell {
    inline-size: min(100% - var(--gutter) * 2, var(--shell));
    margin-inline: auto;
}

.shell--wide {
    inline-size: min(100% - var(--gutter) * 2, 92rem);
}

.section {
    padding-block: var(--section);
    position: relative;
}

.section--tight {
    padding-block: clamp(3rem, 6vw, 5.5rem);
}

.section--dark {
    background: var(--ink);
    color: var(--on-dark);
}

.section--dark .lead,
.section--dark .prose {
    color: var(--on-dark-dim);
}

.section--sunk {
    background: var(--paper-sunk);
}

.section-head {
    max-inline-size: 52rem;
    margin-block-end: clamp(2.5rem, 5vw, 4rem);
}

.grid {
    display: grid;
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

/* Textured backdrops lifted from the profile, held behind content. */
.textured {
    position: relative;
    isolation: isolate;
}

/* Descendant, not child: the <img> sits inside a <picture> wrapper. */
.textured .textured__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.section--dark .textured__bg {
    opacity: 0.35;
}

/* ---------------------------------------------------------------- buttons - */

.btn {
    --btn-bg: var(--gold);
    --btn-fg: var(--ink);
    --btn-border: var(--gold);

    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-block-size: 3.1rem;
    padding-inline: clamp(1.4rem, 3vw, 2.1rem);
    padding-block: 0.7rem;
    border: 1px solid var(--btn-border);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-family: var(--font-body);
    font-size: var(--step--1);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
}

:root[lang='ar'] .btn {
    letter-spacing: 0;
    text-transform: none;
    font-size: var(--step-0);
}

/* Gold wipe on hover, drawn with a pseudo element so only transform animates. */
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: inline-start;
    transition: transform 0.45s var(--ease-out);
}

.btn > * {
    position: relative;
}

.btn:hover::after,
.btn:focus-visible::after {
    transform: scaleX(1);
}

.btn:hover,
.btn:focus-visible {
    color: var(--gold);
}

.btn--ghost {
    --btn-bg: transparent;
    --btn-fg: currentColor;
    --btn-border: currentColor;
}

.btn--ghost::after {
    background: var(--gold);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
    color: var(--ink);
    border-color: var(--gold);
}

.btn--wa {
    --btn-bg: #1faa53;
    --btn-fg: #fff;
    --btn-border: #1faa53;
}

.btn--block {
    inline-size: 100%;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-block-start: 2rem;
}

/* Text link with an underline that grows from the leading edge. */
.link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding-block-end: 0.2rem;
    color: var(--gold);
    font-weight: 600;
    font-size: var(--step--1);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0% 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.4s var(--ease-out);
}

:root[dir='rtl'] .link {
    background-position: 100% 100%;
}

:root[lang='ar'] .link {
    letter-spacing: 0;
    text-transform: none;
    font-size: var(--step-0);
}

.link:hover,
.link:focus-visible {
    background-size: 100% 1px;
}

.link .arrow {
    transition: transform 0.4s var(--ease-out);
}

:root[dir='rtl'] .link .arrow {
    transform: scaleX(-1);
}

.link:hover .arrow {
    transform: translateX(0.25rem);
}

:root[dir='rtl'] .link:hover .arrow {
    transform: scaleX(-1) translateX(0.25rem);
}

/* ----------------------------------------------------------------- header - */

.scroll-progress {
    position: fixed;
    inset-block-start: 0;
    inset-inline-start: 0;
    z-index: 120;
    block-size: 2px;
    inline-size: 100%;
    background: var(--gold);
    transform: scaleX(var(--progress, 0));
    transform-origin: inline-start;
    will-change: transform;
}

.site-header {
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    z-index: 110;
    padding-block: clamp(0.9rem, 2vw, 1.5rem);
    color: var(--on-dark);
    transition: padding 0.4s var(--ease), background-color 0.4s var(--ease),
        box-shadow 0.4s var(--ease);
}

.site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to bottom, rgba(6, 6, 6, 0.72), transparent);
    opacity: 1;
    transition: opacity 0.4s var(--ease);
}

.site-header.is-stuck {
    padding-block: 0.6rem;
    background: rgba(11, 11, 11, 0.92);
    backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--ink-line);
}

.site-header.is-stuck::before {
    opacity: 0;
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 2.5rem);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex: none;
    color: var(--on-dark);
}

.brand img {
    block-size: clamp(2.1rem, 4.5vw, 2.9rem);
    inline-size: auto;
    transition: block-size 0.4s var(--ease);
}

.is-stuck .brand img {
    block-size: 2rem;
}

.brand__text {
    display: none;
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    line-height: 1.35;
    text-transform: uppercase;
    color: var(--on-dark);
}

:root[lang='ar'] .brand__text {
    letter-spacing: 0;
    font-size: 0.78rem;
    font-family: var(--font-body);
}

@media (min-width: 22em) {
    .brand__text {
        display: block;
    }
}

/* Tracked-out capitals are the desktop look, but at 390px the English lockup
   runs into the language toggle, so the spacing tightens before the name has to
   be dropped altogether. */
@media (max-width: 47.99em) {
    .brand__text {
        font-size: 0.58rem;
        letter-spacing: 0.14em;
    }
}

.nav {
    display: none;
    margin-inline-start: auto;
    gap: clamp(1.2rem, 2.6vw, 2.4rem);
}

.nav a {
    position: relative;
    font-size: var(--step--1);
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--on-dark-dim);
    transition: color 0.3s var(--ease);
}

:root[lang='ar'] .nav a {
    letter-spacing: 0;
    text-transform: none;
    font-size: var(--step-0);
}

.nav a::after {
    content: '';
    position: absolute;
    inset-block-end: -0.4rem;
    inset-inline-start: 0;
    block-size: 1px;
    inline-size: 100%;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: inline-end;
    transition: transform 0.4s var(--ease-out);
}

.nav a:hover,
.nav a[aria-current='page'] {
    color: var(--on-dark);
}

.nav a:hover::after,
.nav a[aria-current='page']::after {
    transform: scaleX(1);
    transform-origin: inline-start;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-inline-start: auto;
}

.lang-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-inline-size: 3rem;
    min-block-size: 2.4rem;
    padding-inline: 0.6rem;
    border: 1px solid rgba(244, 241, 236, 0.28);
    color: var(--on-dark);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.lang-toggle:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.header-cta {
    display: none;
}

/* Hamburger: three bars that fold into a cross. */
.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    inline-size: 2.9rem;
    block-size: 2.6rem;
    padding-inline: 0.55rem;
    border: 1px solid rgba(244, 241, 236, 0.28);
}

.nav-toggle span {
    display: block;
    block-size: 1.5px;
    inline-size: 100%;
    background: var(--on-dark);
    transition: transform 0.4s var(--ease-out), opacity 0.25s var(--ease);
}

.nav-toggle[aria-expanded='true'] span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded='true'] span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

@media (min-width: 62em) {
    .nav {
        display: flex;
    }

    /* The nav has taken over pushing itself to the far edge, so the actions sit
       directly after it instead of claiming the free space a second time. */
    .header-actions {
        margin-inline-start: 0;
    }

    .header-cta {
        display: inline-flex;
    }

    .nav-toggle {
        display: none;
    }
}

/* --------------------------------------------------------- mobile drawer -- */

.drawer {
    position: fixed;
    inset: 0;
    z-index: 105;
    display: grid;
    align-content: center;
    padding: 6rem var(--gutter) 8rem;
    background: var(--ink);
    color: var(--on-dark);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.45s var(--ease), visibility 0.45s;
}

.drawer.is-open {
    visibility: visible;
    opacity: 1;
}

.drawer__nav {
    display: grid;
    gap: 0.35rem;
}

.drawer__nav a {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding-block: 0.65rem;
    border-block-end: 1px solid var(--ink-line);
    font-family: var(--font-display);
    font-size: var(--step-3);
    line-height: 1.25;
    opacity: 0;
    transform: translateY(1.1rem);
}

.drawer.is-open .drawer__nav a {
    animation: drawer-in 0.6s var(--ease-out) forwards;
    animation-delay: calc(60ms * var(--i, 0) + 120ms);
}

.drawer__nav a span {
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    color: var(--gold);
}

.drawer__nav a[aria-current='page'] {
    color: var(--gold);
}

.drawer__foot {
    margin-block-start: 2.5rem;
    display: grid;
    gap: 0.75rem;
    opacity: 0;
}

.drawer.is-open .drawer__foot {
    animation: drawer-in 0.6s var(--ease-out) 0.45s forwards;
}

@keyframes drawer-in {
    to {
        opacity: 1;
        transform: none;
    }
}

body.is-locked {
    overflow: hidden;
}

/* ------------------------------------------------------------------- hero - */

.hero {
    position: relative;
    display: grid;
    align-items: end;
    min-block-size: 100svh;
    padding-block: 9rem 5rem;
    background: var(--ink);
    color: var(--on-dark);
    isolation: isolate;
    overflow: hidden;
}

/* A full-height hero works on a wide screen, where the headline runs long enough
   to fill the frame. Below that the same 100svh box stranded the bottom-aligned
   copy under half a screen of night sky, and the taller the phone the worse it
   got, since the copy keeps its height while the box grows - hence the rem cap.
   The height is then tuned so the stats section below peeks past the action bar:
   any taller and that strip is only the next section's padding, which reads as
   another dead zone. The deep bottom padding lifts the copy clear of the bar. */
@media (max-width: 61.99em) {
    .hero {
        min-block-size: min(77svh, 44rem);
        padding-block: 6rem calc(7rem + env(safe-area-inset-bottom, 0px));
    }
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero__media img {
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
    animation: kenburns 26s var(--ease) infinite alternate;
}

@keyframes kenburns {
    from {
        transform: scale(1.04);
    }
    to {
        transform: scale(1.16) translate3d(1.5%, -1.5%, 0);
    }
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
            to top,
            rgba(6, 6, 6, 0.94) 0%,
            rgba(6, 6, 6, 0.55) 42%,
            rgba(6, 6, 6, 0.3) 70%,
            rgba(6, 6, 6, 0.6) 100%
        );
}

.hero__title {
    max-inline-size: 18ch;
}

.hero__title em {
    display: block;
    font-style: normal;
    color: var(--gold);
}

.hero .lead {
    color: var(--on-dark-dim);
    margin-block-start: 1.5rem;
}

/* On a 4-inch phone the two hero buttons stack instead of sitting side by side,
   which pushed the lower one under the action bar. Tightening the vertical
   rhythm buys back the room without dropping any of the copy. */
@media (max-width: 61.99em) and (max-height: 620px) {
    .hero {
        padding-block-start: 4.75rem;
    }

    .hero .lead {
        margin-block-start: 0.9rem;
    }
}

/* Letters rise into place once, on load. */
.rise {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
}

.rise > span {
    display: inline-block;
    transform: translateY(105%);
    animation: rise-up 1s var(--ease-out) forwards;
    animation-delay: calc(110ms * var(--i, 0) + 150ms);
}

@keyframes rise-up {
    to {
        transform: none;
    }
}

/* Physical offsets on purpose: vertical writing-mode rotates the logical axes,
   so inset-inline-end would resolve to the bottom of the viewport here. */
.hero__scroll {
    position: absolute;
    bottom: 1.6rem;
    right: var(--gutter);
    display: none;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.7rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--on-dark-dim);
    writing-mode: vertical-rl;
}

:root[lang='ar'] .hero__scroll {
    letter-spacing: 0;
    text-transform: none;
}

:root[dir='rtl'] .hero__scroll {
    right: auto;
    left: var(--gutter);
}

.hero__scroll::after {
    content: '';
    inline-size: 1px;
    block-size: 3.5rem;
    background: linear-gradient(var(--gold), transparent);
    animation: scroll-cue 2.2s var(--ease) infinite;
    transform-origin: top;
}

@keyframes scroll-cue {
    0% {
        transform: scaleY(0);
    }
    45% {
        transform: scaleY(1);
    }
    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

@media (min-width: 48em) {
    .hero__scroll {
        display: flex;
    }
}

/* The floating WhatsApp button claims this same corner from 62em up, and it
   wins: the cue moves above it rather than sitting under a solid green pill. */
@media (min-width: 62em) {
    .hero__scroll {
        bottom: 6.5rem;
    }
}

/* Compact hero used by inner pages. */
.page-hero {
    position: relative;
    display: grid;
    align-items: end;
    min-block-size: clamp(24rem, 62svh, 40rem);
    padding-block: 9rem clamp(2.5rem, 6vw, 4.5rem);
    background: var(--ink);
    color: var(--on-dark);
    isolation: isolate;
    overflow: hidden;
}

/* These banners carry only a kicker and a title, so on a phone the 24rem floor
   left most of the box as dead image above the text. The height is kept low
   enough that the copy itself usually sets it, and the pages whose titles run
   long simply grow past it. */
@media (max-width: 61.99em) {
    .page-hero {
        min-block-size: min(48svh, 21rem);
        padding-block: 6.5rem 2.5rem;
    }
}

.page-hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.page-hero__media img {
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        to top,
        rgba(6, 6, 6, 0.93),
        rgba(6, 6, 6, 0.45) 60%,
        rgba(6, 6, 6, 0.55)
    );
}

/* ------------------------------------------------------------------ stats - */

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-block-start: 1px solid var(--paper-line);
    border-inline-start: 1px solid var(--paper-line);
}

.section--dark .stats {
    border-color: var(--ink-line);
}

.stat {
    padding: clamp(1.1rem, 3vw, 2.1rem);
    border-block-end: 1px solid var(--paper-line);
    border-inline-end: 1px solid var(--paper-line);
}

.section--dark .stat {
    border-color: var(--ink-line);
}

.stat__value {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    font-family: var(--font-display);
    font-size: var(--step-3);
    font-weight: 700;
    line-height: 1.1;
    color: var(--gold);
}

.stat__unit {
    font-family: var(--font-body);
    font-size: var(--step--1);
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--on-dark-dim);
}

.section:not(.section--dark) .stat__unit {
    color: var(--on-light-dim);
}

.stat__label {
    margin-block-start: 0.35rem;
    font-size: var(--step--1);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--on-dark-dim);
}

:root[lang='ar'] .stat__label {
    letter-spacing: 0;
    text-transform: none;
}

.section:not(.section--dark) .stat__label {
    color: var(--on-light-dim);
}

@media (min-width: 48em) {
    .stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ------------------------------------------------------------------ cards - */

.feature {
    display: grid;
    gap: clamp(1.75rem, 4vw, 3.5rem);
    align-items: center;
}

@media (min-width: 56em) {
    .feature {
        grid-template-columns: 1.05fr 1fr;
    }

    .feature--flip .feature__media {
        order: 2;
    }
}

.feature__media {
    position: relative;
    overflow: hidden;
}

.feature__media img {
    inline-size: 100%;
    transition: transform 1.1s var(--ease-out);
}

.feature__media:hover img {
    transform: scale(1.04);
}

/* Thin gold rule that traces the top edge of a media block. */
.framed {
    position: relative;
}

.framed::before {
    content: '';
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 0;
    z-index: 2;
    block-size: 2px;
    inline-size: 100%;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: inline-start;
    transition: transform 0.9s var(--ease-out);
}

.framed.is-visible::before {
    transform: scaleX(1);
}

/* Dark plate that lets the gold group lockup breathe on a light page. */
.brand-plate {
    display: grid;
    place-items: center;
    gap: clamp(1.25rem, 3vw, 2rem);
    padding: clamp(2.5rem, 7vw, 5rem) clamp(1.5rem, 5vw, 4rem);
    background: var(--ink);
    aspect-ratio: 4 / 3;
    align-content: center;
}

.brand-plate__mark {
    inline-size: clamp(6rem, 16vw, 9.5rem);
}

.brand-plate__wordmark {
    inline-size: clamp(10rem, 26vw, 16rem);
}

.project-card {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--ink);
    color: var(--on-dark);
    isolation: isolate;
}

.project-card img {
    inline-size: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 1.2s var(--ease-out), opacity 0.6s var(--ease);
    opacity: 0.82;
}

.project-card:hover img {
    transform: scale(1.05);
    opacity: 1;
}

.project-card__body {
    position: absolute;
    inset-block-end: 0;
    inset-inline: 0;
    padding: clamp(1.25rem, 3vw, 2.25rem);
    background: linear-gradient(to top, rgba(6, 6, 6, 0.92), transparent);
}

.project-card__title {
    font-family: var(--font-display);
    font-size: var(--step-2);
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-block-end: 0.7rem;
    padding: 0.3rem 0.75rem;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

:root[lang='ar'] .tag {
    letter-spacing: 0;
    text-transform: none;
    font-size: 0.8rem;
}

.tag::before {
    content: '';
    inline-size: 5px;
    block-size: 5px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s var(--ease) infinite;
}

@keyframes pulse {
    50% {
        opacity: 0.25;
        transform: scale(0.7);
    }
}

.project-list__foot {
    display: grid;
    gap: 1rem;
    justify-items: start;
    padding-block-start: 1.5rem;
}

@media (min-width: 60em) {
    .project-list__foot {
        grid-template-columns: 1fr auto;
        align-items: center;
    }
}

/* --------------------------------------------------------- brand family --- */

.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: 1px;
    background: var(--ink-line);
    border: 1px solid var(--ink-line);
}

.brand-grid__item {
    display: grid;
    place-items: center;
    gap: 0.9rem;
    padding: clamp(1.4rem, 3.5vw, 2.4rem) 1rem;
    background: var(--ink);
    text-align: center;
    transition: background-color 0.45s var(--ease);
}

.brand-grid__item:hover {
    background: var(--ink-raised);
}

/* The sister logos ship in wildly different aspect ratios, so each one is
   boxed and contained rather than sized on a single axis. */
.brand-grid__item img {
    block-size: clamp(3rem, 7vw, 4.25rem);
    inline-size: auto;
    max-inline-size: min(100%, 7.5rem);
    object-fit: contain;
    object-position: center;
    filter: grayscale(1) brightness(1.6);
    opacity: 0.7;
    transition: filter 0.5s var(--ease), opacity 0.5s var(--ease),
        transform 0.5s var(--ease-out);
}

.brand-grid__item:hover img {
    filter: none;
    opacity: 1;
    transform: translateY(-3px);
}

.brand-grid__item span {
    font-size: var(--step--1);
    color: var(--on-dark-dim);
}

/* ------------------------------------------------------------- value list - */

.value-list {
    display: grid;
    gap: 1px;
    background: var(--paper-line);
    border-block: 1px solid var(--paper-line);
}

@media (min-width: 52em) {
    .value-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

.value {
    padding: clamp(1.6rem, 3.5vw, 2.6rem);
    background: var(--paper);
}

.value__no {
    font-family: var(--font-display);
    font-size: var(--step-2);
    color: var(--gold);
    line-height: 1;
}

.value h3 {
    margin-block: 0.9rem 0.6rem;
    font-size: var(--step-1);
}

.value p {
    color: var(--on-light-dim);
    font-size: var(--step-0);
}

/* --------------------------------------------------------------- location - */

.location {
    display: grid;
    gap: clamp(1.75rem, 4vw, 3rem);
}

@media (min-width: 60em) {
    .location {
        grid-template-columns: 22rem 1fr;
        align-items: start;
    }
}

.distance-list {
    display: grid;
    gap: 0;
}

.distance {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding-block: 0.85rem;
    border-block-end: 1px solid var(--ink-line);
}

.distance__time {
    flex: none;
    inline-size: 4.5rem;
    font-family: var(--font-display);
    font-size: var(--step-2);
    line-height: 1;
    color: var(--gold);
}

.distance__unit {
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-block-start: 1.5rem;
}

.chip {
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--ink-line);
    font-size: var(--step--1);
    color: var(--on-dark-dim);
}

.map-frame {
    position: relative;
    padding: clamp(0.75rem, 2vw, 1.5rem);
    background: var(--paper);
    overflow: hidden;
}

.map-frame img {
    inline-size: 100%;
}

/* --------------------------------------------------------------- overview - */

.overview-grid {
    display: grid;
    gap: 1px;
    background: var(--ink-line);
    border: 1px solid var(--ink-line);
}

@media (min-width: 48em) {
    .overview-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.overview-item {
    display: grid;
    align-content: start;
    gap: 0.75rem;
    padding: clamp(1.4rem, 3vw, 2.2rem);
    background: var(--ink);
}

.overview-item__label {
    font-size: var(--step--1);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
}

:root[lang='ar'] .overview-item__label {
    letter-spacing: 0;
    text-transform: none;
}

.overview-item__value {
    font-size: var(--step-1);
    line-height: 1.5;
}

.tick-list {
    display: grid;
    gap: 0.5rem;
}

.tick-list li {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    color: var(--on-dark-dim);
}

.tick-list li::before {
    content: '';
    flex: none;
    inline-size: 0.4rem;
    block-size: 0.4rem;
    background: var(--gold);
    transform: rotate(45deg);
}

/* ------------------------------------------------------------ floor plate - */

.floorplate {
    display: grid;
    justify-items: center;
    gap: 0.9rem;
    margin-block-end: clamp(1.75rem, 4vw, 2.75rem);
    padding: clamp(1rem, 3vw, 2rem);
    background: var(--paper-sunk);
}

.floorplate__media {
    max-inline-size: 20rem;
}

.floorplate__label {
    font-size: var(--step--1);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--on-light-dim);
}

:root[lang='ar'] .floorplate__label {
    letter-spacing: 0;
    text-transform: none;
}

/* ------------------------------------------------------- zoomable figures - */

/* Plans and maps open in the lightbox, so their trigger is a real button that
   has to shed the default button chrome. */
[data-zoom] {
    position: relative;
    display: block;
    inline-size: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    text-align: inherit;
    cursor: zoom-in;
}

.map-frame[data-zoom] {
    padding: clamp(0.75rem, 2vw, 1.5rem);
    background: var(--paper);
}

[data-zoom] .unit__zoom {
    opacity: 0;
    transform: translateY(0.4rem);
}

[data-zoom]:hover .unit__zoom,
[data-zoom]:focus-visible .unit__zoom {
    opacity: 1;
    transform: none;
}

@media (hover: none) {
    [data-zoom] .unit__zoom {
        opacity: 1;
        transform: none;
    }
}

/* ---------------------------------------------------------------- pricing - */

.price-grid {
    display: grid;
    gap: 1px;
    background: var(--ink-line);
    border: 1px solid var(--ink-line);
}

@media (min-width: 44em) {
    .price-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.price {
    display: grid;
    align-content: start;
    gap: 0.4rem;
    padding: clamp(1.3rem, 3vw, 2.1rem);
    background: var(--ink);
}

.price__label {
    font-size: var(--step--1);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--on-dark-dim);
}

:root[lang='ar'] .price__label {
    letter-spacing: 0;
    text-transform: none;
}

.price__figures {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1rem, 3vw, 2.5rem);
    margin-block-start: 0.4rem;
}

.price__figure {
    display: grid;
    gap: 0.15rem;
}

.price__figure small {
    font-size: var(--step--1);
    color: var(--on-dark-dim);
}

.price__value {
    font-family: var(--font-display);
    font-size: var(--step-3);
    font-weight: 700;
    line-height: 1.05;
    color: var(--gold);
}

.price__unit {
    font-family: var(--font-body);
    font-size: var(--step--1);
    font-weight: 500;
    color: var(--on-dark-dim);
}

.note {
    margin-block-start: 1.25rem;
    font-size: var(--step--1);
    color: var(--on-dark-dim);
    max-inline-size: 60ch;
}

/* ------------------------------------------------------------------ units - */

.tabs {
    display: flex;
    gap: 0.4rem;
    margin-block-end: 1.5rem;
    border-block-end: 1px solid var(--paper-line);
}

.section--dark .tabs {
    border-color: var(--ink-line);
}

.tabs button {
    position: relative;
    padding: 0.8rem clamp(0.9rem, 3vw, 1.6rem);
    font-size: var(--step--1);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--on-light-dim);
    transition: color 0.3s var(--ease);
}

:root[lang='ar'] .tabs button {
    letter-spacing: 0;
    text-transform: none;
    font-size: var(--step-0);
}

.section--dark .tabs button {
    color: var(--on-dark-dim);
}

.tabs button::after {
    content: '';
    position: absolute;
    inset-block-end: -1px;
    inset-inline: 0;
    block-size: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.4s var(--ease-out);
}

.tabs button[aria-selected='true'] {
    color: var(--gold);
}

.tabs button[aria-selected='true']::after {
    transform: scaleX(1);
}

.unit-grid {
    display: grid;
    gap: clamp(1rem, 2.5vw, 1.75rem);
}

@media (min-width: 46em) {
    .unit-grid {
        grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
    }
}

[role='tabpanel'][hidden] {
    display: none;
}

[role='tabpanel']:not([hidden]) {
    animation: panel-in 0.5s var(--ease-out);
}

@keyframes panel-in {
    from {
        opacity: 0;
        transform: translateY(0.85rem);
    }
}

.unit {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--paper-line);
    background: var(--paper);
    transition: border-color 0.4s var(--ease), transform 0.4s var(--ease-out);
}

.unit:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
}

.unit__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem clamp(1rem, 3vw, 1.5rem);
    border-block-end: 1px solid var(--paper-line);
}

.unit__code {
    font-family: var(--font-display);
    font-size: var(--step-2);
    color: var(--gold);
    line-height: 1;
}

.unit__meta {
    display: flex;
    gap: 0.9rem;
    font-size: var(--step--1);
    color: var(--on-light-dim);
}

.unit__plan {
    position: relative;
    display: block;
    padding: clamp(0.75rem, 2.5vw, 1.4rem);
    background: var(--paper-sunk);
    cursor: zoom-in;
}

.unit__plan img {
    inline-size: 100%;
    transition: transform 0.6s var(--ease-out);
}

.unit__plan:hover img {
    transform: scale(1.03);
}

.unit__zoom {
    position: absolute;
    inset-block-end: 0.75rem;
    inset-inline-end: 0.75rem;
    display: grid;
    place-items: center;
    inline-size: 2.4rem;
    block-size: 2.4rem;
    background: rgba(13, 13, 13, 0.82);
    color: var(--gold);
    opacity: 0;
    transform: translateY(0.4rem);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease-out);
}

.unit__plan:hover .unit__zoom,
.unit__plan:focus-visible .unit__zoom {
    opacity: 1;
    transform: none;
}

.unit__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: clamp(1rem, 3vw, 1.5rem);
}

.room-table {
    font-size: var(--step--1);
}

.room-table caption {
    margin-block-end: 0.6rem;
    font-size: var(--step--1);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: start;
    color: var(--on-light-dim);
}

:root[lang='ar'] .room-table caption {
    letter-spacing: 0;
    text-transform: none;
}

.room-table td {
    padding-block: 0.42rem;
    border-block-end: 1px solid var(--paper-line);
}

.room-table tr:last-child td {
    border-block-end: 0;
}

.room-table td:last-child {
    text-align: end;
    font-variant-numeric: tabular-nums;
    color: var(--on-light-dim);
    white-space: nowrap;
}

.room-table__no {
    inline-size: 2rem;
    color: var(--gold);
    font-weight: 600;
}

.unit__foot {
    margin-block-start: auto;
    padding-block-start: 1.1rem;
}

/* --------------------------------------------------------------- lightbox - */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 1rem;
    padding: 1rem;
    background: rgba(8, 8, 8, 0.96);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.35s var(--ease), visibility 0.35s;
}

.lightbox.is-open {
    visibility: visible;
    opacity: 1;
}

.lightbox__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--on-dark);
}

.lightbox__title {
    font-family: var(--font-display);
    font-size: var(--step-1);
    color: var(--gold);
}

.lightbox__close {
    display: grid;
    place-items: center;
    inline-size: 2.9rem;
    block-size: 2.9rem;
    border: 1px solid rgba(244, 241, 236, 0.3);
    color: var(--on-dark);
    transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.lightbox__close:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* Native pinch-zoom on touch, scroll on desktop. */
.lightbox__stage {
    overflow: auto;
    display: grid;
    place-items: center;
    touch-action: pinch-zoom pan-x pan-y;
    -webkit-overflow-scrolling: touch;
}

.lightbox__stage img {
    max-inline-size: 100%;
    max-block-size: 100%;
    object-fit: contain;
    transform: scale(0.97);
    transition: transform 0.4s var(--ease-out);
}

.lightbox.is-open .lightbox__stage img {
    transform: none;
}

/* ------------------------------------------------------------------ media - */

.media-strip {
    display: grid;
    gap: clamp(0.75rem, 2vw, 1.25rem);
}

@media (min-width: 52em) {
    .media-strip {
        grid-template-columns: repeat(2, 1fr);
    }
}

.media-card {
    position: relative;
    overflow: hidden;
    background: var(--ink);
}

.media-card img {
    inline-size: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    transition: transform 1.1s var(--ease-out);
}

.media-card:hover img {
    transform: scale(1.05);
}

.media-card figcaption {
    position: absolute;
    inset-block-end: 0;
    inset-inline: 0;
    padding: 1.4rem 1.2rem 1rem;
    background: linear-gradient(to top, rgba(6, 6, 6, 0.85), transparent);
    color: var(--on-dark);
    font-size: var(--step--1);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

:root[lang='ar'] .media-card figcaption {
    letter-spacing: 0;
    text-transform: none;
}

/* ------------------------------------------------------------ contact list */

.contact-list {
    display: grid;
    gap: 1px;
    background: var(--paper-line);
    border: 1px solid var(--paper-line);
}

@media (min-width: 44em) {
    .contact-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.contact-item {
    display: grid;
    gap: 0.3rem;
    padding: clamp(1.3rem, 3vw, 2rem);
    background: var(--paper);
    transition: background-color 0.4s var(--ease);
}

a.contact-item:hover {
    background: var(--paper-sunk);
}

.contact-item__label {
    font-size: var(--step--1);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
}

:root[lang='ar'] .contact-item__label {
    letter-spacing: 0;
    text-transform: none;
}

.contact-item__value {
    font-size: var(--step-1);
    font-weight: 500;
}

.contact-item__value[dir='ltr'] {
    font-variant-numeric: tabular-nums;
}

.map-embed {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--paper-sunk);
    overflow: hidden;
}

.map-embed iframe {
    position: absolute;
    inset: 0;
    inline-size: 100%;
    block-size: 100%;
    border: 0;
    filter: grayscale(1) contrast(1.05);
}

.map-embed__facade {
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 1rem;
    inline-size: 100%;
    block-size: 100%;
    padding: 2rem;
    border: 1px solid var(--paper-line);
    background: var(--paper);
    color: var(--on-light);
    text-align: center;
    cursor: pointer;
    transition: background-color 0.4s var(--ease);
}

.map-embed__facade:hover {
    background: var(--paper-sunk);
}

.map-embed__pin {
    color: var(--gold);
}

.map-embed__address {
    font-size: var(--step-1);
    font-weight: 500;
}

@media (min-width: 52em) {
    .map-embed {
        aspect-ratio: 21 / 9;
    }
}

/* ------------------------------------------------------------- call to act */

.cta-band {
    position: relative;
    text-align: center;
    isolation: isolate;
    overflow: hidden;
}

.cta-band .btn-row {
    justify-content: center;
}

.cta-band .lead {
    margin-inline: auto;
}

/* ----------------------------------------------------------------- footer - */

.site-footer {
    background: var(--ink);
    color: var(--on-dark);
    padding-block: clamp(3rem, 6vw, 5rem) 0;
}

.footer-grid {
    display: grid;
    gap: clamp(2rem, 5vw, 4rem);
}

@media (min-width: 46em) {
    .footer-grid {
        grid-template-columns: 1.6fr 1fr 1.2fr;
    }
}

.site-footer .brand img {
    block-size: clamp(3.2rem, 8vw, 4.2rem);
}

.footer-blurb {
    margin-block-start: 1.2rem;
    color: var(--on-dark-dim);
    max-inline-size: 34ch;
}

.footer-title {
    margin-block-end: 1rem;
    font-size: var(--step--1);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
}

:root[lang='ar'] .footer-title {
    letter-spacing: 0;
    text-transform: none;
}

.footer-links {
    display: grid;
    gap: 0.6rem;
    color: var(--on-dark-dim);
}

.footer-links a {
    transition: color 0.3s var(--ease), padding-inline-start 0.3s var(--ease);
}

.footer-links a:hover {
    color: var(--gold);
    padding-inline-start: 0.35rem;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    justify-content: space-between;
    margin-block-start: clamp(2.5rem, 5vw, 4rem);
    padding-block: 1.5rem;
    border-block-start: 1px solid var(--ink-line);
    font-size: var(--step--1);
    color: var(--on-dark-dim);
}

.social-row {
    display: flex;
    gap: 0.5rem;
}

.social-row a {
    display: grid;
    place-items: center;
    inline-size: 2.5rem;
    block-size: 2.5rem;
    border: 1px solid var(--ink-line);
    color: var(--on-dark-dim);
    transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.social-row a:hover {
    color: var(--gold);
    border-color: var(--gold);
}

/* ------------------------------------------------------- mobile action bar */

.action-bar {
    position: fixed;
    inset-block-end: 0;
    inset-inline: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: rgba(11, 11, 11, 0.96);
    backdrop-filter: blur(12px);
    border-block-start: 1px solid var(--ink-line);
    padding-block-end: env(safe-area-inset-bottom);

    /* Always available, but it slides up after first paint so it never covers
       the hero headline. Pure CSS, so it survives a JavaScript failure. */
    animation: bar-in 0.5s var(--ease-out) 0.4s both;
}

@keyframes bar-in {
    from {
        transform: translateY(110%);
    }
}

.action-bar a {
    display: grid;
    place-items: center;
    gap: 0.15rem;
    padding-block: 0.6rem;
    min-block-size: 3.5rem;
    color: var(--on-dark-dim);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    transition: color 0.3s var(--ease);
}

:root[lang='ar'] .action-bar a {
    font-size: 0.8rem;
    letter-spacing: 0;
}

.action-bar a + a {
    border-inline-start: 1px solid var(--ink-line);
}

.action-bar a:active,
.action-bar a:hover {
    color: var(--gold);
}

.action-bar svg {
    inline-size: 1.35rem;
    block-size: 1.35rem;
}

.action-bar .is-wa {
    color: #4bd07c;
}

/* Floating WhatsApp button, desktop only. */
.wa-float {
    position: fixed;
    inset-block-end: 1.75rem;
    inset-inline-end: 1.75rem;
    z-index: 100;
    display: none;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.3rem;
    background: #1faa53;
    color: #fff;
    font-weight: 600;
    font-size: var(--step--1);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease);
}

.wa-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.wa-float svg {
    inline-size: 1.3rem;
    block-size: 1.3rem;
}

@media (min-width: 62em) {
    .action-bar {
        display: none;
    }

    .wa-float {
        display: inline-flex;
    }
}

/* The bar floats over the page, so the last section needs clearance. */
@media (max-width: 61.99em) {
    body {
        padding-block-end: calc(3.5rem + env(safe-area-inset-bottom));
    }
}

/* -------------------------------------------------------------- reveal fx - */

.reveal {
    opacity: 0;
    transform: translateY(1.6rem);
    transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
    transition-delay: calc(80ms * var(--i, 0));
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

.reveal--scale {
    transform: scale(0.965);
}

.reveal--scale.is-visible {
    transform: none;
}

/* --------------------------------------------------------------- a11y ----- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }

    .reveal,
    .rise > span,
    .drawer__nav a,
    .drawer__foot {
        opacity: 1 !important;
        transform: none !important;
    }
}

@media print {
    .site-header,
    .action-bar,
    .wa-float,
    .drawer,
    .scroll-progress {
        display: none !important;
    }
}
