/* Editorial-luxury presentation for NOWAD Real Estate. */
  @font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }
  @font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
  @font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/cormorant-garamond-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
  @font-face { font-family: "Inter"; src: url("assets/fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
  @font-face { font-family: "Inter"; src: url("assets/fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
  @font-face { font-family: "Inter"; src: url("assets/fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
  @font-face { font-family: "Inter"; src: url("assets/fonts/inter-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
  @font-face { font-family: "Amiri"; src: url("assets/fonts/amiri-arabic-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
  @font-face { font-family: "Amiri"; src: url("assets/fonts/amiri-arabic-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
  @font-face { font-family: "Cairo"; src: url("assets/fonts/cairo-arabic-variable.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
  :root {
    --ink: #0c0b09;
    --ink-soft: #14120f;
    --paper: #f4efe6;
    --paper-dim: #e9e2d4;
    --gold: #b99457;
    --gold-bright: #d9b877;
    --cream: #ede8dd;
    --cream-dim: rgba(237, 232, 221, 0.55);
    --line: rgba(237, 232, 221, 0.14);
    --line-dark: rgba(12, 11, 9, 0.15);
    --wa: #1faa53;
    --radius: 4px;
    --display: "Cormorant Garamond", Georgia, serif;
    --grot: "Inter", "Segoe UI", system-ui, sans-serif;
    --ar-display: "Amiri", serif;
    --ar-grot: "Cairo", Tahoma, sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    background: var(--ink);
    color: var(--cream);
    font-family: var(--grot);
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  html[dir="rtl"] body { font-family: var(--ar-grot); }
  ::selection { background: var(--gold); color: var(--ink); }
  img { max-width: 100%; display: block; }
  a { color: inherit; text-decoration: none; }
  button { font-family: inherit; cursor: pointer; }
  :focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 4px; }
  .skip-link {
    position: fixed; top: 10px; inset-inline-start: 10px; z-index: 1200;
    padding: 10px 14px; background: var(--paper); color: var(--ink);
    transform: translateY(-150%); transition: transform 0.2s;
  }
  .skip-link:focus { transform: none; }
  .display { font-family: var(--display); font-weight: 500; }
  html[dir="rtl"] .display { font-family: var(--ar-display); }

  /* ---------- film grain + vignette ---------- */
  .grain {
    position: fixed; inset: -50%; z-index: 999; pointer-events: none;
    width: 200%; height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    opacity: 0.05;
    animation: grain 8s steps(10) infinite;
  }
  @keyframes grain {
    0%,100% { transform: translate(0,0); } 10% { transform: translate(-5%,-8%); }
    30% { transform: translate(3%,-4%); } 50% { transform: translate(-8%,3%); }
    70% { transform: translate(6%,8%); } 90% { transform: translate(-3%,5%); }
  }

  /* ---------- custom cursor (desktop only) ---------- */
  .cursor-dot, .cursor-ring { display: none; }
  @media (hover: hover) and (pointer: fine) {
    .cursor-dot, .cursor-ring {
      display: block; position: fixed; top: 0; left: 0; z-index: 1000;
      pointer-events: none; border-radius: 50%;
      transform: translate(-50%, -50%);
    }
    .cursor-dot { width: 6px; height: 6px; background: var(--gold-bright); }
    .cursor-ring {
      width: 38px; height: 38px;
      border: 1px solid rgba(217, 184, 119, 0.6);
      transition: width 0.25s var(--ease), height 0.25s var(--ease), border-color 0.25s;
    }
    .cursor-ring.hover { width: 64px; height: 64px; border-color: var(--gold-bright); }
    body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }
  }

  /* ---------- preloader ---------- */
  .loader {
    position: fixed; inset: 0; z-index: 998;
    background: #000;
    display: grid; place-items: center;
    transition: transform 0.9s var(--ease);
  }
  .loader.done { transform: translateY(-101%); }
  .loader .logo-img {
    width: min(224px, 48vw); display: block; margin: 0 auto;
    opacity: 0; animation: fadeup 0.9s var(--ease) 0.1s forwards;
  }
  .loader .rule {
    width: 0; height: 1px; background: var(--gold);
    margin: 18px auto 0; animation: rule 1s var(--ease) 0.4s forwards;
  }
  .loader .sub {
    text-align: center; margin-top: 14px; font-size: 10px; letter-spacing: 5px;
    text-transform: uppercase; color: var(--cream-dim);
    opacity: 0; animation: fadeup 0.8s var(--ease) 0.7s forwards;
  }
  html[dir="rtl"] .loader .sub { letter-spacing: 1px; }
  @keyframes fadeup { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes rule { to { width: 120px; } }

  /* ---------- reveal utilities ---------- */
  .reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
  .mask-img { overflow: hidden; }
  .mask-img img { transform: scale(1.15); transition: transform 1.4s var(--ease); }
  .mask-img.in img { transform: scale(1); }
  .line { display: block; overflow: hidden; }
  .line > span { display: block; transform: translateY(115%); transition: transform 1.1s var(--ease); }
  body.ready .line > span { transform: none; }
  .line:nth-child(2) > span { transition-delay: 0.12s; }
  .line:nth-child(3) > span { transition-delay: 0.24s; }
  @media (prefers-reduced-motion: reduce) {
    .reveal, .line > span, .mask-img img { opacity: 1 !important; transform: none !important; transition: none !important; }
    .grain, .marquee-track { animation: none !important; }
    .cursor-dot, .cursor-ring { display: none !important; }
    html { scroll-behavior: auto; }
  }

  /* ---------- labels / kickers ---------- */
  .kicker {
    display: flex; align-items: center; gap: 12px;
    font-size: 10.5px; font-weight: 600; letter-spacing: 3.5px; text-transform: uppercase;
    color: var(--gold-bright);
  }
  html[dir="rtl"] .kicker { letter-spacing: 1px; }
  .kicker::before { content: ""; width: 44px; height: 1px; background: var(--gold); }

  /* ---------- header ---------- */
  header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 90;
    transition: background 0.4s, border-color 0.4s, transform 0.4s;
    border-bottom: 1px solid transparent;
  }
  header.scrolled { background: rgba(12, 11, 9, 0.85); backdrop-filter: blur(16px); border-color: var(--line); }
  header.hidden { transform: translateY(-100%); }
  .nav { display: flex; align-items: center; justify-content: space-between; height: 84px; padding: 0 min(5vw, 60px); }
  .brand { display: flex; flex-direction: column; line-height: 1.35; }
  .brand .b-name { font-family: var(--grot); font-weight: 500; font-size: 19px; letter-spacing: 7px; color: var(--gold-bright); }
  html[dir="rtl"] .brand .b-name { font-family: var(--ar-grot); letter-spacing: 0; font-size: 20px; }
  .brand .b-sub { font-size: 8.5px; letter-spacing: 4.5px; text-transform: uppercase; color: var(--gold-bright); }
  html[dir="rtl"] .brand .b-sub { letter-spacing: 1px; }
  .nav-right { display: flex; align-items: center; gap: 30px; }
  .nav-links { display: flex; gap: 30px; font-size: 11.5px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--cream-dim); }
  html[dir="rtl"] .nav-links { letter-spacing: 0.5px; }
  .nav-links a { position: relative; padding: 5px 0; transition: color 0.3s; }
  .nav-links a:hover { color: var(--cream); }
  .nav-links a::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 0; height: 1px; background: var(--gold-bright); transition: width 0.35s var(--ease); }
  .nav-links a:hover::after { width: 100%; }
  .lang-btn {
    border: 1px solid rgba(237,232,221,0.3); background: transparent; color: var(--cream);
    padding: 9px 20px; border-radius: 999px; font-size: 12px; font-weight: 600;
    transition: all 0.3s;
  }
  .lang-btn:hover { border-color: var(--gold-bright); color: var(--gold-bright); }

  /* burger + fullscreen menu (mobile) */
  .burger {
    display: none; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; background: transparent; border: none; padding: 10px;
  }
  .burger span { display: block; height: 1.5px; background: var(--cream); transition: transform 0.35s var(--ease), opacity 0.25s; }
  body.menu-open .burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  body.menu-open .burger span:nth-child(2) { opacity: 0; }
  body.menu-open .burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .menu-overlay {
    position: fixed; inset: 0; z-index: 89;
    background: rgba(12, 11, 9, 0.97); backdrop-filter: blur(10px);
    display: flex; flex-direction: column; justify-content: center;
    padding: 90px 34px 34px; gap: 6px; overflow-y: auto;
    opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease);
  }
  body.menu-open .menu-overlay { opacity: 1; pointer-events: auto; }
  body.menu-open { overflow: hidden; }
  .menu-overlay a {
    font-family: var(--display); font-size: clamp(34px, 9vw, 48px); font-weight: 500;
    padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--cream);
    display: flex; justify-content: space-between; align-items: center;
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  }
  html[dir="rtl"] .menu-overlay a { font-family: var(--ar-display); }
  .menu-overlay a .m-idx { font-family: var(--grot); font-size: 11px; letter-spacing: 3px; color: var(--gold-bright); }
  body.menu-open .menu-overlay a { opacity: 1; transform: none; }
  body.menu-open .menu-overlay a:nth-child(1) { transition-delay: 0.08s; }
  body.menu-open .menu-overlay a:nth-child(2) { transition-delay: 0.16s; }
  body.menu-open .menu-overlay a:nth-child(3) { transition-delay: 0.24s; }
  body.menu-open .menu-overlay a:nth-child(4) { transition-delay: 0.32s; }
  .menu-overlay .m-foot { margin-top: 34px; opacity: 0; transition: opacity 0.5s var(--ease) 0.4s; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--cream-dim); }
  html[dir="rtl"] .menu-overlay .m-foot { letter-spacing: 0.5px; }
  body.menu-open .menu-overlay .m-foot { opacity: 1; }

  @media (max-width: 820px) {
    .nav-links { display: none; }
    .nav { height: 72px; padding: 0 18px; }
    .burger { display: flex; }
    .nav-right { gap: 6px; }
    .lang-btn { padding: 7px 14px; }
    .brand .b-name { font-size: 19px; }
    .brand .b-sub { font-size: 7.5px; letter-spacing: 3px; white-space: nowrap; }
    .menu-overlay { justify-content: flex-start; }
    .menu-overlay a { font-size: clamp(28px, 8vw, 42px); padding: 9px 0; }
    .menu-overlay .m-foot { margin-top: 20px; padding-bottom: 24px; }
  }

  /* ---------- hero ---------- */
  .hero { position: relative; height: 92svh; min-height: 620px; overflow: hidden; }
  .hero-media { position: absolute; inset: 0; }
  .hero-media img { width: 100%; height: 112%; object-fit: cover; filter: brightness(0.62) saturate(0.92); will-change: transform; }
  .hero-media::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(ellipse 120% 90% at 50% 110%, rgba(12,11,9,0.9), transparent 55%),
                linear-gradient(180deg, rgba(12,11,9,0.5), transparent 30%, transparent 60%, var(--ink));
  }
  .hero-frame {
    position: absolute; inset: clamp(14px, 2.6vw, 34px); top: 96px; z-index: 2;
    border: 1px solid rgba(217, 184, 119, 0.28); pointer-events: none;
  }
  .hero-inner {
    position: relative; z-index: 3; height: 100%;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 108px min(7vw, 90px) clamp(70px, 11vh, 130px);
  }
  .hero-logo {
    display: block;
    width: min(266px, 41vw);
    margin: 0 auto auto;
    filter: drop-shadow(0 8px 34px rgba(0, 0, 0, 0.55));
    opacity: 0; transform: translateY(18px) scale(0.97);
    transition: opacity 1.3s var(--ease) 0.15s, transform 1.3s var(--ease) 0.15s;
  }
  body.ready .hero-logo { opacity: 1; transform: none; }
  @media (max-width: 640px) {
    .hero-logo { width: min(190px, 51vw); }
  }
  .hero .kicker { margin-bottom: 26px; }
  .hero h1 {
    font-family: var(--display); font-weight: 500;
    font-size: clamp(52px, 9.2vw, 132px);
    line-height: 0.98; letter-spacing: 0.5px;
    color: var(--cream);
  }
  html[dir="rtl"] .hero h1 { font-family: var(--ar-display); line-height: 1.25; }
  .hero h1 em { font-style: italic; color: var(--gold-bright); }
  html[dir="rtl"] .hero h1 em { font-style: normal; }
  .hero-foot {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 30px;
    margin-top: 42px; flex-wrap: wrap;
  }
  .hero-foot p { max-width: 30em; color: rgba(237, 232, 221, 0.82); font-size: 15px; }
  .scroll-cue { display: flex; align-items: center; gap: 12px; font-size: 10px; letter-spacing: 4px; text-transform: uppercase; color: var(--cream-dim); }
  html[dir="rtl"] .scroll-cue { letter-spacing: 1px; }
  .scroll-cue .stem { width: 1px; height: 52px; background: linear-gradient(var(--gold-bright), transparent); position: relative; overflow: hidden; }
  .scroll-cue .stem::after { content: ""; position: absolute; top: -30%; left: 0; width: 100%; height: 30%; background: var(--cream); animation: drip 2s var(--ease) infinite; }
  @keyframes drip { to { top: 130%; } }

  /* ---------- flight (scroll-scrubbed drone sequence) ---------- */
  .flight { position: relative; height: 620vh; background: #000; }
  .flight-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
  .flight-poster, #flightCanvas {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; display: block;
  }
  #flightCanvas { opacity: 0; transition: opacity 0.5s; }
  .flight.engine-on #flightCanvas { opacity: 1; }
  .flight.engine-on .flight-poster { visibility: hidden; }
  .flight-shade {
    position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(12,11,9,0.55), transparent 22%, transparent 72%, var(--ink));
  }
  .flight-cap {
    position: absolute; inset-inline-start: min(7vw, 90px); bottom: 16vh; z-index: 3;
    max-width: min(78vw, 720px);
    opacity: 0; transform: translateY(26px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    pointer-events: none;
  }
  .flight-cap.on { opacity: 1; transform: none; pointer-events: auto; }
  .flight-cap .kicker { margin-bottom: 18px; }
  .flight-cap h2 {
    font-family: var(--display); font-weight: 500;
    font-size: clamp(32px, 4.6vw, 68px); line-height: 1.08;
    color: var(--cream); text-shadow: 0 2px 30px rgba(0,0,0,0.55);
  }
  html[dir="rtl"] .flight-cap h2 { font-family: var(--ar-display); line-height: 1.35; }
  .flight-cap .btn { margin-top: 26px; pointer-events: auto; }
  .flight-progress {
    position: absolute; bottom: 30px; inset-inline-start: min(7vw, 90px); inset-inline-end: min(7vw, 90px);
    height: 1px; background: rgba(237, 232, 221, 0.18); z-index: 3;
  }
  .flight-progress .bar { height: 100%; width: 0; background: var(--gold-bright); }
  @media (max-width: 700px) {
    .flight { height: 500vh; }
    .flight-cap { inset-inline-start: 22px; inset-inline-end: 22px; bottom: 14vh; }
    .flight-cap h2 { font-size: clamp(27px, 7.6vw, 40px); }
  }
  @media (prefers-reduced-motion: reduce) {
    .flight { height: 100svh !important; }
    #flightCanvas { display: none !important; }
    .flight-poster { visibility: visible !important; }
    .flight-cap[data-step="0"] { opacity: 1 !important; transform: none !important; }
  }

  /* ---------- marquee ---------- */
  .marquee { border-block: 1px solid var(--line); padding: 26px 0; overflow: hidden; background: var(--ink-soft); }
  .marquee-track { display: flex; gap: 70px; width: max-content; animation: marquee 36s linear infinite; }
  .marquee span {
    font-family: var(--display); font-size: 30px; letter-spacing: 3px; white-space: nowrap;
    color: transparent; -webkit-text-stroke: 1px rgba(237, 232, 221, 0.28);
  }
  .marquee span i { font-style: normal; color: var(--gold); -webkit-text-stroke: 0; font-size: 16px; vertical-align: middle; padding: 0 8px; }
  @keyframes marquee { to { transform: translateX(-50%); } }
  html[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
  @keyframes marquee-rtl { to { transform: translateX(50%); } }

  /* ---------- manifesto / stats ---------- */
  .manifesto { padding: clamp(90px, 14vh, 160px) min(7vw, 90px); }
  .manifesto .kicker { margin-bottom: 40px; }
  .manifesto h2 {
    font-family: var(--display); font-weight: 500;
    font-size: clamp(30px, 4.6vw, 62px); line-height: 1.18; max-width: 21em;
  }
  html[dir="rtl"] .manifesto h2 { font-family: var(--ar-display); line-height: 1.5; }
  .manifesto h2 em { font-style: italic; color: var(--gold-bright); }
  html[dir="rtl"] .manifesto h2 em { font-style: normal; }
  .figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-top: clamp(60px, 9vh, 100px); }
  .figure { border-top: 1px solid var(--line); padding-top: 26px; }
  .figure .num { font-family: var(--display); font-size: clamp(52px, 6vw, 84px); line-height: 1; color: var(--cream); }
  html[dir="rtl"] .figure .num { font-family: var(--ar-display); }
  .figure .num sup { font-size: 0.45em; color: var(--gold-bright); }
  .figure .lbl { margin-top: 10px; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--cream-dim); }
  html[dir="rtl"] .figure .lbl { letter-spacing: 0.5px; }

  /* ---------- verified projects + workbook reference library ---------- */
  .project-showcase { padding: clamp(90px, 13vh, 150px) min(7vw, 90px); background: #11100e; }
  .project-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
  .project-head .kicker { margin-bottom: 16px; }
  .project-head h2 { font-family: var(--display); font-size: clamp(38px, 6vw, 82px); font-weight: 500; line-height: 1; }
  html[dir="rtl"] .project-head h2 { font-family: var(--ar-display); line-height: 1.35; }
  .project-head .count { padding-bottom: 12px; color: var(--cream-dim); font-size: 10.5px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; }
  html[dir="rtl"] .project-head .count { letter-spacing: 0; }
  .project-note { max-width: 88em; margin-top: 28px; color: var(--cream-dim); font-size: 12px; }
  .project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 44px; }
  .project-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-soft); }
  .project-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #1a1814; }
  .project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
  .project-card:hover .project-media img { transform: scale(1.025); }
  .project-source { position: absolute; top: 14px; inset-inline-end: 14px; padding: 5px 9px; border-radius: var(--radius); background: rgba(12,11,9,0.82); color: var(--cream); font-size: 9px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
  .project-copy { display: flex; flex: 1; flex-direction: column; padding: 25px; }
  .project-area { color: var(--gold-bright); font-size: 9.5px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; }
  html[dir="rtl"] .project-area { letter-spacing: 0; }
  .project-copy h3 { margin-top: 9px; font-family: var(--display); font-size: clamp(30px, 3vw, 42px); font-weight: 500; line-height: 1.05; }
  html[dir="rtl"] .project-copy h3 { font-family: var(--ar-display); line-height: 1.35; }
  .project-copy > p { margin-top: 14px; color: var(--cream-dim); font-size: 13px; }
  .project-facts { margin-top: 22px; border-top: 1px solid var(--line); }
  .project-facts > div { display: grid; grid-template-columns: minmax(100px, 0.8fr) 1.2fr; gap: 15px; padding: 11px 0; border-bottom: 1px solid var(--line); }
  .project-facts dt { color: var(--cream-dim); font-size: 9px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; }
  .project-facts dd { color: var(--cream); font-size: 12px; font-weight: 600; }
  html[dir="rtl"] .project-facts dt { letter-spacing: 0; }
  .project-actions { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; margin-top: auto; padding-top: 24px; }
  .project-actions .btn { padding: 13px 15px; font-size: 9.5px; letter-spacing: 1.5px; }
  .project-official { padding: 8px 0; border-bottom: 1px solid rgba(217,184,119,0.5); color: var(--gold-bright); font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
  html[dir="rtl"] .project-official { letter-spacing: 0; }

  .project-library { margin-top: clamp(90px, 12vh, 140px); }
  .library-intro { display: grid; grid-template-columns: 1fr minmax(280px, 0.75fr); align-items: end; gap: clamp(30px, 7vw, 100px); padding-bottom: 32px; border-bottom: 1px solid var(--line); }
  .library-intro .kicker { margin-bottom: 13px; }
  .library-intro h3 { font-family: var(--display); font-size: clamp(32px, 4vw, 58px); font-weight: 500; line-height: 1.1; }
  html[dir="rtl"] .library-intro h3 { font-family: var(--ar-display); line-height: 1.45; }
  .library-intro p { color: var(--cream-dim); font-size: 12px; }
  .catalog-controls { display: grid; grid-template-columns: minmax(190px, 1fr) minmax(150px, 0.5fr) minmax(170px, 0.55fr) auto; align-items: center; gap: 12px; padding: 24px 0; border-bottom: 1px solid var(--line); }
  .catalog-controls input, .catalog-controls select { width: 100%; min-height: 48px; border: 1px solid rgba(237,232,221,0.24); border-radius: var(--radius); background: #0c0b09; color: var(--cream); padding: 11px 14px; font: inherit; font-size: 13px; }
  .catalog-controls input::placeholder { color: rgba(237,232,221,0.46); }
  .catalog-controls select { color-scheme: dark; }
  #catalogMatches { color: var(--cream-dim); font-size: 10px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; white-space: nowrap; }
  html[dir="rtl"] #catalogMatches { letter-spacing: 0; }
  .catalog-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .catalog-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 18px; width: 100%; min-height: 62px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--cream); text-align: start; }
  .catalog-name { min-width: 0; overflow-wrap: anywhere; font-size: 12px; font-weight: 700; letter-spacing: 0.5px; }
  .catalog-area { color: var(--cream-dim); font-size: 9px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
  .catalog-action { color: var(--gold-bright); font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; opacity: 0.55; transition: opacity 0.25s; }
  .catalog-row:hover .catalog-action, .catalog-row:focus-visible .catalog-action { opacity: 1; transform: none; }
  .catalog-empty { grid-column: 1 / -1; padding: 36px 0; color: var(--cream-dim); }
  .catalog-more { display: flex; width: min(260px, 100%); margin: 34px auto 0; }

  @media (max-width: 1050px) {
    .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .catalog-list { grid-template-columns: 1fr; }
  }
  @media (max-width: 720px) {
    .project-showcase { padding: 76px 22px; }
    .project-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 30px; }
    .project-copy { padding: 22px 19px; }
    .project-actions { grid-template-columns: 1fr; gap: 11px; }
    .project-official { width: max-content; }
    .library-intro { grid-template-columns: 1fr; gap: 18px; }
    .catalog-controls { grid-template-columns: 1fr; }
    .catalog-row { grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; min-height: 68px; }
    .catalog-area { max-width: 135px; text-align: end; }
    .catalog-action { font-size: 8px; }
  }

  /* ---------- THE COLLECTION (horizontal scroll) ---------- */
  .collection-head { padding: 0 min(7vw, 90px) 40px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
  .collection-head h2 { font-family: var(--display); font-size: clamp(38px, 6vw, 84px); font-weight: 500; line-height: 1; }
  html[dir="rtl"] .collection-head h2 { font-family: var(--ar-display); line-height: 1.3; }
  .collection-head .count { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--cream-dim); padding-bottom: 14px; }
  html[dir="rtl"] .collection-head .count { letter-spacing: 0.5px; }
  .collection-head .kicker { margin-bottom: 16px; }
  .collection-note { padding: 0 min(7vw, 90px) 24px; max-width: 78em; color: var(--cream-dim); font-size: 12px; }

  .h-wrap { position: relative; }
  .h-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; align-items: center; }
  .h-track { display: flex; will-change: transform; }
  .spread {
    flex: 0 0 auto;
    width: min(78vw, 1050px);
    height: min(78svh, 700px);
    margin-inline-end: min(6vw, 70px);
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    background: var(--ink-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
  }
  .spread:first-child { margin-inline-start: min(7vw, 90px); }
  .spread .sp-media { position: relative; overflow: hidden; }
  .spread .sp-media img { width: 100%; height: 110%; object-fit: cover; filter: saturate(0.94); will-change: transform; }
  .spread .sp-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, rgba(12,11,9,0.35)); }
  html[dir="rtl"] .spread .sp-media::after { background: linear-gradient(270deg, transparent 60%, rgba(12,11,9,0.35)); }
  .spread .idx {
    position: absolute; top: 18px; inset-inline-start: 26px; z-index: 3;
    font-family: var(--display); font-size: clamp(70px, 8vw, 120px); line-height: 1;
    color: transparent; -webkit-text-stroke: 1px rgba(237, 232, 221, 0.5);
  }
  .spread .sp-body { padding: clamp(26px, 3.4vw, 52px); display: flex; flex-direction: column; }
  .sp-status { font-size: 10px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; color: var(--gold-bright); margin-bottom: 18px; }
  html[dir="rtl"] .sp-status { letter-spacing: 1px; }
  .sp-body h3 { font-family: var(--display); font-weight: 500; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.05; }
  html[dir="rtl"] .sp-body h3 { font-family: var(--ar-display); line-height: 1.3; }
  .sp-area { margin-top: 10px; color: var(--cream-dim); font-size: 13.5px; letter-spacing: 1px; }
  .sp-desc { margin-top: 20px; color: var(--cream-dim); font-size: 14px; max-width: 34em; }
  .sp-facts { margin-top: auto; padding-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; border-top: 1px solid var(--line); }
  .sp-fact .fl { font-size: 9.5px; letter-spacing: 3px; text-transform: uppercase; color: var(--cream-dim); }
  html[dir="rtl"] .sp-fact .fl { letter-spacing: 0.5px; }
  .sp-fact .fv { font-family: var(--display); font-size: 24px; color: var(--gold-bright); margin-top: 2px; }
  html[dir="rtl"] .sp-fact .fv { font-family: var(--ar-display); }
  .sp-ctas { display: flex; gap: 12px; margin-top: 26px; }
  .sp-ctas .btn { flex: 1; padding-inline: 18px; }

  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 15px 30px; font-size: 12px; font-weight: 700;
    letter-spacing: 2.5px; text-transform: uppercase;
    border: 1px solid transparent; border-radius: var(--radius);
    transition: all 0.35s var(--ease);
    will-change: transform;
  }
  html[dir="rtl"] .btn { letter-spacing: 0.5px; }
  .btn-gold { background: var(--gold); color: var(--ink); }
  .btn-gold:hover { background: var(--gold-bright); }
  .btn-ghost { border-color: rgba(237,232,221,0.3); color: var(--cream); background: transparent; }
  .btn-ghost:hover { border-color: var(--gold-bright); color: var(--gold-bright); }
  .btn-wa { background: var(--wa); color: #fff; }
  .btn-wa:hover { filter: brightness(1.1); }
  .btn svg { width: 17px; height: 17px; fill: currentColor; }

  .h-progress { position: absolute; bottom: 34px; inset-inline-start: min(7vw, 90px); inset-inline-end: min(7vw, 90px); height: 1px; background: var(--line); }
  .h-progress .bar { height: 100%; width: 0; background: var(--gold-bright); transition: width 0.15s linear; }

  /* mobile: native horizontal swipe with snap (keeps the gallery signature) */
  @media (max-width: 860px) {
    .h-wrap { height: auto !important; }
    .h-sticky { position: static; height: auto; overflow: visible; display: block; }
    .h-track {
      transform: none !important;
      overflow-x: auto; overscroll-behavior-x: contain;
      scroll-snap-type: x mandatory;
      -webkit-overflow-scrolling: touch;
      padding: 0 18px 22px; gap: 16px;
      scrollbar-width: none;
    }
    .h-track::-webkit-scrollbar { display: none; }
    .spread, .spread:first-child {
      width: 85vw; margin: 0;
      height: auto; grid-template-columns: 1fr;
      scroll-snap-align: center;
    }
    .spread .sp-media { height: 230px; }
    .spread .sp-media::after { background: linear-gradient(180deg, transparent 55%, rgba(12,11,9,0.5)); }
    .spread .idx { font-size: 60px; top: 12px; }
    .spread .sp-body { padding: 22px 20px 24px; }
    .sp-desc { font-size: 13.5px; }
    .sp-facts { padding-top: 18px; gap: 12px 16px; }
    .sp-fact .fv { font-size: 20px; }
    .sp-ctas { flex-direction: column; gap: 10px; margin-top: 20px; }
    .sp-ctas .btn { width: 100%; padding: 14px 10px; }
    .h-progress { display: none; }
    .swipe-hint { display: flex; }
  }
  .swipe-hint {
    display: none; align-items: center; justify-content: center; gap: 10px;
    padding: 4px 0 0; font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--cream-dim);
  }
  html[dir="rtl"] .swipe-hint { letter-spacing: 0.5px; }
  .swipe-hint .sh-line { width: 34px; height: 1px; background: var(--gold); }

  /* small-screen typography & spacing */
  @media (max-width: 640px) {
    .hero h1 { font-size: clamp(34px, 10.5vw, 52px); }
    html[dir="rtl"] .hero h1 { font-size: clamp(30px, 9.5vw, 46px); }
    .hero { height: auto; min-height: calc(100svh - 108px); }
    .hero-inner { height: auto; min-height: calc(100svh - 108px); padding: 92px 22px clamp(48px, 7vh, 70px); }
    .hero-logo { width: min(154px, 41vw); margin-bottom: 16px; }
    .hero .kicker { margin-bottom: 18px; font-size: 9.5px; letter-spacing: 3px; }
    .hero-foot { margin-top: 26px; }
    .hero-foot p { font-size: 14px; }
    .scroll-cue { display: none; }
    .hero-frame { inset: 10px; }
    section, .manifesto { padding-left: 22px; padding-right: 22px; }
    .marquee span { font-size: 21px; }
    .marquee-track { gap: 44px; }
    .figures { gap: 26px; margin-top: 54px; }
    .figure { padding-top: 18px; }
    .figure .num { font-size: 46px; }
    .collection-head { padding: 0 22px 28px; }
    .philosophy { padding: 70px 22px; }
    .phil-point { grid-template-columns: 44px 1fr; padding: 20px 0; }
    .voices { padding: 70px 22px; }
    .contact { padding: 70px 22px; }
    .channel .ch-v { font-size: 15px; }
    footer { padding: 34px 22px 120px; }
    .sticky-bar a { padding-bottom: calc(17px + env(safe-area-inset-bottom, 0px)); }
  }

  /* ---------- philosophy (light editorial) ---------- */
  .philosophy { background: var(--paper); color: var(--ink); padding: clamp(90px, 14vh, 170px) min(7vw, 90px); }
  .philosophy .kicker { color: #96712f; }
  .philosophy .kicker::before { background: #96712f; }
  .phil-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 100px); margin-top: 44px; }
  @media (max-width: 860px) { .phil-grid { grid-template-columns: 1fr; } }
  .phil-quote { font-family: var(--display); font-weight: 500; font-size: clamp(28px, 3.6vw, 50px); line-height: 1.22; }
  html[dir="rtl"] .phil-quote { font-family: var(--ar-display); line-height: 1.55; }
  .phil-quote em { font-style: italic; color: #96712f; }
  html[dir="rtl"] .phil-quote em { font-style: normal; }
  .phil-sig { margin-top: 34px; }
  .phil-sig .sig-name { font-family: var(--display); font-size: 26px; font-style: italic; color: #4a3d28; }
  html[dir="rtl"] .phil-sig .sig-name { font-family: var(--ar-display); font-style: normal; }
  .phil-sig .sig-role { font-size: 10.5px; letter-spacing: 3px; text-transform: uppercase; color: rgba(12,11,9,0.5); margin-top: 4px; }
  html[dir="rtl"] .phil-sig .sig-role { letter-spacing: 0.5px; }
  .phil-points { display: flex; flex-direction: column; }
  .phil-point { border-top: 1px solid var(--line-dark); padding: 26px 0; display: grid; grid-template-columns: 64px 1fr; gap: 18px; }
  .phil-point .pp-num { font-family: var(--display); font-size: 30px; color: #96712f; }
  html[dir="rtl"] .phil-point .pp-num { font-family: var(--ar-display); }
  .phil-point h3 { font-family: var(--grot); font-size: 15px; font-weight: 700; letter-spacing: 1px; margin-bottom: 8px; }
  html[dir="rtl"] .phil-point h3 { font-family: var(--ar-grot); }
  .phil-point p { color: rgba(12, 11, 9, 0.65); font-size: 14px; }

  /* ---------- voices (rotating quote) ---------- */
  .voices { padding: clamp(90px, 14vh, 160px) min(7vw, 90px); text-align: center; position: relative; }
  .voices .kicker { justify-content: center; }
  .voices .kicker::before { display: none; }
  .voice-stage { min-height: 240px; display: grid; place-items: center; margin-top: 30px; }
  .voice { grid-area: 1 / 1; opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); max-width: 800px; margin: 0 auto; pointer-events: none; }
  .voice.on { opacity: 1; transform: none; }
  .voice blockquote { font-family: var(--display); font-weight: 500; font-size: clamp(22px, 3vw, 36px); line-height: 1.4; font-style: italic; }
  html[dir="rtl"] .voice blockquote { font-family: var(--ar-display); font-style: normal; }
  .voice .v-who { margin-top: 24px; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--cream-dim); }
  html[dir="rtl"] .voice .v-who { letter-spacing: 0.5px; }
  .voice .v-who b { color: var(--gold-bright); }
  .voice-dots { display: flex; justify-content: center; gap: 10px; margin-top: 34px; }
  .voice-dots button { width: 26px; height: 2px; border: none; background: var(--line); transition: background 0.3s; }
  .voice-dots button.on { background: var(--gold-bright); }

  /* ---------- faq ---------- */
  .faq { padding: clamp(80px, 12vh, 140px) min(7vw, 90px); max-width: 1060px; }
  .faq .kicker { margin-bottom: 16px; }
  .faq h2 { font-family: var(--display); font-weight: 500; font-size: clamp(32px, 4.6vw, 60px); line-height: 1.1; margin-bottom: 34px; }
  html[dir="rtl"] .faq h2 { font-family: var(--ar-display); line-height: 1.4; }
  .faq-list details { border-top: 1px solid var(--line); }
  .faq-list details:last-child { border-bottom: 1px solid var(--line); }
  .faq-list summary {
    list-style: none; cursor: pointer; padding: 20px 44px 20px 4px; position: relative;
    font-size: 15.5px; font-weight: 600; color: var(--cream);
    transition: color 0.25s;
  }
  html[dir="rtl"] .faq-list summary { padding: 20px 4px 20px 44px; }
  .faq-list summary::-webkit-details-marker { display: none; }
  .faq-list summary::after {
    content: "+"; position: absolute; inset-inline-end: 8px; top: 50%; transform: translateY(-50%);
    font-family: var(--display); font-size: 26px; font-weight: 400; color: var(--gold-bright);
    transition: transform 0.3s var(--ease);
  }
  .faq-list details[open] summary::after { content: "−"; }
  .faq-list summary:hover { color: var(--gold-bright); }
  .faq-list details p { padding: 0 4px 24px; max-width: 62em; color: var(--cream-dim); font-size: 14.5px; }
  @media (max-width: 640px) {
    .faq { padding-left: 22px; padding-right: 22px; }
  }

  /* ---------- contact ---------- */
  .contact { border-top: 1px solid var(--line); padding: clamp(90px, 13vh, 150px) min(7vw, 90px); position: relative; overflow: hidden; }
  .contact-bg { position: absolute; inset: 0; opacity: 0.14; }
  .contact-bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.5); }
  .contact-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(44px, 6vw, 100px); }
  @media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
  .contact h2 { font-family: var(--display); font-weight: 500; font-size: clamp(40px, 6vw, 82px); line-height: 1.02; margin-top: 26px; }
  html[dir="rtl"] .contact h2 { font-family: var(--ar-display); line-height: 1.3; }
  .contact h2 em { font-style: italic; color: var(--gold-bright); }
  html[dir="rtl"] .contact h2 em { font-style: normal; }
  .contact-sub { color: var(--cream-dim); margin-top: 20px; max-width: 30em; }
  .channels { margin-top: 40px; display: flex; flex-direction: column; }
  .channel {
    display: flex; align-items: center; gap: 18px;
    padding: 20px 4px; border-top: 1px solid var(--line);
    transition: padding 0.3s var(--ease);
  }
  .channel:last-child { border-bottom: 1px solid var(--line); }
  .channel:hover { padding-inline-start: 16px; }
  .channel .ch-ic { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--gold-bright); flex-shrink: 0; }
  .channel .ch-ic svg { width: 19px; height: 19px; fill: currentColor; }
  .channel .ch-l { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--cream-dim); }
  html[dir="rtl"] .channel .ch-l { letter-spacing: 0.5px; }
  .channel .ch-v { font-size: 16.5px; font-weight: 600; direction: ltr; unicode-bidi: embed; }

  form {
    position: relative; z-index: 2;
    display: flex; flex-direction: column; gap: 14px;
    background: rgba(15, 13, 10, 0.78); backdrop-filter: blur(12px);
    border: 1px solid rgba(217, 184, 119, 0.3);
    border-radius: var(--radius);
    padding: clamp(24px, 3vw, 36px);
  }
  .form-head { margin-bottom: 4px; }
  .form-head .fh-title { font-family: var(--display); font-size: 24px; color: var(--cream); }
  html[dir="rtl"] .form-head .fh-title { font-family: var(--ar-display); }
  .form-head .fh-sub { font-size: 12.5px; color: var(--cream-dim); margin-top: 4px; }
  .field {
    border: 1px solid rgba(237, 232, 221, 0.25);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 10px 15px 12px;
    transition: border-color 0.25s, background 0.25s;
  }
  .field:focus-within { border-color: var(--gold-bright); background: rgba(255, 255, 255, 0.08); }
  .field label { display: block; font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold-bright); margin-bottom: 5px; }
  html[dir="rtl"] .field label { letter-spacing: 0.5px; }
  .field input, .field select, .field textarea {
    width: 100%; background: transparent; border: none; outline: none;
    color: var(--cream); font-size: 16px; font-family: var(--grot);
  }
  html[dir="rtl"] .field input, html[dir="rtl"] .field select, html[dir="rtl"] .field textarea { font-family: var(--ar-grot); }
  .field ::placeholder { color: rgba(237, 232, 221, 0.35); }
  .field select { appearance: none; }
  .field select option { background: var(--ink-soft); color: var(--cream); }
  .field textarea { resize: vertical; min-height: 60px; }
  form .btn { margin-top: 8px; width: 100%; padding: 18px; font-size: 13px; }
  .form-note { font-size: 11.5px; color: var(--cream-dim); text-align: center; }

  /* ---------- footer ---------- */
  footer { border-top: 1px solid var(--line); padding: 44px min(7vw, 90px) 130px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; color: var(--cream-dim); font-size: 12px; }
  footer .f-brand { font-family: var(--display); font-size: 19px; letter-spacing: 2px; color: var(--cream); }
  html[dir="rtl"] footer .f-brand { font-family: var(--ar-display); letter-spacing: 0; }
  .legal-links { display: flex; justify-content: flex-end; gap: 18px; margin-top: 8px; }
  .legal-links a { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
  .footer-details { text-align: end; }

  /* ---------- floating wa + mobile bar ---------- */
  .wa-float {
    position: fixed; bottom: 26px; inset-inline-end: 26px; z-index: 80;
    width: 58px; height: 58px; border-radius: 50%;
    background: var(--wa); display: grid; place-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.25s var(--ease);
  }
  .wa-float:hover { transform: scale(1.1); }
  .wa-float svg { width: 28px; height: 28px; fill: #fff; }
  .sticky-bar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 85; display: none; gap: 1px;
    background: var(--line); border-top: 1px solid var(--line);
  }
  .sticky-bar a { flex: 1; padding: 17px 8px; text-align: center; font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; background: rgba(12,11,9,0.96); backdrop-filter: blur(12px); }
  html[dir="rtl"] .sticky-bar a { letter-spacing: 0.5px; }
  .sticky-bar .sb-wa { color: #4ade80; }
  .sticky-bar .sb-tel { color: var(--gold-bright); }
  @media (max-width: 820px) { .sticky-bar { display: flex; } .wa-float { display: none; } }
