/* ============================================================
   DESIGNO — Interior Designer Studio vCard (interior-vcard)
   Moody atelier portfolio · warm graphite / clay / bone / olive
   DM Serif Display (display) + Sora (body) + IBM Plex Sans Arabic
   Mobile-first · RTL-safe (logical properties) · reduced-motion aware
   ============================================================ */

:root {
    --ink: var(--tk-bg, #141310);          /* warm graphite canvas (deepened for contrast) */
    --ink-2: color-mix(in srgb, var(--tk-bg, #141310) 86%, var(--tk-text, #ECE6DA));        /* raised surface */
    --ink-3: color-mix(in srgb, var(--tk-bg, #141310) 80%, var(--tk-text, #ECE6DA));        /* hover surface */
    --ink-card: color-mix(in srgb, var(--tk-bg, #141310) 90%, var(--tk-text, #ECE6DA));     /* card base — sits clearly above canvas */
    --bone: var(--tk-text, #ECE6DA);         /* primary text */
    --muted: color-mix(in srgb, var(--tk-text, #ECE6DA) 66%, var(--tk-bg, #141310));
    --dim: color-mix(in srgb, var(--tk-text, #ECE6DA) 40%, var(--tk-bg, #141310));
    --clay: var(--tk-primary, #BE8870);         /* signature clay (a touch richer) */
    --clay-hi: color-mix(in srgb, var(--tk-primary, #BE8870) 82%, #fff);      /* clay hover */
    --clay-deep: color-mix(in srgb, var(--tk-primary, #BE8870) 70%, #000);    /* clay shadow / rail */
    --clay-soft: rgb(from var(--tk-primary, #BE8870) r g b / .16);
    --olive: var(--tk-secondary, #9FA071);        /* quiet accent */
    --err: var(--tk-danger, #CE7A63);
    --line: rgb(from var(--tk-text, #ECE6DA) r g b / .10);
    --line-2: rgb(from var(--tk-text, #ECE6DA) r g b / .20);
    --r: 3px;                /* near-square gallery geometry */
    --r-md: 6px;
    /* Layered elevation — real depth, not flat-dark slop */
    --sh-1: 0 1px 0 rgb(from var(--tk-text, #ECE6DA) r g b / .04) inset, 0 14px 30px -22px rgba(0,0,0,.8);
    --sh-2: 0 1px 0 rgb(from var(--tk-text, #ECE6DA) r g b / .05) inset, 0 28px 60px -28px rgba(0,0,0,.9);
    --font-d: var(--tk-font-header, 'DM Serif Display'), 'IBM Plex Sans Arabic', Georgia, serif;
    --font-b: var(--tk-font-content, 'Sora'), 'IBM Plex Sans Arabic', system-ui, sans-serif;
    --dock-h: 62px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }

body {
    background: var(--ink);
    color: var(--bone);
    font-family: var(--font-b);
    font-size: 15.5px;
    font-weight: 300;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Warm canvas: top spotlight + deep vignette + fine grain (static, CSS only) */
body::before {
    content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
    background:
        radial-gradient(125% 62% at 50% -14%, rgb(from var(--tk-primary, #BE8870) r g b / .12), transparent 60%),
        radial-gradient(140% 90% at 50% 120%, rgba(0, 0, 0, .55), transparent 55%);
}
body::after {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    opacity: .035; mix-blend-mode: overlay;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.hidden { display: none !important; }
strong, b { font-weight: 600; }

::selection { background: var(--clay); color: var(--ink); }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }

/* ---------- Layout ---------- */
.designo-wrap { max-width: 640px; margin-inline: auto; padding-inline: 22px; padding-block-end: calc(var(--dock-h) + 34px); }

/* Section spotlight: a warm pool of light that alternates sides as you
   scroll down the page — section-scoped gradients, zero JS. */
.sec { position: relative; isolation: isolate; padding-block: 52px; }
.sec::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(58% 42% at 14% 2%, rgb(from var(--tk-primary, #BE8870) r g b / .1), transparent 68%);
}
section.sec:nth-of-type(even)::before {
    background: radial-gradient(58% 42% at 86% 2%, rgb(from var(--tk-primary, #BE8870) r g b / .1), transparent 68%);
}
.sec-tight { padding-block: 30px; }

.sec-head { margin-block-end: 28px; }
.kicker {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: 10.5px; font-weight: 600; letter-spacing: .3em;
    text-transform: uppercase; color: var(--clay);
}
/* Signature: a draftsman tick + measured rule, not a plain dash */
.kicker::before { content: ""; width: 30px; height: 1px; background: linear-gradient(90deg, var(--clay), transparent); position: relative; }
.kicker::after { content: ""; width: 5px; height: 5px; margin-inline-start: -8px; border: 1px solid var(--clay); border-radius: 50%; }
.sec-title { font-family: var(--font-d); font-size: clamp(2rem, 7vw, 2.9rem); font-weight: 400; letter-spacing: .005em; line-height: 1.1; margin-block-start: 12px; }
.sec-title em { color: var(--clay); font-style: italic; }
.sec-sub { color: var(--muted); font-size: 14px; margin-block-start: 10px; max-width: 50ch; }
.title-arrow { display: inline-block; color: var(--clay); transition: transform .35s ease; }
.sec-head:hover .title-arrow { transform: translateX(6px); }
[dir="rtl"] .title-arrow { transform: scaleX(-1); }
[dir="rtl"] .sec-head:hover .title-arrow { transform: scaleX(-1) translateX(6px); }

/* ---------- Reveal choreography ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .9s cubic-bezier(.25, .8, .3, 1), transform .9s cubic-bezier(.25, .8, .3, 1); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .1s; } .rv-d2 { transition-delay: .2s; } .rv-d3 { transition-delay: .3s; }

/* ---------- Orchestrated page-load (hero only) ----------
   Initial hidden state is gated behind .js (set by the script) so the hero is
   never invisible if JS fails to load. */
.js .hero .rv { opacity: 0; transform: translateY(22px); }
.js .hero-loaded .rv { animation: hero-rise .95s cubic-bezier(.2, .85, .25, 1) forwards; }
.hero-loaded .rv.rv-d1 { animation-delay: .12s; }
.hero-loaded .rv.rv-d2 { animation-delay: .24s; }
.hero-loaded .rv.rv-d3 { animation-delay: .36s; }
.js .ghost-word { opacity: 0; }
.js .hero-loaded .ghost-word { animation: ghost-in 1.4s cubic-bezier(.2, .85, .25, 1) .1s forwards; }
@keyframes hero-rise { to { opacity: 1; transform: none; } }
@keyframes ghost-in { from { opacity: 0; transform: rotate(-6deg) translateY(20px); } to { opacity: .14; transform: rotate(-6deg) translateY(0); } }
[dir="rtl"] .js .hero-loaded .ghost-word { animation-name: ghost-in-rtl; }
@keyframes ghost-in-rtl { from { opacity: 0; transform: rotate(6deg) translateY(20px); } to { opacity: .14; transform: rotate(6deg) translateY(0); } }

/* ---------- Clay underline that grows (signature hover) ---------- */
.u-grow { position: relative; }
.u-grow::after {
    content: ""; position: absolute; inset-inline: 0; inset-block-end: -4px; height: 1px;
    background: var(--clay); transform: scaleX(0); transform-origin: left center;
    transition: transform .35s cubic-bezier(.25, .8, .3, 1);
}
[dir="rtl"] .u-grow::after { transform-origin: right center; }
.u-grow:hover::after, .u-grow:focus-visible::after { transform: scaleX(1); }

/* ---------- Topbar ---------- */
.topbar {
    position: sticky; inset-block-start: 0; z-index: 60;
    display: flex; align-items: center; gap: 12px;
    margin-inline: -22px; padding: 12px 22px;
    background: rgb(from var(--tk-bg, #141310) r g b / .88);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-block-end: 1px solid var(--line);
}
.topbar-avatar { width: 38px; height: 38px; border-radius: var(--r); object-fit: cover; border: 1px solid var(--clay); box-shadow: 0 0 0 3px rgb(from var(--tk-primary, #BE8870) r g b / .1); }
.topbar-name { font-family: var(--font-d); font-size: 18px; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-spacer { flex: 1; }

/* ---------- Hero (the Entrance) ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-block: 50px 40px; }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(78% 60% at 20% 4%, rgb(from var(--tk-primary, #BE8870) r g b / .18), transparent 62%);
}
/* Signature ghost-word: the studio's first name, drafted large behind the title.
   Visible enough to read as an intentional watermark, not a smudge. */
.ghost-word {
    position: absolute; z-index: 0; inset-block-start: -2%; inset-inline-start: -5%;
    font-family: var(--font-d); font-style: italic;
    font-size: clamp(7rem, 34vw, 13rem); line-height: .9; white-space: nowrap;
    color: transparent; -webkit-text-stroke: 1px rgb(from var(--tk-primary, #BE8870) r g b / .5);
    opacity: .14; transform: rotate(-6deg); transform-origin: 0 0;
    pointer-events: none; user-select: none;
}
[dir="rtl"] .ghost-word { transform: rotate(6deg); transform-origin: 100% 0; }
.hero-inner, .hero-media { position: relative; z-index: 1; }

.hero-chip {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 9px 16px; border: 1px solid var(--line-2); border-radius: 100px;
    background: rgb(from var(--tk-primary, #BE8870) r g b / .06);
    font-size: 10px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--bone);
}
.hero-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--olive); box-shadow: 0 0 0 0 rgb(from var(--tk-secondary, #9FA071) r g b / .5); animation: dot-pulse 2.6s ease-out infinite; }
@keyframes dot-pulse { 70% { box-shadow: 0 0 0 8px rgb(from var(--tk-secondary, #9FA071) r g b / 0); } 100% { box-shadow: 0 0 0 0 rgb(from var(--tk-secondary, #9FA071) r g b / 0); } }

.hero-title { font-family: var(--font-d); font-weight: 400; font-size: clamp(3.1rem, 13vw, 5.2rem); line-height: .98; letter-spacing: -.01em; margin-block-start: 22px; }
.hero-title em { color: var(--clay); font-style: italic; }
.hero-sub { display: flex; align-items: baseline; gap: 12px; font-family: var(--font-d); font-size: clamp(1.2rem, 4.8vw, 1.6rem); color: var(--clay); margin-block-start: 14px; }
.hero-sub::before { content: ""; flex: none; width: 32px; height: 1px; background: var(--clay); transform: translateY(-6px); }
.hero-sub em { font-style: italic; }
.hero-desc { margin-block-start: 18px; color: var(--muted); font-size: 15px; line-height: 1.7; max-width: 52ch; }
.hero-desc p { margin-block-end: .6em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 28px; }

.btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 16px 28px; border: 0; border-radius: 2px;
    background: linear-gradient(180deg, var(--clay-hi), var(--clay)); color: color-mix(in srgb, var(--tk-primary, #BE8870) 22%, #000);
    font-family: var(--font-b); font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
    box-shadow: 0 16px 34px -16px rgb(from var(--tk-primary, #BE8870) r g b / .65), 0 1px 0 rgba(255,255,255,.18) inset;
    transition: filter .3s ease, transform .3s ease, box-shadow .3s ease;
}
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 22px 44px -16px rgb(from var(--tk-primary, #BE8870) r g b / .8), 0 1px 0 rgba(255,255,255,.22) inset; }
.btn-primary:active { transform: none; }
.btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 16px 24px; border: 1px solid var(--line-2); border-radius: 2px;
    background: transparent; color: var(--bone);
    font-family: var(--font-b); font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
    transition: border-color .3s ease, color .3s ease;
}
.btn-ghost:hover { border-color: var(--clay); color: var(--clay); }
.btn-mini {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 0; border: 0; background: transparent;
    color: var(--clay); font-family: var(--font-b);
    font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.btn-mini i { font-size: 12.5px; }

/* Hero media: mounted-print frame, image warms to color on hover */
.hero-media { margin-block-start: 36px; }
.hero-media.frame {
    position: relative; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden;
    box-shadow: var(--sh-2);
}
.hero-media.frame::before {
    /* clay mat — inner mount line of a framed print */
    content: ""; position: absolute; inset: 12px; z-index: 2; border: 1px solid rgb(from var(--tk-primary, #BE8870) r g b / .55); pointer-events: none;
}
/* Draftsman corner-ticks: the ownable geometry, repeated on every framed surface */
.hero-media.frame::after {
    content: ""; position: absolute; inset-block-start: 12px; inset-inline-start: 12px; z-index: 3;
    width: 16px; height: 16px; pointer-events: none;
    border-block-start: 2px solid var(--clay); border-inline-start: 2px solid var(--clay);
}
.hero-media.frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: filter .6s ease, transform .6s cubic-bezier(.25, .8, .3, 1); }
.hero-media.frame:hover img { transform: scale(1.03); }
.hero-media.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line-2); border-radius: var(--r); display: block; background: #000; box-shadow: var(--sh-2); }

/* ---------- Mood-board strip (60px gallery thumbs, slow marquee) ---------- */
.mood {
    overflow: hidden; margin-inline: -22px; padding-block: 10px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.mood-track { display: flex; gap: 12px; width: max-content; animation: mood-roll 48s linear infinite; }
[dir="rtl"] .mood-track { animation-name: mood-roll-rtl; }
@keyframes mood-roll { to { transform: translateX(-50%); } }
@keyframes mood-roll-rtl { to { transform: translateX(50%); } }
.mood:hover .mood-track { animation-play-state: paused; }
.mood-thumb { width: 130px; height: 92px; flex: none; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.mood-thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) sepia(.1); transition: filter .5s ease; }
.mood:hover .mood-thumb img { filter: grayscale(.1) sepia(.04); }

/* ---------- Studio figures (counters in hairline frames) ---------- */
.stat-row {
    display: flex; flex-wrap: wrap; row-gap: 28px;
    padding-block: 26px; border-block: 1px solid var(--line-2);
}
.stat { flex: 1 1 45%; min-width: 132px; border-inline-start: 2px solid var(--clay); padding-inline-start: 16px; }
.stat-num { font-family: var(--font-d); font-size: clamp(2.3rem, 8.5vw, 3.1rem); line-height: .95; color: var(--bone); }
.stat-label { margin-block-start: 9px; color: var(--clay); font-size: 9.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; }

/* ---------- Quick actions (centered flex — rows balance at any count) ---------- */
.qa-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-block-start: 28px; }
.qa-item {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    flex: 0 1 106px; min-width: 92px;
    padding: 16px 10px; border: 1px solid var(--line); border-radius: var(--r-md);
    background: var(--ink-card); color: var(--muted); box-shadow: var(--sh-1);
    font-size: 9.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
    transition: border-color .3s ease, color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.qa-item i { font-size: 18px; color: var(--clay); }
.qa-item:hover { border-color: rgb(from var(--tk-primary, #BE8870) r g b / .5); color: var(--bone); transform: translateY(-3px); box-shadow: var(--sh-2); }

/* ---------- Projects (wide 4:3 carousel, materials chips) ---------- */
.pj { position: relative; }
.pj-track {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity;
    margin-inline: -22px; padding-inline: 22px; padding-block-end: 6px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.pj-track::-webkit-scrollbar { display: none; }
.pj-card { flex: 0 0 86%; max-width: 540px; scroll-snap-align: center; margin: 0; }
.pj-frame { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); background: var(--ink-2); box-shadow: var(--sh-2); }
.pj-frame::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgb(from var(--tk-primary, #BE8870) r g b / 0); pointer-events: none; transition: border-color .45s ease; }
.pj-card:hover .pj-frame::after { border-color: rgb(from var(--tk-primary, #BE8870) r g b / .6); }
/* Draftsman corner-tick — appears on hover, ties to the hero frame geometry */
.pj-frame .pj-tick { position: absolute; inset-block-start: 10px; inset-inline-end: 10px; z-index: 2; width: 14px; height: 14px; border-block-start: 2px solid var(--clay); border-inline-end: 2px solid var(--clay); opacity: 0; transition: opacity .45s ease; pointer-events: none; }
.pj-card:hover .pj-frame .pj-tick { opacity: 1; }
.pj-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.25, .8, .3, 1), filter .6s ease; }
.pj-card:hover .pj-frame img { transform: scale(1.04); }
.pj-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-block-start: 12px; }
.pj-tag {
    padding: 5px 11px; border: 1px solid var(--line); border-radius: 2px;
    font-size: 9.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.pj-tag.pj-idx { border: 0; background: var(--clay); color: var(--ink); padding: 6px 10px; font-family: var(--font-d); letter-spacing: .04em; }
.pj-nav {
    position: absolute; inset-block-start: 38%; transform: translateY(-50%);
    width: 42px; height: 42px; border-radius: var(--r); border: 1px solid var(--line-2);
    background: rgb(from var(--ink-2) r g b / .9); color: var(--bone);
    display: grid; place-items: center; font-size: 13px; z-index: 5;
    transition: color .25s ease, border-color .25s ease;
}
.pj-nav:hover { color: var(--clay); border-color: var(--clay); }
.pj-nav.prev { inset-inline-start: -8px; }
.pj-nav.next { inset-inline-end: -8px; }
[dir="rtl"] .pj-nav i { transform: scaleX(-1); }
@media (max-width: 759px) { .pj-nav { display: none; } } /* touch swipes on mobile */

/* ---------- Walkthroughs (videos) ---------- */
.reel { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -22px; padding-inline: 22px; padding-block-end: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.reel::-webkit-scrollbar { display: none; }
.reel-item { flex: 0 0 86%; scroll-snap-align: center; }
.reel-item:only-child { margin-inline: auto; }
.reel-item iframe { width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line-2); border-radius: var(--r); display: block; background: #000; }
.reel-label { padding-block-start: 10px; font-family: var(--font-d); font-size: 15.5px; color: var(--muted); }

/* ---------- Client words (testimonials — horizontal scroll bar) ---------- */
.tm-track {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity;
    margin-inline: -22px; padding-inline: 22px; padding-block-end: 6px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.tm-track::-webkit-scrollbar { display: none; }
.tm-card { flex: 0 0 84%; max-width: 420px; scroll-snap-align: center; position: relative; padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--ink-card); box-shadow: var(--sh-2); }
.tm-card:only-child { margin-inline: auto; }
.tm-mark { position: absolute; inset-block-start: 4px; inset-inline-end: 18px; font-family: var(--font-d); font-size: 74px; line-height: 1; color: var(--clay); opacity: .22; }
.tm-stars { display: flex; gap: 3px; color: var(--clay); font-size: 12px; margin-block-end: 12px; }
.tm-text { font-family: var(--font-d); font-style: italic; font-size: 16.5px; line-height: 1.55; color: var(--bone); }
.tm-who { display: flex; align-items: center; gap: 12px; margin-block-start: 18px; padding-block-start: 14px; border-block-start: 1px solid var(--line); }
.tm-who img { width: 40px; height: 40px; border-radius: var(--r); object-fit: cover; border: 1px solid var(--line-2); }
.tm-name { font-size: 13px; font-weight: 600; letter-spacing: .06em; }
.tm-sub { color: var(--dim); font-size: 11.5px; }

/* ---------- Services (expandable hairline rows, native details) ---------- */
.svc-list { border-block-start: 1px solid var(--line-2); }
.svc-row { border-block-end: 1px solid var(--line-2); }
.svc-sum { display: flex; align-items: center; gap: 16px; padding-block: 19px; cursor: pointer; list-style: none; }
.svc-sum::-webkit-details-marker { display: none; }
.svc-idx { font-size: 10.5px; font-weight: 600; letter-spacing: .2em; color: var(--clay); }
.svc-name { font-family: var(--font-d); font-size: 21px; line-height: 1.2; color: var(--bone); flex: 1; transition: color .3s ease; }
.svc-sum:hover .svc-name { color: var(--clay); }
.svc-plus { position: relative; width: 30px; height: 30px; flex: none; border: 1px solid var(--line-2); border-radius: 50%; transition: transform .4s cubic-bezier(.25, .8, .3, 1), border-color .3s ease; }
.svc-plus::before, .svc-plus::after { content: ""; position: absolute; inset: 0; margin: auto; background: var(--bone); transition: background .3s ease; }
.svc-plus::before { width: 12px; height: 1px; }
.svc-plus::after { width: 1px; height: 12px; }
details[open] .svc-plus { transform: rotate(45deg); border-color: var(--clay); }
details[open] .svc-plus::before, details[open] .svc-plus::after { background: var(--clay); }
.svc-body { display: grid; gap: 18px; padding-block: 2px 24px; animation: svc-in .5s cubic-bezier(.25, .8, .3, 1); }
@keyframes svc-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.svc-desc { color: var(--muted); font-size: 14px; line-height: 1.7; max-width: 56ch; }
.svc-cta { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; margin-block-start: 14px; }
.svc-img { display: none; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--sh-2); transition: filter .6s ease; }

/* ---------- The collection (products as ledger rows) ----------
   Mobile: thumb + copy on the top row (copy gets the FULL remaining width,
   never squeezed into a ragged column), price + CTA on a comfortable footer
   line. Desktop restores the side-by-side price column. */
.col-list { display: grid; gap: 14px; }
.col-row {
    position: relative;
    display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: start;
    padding: 18px; padding-inline-start: 22px; border: 1px solid var(--line); border-radius: var(--r-md);
    background: var(--ink-card); box-shadow: var(--sh-1); overflow: hidden;
    transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
/* Clay rail grows from the inline-start edge on hover (ledger marker) */
.col-row::before {
    content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 3px;
    background: var(--clay); transform: scaleY(0); transform-origin: top; transition: transform .35s cubic-bezier(.25,.8,.3,1);
}
.col-row:hover { border-color: rgb(from var(--tk-primary, #BE8870) r g b / .45); transform: translateY(-2px); box-shadow: var(--sh-2); }
.col-row:hover::before { transform: scaleY(1); }
.col-thumb { width: 72px; aspect-ratio: 1; flex: none; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); }
.col-thumb img { width: 100%; height: 100%; object-fit: cover; transition: filter .6s ease; }
.col-info { min-width: 0; }
/* When a product has no thumbnail, the copy spans both columns */
.col-row > .col-info:first-child { grid-column: 1 / -1; }
.col-badge { display: inline-block; padding: 4px 10px; margin-block-end: 8px; font-size: 9px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); background: var(--clay); border-radius: 2px; }
.col-name { font-family: var(--font-d); font-size: 19px; font-weight: 400; line-height: 1.25; }
.col-desc { color: var(--muted); font-size: 12.5px; line-height: 1.6; margin-block-start: 6px; }
.col-stock { font-size: 9.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-block-start: 10px; }
.col-stock.ok { color: var(--olive); }
.col-stock.out { color: var(--err); }
/* Price + CTA footer: spans the full card width on a single comfortable line */
.col-side {
    grid-column: 1 / -1;
    display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px;
    margin-block-start: 14px; padding-block-start: 14px; border-block-start: 1px solid var(--line);
}
.col-price { font-family: var(--font-d); font-size: 23px; color: var(--clay); line-height: 1; }
.col-price-old { color: var(--dim); font-size: 12.5px; text-decoration: line-through; }
.col-side .btn-mini { margin-inline-start: auto; }

/* ---------- Links & resources ---------- */
.link-grid { display: grid; gap: 10px; }
.link-card {
    display: flex; align-items: center; gap: 14px;
    padding: 15px 16px; border: 1px solid var(--line); border-radius: var(--r-md);
    background: var(--ink-card); box-shadow: var(--sh-1);
    transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.link-card:hover { border-color: rgb(from var(--tk-primary, #BE8870) r g b / .45); transform: translateX(4px); box-shadow: var(--sh-2); }
[dir="rtl"] .link-card:hover { transform: translateX(-4px); }
.link-ic { width: 40px; height: 40px; border-radius: var(--r); display: grid; place-items: center; border: 1px solid var(--line); color: var(--clay); font-size: 15px; flex: none; }
.link-label { font-weight: 600; font-size: 13.5px; color: var(--bone); }
.link-val { color: var(--dim); font-size: 12px; word-break: break-word; }
.link-arrow { margin-inline-start: auto; color: var(--dim); }
[dir="rtl"] .link-arrow i { transform: scaleX(-1); }
.iframe-wrap { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-block-end: 12px; }
.iframe-wrap iframe { width: 100%; min-height: 320px; border: 0; display: block; }

/* ---------- Panels & forms ---------- */
.panel { border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 26px 22px; background: var(--ink-card); box-shadow: var(--sh-2); }
.f-label { display: block; font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-block: 15px 7px; }
.f-input, select.f-input, textarea.f-input {
    width: 100%; padding: 13px 15px; border-radius: 2px;
    background: rgb(from var(--tk-text, #ECE6DA) r g b / .04); border: 1px solid var(--line-2);
    color: var(--bone); font-family: var(--font-b); font-size: 14.5px;
    transition: border-color .25s ease, box-shadow .25s ease;
    appearance: none; -webkit-appearance: none;
}
.f-input:focus { outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px rgb(from var(--tk-primary, #BE8870) r g b / .18); }
.f-input::placeholder { color: var(--dim); }
select.f-input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A9A296' stroke-width='1.4' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: calc(100% - 16px) center; }
[dir="rtl"] select.f-input { background-position: 16px center; }
select.f-input option { background: var(--ink-3); color: var(--bone); }
.grid-2f { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.alert-box { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: var(--r); font-size: 13.5px; margin-block-end: 14px; }
.alert-error { background: rgb(from var(--tk-danger, #CE7A63) r g b / .1); border: 1px solid rgb(from var(--tk-danger, #CE7A63) r g b / .4); color: color-mix(in srgb, var(--tk-danger, #CE7A63) 78%, #fff); }
.alert-success { background: rgb(from var(--tk-success, #9A9B6F) r g b / .1); border: 1px solid rgb(from var(--tk-success, #9A9B6F) r g b / .4); color: color-mix(in srgb, var(--tk-success, #9A9B6F) 70%, #fff); }

/* flatpickr warm-ink skin */
.flatpickr-calendar { background: var(--ink-3) !important; border: 1px solid var(--line-2) !important; border-radius: var(--r-md) !important; box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .7) !important; color: var(--bone) !important; }
.flatpickr-months, .flatpickr-weekdays { background: transparent !important; }
.flatpickr-month, .flatpickr-current-month .flatpickr-monthDropdown-months, .flatpickr-current-month input.cur-year, .flatpickr-weekday { color: var(--bone) !important; fill: var(--bone) !important; }
.flatpickr-day { color: var(--muted) !important; border-radius: var(--r) !important; }
.flatpickr-day:hover { background: rgb(from var(--tk-text, #ECE6DA) r g b / .08) !important; border-color: transparent !important; }
.flatpickr-day.selected { background: var(--clay) !important; border-color: var(--clay) !important; color: var(--ink) !important; }
.flatpickr-day.flatpickr-disabled { color: rgb(from var(--tk-text, #ECE6DA) r g b / .16) !important; }
.flatpickr-prev-month svg, .flatpickr-next-month svg { fill: var(--muted) !important; }

/* ---------- Studio hours ---------- */
.hour-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 14px; border-block-end: 1px solid var(--line); font-size: 13.5px; }
.hour-row:last-child { border-block-end: 0; }
.hour-day { color: var(--muted); letter-spacing: .04em; }
.hour-time { color: var(--bone); }
.hour-row.today .hour-day, .hour-row.today .hour-time { color: var(--olive); font-weight: 600; }
.hour-24 { display: flex; align-items: center; gap: 10px; color: var(--olive); font-weight: 600; font-size: 14px; letter-spacing: .04em; }

/* ---------- Map (sepia print, warms on hover) ---------- */
.map-wrap { border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.map-wrap iframe { width: 100%; height: 280px; border: 0; display: block; filter: grayscale(.85) sepia(.16) brightness(.9); transition: filter .6s ease; }
.map-wrap:hover iframe { filter: none; }

/* ---------- Payments ---------- */
.pay-grid { display: grid; gap: 12px; }
.pay-card { padding: 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--ink-card); box-shadow: var(--sh-1); }
.pay-label { font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--bone); margin-block-end: 6px; }
.pay-label i { color: var(--clay); }
.pay-val { color: var(--muted); font-size: 13.5px; word-break: break-all; }
.pay-img { border-radius: var(--r); max-height: 220px; margin-inline: auto; }

/* ---------- Socials + footer (centered flex — rows balance at any count) ---------- */
.soc-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.soc-item {
    display: flex; flex-direction: column; align-items: center; gap: 9px;
    flex: 0 1 110px; min-width: 96px;
    padding: 18px 12px; border: 1px solid var(--line); border-radius: var(--r-md);
    background: var(--ink-card); box-shadow: var(--sh-1);
    font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
    transition: border-color .3s ease, color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.soc-item i { font-size: 21px; color: var(--clay); }
.soc-item:hover { border-color: rgb(from var(--tk-primary, #BE8870) r g b / .5); color: var(--bone); transform: translateY(-3px); box-shadow: var(--sh-2); }
.footer { text-align: center; padding-block: 30px 12px; margin-block-start: 16px; border-block-start: 1px solid var(--line); color: var(--dim); font-size: 12px; letter-spacing: .04em; }
.footer::before { content: "✶"; display: block; color: var(--clay); font-size: 14px; margin-block-end: 14px; opacity: .7; }
.footer a { color: var(--muted); border-block-end: 1px solid var(--line-2); transition: color .25s ease, border-block-end-color .25s ease; }
.footer a:hover { color: var(--clay); border-block-end-color: var(--clay); }

/* ---------- Action bar (flat hairline dock) ---------- */
.dock {
    position: fixed; inset-block-end: 0; inset-inline: 0; z-index: 70;
    background: rgb(from var(--tk-bg, #141310) r g b / .94);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-block-start: 1px solid var(--line-2);
    padding-block-end: env(safe-area-inset-bottom);
    transition: transform .4s cubic-bezier(.25, .8, .3, 1);
}
.dock.dock-hide { transform: translateY(110%); }
.dock-inner { display: flex; align-items: stretch; max-width: 640px; margin-inline: auto; }
.dock-btn {
    flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    padding: 10px 4px 9px; border: 0; background: transparent;
    color: var(--muted); font-family: var(--font-b);
    font-size: 9px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
    transition: color .25s ease, background .25s ease;
}
.dock-btn i { font-size: 16px; color: var(--bone); transition: color .25s ease; }
.dock-btn:hover, .dock-btn:focus-visible { color: var(--bone); }
.dock-btn:hover i { color: var(--clay); }
.dock-btn.dock-main { background: linear-gradient(180deg, var(--clay-hi), var(--clay)); color: color-mix(in srgb, var(--tk-primary, #BE8870) 22%, #000); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset; }
.dock-btn.dock-main i { color: color-mix(in srgb, var(--tk-primary, #BE8870) 22%, #000); }
.dock-btn.dock-main:hover { filter: brightness(1.06); color: color-mix(in srgb, var(--tk-primary, #BE8870) 22%, #000); }
.dock-btn.dock-main:hover i { color: color-mix(in srgb, var(--tk-primary, #BE8870) 22%, #000); }

/* ---------- Modals ---------- */
.pm-overlay {
    position: fixed; inset: 0; z-index: 90;
    display: flex; align-items: flex-end; justify-content: center;
    background: rgb(from color-mix(in srgb, var(--tk-bg, #141310) 80%, #000) r g b / .78); backdrop-filter: blur(6px);
    opacity: 0; transition: opacity .3s ease; padding: 14px;
}
.pm-overlay.show { opacity: 1; }
.pm-box {
    position: relative; /* anchors .pm-close inside the box */
    width: 100%; max-width: 460px; max-height: 88vh; overflow-y: auto;
    border-radius: var(--r-md); padding: 26px 22px;
    background: color-mix(in srgb, var(--tk-bg, #141310) 84%, var(--tk-text, #ECE6DA)); border: 1px solid var(--line-2);
    transform: translateY(30px); transition: transform .4s cubic-bezier(.25, .8, .3, 1);
}
.pm-overlay.show .pm-box { transform: none; }
.pm-title { font-family: var(--font-d); font-size: 23px; font-weight: 400; }
.pm-sub { color: var(--muted); font-size: 13px; margin-block-start: 4px; }
.pm-close {
    position: absolute; inset-block-start: 16px; inset-inline-end: 16px;
    width: 38px; height: 38px; border-radius: var(--r);
    border: 1px solid var(--line-2); background: transparent; color: var(--muted);
    display: grid; place-items: center;
    transition: color .25s ease, border-color .25s ease;
}
.pm-close:hover { color: var(--clay); border-color: var(--clay); }
.pm-head { position: relative; margin-block-end: 10px; padding-inline-end: 46px; }
.pm-actions { display: flex; gap: 10px; margin-block-start: 20px; }
.pm-actions .btn-ghost, .pm-actions .btn-primary { flex: 1; }
.qr-wrap { display: grid; place-items: center; padding: 16px; background: #fff; border-radius: var(--r-md); width: fit-content; margin: 18px auto; }
.share-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-block: 16px; }
.share-row a {
    width: 46px; height: 46px; border-radius: var(--r);
    display: grid; place-items: center; border: 1px solid var(--line-2);
    font-size: 16px; color: var(--bone);
    transition: color .25s ease, border-color .25s ease, transform .25s ease;
}
.share-row a:hover { color: var(--clay); border-color: var(--clay); transform: translateY(-2px); }

@media (min-width: 480px) {
    .pm-overlay { align-items: center; }
}

/* ---------- Image tone: desaturated at rest, color on intent ---------- */
@media (hover: hover) {
    .pj-frame img, .svc-img, .col-thumb img, .hero-media.frame img { filter: grayscale(.45) sepia(.07); }
    .pj-card:hover .pj-frame img,
    .svc-row:hover .svc-img,
    .col-row:hover .col-thumb img,
    .hero-media.frame:hover img { filter: none; }
}

/* ---------- Desktop ---------- */
@media (min-width: 760px) {
    .designo-wrap { max-width: 1000px; padding-inline: 32px; }
    .topbar { margin-inline: -32px; padding-inline: 32px; }
    .sec { padding-block: 76px; }
    .sec-tight { padding-block: 38px; }
    .hero { display: grid; grid-template-columns: 1.1fr .95fr; gap: 54px; align-items: center; padding-block: 104px 64px; }
    .hero-media { margin-block-start: 0; }
    .hero-title { font-size: clamp(3.6rem, 5.6vw, 5rem); }
    .ghost-word { font-size: clamp(11rem, 24vw, 19rem); inset-block-start: -6%; }
    .mood, .pj-track, .reel, .tm-track { margin-inline: -32px; padding-inline: 32px; }
    .stat { flex: 1 1 0; }
    .pj-card { flex-basis: 56%; }
    .reel-item { flex-basis: 58%; }
    .tm-card { flex-basis: 46%; }
    .qa-item { flex-basis: 190px; }
    .soc-item { flex-basis: 150px; }
    .svc-name { font-size: 25px; }
    .svc-body { grid-template-columns: 1.15fr .85fr; align-items: start; }
    .svc-img { display: block; }
    /* Desktop ledger: thumb | copy | price column side-by-side (room to breathe) */
    .col-row { grid-template-columns: auto 1fr auto; align-items: center; column-gap: 22px; padding: 22px 24px; }
    .col-thumb { width: 104px; }
    .col-row > .col-info:first-child { grid-column: 2 / 3; }
    .col-side {
        grid-column: 3 / 4; flex-direction: column; align-items: flex-end; flex-wrap: nowrap;
        gap: 4px; margin-block-start: 0; padding-block-start: 0; border-block-start: 0; text-align: end;
    }
    .col-side .btn-mini { margin-inline-start: 0; margin-block-start: 10px; }
    .map-wrap iframe { height: 340px; }
    .dock-inner { max-width: 520px; border-inline: 1px solid var(--line); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .mood-track, .hero-chip .dot { animation: none !important; }
    .rv { opacity: 1; transform: none; transition: none; }
    .js .hero .rv, .js .hero-loaded .rv { animation: none !important; opacity: 1; transform: none; }
    .js .ghost-word, .js .hero-loaded .ghost-word { animation: none !important; opacity: .14; }
    .svc-body { animation: none; }
    .pj-frame img, .hero-media.frame img, .map-wrap iframe, .svc-img, .col-thumb img { transition: none; }
    .dock, .pm-overlay, .pm-box { transition: none; }
}


/* ============================================================
   GLOBAL CONTAINMENT BASELINE (founder remark: diagonal-scroll
   drift / horizontal "wiggle" on mobile + zoom-out).
   overflow-x:clip on html is sticky-safe (unlike hidden) and
   stops the horizontal pan; overscroll-behavior-x:none kills the
   rubber-band; max-width:100% + min-width:0 prevent any child
   from forcing the document wider than the viewport.
   ============================================================ */
html { overflow-x: clip; }
body { overflow-x: clip; overscroll-behavior-x: none; max-width: 100%; }
/* horizontal scrollers keep their swipe to themselves */
.car-track, .reel, .film-reel, .tm-track, .letters, .marquee, .marquee-track,
[class*="-track"], [class*="-rail"], [class*="-carousel"], [class*="-scroll"] {
    overscroll-behavior-x: contain;
    max-width: 100vw;
}
