/* Global Art platform — design system (prototype v2) */
:root {
  --ink: #0b0a08; --ink-2: #131110; --ink-3: #1b1815; --line: rgba(243, 237, 227, .12); --line-2: rgba(243, 237, 227, .2);
  --bone: #f3ede3; --dim: rgba(243, 237, 227, .64); --faint: rgba(243, 237, 227, .4);
  --brass: #c9a36a; --brass-2: #e2c392; --ok: #7fd49a; --warn: #e8b86b;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Noto Naskh Arabic", "Traditional Arabic", serif;
  --sans: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Noto Sans Arabic", Tahoma, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1); --r: 18px; --gut: clamp(18px, 4vw, 56px); --max: 1240px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--ink); color: var(--bone); font-family: var(--sans); -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body { min-height: 100vh; overflow-x: hidden; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
img, video { display: block; max-width: 100%; }
[dir="rtl"] * { letter-spacing: normal !important; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Layout */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.section { padding: clamp(72px, 12vh, 140px) 0; }
.kicker { font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--brass); }
[dir="rtl"] .kicker { text-transform: none; font-size: 14px; }
.h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 7vw, 104px); line-height: 1.02; letter-spacing: -.02em; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4.6vw, 64px); line-height: 1.08; letter-spacing: -.015em; }
.h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; }
[dir="rtl"] .h1, [dir="rtl"] .h2 { line-height: 1.35; } [dir="rtl"] .h3 { line-height: 1.45; }
.lead { font-size: clamp(16px, 1.4vw, 19px); color: var(--dim); max-width: 640px; }
.muted { color: var(--dim); } .small { font-size: 13px; } .tiny { font-size: 11.5px; color: var(--faint); }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.between { justify-content: space-between; }

/* Buttons & chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px;
  border: 1px solid var(--line-2); font-size: 15px; transition: .35s var(--ease); white-space: nowrap; }
.btn:hover { border-color: var(--bone); }
.btn.solid { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn.solid:hover { background: #fff; }
.btn.brass { background: var(--brass); color: var(--ink); border-color: var(--brass); }
.btn.brass:hover { background: var(--brass-2); }
.btn.sm { min-height: 38px; padding: 0 16px; font-size: 13px; }
.btn svg { width: 18px; height: 18px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--dim); transition: .3s var(--ease); }
.chip:hover, .chip.on { color: var(--ink); background: var(--bone); border-color: var(--bone); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(127, 212, 154, .15); display: inline-block; }
.badge-ai { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 6px; font-size: 10.5px; letter-spacing: .08em;
  border: 1px solid rgba(201, 163, 106, .45); color: var(--brass-2); background: rgba(201, 163, 106, .08); vertical-align: middle; }
[dir="rtl"] .badge-ai { font-size: 12px; }
.proposed { display: inline-block; font-size: 10.5px; padding: 2px 7px; border-radius: 5px; background: rgba(232, 184, 107, .14); color: var(--warn); border: 1px dashed rgba(232, 184, 107, .5); }

/* Surfaces */
.card { position: relative; border: 1px solid var(--line); border-radius: var(--r); background: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, .01)); padding: 24px; }
.glass { background: rgba(19, 17, 16, .6); border: 1px solid var(--line); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); }
.media { position: relative; overflow: hidden; border-radius: var(--r); background: radial-gradient(120% 90% at 30% 20%, #3a2a1a, #120f0c 70%); }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.media[data-pending]::after { content: attr(data-pending); position: absolute; inset-inline-start: 14px; bottom: 12px; font-size: 11px; color: var(--faint);
  padding: 4px 8px; border-radius: 6px; border: 1px dashed var(--line-2); background: rgba(0, 0, 0, .35); }

/* Header */
.nav { position: fixed; z-index: 50; inset-inline: 0; top: 0; transition: background .5s var(--ease), border-color .5s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(11, 10, 8, .72); border-color: var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.nav-in { max-width: var(--max); margin: 0 auto; padding: 16px var(--gut); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 18px; }
.brand img { width: 30px; height: 30px; }
.links { display: flex; gap: 26px; font-size: 14px; color: var(--dim); margin-inline-start: 18px; }
.links a:hover, .links a.on { color: var(--bone); }
.nav-end { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.lang { font-size: 13px; color: var(--dim); padding: 8px 10px; }
.burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); place-items: center; }
.drawer { position: fixed; inset: 0; z-index: 60; background: rgba(11, 10, 8, .96); display: grid; align-content: center; gap: 22px; padding: var(--gut);
  opacity: 0; visibility: hidden; transition: .4s var(--ease); }
.drawer.open { opacity: 1; visibility: visible; }
.drawer a { font-family: var(--serif); font-size: 34px; }
.drawer .x { position: absolute; top: 18px; inset-inline-end: 18px; }
@media (max-width: 900px) { .links, .nav-end .hide-m { display: none; } .burger { display: grid; } }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 40px; font-size: 14px; color: var(--dim); }
.foot .cols { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 28px; }
.foot h4 { color: var(--bone); font-weight: 500; margin-bottom: 12px; font-size: 13px; }
.foot li { list-style: none; margin: 8px 0; }
.foot a:hover { color: var(--bone); }
@media (max-width: 760px) { .foot .cols { grid-template-columns: 1fr 1fr; } }

/* Composer (Sarah) */
.composer { display: flex; align-items: center; gap: 8px; padding: 7px; padding-inline-start: 18px; border-radius: 999px; }
.composer input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 15px; }
.composer input::placeholder { color: var(--faint); }
.ibtn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 1px solid var(--line-2); transition: .3s var(--ease); }
.ibtn:hover { border-color: var(--bone); }
.ibtn.go { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.ibtn svg { width: 18px; height: 18px; }

/* Forms */
.field { display: grid; gap: 6px; font-size: 13px; color: var(--dim); }
.input { width: 100%; min-height: 48px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); outline: 0; font-size: 15px; color: var(--bone); }
.input:focus { border-color: var(--brass); }

/* Motion */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .1s } .rv.d2 { transition-delay: .2s } .rv.d3 { transition-delay: .3s }
.grain { position: fixed; inset: -50%; pointer-events: none; z-index: 70; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0) } 50% { transform: translate(-4%, 3%) } 100% { transform: translate(3%, -2%) } }
.proto { position: fixed; z-index: 80; inset-block-end: 12px; inset-inline-start: 12px; font-size: 11px; padding: 6px 10px; border-radius: 8px;
  background: rgba(0, 0, 0, .6); border: 1px solid var(--line); color: var(--faint); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; } .rv { opacity: 1; transform: none; transition: none; } .grain { animation: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
