/* Norq Studio. The site is the studio: limewash walls, samples on the table,
   reeded glass doors. Colours come from her own boards. */

:root {
  --plaster: #E9E5E0;
  --paper: #DDD6CF;
  --linen: #F6F3EF;
  --taupe: #A9A09C;
  --taupe-2: #8F8581;
  --mist: #C9C1BC;
  --ink: #1D1814;
  --ink-2: #4A3F36;
  --ink-3: #7A6D60;
  --oxblood: #561A1E;
  --wine: #7A2B33;
  --walnut: #5A3B2A;
  --brass: #A98549;
  --brass-hi: #D9BE85;
  --moss: #56624A;
  --rose: #CFA295;
  --line: rgba(29, 24, 20, .16);
  --glass-edge: rgba(255, 255, 255, .55);

  --f-logo: 'Bodoni Moda', 'Didot', Georgia, serif;
  --f-display: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', system-ui, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --f-body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', system-ui, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --f-note: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', system-ui, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --f-sub: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', system-ui, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --bar-h: 72px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}
:lang(ar) {
  --f-display: 'SF Arabic', -apple-system, BlinkMacSystemFont, system-ui, 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
  --f-body: 'SF Arabic', -apple-system, BlinkMacSystemFont, system-ui, 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
  --f-sub: 'SF Arabic', -apple-system, BlinkMacSystemFont, system-ui, 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
  --f-note: 'SF Arabic', -apple-system, BlinkMacSystemFont, system-ui, 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--bar-h); }
body {
  margin: 0;
  background: var(--plaster) url(/materials/limewash.svg) 0 0 / 1200px 1200px repeat;
  color: var(--ink);
  font: 400 17px/1.65 var(--f-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
:lang(ar) body, body:lang(ar) { font-size: 18px; line-height: 1.85; }
body::after { /* paper grain over everything */
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 90;
  background: url(/materials/grain.svg); opacity: .07; mix-blend-mode: multiply;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--oxblood); color: var(--linen); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--linen); padding: 8px 14px; border-radius: 6px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }

/* ---------- type ---------- */
.wordmark {
  font-family: var(--f-logo); font-weight: 400; letter-spacing: .62em;
  margin-inline-end: -.62em; direction: ltr; unicode-bidi: isolate; white-space: nowrap;
  display: inline-block;
}
.lockup { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; direction: ltr; }
.lockup small { font: 400 .26em/1 var(--f-logo); letter-spacing: .24em; margin-top: .55em; white-space: nowrap; }
.zone { font: 400 12px/1 var(--f-display); letter-spacing: .7em; text-transform: uppercase; direction: ltr; unicode-bidi: isolate; }
/* her cushion frame: soft bulging sides, a thin inset rule */
.cushion { position: relative; border-radius: 9% / 22%; background: var(--taupe); color: var(--linen); }
.cushion::after { content: ''; position: absolute; inset: 7% 6%; border: 1px solid rgba(246, 243, 239, .55); outline: 1px solid rgba(80, 70, 66, .25); outline-offset: 2px; pointer-events: none; }
.kicker {
  margin: 0 0 14px; font: 500 12px/1.2 var(--f-body); letter-spacing: .22em; text-transform: uppercase; color: var(--wine);
  display: flex; align-items: center; gap: 12px;
}
.kicker::before { content: ''; width: 28px; height: 1px; background: currentColor; }
:lang(ar) .kicker { font-size: 14px; letter-spacing: 0; font-weight: 500; }
.sec-title {
  font: 400 clamp(32px, 5vw, 64px)/1.08 var(--f-display); margin: 0; letter-spacing: -.01em; text-wrap: balance;
}
:lang(ar) .sec-title { font-weight: 500; line-height: 1.35; letter-spacing: 0; }
.sec-text { max-width: 52ch; color: var(--ink-2); margin: 18px 0 0; }
.sec-head { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--linen);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  background: var(--bg); color: var(--fg); text-decoration: none; font: 500 15px/1 var(--f-body); letter-spacing: .02em;
  transition: transform .4s var(--ease), background .3s, color .3s, box-shadow .4s;
  cursor: pointer;
}
:lang(ar) .btn { font-size: 16px; letter-spacing: 0; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -14px rgba(29, 24, 20, .55); }
.btn--ink { --bg: var(--ink); }
.btn--light { --bg: var(--linen); --fg: var(--oxblood); }
.btn--line { --bg: transparent; --fg: var(--ink); border-color: var(--ink); }
.btn--line:hover { --bg: var(--ink); --fg: var(--linen); }
.btn--glass {
  --bg: rgba(255, 255, 255, .28); --fg: var(--ink);
  border-color: var(--glass-edge); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }

/* ---------- clear glass ---------- */
.glass {
  position: relative; border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .06) 45%, rgba(255, 255, 255, .14));
  backdrop-filter: blur(22px) saturate(1.25); -webkit-backdrop-filter: blur(22px) saturate(1.25);
  border: 1px solid rgba(255, 255, 255, .42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), inset 0 -1px 0 rgba(255, 255, 255, .12), 0 40px 80px -40px rgba(29, 24, 20, .45);
}
.glass::before { /* bevel light along the top edge */
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .35), transparent 22%);
  mask: linear-gradient(#000, #000) content-box exclude, linear-gradient(#000, #000);
  padding: 1px;
}

/* ---------- top bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 80; height: var(--bar-h);
  display: flex; align-items: center; gap: 24px; padding: 0 var(--gutter);
  transition: background .4s, box-shadow .4s, transform .5s var(--ease);
}
.bar.is-solid {
  background: rgba(237, 230, 219, .62); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 1px 0 var(--line);
}
.bar__brand { text-decoration: none; font-size: 21px; }
.bar__nav { display: flex; gap: 28px; margin-inline-start: auto; }
.bar__nav a { text-decoration: none; font-size: 15px; position: relative; padding: 6px 0; }
.bar__nav a::after { content: ''; position: absolute; inset: auto 0 0; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .4s var(--ease); }
.bar__nav a:hover::after, .bar__nav a[aria-current]::after { transform: scaleX(1); }
.bar__end { display: flex; align-items: center; gap: 16px; }
.bar__lang { text-decoration: none; font-size: 14px; opacity: .8; }
.bar__lang:hover { opacity: 1; }
.bar__menu { display: none; width: 44px; height: 44px; border: 0; background: none; position: relative; cursor: pointer; }
.bar__menu span:not(.sr) { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.bar__menu span:nth-child(1) { top: 18px; }
.bar__menu span:nth-child(2) { top: 25px; }
.bar__menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.bar__menu[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
.is-home .bar:not(.is-solid) { color: var(--ink); }

@media (max-width: 960px) {
  .bar__nav, .bar__book { display: none; }
  .bar__end { margin-inline-start: auto; }
  .bar__menu { display: block; }
}

.drawer {
  position: fixed; inset: 0; z-index: 70; padding: calc(var(--bar-h) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: rgba(237, 230, 219, .74); backdrop-filter: blur(26px) saturate(1.3); -webkit-backdrop-filter: blur(26px) saturate(1.3);
}
.drawer[hidden] { display: none; }
.drawer__nav { display: flex; flex-direction: column; gap: 4px; }
.drawer__nav a {
  font: 400 clamp(34px, 9vw, 54px)/1.25 var(--f-display); text-decoration: none;
  opacity: 0; transform: translateY(14px); animation: rise .6s var(--ease) forwards; animation-delay: calc(var(--i) * 55ms + 60ms);
}
.drawer__book { color: var(--wine); }
.drawer__foot { display: flex; align-items: center; justify-content: space-between; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- materials ---------- */
.m-viola { background: #F1ECE6 url(/materials/viola.svg) center / cover; }
.m-ebony { background: #1d1814 url(/materials/ebony.svg) center / cover; }
.m-pearl { background: #F1ECE6 url(/materials/pearl.svg) center / cover; }
.m-travertine { background: #DCCBB2 url(/materials/travertine.svg) center / cover; }
.m-velvet {
  background:
    radial-gradient(120% 80% at 28% 18%, rgba(255, 190, 180, .22), transparent 55%),
    radial-gradient(90% 90% at 80% 100%, rgba(0, 0, 0, .45), transparent 60%),
    linear-gradient(160deg, #7B2830, #4E1519 55%, #2F0B0E);
}
.m-dots {
  background-color: #EFE7DA;
  background-image: radial-gradient(circle, #1D1814 0 34%, transparent 36%), radial-gradient(circle, #1D1814 0 34%, transparent 36%);
  background-size: 22px 22px; background-position: 0 0, 11px 11px;
}
.m-stripe {
  background: repeating-linear-gradient(90deg, #F2EBDF 0 14px, #9DB0C2 14px 28px);
}
.m-stripe::after, .m-velvet::after, .m-dots::after { /* weave */
  content: ''; position: absolute; inset: 0; background: url(/materials/grain.svg); opacity: .25; mix-blend-mode: multiply; pointer-events: none;
}

/* ---------- the door (home hero) ---------- */
.door { position: relative; height: 230vh; }
.door__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.room {
  position: absolute; inset: 0; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center;
  gap: clamp(24px, 4vw, 64px); padding: calc(var(--bar-h) + 8px) var(--gutter) 40px;
  transform: scale(calc(1.06 - var(--p, 0) * .06)); transform-origin: 50% 60%;
}
.room__table { position: relative; height: min(72vh, 640px); }
.swatch {
  position: absolute; left: var(--x); top: var(--y); width: calc(var(--w) * 1%); aspect-ratio: 1;
  translate: -50% -50%; rotate: var(--r); z-index: var(--z);
  border: 0; padding: 0; cursor: pointer; border-radius: 3px; overflow: visible;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 2px 3px rgba(29, 24, 20, .18), 0 24px 40px -18px rgba(29, 24, 20, .5);
  transition: rotate .6s var(--ease), translate .6s var(--ease), box-shadow .6s var(--ease);
}
.swatch::before { /* stone/fabric edge thickness */
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), inset 0 -3px 6px rgba(0, 0, 0, .12);
}
.swatch:hover, .swatch.is-on { rotate: 0deg; translate: -50% -56%; z-index: 9; box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 40px 60px -22px rgba(29, 24, 20, .6); }
.swatch__tag {
  position: absolute; inset-inline-start: 8%; bottom: -14px; background: var(--linen); color: var(--ink);
  font: 500 11px/1 var(--f-body); letter-spacing: .08em; padding: 7px 10px; border-radius: 2px; white-space: nowrap;
  box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .4); text-transform: uppercase;
}
:lang(ar) .swatch__tag { text-transform: none; letter-spacing: 0; font-size: 12px; }
.note {
  position: absolute; z-index: 12; inset-inline-start: 50%; top: 4%; translate: -50% 0; margin: 0; width: max-content; max-width: 86%;
  padding: 14px 20px 16px; text-align: center; pointer-events: none;
  opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .5s var(--ease);
  background: rgba(245, 240, 232, .55); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .6); border-radius: 14px;
}
:dir(rtl) .note, [dir="rtl"] .note { translate: 50% 0; }
.note.is-on { opacity: 1; transform: none; }
.note__name { display: block; font: 500 11px/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--wine); margin-bottom: 8px; }
:lang(ar) .note__name { letter-spacing: 0; font-size: 13px; }
.note__text { font: 400 clamp(18px, 2vw, 24px)/1.3 var(--f-note); }
:lang(ar) .note__text { font-style: normal; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.5; }

.room__intro { max-width: 520px; }
.room__title { margin: 0 0 22px; font-weight: 400; }
.room__title .wordmark { font-size: clamp(54px, 8vw, 118px); line-height: 1; }
.room__sub { display: block; margin-top: 14px; font: 400 clamp(16px, 1.6vw, 20px)/1.4 var(--f-display); color: var(--ink-2); }
:lang(ar) .room__sub { font-size: clamp(19px, 1.8vw, 23px); }
.room__text { color: var(--ink-2); margin: 0 0 28px; }
.room__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.room__hint { margin: 22px 0 0; font: 400 15px/1 var(--f-note); color: var(--ink-3); }
:lang(ar) .room__hint { font-style: normal; font-size: 19px; }

/* reeded glass panes */
.door__glass { position: absolute; inset: 0; z-index: 20; pointer-events: none; }
.pane {
  position: absolute; top: 0; bottom: 0; width: 50.5%;
  backdrop-filter: blur(16px) saturate(1.15) brightness(1.04); -webkit-backdrop-filter: blur(16px) saturate(1.15) brightness(1.04);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .0), rgba(255, 255, 255, .16) 50%, rgba(255, 255, 255, 0)),
    repeating-linear-gradient(90deg,
      rgba(255, 255, 255, .30) 0, rgba(255, 255, 255, .06) 3px, rgba(120, 110, 100, .05) 9px,
      rgba(40, 30, 20, .07) 13px, rgba(255, 255, 255, .22) 15px, rgba(255, 255, 255, .30) 16px),
    rgba(235, 228, 218, .30);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
  transition: transform .05s linear;
  will-change: transform;
}
.pane--a { left: 0; transform: translateX(calc(var(--p, 0) * -102%)); border-right: 6px solid #2a221c; }
.pane--b { right: 0; transform: translateX(calc(var(--p, 0) * 102%)); border-left: 6px solid #2a221c; }
.pane::after { /* frame */
  content: ''; position: absolute; inset: 0; border-top: 6px solid #2a221c; border-bottom: 6px solid #2a221c; pointer-events: none;
}
.pane__handle {
  position: absolute; top: 50%; width: 10px; height: min(36vh, 300px); translate: 0 -50%; border-radius: 6px;
  background: linear-gradient(90deg, #6d5530, var(--brass-hi) 40%, #8a6a35 70%, #4d3a1e);
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, .45);
}
.pane__handle { top: 74%; height: min(22vh, 180px); }
.pane--a .pane__handle { right: 26px; }
.pane--b .pane__handle { left: 26px; }
.door__words {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 0 var(--gutter);
  opacity: calc(1 - var(--p, 0) * 3); transform: translateY(calc(var(--p, 0) * -40px));
  color: var(--ink);
}
.door__tag { margin: 0 0 22px; font: 500 12px/1 var(--f-body); letter-spacing: .3em; text-transform: uppercase; }
:lang(ar) .door__tag { letter-spacing: 0; font-size: 15px; }
.door__line { margin: 0; font: 400 clamp(46px, 9vw, 132px)/1 var(--f-display); letter-spacing: -.02em; }
.door__line span { display: block; }
.door__line span + span { font-style: normal; }
:lang(ar) .door__line { font-style: normal; font-weight: 500; line-height: 1.3; letter-spacing: 0; font-size: clamp(44px, 8.4vw, 120px); }
:lang(ar) .door__line span:first-child { font-weight: 300; }
.door__hint { margin: 34px 0 0; font-size: 14px; display: inline-flex; flex-direction: column; align-items: center; gap: 14px; justify-self: center; }
.door__hint i { width: 1px; height: 46px; background: linear-gradient(currentColor, transparent); animation: drip 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

html:not(.js) .door { height: auto; }
html:not(.js) .door__stage { position: relative; }
html:not(.js) .door__glass { display: none; }

@media (max-width: 860px) {
  .door { height: 210vh; }
  .room { grid-template-columns: 1fr; align-content: start; gap: 6px; padding-top: calc(var(--bar-h) + 40px); }
  .room__table { height: 38vh; margin: 34px 4px 10px; }
  .swatch { width: calc(var(--w) * 1.25%); }
  .room__title .wordmark { font-size: 46px; }
  .room__title { margin-bottom: 12px; }
  .room__sub { margin-top: 8px; }
  .room__text { font-size: 15px; margin-bottom: 18px; }
  .room__hint { display: none; }
  .swatch__tag { font-size: 9px; padding: 5px 7px; bottom: -10px; }
  .pane__handle { height: 14vh; top: 80%; }
}
@media (max-width: 860px) and (max-height: 720px) {
  .room__text { display: none; }
}

/* ---------- the rail (services) ---------- */
.rail-sec { padding: clamp(90px, 14vw, 180px) 0 clamp(70px, 10vw, 140px); }
.rail { position: relative; margin-top: clamp(40px, 6vw, 80px); }
.rail__rod {
  position: absolute; inset-inline: 0; top: 18px; height: 12px; z-index: 2;
  background: linear-gradient(180deg, #e8d3a4, var(--brass) 45%, #6f5426 85%, #4a3718);
  box-shadow: 0 6px 12px -4px rgba(0, 0, 0, .35);
}
.rail__list {
  list-style: none; margin: 0; padding: 0 var(--gutter) 40px;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: clamp(12px, 1.6vw, 22px);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.rail__list::-webkit-scrollbar { display: none; }
.hang { scroll-snap-align: center; padding-top: 6px; }
.hang__card {
  position: relative; display: flex; flex-direction: column; text-decoration: none; color: inherit;
  transform-origin: 50% 0; transition: transform .9s var(--ease);
  padding-top: 26px;
}
.hang__clip {
  position: absolute; top: 0; left: 50%; width: 30px; height: 40px; translate: -50% 0; z-index: 3;
  border: 2px solid #6f5426; border-bottom: 0; border-radius: 16px 16px 0 0;
}
.hang__clip::after { content: ''; position: absolute; left: -8px; right: -8px; bottom: -6px; height: 10px; background: linear-gradient(#d9be85, #8a6a35); border-radius: 2px; }
.hang__face { position: relative; display: block; aspect-ratio: 3 / 3.6; overflow: hidden; box-shadow: 0 30px 40px -26px rgba(29, 24, 20, .6); }
.hang__face::before { /* fold shading so it reads as a hanging sample */
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(0, 0, 0, .12), transparent 18%, transparent 82%, rgba(0, 0, 0, .12)), linear-gradient(180deg, rgba(255, 255, 255, .18), transparent 30%);
}
.hang__label {
  display: grid; gap: 6px; padding: 18px 18px 22px; background: var(--linen);
  box-shadow: 0 30px 40px -30px rgba(29, 24, 20, .45);
}
.hang__no { font: 400 14px/1 var(--f-display); color: var(--wine); font-family: var(--f-display); }
.hang__name { font: 500 22px/1.2 var(--f-display); }
:lang(ar) .hang__name { font-size: 23px; line-height: 1.5; }
.hang__line { font-size: 14px; line-height: 1.55; color: var(--ink-2); }
:lang(ar) .hang__line { font-size: 15px; line-height: 1.75; }
.hang__more { margin-top: 8px; font-size: 13px; letter-spacing: .06em; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; color: var(--wine); }
.hang__card:hover { transform: rotate(-2.2deg); }
[dir="rtl"] .hang__card:hover { transform: rotate(2.2deg); }
.rail.is-swaying .hang__card { animation: sway 2.6s var(--ease) both; animation-delay: calc(var(--i) * 90ms); }
.hang:nth-child(1) .hang__card { --i: 0; } .hang:nth-child(2) .hang__card { --i: 1; } .hang:nth-child(3) .hang__card { --i: 2; } .hang:nth-child(4) .hang__card { --i: 3; } .hang:nth-child(5) .hang__card { --i: 4; } .hang:nth-child(6) .hang__card { --i: 5; } .hang:nth-child(7) .hang__card { --i: 6; }
@keyframes sway { 0% { transform: rotate(4deg); } 30% { transform: rotate(-2.4deg); } 55% { transform: rotate(1.2deg); } 78% { transform: rotate(-.5deg); } 100% { transform: rotate(0); } }
@media (max-width: 760px) { .rail__list { grid-auto-columns: 72%; } }

/* ---------- TikTok board ---------- */
.board { padding: clamp(70px, 10vw, 140px) 0; background: var(--taupe); color: var(--linen); position: relative; overflow: hidden; }
.board::before { content: ''; position: absolute; inset: -10% -20% -10% 40%; background: url(/materials/contour.svg) center / cover no-repeat; opacity: .55; }
[dir="rtl"] .board::before { inset: -10% 40% -10% -20%; transform: scaleX(-1); }
.board .kicker { color: var(--linen); }
.board .sec-head { position: relative; }
.board__pins {
  list-style: none; margin: clamp(36px, 5vw, 64px) auto 0; padding: 0 var(--gutter); max-width: var(--max);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; position: relative;
}
.pin a {
  display: flex; flex-direction: column; justify-content: space-between; gap: 30px; min-height: 210px; padding: 26px; text-decoration: none;
  border-radius: 22px; color: var(--linen);
  background: linear-gradient(140deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: transform .6s var(--ease), background .4s;
}
.pin a:hover { transform: translateY(-6px) rotate(-.6deg); background: linear-gradient(140deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .05)); }
.pin span { font: 400 clamp(22px, 2.2vw, 28px)/1.25 var(--f-display); }
:lang(ar) .pin span { font: 400 clamp(25px, 2.4vw, 31px)/1.55 var(--f-note); }
.pin small { font-size: 12px; letter-spacing: .1em; opacity: .7; direction: ltr; text-align: end; }
.board__follow { text-align: center; margin: 44px 0 0; position: relative; }
.board .btn--line { --fg: var(--linen); border-color: rgba(245, 240, 232, .6); }
.board .btn--line:hover { --bg: var(--linen); --fg: var(--ink); }

/* ---------- steps as an elevation drawing ---------- */
.steps { padding: clamp(90px, 12vw, 170px) 0; }
.elev {
  list-style: none; margin: clamp(40px, 6vw, 80px) auto 0; padding: 0 var(--gutter); max-width: var(--max);
  display: grid; grid-template-columns: repeat(4, 1fr); position: relative;
}
.elev::before { /* floor line */
  content: ''; position: absolute; inset-inline: var(--gutter); bottom: 0; height: 1px; background: var(--ink);
}
.elev__bay { position: relative; padding: 0 clamp(12px, 2vw, 28px) 34px; border-inline-start: 1px solid var(--line); }
.elev__bay:last-child { border-inline-end: 1px solid var(--line); }
.elev__dim { /* dimension line with arrow ticks */
  display: flex; align-items: center; justify-content: center; height: 30px; position: relative; margin: 0 calc(clamp(12px, 2vw, 28px) * -1) 26px;
}
.elev__dim::before { content: ''; position: absolute; inset-inline: 0; top: 50%; height: 1px; background: var(--ink-3); }
.elev__dim::after {
  content: ''; position: absolute; inset: 8px 0; border-inline: 1px solid var(--ink-3);
}
.elev__dim b { position: relative; z-index: 1; background: var(--plaster); padding: 0 10px; font: 400 15px/1 var(--f-display); color: var(--wine); }
.elev__arch {
  display: block; height: clamp(110px, 14vw, 180px); margin: 0 auto 26px; width: 62%;
  border: 1px solid var(--ink); border-bottom: 0; border-radius: 999px 999px 0 0;
  background: repeating-linear-gradient(90deg, transparent 0 7px, rgba(29, 24, 20, .07) 7px 8px);
  position: relative;
}
.elev__arch::after { content: ''; position: absolute; inset: 12px 12px 0; border: 1px solid var(--line); border-bottom: 0; border-radius: inherit; }
.elev__bay h3 { margin: 0 0 8px; font: 500 24px/1.3 var(--f-display); }
.elev__bay p { margin: 0; font-size: 15px; color: var(--ink-2); }
@media (max-width: 860px) {
  .elev { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .elev__bay:nth-child(2) { border-inline-end: 1px solid var(--line); }
  .elev::before { display: none; }
  .elev__bay { border-bottom: 1px solid var(--ink); }
}
@media (max-width: 520px) { .elev__arch { width: 78%; } .elev__bay h3 { font-size: 20px; } }

/* ---------- CTA on velvet ---------- */
.cta {
  position: relative; padding: clamp(80px, 12vw, 160px) var(--gutter);
  background:
    radial-gradient(60% 70% at 20% 30%, rgba(207, 162, 149, .35), transparent 70%),
    radial-gradient(50% 60% at 85% 80%, rgba(0, 0, 0, .4), transparent 70%),
    linear-gradient(160deg, #7B2830, #4E1519 55%, #2F0B0E);
  overflow: hidden;
}
.cta::before { /* swatches behind the glass */
  content: ''; position: absolute; width: 38vw; max-width: 460px; aspect-ratio: 1; inset-inline-end: 6%; top: 12%;
  background: url(/materials/viola.svg) center / cover; rotate: 8deg; box-shadow: 0 40px 60px -30px rgba(0, 0, 0, .6);
}
.cta::after {
  content: ''; position: absolute; width: 22vw; max-width: 260px; aspect-ratio: 1; inset-inline-start: 8%; bottom: 8%;
  background: url(/materials/ebony.svg) center / cover; rotate: -10deg; box-shadow: 0 40px 60px -30px rgba(0, 0, 0, .6);
}
.cta__glass { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; padding: clamp(36px, 6vw, 72px); color: var(--linen); text-align: center; }
.cta__glass p { margin: 18px auto 30px; max-width: 46ch; opacity: .9; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 22px; }
.link-wa { color: var(--linen); text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* ---------- inner pages ---------- */
.page-head { padding: calc(var(--bar-h) + clamp(60px, 10vw, 130px)) var(--gutter) clamp(40px, 6vw, 70px); max-width: var(--max); margin: 0 auto; }
.page-head h1 { font: 400 clamp(44px, 8vw, 104px)/1.02 var(--f-display); margin: 0; letter-spacing: -.02em; text-wrap: balance; }
:lang(ar) .page-head h1 { font-weight: 500; line-height: 1.3; letter-spacing: 0; }
.page-head p { max-width: 56ch; color: var(--ink-2); margin: 22px 0 0; font-size: 18px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* services page */
.svc { display: grid; grid-template-columns: minmax(200px, 360px) 1fr; gap: clamp(24px, 5vw, 80px); padding: clamp(36px, 5vw, 64px) 0; border-top: 1px solid var(--line); align-items: start; }
.svc__face { position: relative; aspect-ratio: 4 / 5; overflow: hidden; box-shadow: 0 30px 50px -30px rgba(29, 24, 20, .55); }
.svc__face::after { content: ''; }
.svc__no { font: 400 16px/1 var(--f-display); color: var(--wine); }
.svc h2 { font: 400 clamp(32px, 4.4vw, 54px)/1.1 var(--f-display); margin: 10px 0 14px; }
:lang(ar) .svc h2 { font-weight: 500; line-height: 1.4; }
.svc__line { font-size: 20px; margin: 0 0 22px; max-width: 40ch; }
.svc ul { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 10px; }
.svc li { position: relative; padding-inline-start: 26px; color: var(--ink-2); }
.svc li::before { content: ''; position: absolute; inset-inline-start: 0; top: .8em; width: 14px; height: 1px; background: var(--wine); }
@media (max-width: 760px) { .svc { grid-template-columns: 1fr; } .svc__face { aspect-ratio: 16 / 9; } }

/* work page */
.hanging-soon { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 26px); padding-bottom: clamp(60px, 10vw, 120px); }
.frame {
  position: relative; aspect-ratio: 4 / 5; padding: 14px; background: linear-gradient(145deg, #3a2a20, #1d1814);
  box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .7);
}
.frame:nth-child(2) { margin-top: 60px; }
.frame__in { position: relative; height: 100%; overflow: hidden; }
.frame__in::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 10px #F2EDE4, inset 0 0 30px 10px rgba(0, 0, 0, .25); }
.frame figcaption { position: absolute; inset: auto 24px 24px; z-index: 2; color: var(--linen); font: 400 18px/1.3 var(--f-display); text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
@media (max-width: 760px) { .hanging-soon { grid-template-columns: 1fr 1fr; } .frame:nth-child(3) { display: none; } .frame:nth-child(2) { margin-top: 40px; } }

/* about */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 6vw, 90px); align-items: start; padding-bottom: clamp(70px, 10vw, 140px); }
.about__plate { position: sticky; top: calc(var(--bar-h) + 30px); aspect-ratio: 4 / 5; }
.about__plate .glass { position: absolute; inset: auto 8% 8% 8%; padding: 22px 26px; }
.about__plate .glass p { margin: 0; font: 400 22px/1.5 var(--f-note); }
.about__swatch { position: absolute; box-shadow: 0 30px 50px -26px rgba(0, 0, 0, .55); }
.about__body p { font-size: 19px; margin: 0 0 22px; }
:lang(ar) .about__body p { font-size: 20px; }
.about__body h2 { font: 400 clamp(28px, 3.4vw, 40px)/1.25 var(--f-display); margin: 48px 0 18px; }
.values { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.values li { padding: 18px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 180px 1fr; gap: 18px; }
.values b { font: 500 19px/1.4 var(--f-display); }
.values span { color: var(--ink-2); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about__plate { position: relative; top: 0; max-height: 70vh; } .values li { grid-template-columns: 1fr; gap: 4px; } }

/* forms */
.book { display: grid; grid-template-columns: 1fr minmax(260px, 380px); gap: clamp(24px, 5vw, 70px); align-items: start; padding-bottom: clamp(70px, 10vw, 140px); }
.form { padding: clamp(24px, 4vw, 48px); }
.form fieldset { border: 0; padding: 0; margin: 0 0 30px; }
.form legend { font: 400 clamp(22px, 2.4vw, 28px)/1.3 var(--f-display); margin-bottom: 16px; padding: 0; }
:lang(ar) .form legend { font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid rgba(29, 24, 20, .28); background: rgba(255, 255, 255, .35); font-size: 15px; transition: all .25s;
}
.chip input:checked + span { background: var(--ink); color: var(--linen); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--wine); outline-offset: 2px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; font: inherit; font-size: 16px; color: var(--ink);
  background: rgba(255, 255, 255, .5); border: 1px solid rgba(29, 24, 20, .22); border-radius: 14px; outline: none;
  transition: border-color .2s, background .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); background: rgba(255, 255, 255, .75); }
.field input[type="tel"], .field input[type="email"] { direction: ltr; }
[dir="rtl"] .field input[type="tel"], [dir="rtl"] .field input[type="email"] { text-align: right; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin: 4px 0 24px; }
.consent input { margin-top: 6px; accent-color: var(--oxblood); width: 18px; height: 18px; }
.form__status { margin: 16px 0 0; font-size: 15px; }
.form__status.is-err { color: var(--wine); }
.form .hp { position: absolute; left: -9999px; }
.done { text-align: center; padding: clamp(30px, 5vw, 60px) clamp(10px, 3vw, 30px); }
.done h2 { font: 400 clamp(30px, 4vw, 46px)/1.25 var(--f-display); margin: 0 0 12px; }
.aside { display: grid; gap: 18px; position: sticky; top: calc(var(--bar-h) + 24px); }
.aside .glass { padding: 26px; }
.aside h3 { margin: 0 0 8px; font: 500 20px/1.4 var(--f-display); }
.aside p { margin: 0; color: var(--ink-2); font-size: 15px; }
.aside .socials { margin-top: 14px; }
@media (max-width: 900px) { .book { grid-template-columns: 1fr; } .aside { position: static; } .fields { grid-template-columns: 1fr; } }

/* legal */
.legal { max-width: 760px; padding-bottom: clamp(70px, 10vw, 140px); }
.legal h2 { font: 500 24px/1.4 var(--f-display); margin: 44px 0 12px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-inline-start: 22px; }
.legal .updated { font-size: 14px; color: var(--ink-3); }

/* contact */
.contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-bottom: clamp(70px, 10vw, 140px); }
.contact a.glass { display: flex; flex-direction: column; gap: 40px; padding: 28px; text-decoration: none; min-height: 220px; justify-content: space-between; transition: transform .5s var(--ease); }
.contact a.glass:hover { transform: translateY(-6px); }
.contact small { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--wine); }
:lang(ar) .contact small { letter-spacing: 0; font-size: 14px; }
.contact strong { font: 400 clamp(22px, 2.4vw, 30px)/1.3 var(--f-display); word-break: break-word; }
.contact .svg-ico { width: 30px; height: 30px; fill: currentColor; }
.cities { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 34px; padding-top: 30px; font: 400 clamp(26px, 3.4vw, 42px)/1.3 var(--f-display); }
.cities span:last-child { color: var(--wine); font-style: italic; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.foot {
  background: var(--ink); color: rgba(245, 240, 232, .82); padding: clamp(60px, 8vw, 100px) var(--gutter) 96px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px;
}
.foot .wordmark { font-size: 34px; color: var(--linen); }
.foot__mark p { max-width: 34ch; margin: 18px 0 0; font-size: 15px; }
.foot__where { font: 400 18px/1.4 var(--f-display); color: var(--brass-hi); }
:lang(ar) .foot__where { font-style: normal; }
.foot__col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.foot__col h2 { font: 500 12px/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--brass-hi); margin: 0 0 6px; }
.foot__col h2:not(:first-child) { margin-top: 22px; }
:lang(ar) .foot__col h2 { letter-spacing: 0; font-size: 14px; }
.foot a { text-decoration: none; font-size: 15px; }
.foot a:hover { color: var(--linen); text-decoration: underline; text-underline-offset: 4px; }
.foot__base { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-top: 28px; margin-top: 30px; border-top: 1px solid rgba(245, 240, 232, .14); font-size: 13px; }
.foot__legal { display: flex; flex-wrap: wrap; gap: 20px; }
.foot__legal a { font-size: 13px; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } .foot__mark { grid-column: 1 / -1; } }

.socials { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid currentColor; opacity: .85; transition: opacity .2s, transform .3s var(--ease); }
.socials a:hover { opacity: 1; transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }

.wa-float {
  position: fixed; inset-inline-end: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 60;
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: var(--linen);
  background: rgba(86, 26, 30, .78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .3); box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .5);
  transition: transform .4s var(--ease), opacity .4s;
}
.wa-float svg { width: 26px; height: 26px; fill: currentColor; }
.wa-float:hover { transform: scale(1.06); }
.is-home .wa-float { opacity: var(--wa, 0); pointer-events: none; }
.is-home .wa-float.is-on { --wa: 1; pointer-events: auto; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .door { height: auto; }
  .door__stage { position: relative; }
  .door__glass { display: none; }
  .room { transform: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* service zone plates, her deck's divider pages */
.svc__zone {
  position: absolute; inset: 16% 10%; display: grid; place-content: center; text-align: center; gap: 10px;
  background: rgba(169, 160, 156, .86); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.svc__zone .zone { color: var(--linen); font-size: 10px; }
.svc__zone strong { font: 700 clamp(20px, 2.4vw, 30px)/1.1 var(--f-display); letter-spacing: -.01em; }
.svc__zone [lang="ar"] { font: 400 clamp(16px, 1.6vw, 20px)/1.4 var(--f-body); }
@media (max-width: 760px) { .svc__zone { inset: 14% 20%; } }

/* ---------- projects ---------- */
.projects { display: grid; gap: clamp(80px, 12vw, 160px); padding-bottom: clamp(80px, 12vw, 160px); }
.proj__head { display: flex; align-items: flex-end; gap: clamp(16px, 3vw, 34px); margin-bottom: clamp(20px, 3vw, 34px); }
.proj__no { font: 400 clamp(56px, 9vw, 120px)/.8 var(--f-display); color: var(--taupe); }
.proj h2 { margin: 0; font: 700 clamp(28px, 4.4vw, 58px)/1.05 var(--f-display); letter-spacing: -.01em; }
[dir="rtl"] .proj h2 { text-align: right; }
.proj__kind { margin: 8px 0 0; color: var(--ink-3); font-size: 15px; }
.proj__hero { margin: 0 var(--gutter); cursor: zoom-in; overflow: hidden; box-shadow: 0 40px 70px -40px rgba(29, 24, 20, .6); }
.proj__hero img { width: 100%; height: auto; transition: transform 1.6s var(--ease); }
.proj__hero:hover img { transform: scale(1.025); }
.proj__body { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: clamp(20px, 4vw, 60px); align-items: center; margin-top: clamp(26px, 4vw, 48px); }
.proj__body p { margin: 0; font-size: 19px; max-width: 58ch; color: var(--ink-2); }
.proj__concept { display: grid; gap: 10px; text-align: center; padding: 34px 26px; }
.proj__concept .zone { font-size: 10px; }
:lang(ar) .proj__concept .zone { letter-spacing: 0; font: 400 13px/1 var(--f-body); }
.proj__concept strong { font: 500 22px/1.35 var(--f-display); }
:lang(en) .proj__concept strong { font-family: var(--f-display); font-style: italic; font-weight: 400; }
.proj__strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 30%); gap: 14px; overflow-x: auto; padding: clamp(20px, 3vw, 30px) var(--gutter) 6px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.proj__strip button { padding: 0; border: 0; cursor: zoom-in; scroll-snap-align: start; background: none; }
.proj__strip img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: opacity .3s; }
.proj__strip button:hover img { opacity: .85; }
@media (max-width: 760px) { .proj__body { grid-template-columns: 1fr; } .proj__strip { grid-auto-columns: 78%; } .proj__hero { margin: 0; } }

.lightbox { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; background: rgba(20, 16, 13, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 88vh; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 28px; cursor: pointer; }
.lightbox__x { top: 18px; inset-inline-end: 18px; }
.lightbox__prev { left: 18px; top: 50%; }
.lightbox__next { right: 18px; top: 50%; }
.bar__acct { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); transition: background .3s; }
.bar__acct:hover { background: rgba(255, 255, 255, .45); }
.bar__acct svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; }

/* =========================================================
   APP: account, contract, verify, owner panel, guest book
   ========================================================= */
.app { min-height: 70vh; padding: calc(var(--bar-h) + 40px) 0 clamp(60px, 8vw, 110px); }
.page-head--slim + .app { padding-top: 0; }
.app__loading { display: grid; place-items: center; min-height: 40vh; }
.app__loading span { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--wine); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { color: var(--ink-2); padding: 30px 0; }
.muted { color: var(--ink-3); font-size: 14px; margin: 4px 0 0; }
.hint { color: var(--ink-3); font-size: 14px; margin: 0; }
.strong { font-weight: 500; }
.stack { display: grid; gap: 18px; }
.linkish { background: none; border: 0; padding: 0; color: var(--wine); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; font-size: 14px; justify-self: start; }
.note-ok { padding: 18px; border-radius: 14px; background: rgba(86, 98, 74, .12); color: var(--moss); }

.toast { position: fixed; z-index: 200; left: 50%; bottom: 28px; translate: -50% 20px; opacity: 0; max-width: min(92vw, 520px); padding: 14px 22px; border-radius: 14px; background: var(--ink); color: var(--linen); font-size: 15px; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .5); transition: opacity .3s, translate .4s var(--ease); }
.toast.is-on { opacity: 1; translate: -50% 0; }
.toast--bad { background: var(--oxblood); }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 26px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .35); border: 1px solid rgba(255, 255, 255, .6); width: fit-content; max-width: 100%; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 10px 18px; border-radius: 999px; cursor: pointer; font-size: 15px; white-space: nowrap; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--linen); }

.auth-wrap { display: grid; place-items: center; padding: 0 var(--gutter); }
.auth { width: min(100%, 640px); padding: clamp(24px, 4vw, 44px); }
.auth__mark { text-align: center; font-size: 26px; margin-bottom: 22px; }
.auth .tabs { margin-inline: auto; }
.auth h2 { margin: 0; font: 400 26px/1.3 var(--f-display); }
.fields--3 { grid-template-columns: repeat(3, 1fr); }
.fields--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 700px) { .fields--3, .fields--4 { grid-template-columns: 1fr 1fr; } }
.pw { position: relative; }
.pw input { padding-inline-end: 52px; }
.eye { position: absolute; inset-inline-end: 6px; top: 50%; translate: 0 -50%; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; cursor: pointer; display: grid; place-items: center; color: var(--ink-3); }
.eye svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.eye.is-on { color: var(--wine); }
.eye.is-on svg { stroke-dasharray: none; }
.rules { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--ink-3); }
.rules li::before { content: '○ '; }
.rules li.is-ok { color: var(--moss); }
.rules li.is-ok::before { content: '● '; }
.field input:disabled { opacity: .6; }

.dash__head, .own__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.dash__head h1 { margin: 0; font: 400 clamp(34px, 5vw, 56px)/1.15 var(--f-display); }
.own__head h1 { margin: 0; font-size: 32px; }
.chip-no { margin: 10px 0 0; font-size: 14px; color: var(--ink-3); }
.chip-no b { color: var(--ink); background: rgba(255, 255, 255, .5); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; font-weight: 500; }
.dash__actions { display: flex; gap: 10px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.split--wide { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
@media (max-width: 900px) { .split, .split--wide { grid-template-columns: 1fr; } }
.panel-form { padding: clamp(20px, 3vw, 34px); }
.panel-form h2 { margin: 0; font: 400 26px/1.3 var(--f-display); }
.panel-form legend { font-size: 16px; font-family: var(--f-body); margin-bottom: 10px; }
.panel-form details summary { cursor: pointer; color: var(--wine); margin-bottom: 14px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 14px; margin-bottom: 12px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.check input { accent-color: var(--oxblood); margin-top: 4px; }

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cards--grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { display: flex; justify-content: space-between; gap: 16px; padding: 18px 20px; border-radius: 18px; align-items: center; }
.card--col { flex-direction: column; align-items: stretch; }
.card h3 { margin: 0 0 4px; font: 500 19px/1.4 var(--f-display); }
.card p { margin: 0; }
.card__no { font: 400 13px/1 var(--f-display); letter-spacing: .12em; color: var(--wine); margin-bottom: 6px !important; }
.card__end { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.card video, .card img { width: 100%; border-radius: 12px; max-height: 260px; object-fit: cover; background: #000; }
.card select { min-height: 38px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .6); padding: 0 10px; font: inherit; font-size: 14px; }
.pill { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 13px; background: rgba(29, 24, 20, .08); white-space: nowrap; }
.pill--sent, .pill--requested, .pill--pending, .pill--new { background: rgba(169, 133, 73, .2); color: #6f5426; }
.pill--signed, .pill--confirmed, .pill--approved, .pill--won, .pill--done { background: rgba(86, 98, 74, .18); color: var(--moss); }
.pill--void, .pill--declined, .pill--cancelled, .pill--hidden, .pill--closed { background: rgba(86, 26, 30, .12); color: var(--wine); }
.mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-top: 12px; }
.mini input, .mini select { min-height: 40px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .6); padding: 0 10px; font: inherit; font-size: 14px; }

.stars { display: flex; gap: 4px; direction: ltr; }
.star { border: 0; background: none; font-size: 28px; color: rgba(29, 24, 20, .2); cursor: pointer; padding: 0 2px; }
.star.is-on { color: var(--brass); }

/* owner panel */
.range { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.chip-btn { border: 1px solid var(--line); background: rgba(255, 255, 255, .4); border-radius: 999px; padding: 8px 16px; cursor: pointer; font: inherit; font-size: 14px; }
.chip-btn.is-on { background: var(--ink); color: var(--linen); border-color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.stat { padding: 20px; border-radius: 18px; text-decoration: none; display: grid; gap: 6px; }
.stat strong { font: 400 clamp(30px, 3.4vw, 44px)/1 var(--f-display); }
.stat span { font-size: 14px; color: var(--ink-2); }
a.stat:hover { transform: translateY(-3px); transition: transform .3s; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } }
.chart { padding: 20px; border-radius: 18px; margin-bottom: 18px; }
.chart h3, .box h3 { margin: 0 0 14px; font: 500 17px/1.3 var(--f-display); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 160px; direction: ltr; }
.bars span { flex: 1; height: max(2px, var(--h)); background: linear-gradient(var(--wine), var(--oxblood)); border-radius: 3px 3px 0 0; min-width: 3px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 860px) { .grid3 { grid-template-columns: 1fr; } }
.box { padding: 20px; border-radius: 18px; }
.rank { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; font-size: 14px; }
.rank li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.search { width: 100%; max-width: 420px; min-height: 46px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .55); padding: 0 18px; font: inherit; margin-bottom: 14px; }
.tbl-wrap { border-radius: 18px; overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 12px 14px; text-align: start; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th { font-weight: 500; color: var(--ink-3); }
.tbl__act { display: flex; gap: 12px; }
.tbl__act a { text-decoration: none; color: var(--wine); }
.mail-prev { border-radius: 18px; overflow: hidden; margin-bottom: 18px; }

/* guest book */
.book-wall { columns: 3 300px; column-gap: 22px; }
.entry { break-inside: avoid; margin: 0 0 22px; padding: 14px; background: #FBF9F6; box-shadow: 0 24px 40px -24px rgba(29, 24, 20, .45); rotate: var(--r); transition: rotate .5s var(--ease), translate .5s var(--ease); }
.entry:hover { rotate: 0deg; translate: 0 -4px; }
.entry video, .entry img { width: 100%; display: block; background: #111; }
.entry figcaption { padding: 14px 6px 6px; }
.entry p { margin: 0 0 10px; font: 400 18px/1.6 var(--f-note); }
:lang(ar) .entry p { font-size: 22px; line-height: 1.7; }
.entry cite { font-style: normal; font-size: 13px; color: var(--ink-3); }
.entry__stars { color: var(--brass); letter-spacing: 2px; font-size: 14px; display: block; margin-bottom: 6px; }
.entry--feat { outline: 1px solid var(--brass); }
.empty-book { text-align: center; display: grid; gap: 20px; justify-items: center; padding: 60px var(--gutter); }

/* verify */
.verify { display: grid; place-items: center; }
.verify__card { width: min(100%, 620px); padding: clamp(28px, 5vw, 50px); text-align: center; }
.verify__seal { display: inline-grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; font-size: 36px; color: var(--linen); background: var(--moss); margin-bottom: 18px; }
.verify__card.is-bad .verify__seal { background: var(--wine); }
.verify__card h1 { font: 400 clamp(24px, 3vw, 32px)/1.35 var(--f-display); margin: 0 0 24px; }
.verify dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; text-align: start; margin: 0; }
.verify dt { color: var(--ink-3); font-size: 14px; }
.verify dd { margin: 0; }
.verify .hash { font-size: 11px; word-break: break-all; color: var(--ink-3); }

/* contract document */
.is-doc .app { padding-top: calc(var(--bar-h) + 24px); }
.doc-bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.doc-bar h1 { margin: 4px 0 8px; font: 400 30px/1 var(--f-display); letter-spacing: .06em; }
.doc-bar__end { display: flex; gap: 10px; flex-wrap: wrap; }
.doc-stage { padding: 0 var(--gutter); }
.doc { display: grid; gap: 22px; justify-items: center; max-width: 794px; margin: 0 auto; }
.a4-wrap { width: calc(794px * var(--z, 1)); height: calc(1123px * var(--z, 1)); }
.a4 { width: 794px; height: 1123px; background: #fff; color: #1D1814; position: relative; display: flex; flex-direction: column; padding: 44px 58px 30px; transform: scale(var(--z, 1)); transform-origin: 0 0; box-shadow: 0 30px 60px -30px rgba(29, 24, 20, .45); font-family: var(--f-body); font-size: 13.2px; line-height: 1.85; }
[dir="rtl"] .a4 { transform-origin: 100% 0; }
[dir="rtl"] .a4-wrap .a4 { margin-inline-start: 0; }
.doc[dir="rtl"] .a4-wrap { display: flex; justify-content: flex-end; }
.doc.is-exporting .a4 { transform: none; box-shadow: none; }
.doc.is-exporting .a4-wrap { width: 794px; height: 1123px; }
.a4[lang="en"], .doc[lang="en"] .a4 { font-family: var(--f-body); }
.a4__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid #DDD6CF; color: #7A6D60; font-size: 11.5px; }
.a4__lock { font-size: 22px; color: #8F8581; }
.a4__body { flex: 1; overflow: hidden; padding: 18px 0 8px; }
.a4__foot { display: flex; align-items: center; gap: 14px; padding-top: 10px; border-top: 1px solid #DDD6CF; color: #7A6D60; font-size: 10.5px; }
.a4__ft { flex: 1; text-align: center; }
.a4__qr svg { display: block; }
.a4__qr:empty { width: 64px; }
.a4__no { font-family: var(--f-display); letter-spacing: .08em; font-size: 11px; }
.a4__block p { margin: 0 0 6px; }
.d-basmala { text-align: center; font-size: 15px; margin-bottom: 8px !important; }
.d-title { text-align: center; margin: 0; font-size: 22px; font-weight: 600; }
.d-sub { text-align: center; color: #7A6D60; margin-bottom: 14px !important; }
.d-meta { display: flex; justify-content: space-between; gap: 10px; background: #F4F1EC; border-radius: 10px; padding: 8px 14px; margin-bottom: 10px; flex-wrap: wrap; }
.d-h { font-size: 15px; font-weight: 600; margin: 14px 0 6px; color: #561A1E; padding-bottom: 4px; border-bottom: 1px solid #EEE8E1; }
.d-fill { display: inline-block; min-width: 60px; padding: 0 8px; background: #F4F1EC; border-radius: 6px; font-weight: 500; }
.d-pre { background: #FBF9F6; border-inline-start: 3px solid #A9A09C; padding: 6px 12px !important; }
.d-list { margin: 0 0 6px; padding-inline-start: 22px; list-style: '◾  '; }
.d-clause { text-align: justify; }
.d-clause b { color: #561A1E; }
.d-table { width: 100%; border-collapse: collapse; margin: 4px 0 8px; }
.d-table th, .d-table td { border: 1px solid #DDD6CF; padding: 6px 10px; text-align: start; }
.d-table th { background: #F4F1EC; font-weight: 600; }
.d-link { word-break: break-all; }
.d-sigs { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin: 12px 0; }
.d-sigs > div { border: 1px solid #DDD6CF; border-radius: 12px; padding: 12px 16px; }
.d-sigs h3 { margin: 0 0 6px; font-size: 14px; color: #561A1E; }
.sig-img { display: block; max-height: 74px; max-width: 100%; margin: 2px 0 6px; }
.sig-line { display: block; height: 60px; border-bottom: 1px dashed #A9A09C; margin-bottom: 8px; }
.d-close { text-align: center; font-size: 12.5px; color: #4A3F36; margin-top: 10px !important; }
.d-hash { font-size: 9.5px; color: #7A6D60; word-break: break-all; }
.a4--draft::after, .a4--void::after { content: 'DRAFT'; position: absolute; inset: 0; display: grid; place-items: center; font: 700 120px/1 var(--f-display); color: rgba(169, 160, 156, .16); rotate: -30deg; pointer-events: none; letter-spacing: .1em; }
.a4--void::after { content: 'VOID'; color: rgba(122, 43, 51, .16); }
.doc-side { max-width: 860px; margin-top: 30px; }
.sign { padding: clamp(20px, 3vw, 34px); display: grid; gap: 16px; }
.sign h2 { margin: 0; font: 400 26px/1.3 var(--f-display); }
.pad__box { position: relative; background: #fff; border-radius: 14px; border: 1px solid var(--line); touch-action: none; }
.pad__cv { display: block; width: 100%; aspect-ratio: 3 / 1; cursor: crosshair; touch-action: none; }
.pad__line { position: absolute; inset-inline: 8%; bottom: 22%; border-bottom: 1px dashed #C9C1BC; pointer-events: none; }
.pad__tools { display: flex; gap: 8px; margin-top: 8px; }
.fx { color: var(--ink-3); font-size: .82em; }
.fx-note { font-size: 12px; color: var(--ink-3); margin: 8px 0 0; }
.msg__head { display: flex; justify-content: space-between; gap: 12px; width: 100%; border: 0; background: none; padding: 0; text-align: start; cursor: pointer; font: inherit; }
.msg.is-unread { outline: 1px solid var(--brass); }
.msg__body { white-space: pre-wrap; margin-top: 12px !important; color: var(--ink-2); font-size: 15px; }

/* home: projects and guest book */
.showcase { padding: 0 0 clamp(80px, 12vw, 150px); }
.showcase__list { list-style: none; margin: clamp(36px, 5vw, 60px) auto 0; padding: 0 var(--gutter); max-width: var(--max); display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2.4vw, 34px); }
.show a { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; text-decoration: none; }
.show:nth-child(even) { margin-top: clamp(40px, 7vw, 110px); }
.show__img { grid-column: 1 / -1; overflow: hidden; margin-bottom: 16px; box-shadow: 0 30px 50px -30px rgba(29, 24, 20, .55); }
.show__img img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.4s var(--ease); }
.show a:hover img { transform: scale(1.04); }
.show__no { grid-row: span 2; font: 400 44px/1 var(--f-display); color: var(--taupe); }
.show__name { font: 700 clamp(20px, 2vw, 26px)/1.2 var(--f-display); }
[dir="rtl"] .show__name { text-align: right; }
.show__concept { color: var(--ink-3); font-size: 15px; }
.showcase__all { text-align: center; margin: clamp(30px, 4vw, 50px) 0 0; }
@media (max-width: 700px) { .showcase__list { grid-template-columns: 1fr; } .show:nth-child(even) { margin-top: 0; } }
.guest { padding: 0 0 clamp(80px, 12vw, 150px); }
.guest[hidden] { display: none; }
.guest__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: clamp(30px, 4vw, 50px); }
@media (max-width: 860px) { .guest__row { grid-template-columns: 1fr; } }

/* quotes and finance */
.mini-in { min-height: 40px; width: 100%; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .65); padding: 0 10px; font: inherit; font-size: 14px; }
.mini-in.num { max-width: 110px; }
.tbl--edit td { padding: 6px 8px; }
.x { border: 0; background: rgba(86, 26, 30, .1); color: var(--wine); width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 18px; line-height: 1; }
.qb__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.qb__sum { display: grid; gap: 12px; max-width: 560px; }
.qb__line { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.qb__line .mini-in { max-width: 160px; }
.qb__line--total { border-bottom: 2px solid var(--ink); }
.q-grand { font: 400 30px/1 var(--f-display); }
.qb__actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.mini--wide { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.stat--pos strong { color: var(--moss); }
.stat--neg strong { color: var(--wine); }
.stat strong { font-size: clamp(22px, 2.4vw, 32px); }
.bars2 { display: flex; align-items: flex-end; gap: 8px; height: 190px; direction: ltr; }
.bars2__m { flex: 1; display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 2px; height: 100%; position: relative; padding-bottom: 18px; }
.bars2__m span { height: max(2px, var(--h)); border-radius: 3px 3px 0 0; }
.bars2__m .in, .legend i.in { background: var(--moss); }
.bars2__m .out, .legend i.out { background: var(--rose); }
.bars2__m small { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--ink-3); }
.legend { font-size: 13px; color: var(--ink-3); margin: 10px 0 0; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: middle; }
.ledger { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 360px; overflow: auto; }
.ledger li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
td.due { color: var(--wine); font-weight: 500; }
.q-to { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 6px 0 10px; }
.q-to > div { background: #F4F1EC; border-radius: 10px; padding: 10px 14px; }
.q-lbl { font-size: 11px; color: #7A6D60; margin: 0 !important; }
.q-big { font-size: 15px; font-weight: 600; margin: 2px 0 !important; }
.q-sm { font-size: 11.5px; color: #4A3F36; }
.q-items td:nth-child(n+3), .q-items th:nth-child(n+3) { text-align: end; white-space: nowrap; }
.q-sum { width: 55%; margin-inline-start: auto; }
.q-sum td:last-child { text-align: end; }
.q-total td { font-weight: 700; font-size: 15px; background: #F4F1EC; color: #561A1E; }
.q-terms { font-size: 11.5px; color: #4A3F36; margin-top: 12px; }

/* =========================================================
   MOOD BOARD STUDIO
   ========================================================= */
.mb-head { padding-bottom: 20px; }
.mb-wrap { padding: 0 var(--gutter) clamp(60px, 8vw, 100px); max-width: 1500px; margin: 0 auto; }
.mb { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; align-items: start; }
.mb__lib { position: sticky; top: calc(var(--bar-h) + 12px); max-height: calc(100vh - var(--bar-h) - 24px); display: flex; flex-direction: column; padding: 14px; border-radius: 22px; overflow: hidden; }
.mb__search { min-height: 44px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .6); padding: 0 16px; font: inherit; font-size: 14px; margin-bottom: 10px; }
.mb__tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-bottom: 10px; }
.mb__tabs button { flex: none; border: 0; background: none; padding: 8px 12px; border-radius: 999px; font: inherit; font-size: 14px; cursor: pointer; }
.mb__tabs button[aria-selected="true"] { background: var(--ink); color: var(--linen); }
.mb__libbody { overflow-y: auto; flex: 1; padding-inline-end: 4px; }
.mb__hint { font-size: 12px; color: var(--ink-3); margin: 8px 0 0; text-align: center; }
.mb__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.fam { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: rgba(255, 255, 255, .5); border-radius: 999px; padding: 5px 10px; font: inherit; font-size: 13px; cursor: pointer; }
.fam i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.fam.is-on { background: var(--ink); color: var(--linen); border-color: var(--ink); }
.tones { display: grid; gap: 12px; }
.tone p { margin: 0 0 6px; font-size: 13px; color: var(--ink-2); }
.tone__row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.tone__row--wrap { grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); margin-bottom: 14px; }
.sw { aspect-ratio: 1; border-radius: 8px; border: 0; background: var(--c); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); transition: transform .2s var(--ease); }
.sw:hover { transform: scale(1.12); }
.mts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mt { border: 0; background: none; padding: 0; cursor: pointer; text-align: center; font: inherit; }
.mt__img { display: block; aspect-ratio: 1; border-radius: 10px; background-size: cover; background-position: center; box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .4); transition: transform .3s var(--ease); }
.mt:hover .mt__img { transform: translateY(-2px) rotate(-2deg); }
.mt__name { display: block; font-size: 11.5px; line-height: 1.3; margin-top: 5px; color: var(--ink-2); }
.drop { border: 1.5px dashed var(--mist); border-radius: 16px; padding: 28px 16px; text-align: center; }
.drop.is-over { background: rgba(169, 160, 156, .15); }
.drop p { font-size: 13px; color: var(--ink-3); }
.mb__stack { display: grid; gap: 10px; }
.mb__sub { margin: 8px 0 0; font-size: 13px; color: var(--ink-3); }
.txtbtn { border: 1px solid var(--line); background: rgba(255, 255, 255, .55); border-radius: 14px; padding: 14px; cursor: pointer; text-align: start; }
.txtbtn--title { font: 400 26px/1.2 var(--f-display); }
.txtbtn--note { font: 400 22px/1.3 var(--f-note); }
.txtbtn--label { font: 500 13px/1 var(--f-body); letter-spacing: .08em; }
.shapes, .bgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.shape-btn, .bgb { display: grid; justify-items: center; gap: 6px; border: 1px solid var(--line); background: rgba(255, 255, 255, .5); border-radius: 12px; padding: 10px 4px; font: inherit; font-size: 12px; cursor: pointer; }
.bgb.is-on { outline: 2px solid var(--ink); }
.sh { width: 36px; height: 36px; background: var(--taupe); }
.sh--circle { border-radius: 50%; }
.sh--arch { border-radius: 18px 18px 2px 2px; height: 42px; width: 30px; }
.bgb i { width: 100%; height: 26px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.bgb[data-bg="limewash"] i, .mb__board[data-bg="limewash"] { background: #E9E5E0 url(/materials/limewash.svg) 0 0 / 1200px 1200px; }
.bgb[data-bg="white"] i, .mb__board[data-bg="white"] { background: #FBFAF7; }
.bgb[data-bg="linen"] i, .mb__board[data-bg="linen"] { background: #EFE7DA url(/materials/grain.svg); }
.bgb[data-bg="taupe"] i, .mb__board[data-bg="taupe"] { background: #A9A09C; }
.bgb[data-bg="ink"] i, .mb__board[data-bg="ink"] { background: radial-gradient(70% 60% at 30% 20%, #3A302A, #1D1814 70%); }

.mb__main { min-width: 0; }
.mb__top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.mb__title { flex: 1; min-width: 160px; border: 0; border-bottom: 1px solid var(--line); background: none; font: 400 26px/1.3 var(--f-display); padding: 4px 0; color: var(--ink); }
.mb__title:focus { outline: none; border-color: var(--ink); }
.mb__saved { font-size: 12px; color: var(--ink-3); }
.mb__acts { display: flex; gap: 8px; }
.mb__dl { position: relative; }
.mb__menu { position: absolute; top: calc(100% + 6px); inset-inline-end: 0; z-index: 20; background: var(--linen); border-radius: 14px; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .4); padding: 6px; display: grid; min-width: 150px; }
.mb__menu button { border: 0; background: none; padding: 10px 14px; text-align: start; border-radius: 10px; cursor: pointer; font: inherit; font-size: 14px; }
.mb__menu button:hover { background: rgba(0, 0, 0, .05); }
.mb__stage { width: 100%; }
.mb__fit { position: relative; margin: 0 auto; direction: ltr; border-radius: 6px; overflow: hidden; box-shadow: 0 40px 70px -40px rgba(29, 24, 20, .55); }
.mb__board { position: absolute; top: 0; left: 0; width: 1600px; height: 1200px; transform: scale(var(--s, .5)); transform-origin: 0 0; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.mb__board.is-export { position: relative; transform: none; }
.mb__empty { position: absolute; inset: 40% 18% auto; text-align: center; font: 400 44px/1.5 var(--f-note); color: var(--ink-3); pointer-events: none; }
.mb__board[data-bg="ink"] .mb__empty, .mb__board[data-bg="taupe"] .mb__empty { color: rgba(246, 243, 239, .7); }
.it { position: absolute; cursor: grab; transform-origin: 50% 50%; }
.it:active { cursor: grabbing; }
.it.is-sel { outline: 3px solid #A98549; outline-offset: 6px; }
.it__fill { position: absolute; inset: 0; background-size: cover; background-position: center; box-shadow: 0 2px 3px rgba(0, 0, 0, .12), 0 30px 50px -26px rgba(0, 0, 0, .55); }
.it--color.it--card .it__fill { inset: 0 0 64px 0; }
.it--color.it--card { background: #FBFAF7; box-shadow: 0 30px 50px -26px rgba(0, 0, 0, .5); padding: 14px; }
.it--color.it--card .it__fill { inset: 14px 14px 72px; box-shadow: none; }
.it--color.it--dot .it__fill, .it--shape.it--circle .it__fill { border-radius: 50%; }
.it--color.it--chip .it__fill { border-radius: 12px; }
.it--shape.it--arch .it__fill { border-radius: 999px 999px 4px 4px; }
.it--material .it__fill { border-radius: 3px; }
.it__tag { position: absolute; inset-inline-start: 18px; bottom: 16px; display: grid; gap: 2px; direction: inherit; font-family: var(--f-body); }
.it--material .it__tag, .it--color.it--dot .it__tag, .it--color.it--chip .it__tag { bottom: -18px; background: #FBFAF7; padding: 8px 14px; box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .45); border-radius: 3px; }
.it__tag b { font-size: 24px; font-weight: 500; color: #1D1814; white-space: nowrap; }
.it__tag small { font-size: 18px; color: #7A6D60; letter-spacing: .06em; }
.it--image img { width: 100%; height: 100%; object-fit: cover; display: block; box-shadow: 0 30px 50px -26px rgba(0, 0, 0, .55); pointer-events: none; }
.it__text { width: 100%; height: 100%; outline: none; line-height: 1.2; white-space: pre-wrap; overflow-wrap: anywhere; cursor: text; }
.f-display { font-family: var(--f-display); }
.f-hand { font-family: var(--f-body); }
.f-sans { font-family: var(--f-body); letter-spacing: .04em; }
.hd { position: absolute; width: 34px; height: 34px; border-radius: 50%; background: #A98549; border: 4px solid #fff; box-shadow: 0 4px 10px rgba(0, 0, 0, .3); }
.hd--rs { right: -22px; bottom: -22px; cursor: nwse-resize; }
.hd--rt { left: 50%; top: -60px; margin-left: -17px; cursor: grab; }
.hd--rt::after { content: ''; position: absolute; left: 50%; top: 28px; width: 2px; height: 26px; background: #A98549; }
.mb__tools { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 12px; padding: 8px; border-radius: 999px; background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); width: fit-content; margin-inline: auto; }
.mb__tools[hidden] { display: none; }
.tb { border: 0; background: none; padding: 8px 14px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 14px; }
.tb:hover { background: rgba(0, 0, 0, .06); }
.tb--del { color: var(--wine); }
.modal { position: fixed; inset: 0; z-index: 160; display: grid; place-items: center; background: rgba(29, 24, 20, .45); padding: 16px; }
.modal__box { width: min(100%, 620px); padding: clamp(20px, 4vw, 36px); max-height: 92vh; overflow: auto; }
.modal__box h2 { margin: 0; font: 400 28px/1.3 var(--f-display); }

/* export frame */
.mbx { width: 1760px; background: #F6F3EF; padding: 60px 80px 50px; color: #1D1814; font-family: var(--f-body); }
.mbx__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 36px; padding-bottom: 26px; border-bottom: 1px solid #DDD6CF; }
.mbx__head .lockup { font-size: 44px; color: #8F8581; }
.mbx__head h1 { margin: 0; font: 400 46px/1.2 var(--f-display); }
.mbx__head p { margin: 6px 0 0; color: #7A6D60; font-size: 20px; }
.mbx__board { width: 1600px; height: 1200px; overflow: hidden; border-radius: 4px; }
.mbx__pal { margin-top: 34px; }
.mbx__pal > p { font-size: 18px; color: #7A6D60; margin: 0 0 14px; }
.mbx__pal ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px 18px; }
.mbx__pal li { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.mbx__pal i { width: 40px; height: 40px; border-radius: 8px; flex: none; background-size: cover; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.mbx__pal small { color: #7A6D60; }
.mbx__foot { display: flex; justify-content: space-between; margin-top: 34px; padding-top: 20px; border-top: 1px solid #DDD6CF; font-size: 18px; color: #7A6D60; }

@media (max-width: 900px) {
  .mb { grid-template-columns: 1fr; }
  .mb__main { order: -1; }
  .mb__lib { position: relative; top: 0; max-height: 56vh; }
  .mb__title { font-size: 21px; }
  .hd { width: 44px; height: 44px; }
}
.mb__menu[hidden] { display: none; }
.mb__board { direction: ltr; }
.it__text { unicode-bidi: plaintext; text-align: start; }
.mb__board.is-export .it__fill, .mb__board.is-export .it--image img, .mb__board.is-export .it--color.it--card { box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
.mb__board.is-export .it__tag { box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.boards img { width: 100%; border-radius: 10px; max-height: 280px; object-fit: cover; }
.board-pal { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--ink-2); margin-top: 8px !important; }
.board-pal span { display: inline-flex; align-items: center; gap: 4px; background: rgba(255, 255, 255, .5); padding: 2px 8px; border-radius: 999px; }
.board-pal i { width: 10px; height: 10px; border-radius: 50%; }
.mb-cta { display: flex; align-items: center; gap: 20px; padding: 18px 22px; margin-bottom: 26px; text-decoration: none; border-radius: 22px; flex-wrap: wrap; }
.mb-cta strong { display: block; font: 500 20px/1.4 var(--f-display); }
.mb-cta small { display: block; color: var(--ink-2); font-size: 14px; max-width: 60ch; }
.mb-cta > span:nth-child(2) { flex: 1; min-width: 220px; }
.mb-cta__sw { display: flex; }
.mb-cta__sw i { width: 42px; height: 54px; border-radius: 4px; margin-inline-end: -12px; box-shadow: 0 8px 16px -8px rgba(0, 0, 0, .5); position: relative; display: block; overflow: hidden; }
.mbhome { padding: 0 0 clamp(80px, 12vw, 150px); }
.mbhome__in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.mbhome__art { position: relative; height: clamp(300px, 34vw, 460px); }
.mbhome__art i { position: absolute; width: 38%; aspect-ratio: 1; rotate: var(--r); box-shadow: 0 30px 50px -26px rgba(29, 24, 20, .6); overflow: hidden; }
.mbhome__art i:nth-child(1) { left: 4%; top: 6%; } .mbhome__art i:nth-child(2) { left: 36%; top: 0; width: 26%; }
.mbhome__art i:nth-child(3) { right: 2%; top: 14%; } .mbhome__art i:nth-child(4) { left: 14%; bottom: 0; }
.mbhome__art i:nth-child(5) { left: 46%; bottom: 14%; width: 22%; } .mbhome__art i:nth-child(6) { right: 6%; bottom: 2%; width: 30%; }
@media (max-width: 860px) { .mbhome__in { grid-template-columns: 1fr; } }

/* =========================================================
   AFTER HOURS: the studio at night, lamps on
   ========================================================= */
.bar__lamp { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: none; cursor: pointer; color: inherit; transition: background .3s, color .3s; }
.bar__lamp svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
.bar__lamp:hover { background: rgba(255, 255, 255, .35); }
[data-theme="night"] .bar__lamp { color: #E8C987; border-color: rgba(232, 201, 135, .4); box-shadow: 0 0 22px -4px rgba(232, 201, 135, .55); }
[data-theme="night"] .bar__lamp svg path:first-child { fill: rgba(232, 201, 135, .35); }

html[data-theme="night"] {
  --plaster: #171310; --paper: #241E1A; --linen: #2A231F; --ink: #EFE8DE; --ink-2: #CDC2B4; --ink-3: #998D80;
  --line: rgba(239, 232, 222, .14); --glass-edge: rgba(255, 255, 255, .16); --wine: #D48E8E; --taupe: #7E7470; --mist: #5B524D;
  color-scheme: dark;
}
[data-theme="night"] body {
  background:
    radial-gradient(55% 45% at 88% -5%, rgba(232, 190, 120, .16), transparent 70%),
    radial-gradient(40% 35% at 5% 60%, rgba(232, 190, 120, .07), transparent 70%),
    #171310;
  background-attachment: fixed;
}
[data-theme="night"] body::after { opacity: .12; mix-blend-mode: screen; }
[data-theme="night"] .bar.is-solid, [data-theme="night"] .drawer { background: rgba(23, 19, 16, .72); }
[data-theme="night"] .glass { background: linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02) 45%, rgba(255, 255, 255, .05)); border-color: rgba(255, 255, 255, .12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 40px 80px -40px rgba(0, 0, 0, .8); }
[data-theme="night"] .btn--glass { --bg: rgba(255, 255, 255, .08); --fg: var(--ink); border-color: rgba(255, 255, 255, .18); }
[data-theme="night"] .btn--ink { --bg: #E8C987; --fg: #1A1512; }
[data-theme="night"] .btn--light { --bg: #F6F3EF; --fg: #561A1E; }
[data-theme="night"] .foot { background: #0E0B09; }
[data-theme="night"] .field input, [data-theme="night"] .field select, [data-theme="night"] .field textarea, [data-theme="night"] .mini-in, [data-theme="night"] .mini input, [data-theme="night"] .mini select, [data-theme="night"] .search, [data-theme="night"] .mb__search, [data-theme="night"] .card select { background: rgba(255, 255, 255, .06); color: var(--ink); border-color: rgba(255, 255, 255, .16); }
[data-theme="night"] .chip span, [data-theme="night"] .fam, [data-theme="night"] .chip-btn, [data-theme="night"] .txtbtn, [data-theme="night"] .shape-btn, [data-theme="night"] .bgb, [data-theme="night"] .tabs, [data-theme="night"] .mb__tools { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .14); }
[data-theme="night"] .chip input:checked + span, [data-theme="night"] .fam.is-on, [data-theme="night"] .chip-btn.is-on, [data-theme="night"] .tabs button[aria-selected="true"], [data-theme="night"] .mb__tabs button[aria-selected="true"] { background: #E8C987; color: #1A1512; border-color: #E8C987; }
[data-theme="night"] .hang__label { background: #241E1A; }
[data-theme="night"] .pane { background:
    linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 210, 150, .08) 50%, rgba(255, 255, 255, 0)),
    repeating-linear-gradient(90deg, rgba(255, 230, 190, .16) 0, rgba(255, 255, 255, .03) 3px, rgba(0, 0, 0, .12) 9px, rgba(0, 0, 0, .18) 13px, rgba(255, 230, 190, .12) 15px, rgba(255, 230, 190, .16) 16px),
    rgba(30, 24, 20, .35); }
[data-theme="night"] .door__words { color: #F2EBE1; text-shadow: 0 0 40px rgba(232, 190, 120, .25); }
[data-theme="night"] .elev__dim b { background: #171310; }
[data-theme="night"] .elev__arch, [data-theme="night"] .elev__bay { border-color: var(--line); }
[data-theme="night"] .elev::before, [data-theme="night"] .elev__arch { border-color: rgba(239, 232, 222, .5); }
[data-theme="night"] .entry { background: #2A231F; }
[data-theme="night"] .mb__menu { background: #2A231F; }
[data-theme="night"] .swatch { box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 30px 40px -18px rgba(0, 0, 0, .9); }
[data-theme="night"] .room__table::before { content: ''; position: absolute; inset: -10% -10% auto; height: 70%; background: radial-gradient(50% 60% at 50% 0%, rgba(255, 214, 150, .18), transparent 70%); pointer-events: none; }
[data-theme="night"] .wa-float { background: rgba(232, 201, 135, .85); color: #1A1512; }
[data-theme="night"] .toast { background: #F6F3EF; color: #1A1512; }
[data-theme="night"] .m-dots { background-color: #E6DCCB; }
