/* DM 23 — Sand Bottle: layered coloured sand in glass (the Jordanian sand-art bottle). Each layer of DM's work is poured, settled and shaped by hand. */
:root {
  --bg: #F2E6D0; --fg: #4A1E17; --muted: #6a3f35; --accent: #8E3B2E; --line: rgba(74, 30, 23, .55);
  --btn-bg: #8E3B2E; --btn-fg: #F2E6D0;
  --hdr-bg: rgba(242, 230, 208, .92); --hdr-fg: #4A1E17; --hdr-inv: #F2E6D0;
  --cta-bg: #8E3B2E; --cta-fg: #F6EBD5; --wa-bg: #1F6464; --wa-fg: #FFFFFF;
  --menu-bg: #8E3B2E; --menu-fg: #F2E6D0;
  --focus: #8E3B2E;
  --c1: #8E3B2E; --c2: #1F6464; --c3: #4A1E17;
  --glass: rgba(74, 30, 23, .5); --glass-fill: rgba(255, 255, 255, .35);
  --sec-teal: #226C6C; --sec-teal-fg: #FFFFFF; --sec-rust: #8E3B2E; --sec-rust-fg: #F6EBD5; --foot-bg: #4A1E17;
  --chip-bg: transparent; --card-bg: #FFFFFF; --sand: #E6C79C;
  --scrim: rgba(74, 30, 23, .65);
  --modal-bg: #F2E6D0; --modal-fg: #4A1E17; --modal-accent: #8E3B2E; --modal-btn-bg: #8E3B2E; --modal-btn-fg: #F2E6D0; --modal-chip-bg: #E6C79C; --modal-chip-fg: #4A1E17; --modal-radius: 40px;
  --dots: radial-gradient(rgba(142, 59, 46, .08) 1px, transparent 1.6px), radial-gradient(rgba(46, 140, 140, .06) 1px, transparent 1.6px);
}
[data-theme="dark"] {
  --bg: #1E0F0C; --fg: #F2E6D0; --muted: #D9C7AB; --accent: #F0A58F; --line: rgba(242, 230, 208, .55);
  --btn-bg: #F2E6D0; --btn-fg: #4A1E17;
  --hdr-bg: rgba(30, 15, 12, .92); --hdr-fg: #F2E6D0; --hdr-inv: #1E0F0C;
  --cta-bg: #F2E6D0; --cta-fg: #4A1E17; --wa-bg: #E6C79C; --wa-fg: #3A1710;
  --menu-bg: #1E0F0C; --menu-fg: #F2E6D0;
  --focus: #F4C9A0;
  --c1: #F0A58F; --c2: #7ED0CB; --c3: #F2E6D0;
  --glass: rgba(242, 230, 208, .55); --glass-fill: rgba(255, 255, 255, .06);
  --sec-teal: #123F3F; --sec-rust: #4A1E17; --sec-rust-fg: #F6EBD5; --foot-bg: #120807;
  --card-bg: #2B1612;
  --scrim: rgba(10, 4, 3, .8);
  --modal-bg: #2B1612; --modal-fg: #F2E6D0; --modal-accent: #F0A58F; --modal-btn-bg: #F2E6D0; --modal-btn-fg: #4A1E17; --modal-chip-bg: #4A2A22; --modal-chip-fg: #F2E6D0;
  --dots: radial-gradient(rgba(242, 230, 208, .05) 1px, transparent 1.6px), radial-gradient(rgba(126, 208, 203, .04) 1px, transparent 1.6px);
}
body { background-color: var(--bg); background-image: var(--dots); background-size: 7px 7px, 11px 11px; background-position: 0 0, 3px 5px; }

.tagline { font-family: var(--font-en-head); font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.kicker { font-weight: 700; color: var(--accent); }
.sec-title { font-size: clamp(44px, 6.2vw, 104px); line-height: 1.15; }
[data-lang="en"] .sec-title { font-size: clamp(40px, 5.4vw, 88px); line-height: 1.08; }

/* settle: content drops in with a grainy blur and a soft bounce */
.has-motion [data-reveal="settle"] { transition: transform 1.1s cubic-bezier(.2, 1.25, .4, 1) var(--d, 0ms), filter .9s ease var(--d, 0ms), opacity .6s ease var(--d, 0ms); }
.has-motion [data-reveal="settle"]:not(.is-in) { transform: translate3d(0, -36px, 0); filter: blur(6px); opacity: 0; }

/* hero: the live bottle */
.hero { min-height: 100vh; padding: clamp(110px, 14vh, 140px) var(--gutter) 60px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
.hero__text { display: flex; flex-direction: column; gap: 24px; }
.hero__title { font-size: clamp(42px, 6vw, 104px); line-height: 1.18; }
[data-lang="en"] .hero__title { font-size: clamp(38px, 5vw, 86px); line-height: 1.08; }
.hero__title span { display: block; }
.hero__title .c1 { color: var(--c1); } .hero__title .c2 { color: var(--c2); } .hero__title .c3 { color: var(--c3); }
.hero__sub { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.85; max-width: 520px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero__actions .btn { --btn-bd: var(--fg); color: var(--fg); }
.hero__hint { font-size: 14px; color: var(--muted); }
.bottle { justify-self: center; width: min(100%, 420px); display: flex; flex-direction: column; align-items: center; }
.bottle__cap { width: 26%; height: 22px; border-radius: 8px; background: var(--c1); }
.bottle__neck { width: 32%; height: 54px; border: 3px solid var(--glass); border-top: 0; border-bottom: 0; background: linear-gradient(90deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .1) 40%, rgba(255, 255, 255, .35)); }
.bottle__body { position: relative; width: 100%; height: min(62vh, 560px); border-radius: 120px 120px 60px 60px; border: 3px solid var(--glass); overflow: hidden; background: var(--glass-fill); }
.bottle__body canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: crosshair; }
.bottle__shine { position: absolute; top: 0; bottom: 0; inset-inline-start: 12%; width: 9%; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .5), rgba(255, 255, 255, 0)); pointer-events: none; }

.reelsec { padding: 0 var(--gutter) clamp(60px, 8vw, 100px); }
.reelsec__frame { max-height: 80vh; border-radius: 48px; overflow: hidden; border: 3px solid var(--glass); box-shadow: inset 0 0 0 10px rgba(255, 255, 255, .35); }
.reelsec__frame .reel { max-height: 80vh; --reel-btn-bg: #4A1E17; --reel-btn-fg: #F2E6D0; --reel-icon-bg: #F2E6D0; --reel-icon-fg: #8E3B2E; }

/* ===== portfolio: cards hung on a rail (from Market Stall), dressed in sand ===== */
:root { --st-band: #E6C79C; --st-fg: #4A1E17; --st-card: #FFF8EC; --st-card-fg: #4A1E17; --st-line: #4A1E17; --st-shadow: #4A1E17; --st-focus: #4A1E17; --st-chip: #FFF8EC; }
[data-theme="dark"] { --st-band: #3A1D17; --st-fg: #F2E6D0; --st-card: #F2E6D0; --st-card-fg: #3A1710; --st-line: #F2E6D0; --st-shadow: #000; --st-focus: #F4C9A0; --st-chip: #2B1612; }
.work { background: var(--st-band); color: var(--st-fg); --focus: var(--st-focus); padding: clamp(70px, 10vw, 130px) var(--gutter) clamp(60px, 8vw, 110px); display: flex; flex-direction: column; gap: 30px; }
.work .kicker { color: inherit; opacity: 1; font-weight: 700; }
.work__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter { position: relative; min-height: 46px; padding: 0 18px; padding-inline-start: 40px; border-radius: 10px; border: 2.5px solid var(--st-line); background: var(--st-chip); color: var(--st-fg); font-weight: 700; font-size: 15px; }
.filter .fi { position: absolute; inset-inline-start: 11px; top: 50%; margin-top: -9px; display: inline-flex; }
.filter .fi .ic { width: 18px; height: 18px; stroke-width: 2.2; }
.filter[aria-pressed="true"] { background: var(--st-line); color: var(--st-band); }
.rail { height: 10px; border-radius: 10px; background: var(--st-line); margin-top: 20px; }
.stall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(40px, 5vw, 64px) clamp(14px, 2vw, 26px); margin-top: -10px; }
.hang { display: flex; justify-content: center; }
.stall-card { position: relative; width: 100%; transform-origin: 50% -40px; display: flex; flex-direction: column; align-items: center; will-change: transform; }
.string { display: block; width: 2px; height: 40px; background: var(--st-line); }
.stall-card__box { position: relative; width: 100%; background: var(--st-card); color: var(--st-card-fg); border: 2.5px solid var(--st-line); border-radius: 18px; padding: 10px; display: flex; flex-direction: column; gap: 10px; box-shadow: 6px 6px 0 var(--st-shadow); }
[dir="rtl"] .stall-card__box { box-shadow: -6px 6px 0 var(--st-shadow); }
.stall-card__img { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--sand); }
.stall-card__img img { width: 100%; height: 100%; object-fit: cover; }
.stall-card__sand { position: absolute; inset: 0; pointer-events: none; }
.stall-card__sand i { position: absolute; inset-inline: 0; bottom: 0; display: block; }
.stall-card__meta { display: flex; flex-direction: column; gap: 2px; padding: 0 4px 4px; font-size: 14px; }
.stall-card__meta h3 { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.3; }
.stall-card__btn { all: unset; cursor: pointer; }
.stall-card__btn::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: 18px; }
.stall-card:has(.stall-card__btn:focus-visible) .stall-card__box { outline: 4px solid var(--st-focus); outline-offset: 4px; }
.stall-card__btn:focus-visible { outline: 0; }
.clients { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; }
.clients-list { display: flex; flex-wrap: wrap; gap: 10px; }
.clients-list li { flex: 1 1 110px; height: 70px; border-radius: 999px; border: 2px dashed var(--st-line); display: flex; align-items: center; justify-content: center; text-align: center; font-size: 12px; padding: 4px 10px; }
.work .foot-note { color: inherit; }

/* ===== services: a constellation of stars over a desert night (from Wadi Rum) ===== */
.services { --focus: #F2E6D0; position: relative; overflow: hidden; background: #0F3434; color: #F2E6D0; padding: clamp(70px, 9vw, 120px) var(--gutter); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(30px, 5vw, 70px); }
[data-theme="dark"] .services { background: #0A2424; }
.services__sky { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(circle at 8% 22%, #F2E6D0 0 1.2px, transparent 2px), radial-gradient(circle at 23% 78%, #F2E6D0 0 1px, transparent 2px), radial-gradient(circle at 41% 12%, #F2E6D0 0 1.4px, transparent 2px), radial-gradient(circle at 57% 66%, #F2E6D0 0 1px, transparent 2px), radial-gradient(circle at 72% 30%, #F2E6D0 0 1.3px, transparent 2px), radial-gradient(circle at 88% 84%, #F2E6D0 0 1.1px, transparent 2px), radial-gradient(circle at 94% 14%, #F2E6D0 0 1.2px, transparent 2px), radial-gradient(circle at 33% 44%, #F2E6D0 0 .9px, transparent 2px); opacity: .55; animation: sv-tw 4s ease-in-out infinite alternate; }
.services::after { content: ""; position: absolute; inset-inline: -10%; bottom: -26%; height: 46%; border-radius: 50%; background: radial-gradient(closest-side, rgba(193, 80, 46, .55), rgba(193, 80, 46, 0)); pointer-events: none; }
.services > * { position: relative; z-index: 1; }
.services .plate { background: rgba(8, 28, 28, .92); color: #F2E6D0; border: 1px solid rgba(242, 230, 208, .28); border-radius: 22px; padding: 14px 22px; display: flex; flex-direction: column; gap: 4px; }
.services .kicker { color: #F0B48C; }
.plate--top { align-self: start; position: sticky; top: calc(var(--header-h) + 24px); }
.stars { position: relative; display: flex; flex-direction: column; }
.stars::before { content: ""; position: absolute; top: 20px; bottom: 20px; inset-inline-start: 10px; border-inline-start: 2px dashed rgba(242, 230, 208, .6); }
.star { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 18px; padding: 12px 0; }
.star__dot { width: 22px; height: 22px; margin-top: 12px; border-radius: 50%; background: #E6A06B; box-shadow: 0 0 0 5px #0F3434, 0 0 18px #E6A06B; z-index: 1; }
[data-theme="dark"] .star__dot { box-shadow: 0 0 0 5px #0A2424, 0 0 18px #E6A06B; }
.star h3 { font-size: clamp(22px, 2.2vw, 32px); line-height: 1.3; }
.star p { font-size: 16px; line-height: 1.65; }
@keyframes sv-tw { from { opacity: .35; } to { opacity: .7; } }
@media (max-width: 899px) { .stall { grid-template-columns: repeat(3, minmax(0, 1fr)); } .plate--top { position: static; } }
@media (max-width: 759px) { .stall { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* about / testimonials / contact */
.about { padding: clamp(80px, 11vw, 140px) var(--gutter); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: clamp(36px, 6vw, 90px); align-items: center; }
.about__photo { aspect-ratio: 4 / 5; border-radius: 80px 80px 40px 40px; border: 3px solid var(--glass); overflow: hidden; background: var(--sand); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__text { display: flex; flex-direction: column; gap: 18px; }
.about__p { font-size: clamp(20px, 2vw, 28px); line-height: 1.9; }
.testi { padding: 0 var(--gutter) clamp(80px, 10vw, 130px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.quote { padding: clamp(24px, 3vw, 36px); background: var(--card-bg); border-radius: 36px; display: flex; flex-direction: column; gap: 14px; border-bottom: 10px solid #E6C79C; }
.quote blockquote { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.5; }
.quote blockquote::before { content: "\201C"; } .quote blockquote::after { content: "\201D"; }
.quote figcaption { font-size: 14px; color: var(--muted); }
.contact { --focus: #FFFFFF; --form-btn-bg: #F2E6D0; --form-btn-fg: #4A1E17; --bg: var(--sec-rust); --radius-field: 999px; background: var(--sec-rust); color: var(--sec-rust-fg); padding: clamp(80px, 11vw, 140px) var(--gutter) clamp(120px, 10vw, 160px); display: flex; flex-direction: column; gap: 40px; }
.contact .kicker { color: var(--sec-rust-fg); }
.contact__title { font-size: clamp(36px, 5vw, 84px); line-height: 1.22; max-width: 18ch; margin-top: 8px; }
.contact__form { max-width: 980px; width: 100%; }
.contact .field textarea { border-radius: 28px; }
.foot { --focus: #F2E6D0; background: var(--foot-bg); color: #F2E6D0; padding: 30px var(--gutter) 110px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.foot img { width: 140px; height: auto; }

@media (max-width: 899px) { .hero { grid-template-columns: 1fr; }  }
@media (max-width: 759px) {
  
  .bottle__body { height: 52vh; }
  .hero { min-height: auto; }
}

/* ===== chrome extras: back-to-top, footer, newsletter ===== */
.foot { --ft-bg: var(--foot-bg); --ft-fg: #F2E6D0; }

/* back to top: a little sand jar */
.to-top { width: 52px; height: 68px; align-items: flex-start; padding-top: 10px; border-radius: 26px 26px 12px 12px; border: 3px solid var(--glass); color: var(--fg); background: linear-gradient(to top, #8E3B2E 0 12%, #2E8C8C 12% 26%, #C97B4A 26% 40%, #E6C79C 40% 54%, var(--bg) 54%); }
.to-top:hover { filter: none; transform: translateY(-4px); }
.to-top .ic { width: 22px; height: 22px; }
.foot { --ft-ic-radius: 16px 16px 6px 6px; }
.ft h2 { color: #E6C79C; }
.nl-sheet { border-radius: 40px; }

/* ===== page loader: the sand bottle fills layer by layer as the page loads; exit closes like an iris ===== */
.loader { clip-path: circle(150% at 50% 50%); }
html.is-loaded .loader { clip-path: circle(0% at 50% 50%); }
.ld23 { width: min(46vw, 210px); display: flex; flex-direction: column; align-items: center; }
.ld23 .cap { width: 26%; height: 16px; border-radius: 6px; background: var(--c1); }
.ld23 .neck { width: 32%; height: 40px; border: 3px solid var(--glass); border-top: 0; border-bottom: 0; background: linear-gradient(90deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .1) 40%, rgba(255, 255, 255, .35)); }
.ld23 .body { position: relative; width: 100%; height: min(46vh, 320px); border-radius: 90px 90px 44px 44px; border: 3px solid var(--glass); overflow: hidden; background: var(--glass-fill); }
.ld23 .s { position: absolute; inset-inline: 0; bottom: 0; display: block; }
.ld23 .stream { position: absolute; top: 0; left: 50%; width: 3px; height: calc(100% - 16% * (clamp(0, var(--p) * 5, 1) + clamp(0, var(--p) * 5 - 1, 1) + clamp(0, var(--p) * 5 - 2, 1) + clamp(0, var(--p) * 5 - 3, 1) + clamp(0, var(--p) * 5 - 4, 1))); background: var(--c1); z-index: 2; animation: ld23-flow .6s linear infinite; opacity: calc(1 - var(--p) * .4); }
.ld23 .s5 { height: calc(16% * (clamp(0, var(--p) * 5 - 0, 1) + clamp(0, var(--p) * 5 - 1, 1) + clamp(0, var(--p) * 5 - 2, 1) + clamp(0, var(--p) * 5 - 3, 1) + clamp(0, var(--p) * 5 - 4, 1))); background: #8E3B2E; clip-path: polygon(0% 16.7%,10% 20.9%,20% 11.0%,30% 15.7%,40% 9.7%,50% 6.6%,60% 24.6%,70% 19.7%,80% 26.8%,90% 29.5%,100% 13.0%,100% 100%,0% 100%); }
.ld23 .s4 { height: calc(16% * (clamp(0, var(--p) * 5 - 0, 1) + clamp(0, var(--p) * 5 - 1, 1) + clamp(0, var(--p) * 5 - 2, 1) + clamp(0, var(--p) * 5 - 3, 1))); background: #E6C79C; clip-path: polygon(0% 10.0%,10% 24.5%,20% 21.3%,30% 27.6%,40% 18.7%,50% 20.0%,60% 7.7%,70% 18.8%,80% 11.9%,90% 8.5%,100% 10.9%,100% 100%,0% 100%); }
.ld23 .s3 { height: calc(16% * (clamp(0, var(--p) * 5 - 0, 1) + clamp(0, var(--p) * 5 - 1, 1) + clamp(0, var(--p) * 5 - 2, 1))); background: #C97B4A; clip-path: polygon(0% 27.3%,10% 28.1%,20% 7.7%,30% 15.5%,40% 27.7%,50% 9.3%,60% 14.9%,70% 18.0%,80% 20.9%,90% 11.5%,100% 8.9%,100% 100%,0% 100%); }
.ld23 .s2 { height: calc(16% * (clamp(0, var(--p) * 5 - 0, 1) + clamp(0, var(--p) * 5 - 1, 1))); background: #2E8C8C; clip-path: polygon(0% 20.6%,10% 7.6%,20% 18.0%,30% 27.3%,40% 12.8%,50% 22.7%,60% 22.0%,70% 17.2%,80% 30.0%,90% 14.6%,100% 6.8%,100% 100%,0% 100%); }
.ld23 .s1 { height: calc(16% * (clamp(0, var(--p) * 5 - 0, 1))); background: #8E3B2E; clip-path: polygon(0% 13.9%,10% 11.2%,20% 28.4%,30% 15.2%,40% 21.8%,50% 12.1%,60% 29.1%,70% 16.3%,80% 15.0%,90% 17.6%,100% 28.8%,100% 100%,0% 100%); }
.ld23 .lb { margin-top: 16px; font-family: var(--font-mono); font-size: 13px; color: var(--accent); font-weight: 700; }
@keyframes ld23-flow { from { opacity: .55; } to { opacity: 1; } }
