/* Sabreen Haj Ahmad — site styles
   White, flat, 2D. One accent (poppy) used only for the "available" dot. */

@font-face {
  font-family: "Thmanyah Display";
  src: url("../fonts/thmanyahserifdisplay-Regular.otf") format("opentype");
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF;
}

:root {
  --bg: #ffffff;
  --ink: #0a0a0a;
  --mute: #8a8a8a;
  --line: #e6e6e6;
  --poppy: #e0301e;
  --sans: "Inter Tight", "Thmanyah Display", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ar: "Thmanyah Display", serif;
  --pad: clamp(16px, 2.2vw, 28px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.ar { font-family: var(--ar); direction: rtl; unicode-bidi: isolate; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; }
.up { text-transform: uppercase; letter-spacing: .01em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
::selection { background: var(--ink); color: var(--bg); }

/* ── Header ─────────────────────────────────────────── */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px var(--pad);
  font-size: 13px; font-weight: 500; text-transform: uppercase;
  mix-blend-mode: difference; color: #fff;
}
.bar a, .bar button { color: #fff; text-transform: uppercase; font-weight: 500; font-size: 13px; }
.bar .menu-btn { display: inline-flex; align-items: center; gap: 8px; }
.bar .menu-btn i { width: 8px; height: 8px; background: currentColor; transition: transform .4s var(--ease); }
body.menu-open .bar .menu-btn i { transform: rotate(45deg); }
.link-hover { position: relative; }
.link-hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.link-hover:hover::after { transform: scaleX(1); transform-origin: left; }

/* ── Full-screen menu ───────────────────────────────── */
.menu {
  position: fixed; inset: 0; z-index: 40;
  background: var(--ink); color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 90px var(--pad) var(--pad);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease);
}
body.menu-open .menu { clip-path: inset(0 0 0 0); }
.menu nav { display: flex; flex-direction: column; }
.menu nav a {
  font-size: clamp(44px, 8.4vw, 124px); line-height: .92; font-weight: 500;
  text-transform: uppercase; letter-spacing: -.035em;
  display: inline-flex; align-items: flex-start; gap: .12em; width: fit-content;
  transform: translateY(40%); opacity: 0;
  transition: transform .7s var(--ease), opacity .7s var(--ease), color .25s;
}
.menu nav a sup { font-size: .32em; letter-spacing: 0; margin-top: .25em; }
.menu nav a:hover { color: var(--mute); }
body.menu-open .menu nav a { transform: none; opacity: 1; }
body.menu-open .menu nav a:nth-child(2) { transition-delay: .05s; }
body.menu-open .menu nav a:nth-child(3) { transition-delay: .1s; }
body.menu-open .menu nav a:nth-child(4) { transition-delay: .15s; }
.menu-foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  font-size: 13px; text-transform: uppercase; line-height: 1.5;
}
.menu-foot .ar { font-size: 28px; text-transform: none; }

/* ── Home: 3D rail ──────────────────────────────────── */
.home { height: 100vh; height: 100svh; overflow: hidden; touch-action: none; }
.rail {
  position: fixed; inset: 0;
  perspective: 1400px; perspective-origin: 50% 45%;
  cursor: grab;
}
.rail.dragging { cursor: grabbing; }
.rail { --u: min(26vw, 36vh); }
@media (max-width: 700px) { .rail { --u: min(56vw, 40vh); } }
.card {
  position: absolute; display: block; left: 50%; top: 50%;
  width: var(--w); height: var(--h);
  margin: calc(var(--h) / -2) 0 0 calc(var(--w) / -2);
  transform-style: preserve-3d; will-change: transform, opacity;
  background: #f3f3f3;
}
.card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; }
.home-caption {
  position: fixed; left: var(--pad); bottom: calc(var(--pad) + 4px); z-index: 5;
  font-size: 13px; text-transform: uppercase; max-width: 46vw; pointer-events: none;
}
.home-caption b { font-weight: 500; display: block; }
.home-caption span { color: var(--mute); }
.home-cta {
  position: fixed; right: var(--pad); bottom: calc(var(--pad) + 4px); z-index: 5;
  font-size: 13px; text-transform: uppercase; font-weight: 500;
}
.ticks {
  position: fixed; left: 50%; bottom: calc(var(--pad) + 8px); transform: translateX(-50%);
  display: flex; gap: 3px; z-index: 5; pointer-events: none;
}
.ticks i { width: 1px; height: 12px; background: #cfcfcf; transition: background .2s, height .2s; }
.ticks i.on { background: var(--ink); }
.ticks i.now { height: 16px; margin-top: -4px; }
.home-title {
  position: fixed; left: var(--pad); top: 64px; z-index: 5; pointer-events: none;
  font-size: clamp(13px, 1.1vw, 15px); text-transform: uppercase; line-height: 1.3; max-width: 320px;
}
.home-title span { color: var(--mute); }

/* ── Page frame ─────────────────────────────────────── */
main.page { padding: 120px var(--pad) 0; min-height: 100vh; }
.giant {
  font-size: clamp(64px, 15.5vw, 250px); line-height: .8; font-weight: 400;
  letter-spacing: -.055em; text-transform: uppercase;
}
.head-row {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  margin-bottom: clamp(40px, 6vw, 90px);
}
.head-row .left { display: flex; align-items: flex-start; gap: clamp(10px, 1.6vw, 22px); }
.count { font-size: clamp(64px, 15.5vw, 250px); line-height: .8; letter-spacing: -.055em; font-weight: 300; }

.toggles { display: flex; flex-direction: column; gap: 2px; font-size: 13px; text-transform: uppercase; padding-top: .6em; }
.toggles button, .filters button { display: inline-flex; align-items: center; gap: 7px; text-transform: uppercase; font-size: 13px; color: var(--mute); }
.toggles button::before, .filters button::before {
  content: ""; width: 7px; height: 7px; background: var(--ink); transform: scale(0); transition: transform .3s var(--ease);
}
.toggles button[aria-pressed="true"], .filters button[aria-pressed="true"] { color: var(--ink); }
.toggles button[aria-pressed="true"]::before, .filters button[aria-pressed="true"]::before { transform: scale(1); }

.filters {
  display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center;
  border-top: 1px solid var(--ink); padding: 10px 0 12px; margin-bottom: 26px;
}
.filters .spacer { flex: 1; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--poppy); vertical-align: .08em; }
.dot.off { background: transparent; border: 1px solid var(--mute); }

/* ── Works grid ─────────────────────────────────────── */
.grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px) clamp(10px, 1.2vw, 16px);
  align-items: start;
}
.tile { grid-column: span 3; min-width: 0; }
.tile:nth-child(10n+3) { grid-column: span 6; }
.tile:nth-child(10n+5) { grid-column: 4 / span 3; }
.tile:nth-child(10n+7) { grid-column: span 4; }
.tile:nth-child(10n+8) { grid-column: 9 / span 4; }
.tile:nth-child(10n+9) { grid-column: 2 / span 5; }
.tile .cap {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 12px; text-transform: uppercase; font-weight: 500; margin-bottom: 6px;
}
.tile .cap span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .cap span:last-child { flex: none; color: var(--mute); font-weight: 400; }
.tile .img { background: #f3f3f3; overflow: hidden; }
.tile img { width: 100%; height: auto; transition: transform .9s var(--ease), filter .4s; }
.tile:hover img { transform: scale(1.035); }
.tile.sold img { filter: grayscale(.15); }
.tile .meta { margin-top: 6px; font-size: 12px; color: var(--mute); display: flex; gap: 8px; align-items: center; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ── Works list ─────────────────────────────────────── */
.list { display: none; }
.view-list .grid { display: none; }
.view-list .list { display: block; }
.row {
  display: grid; grid-template-columns: 48px 2.4fr 1.6fr 1fr 70px 150px; gap: 16px; align-items: baseline;
  padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px;
  transition: padding .35s var(--ease), color .2s;
}
.row:last-child { border-bottom: 1px solid var(--line); }
.row:hover { padding-left: 12px; }
.list:hover .row:not(:hover) { color: #b3b3b3; }
.row .t { font-weight: 500; text-transform: uppercase; }
.row .ar { color: var(--mute); margin-left: 12px; font-size: 16px; }
.row .n, .row .m, .row .s, .row .y { font-family: var(--mono); font-size: 12px; }
.row .st { font-size: 12px; text-transform: uppercase; text-align: right; }
.peek {
  position: fixed; z-index: 30; width: 220px; pointer-events: none;
  opacity: 0; transform: translate(-50%, -50%) scale(.9); transition: opacity .25s, transform .35s var(--ease);
}
.peek.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ── Single work ────────────────────────────────────── */
.work { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: clamp(24px, 4vw, 72px); align-items: start; }
.work-img { position: sticky; top: 64px; background: #f5f5f5; cursor: zoom-in; }
.work-img img { width: 100%; max-height: calc(100vh - 100px); object-fit: contain; }
.work h1 { font-size: clamp(34px, 4.4vw, 68px); font-weight: 400; line-height: .95; letter-spacing: -.035em; text-transform: uppercase; }
.work h1 + .ar { display: block; font-size: clamp(24px, 2.6vw, 36px); margin-top: 12px; color: var(--mute); }
.specs { margin: 28px 0; border-top: 1px solid var(--ink); }
.specs div { display: grid; grid-template-columns: 110px 1fr; padding: 9px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: var(--mute); padding-top: 2px; }
.specs dd { font-size: 14px; }
.statement { font-size: 15px; line-height: 1.6; max-width: 56ch; margin-bottom: 28px; }
.btn {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  background: var(--ink); color: #fff; padding: 17px 18px; font-size: 14px; font-weight: 500; text-transform: uppercase;
  transition: background .25s;
}
.btn:hover { background: #333; }
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(5px); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.pager { display: flex; justify-content: space-between; margin-top: 22px; font-size: 13px; text-transform: uppercase; }
.pager a { color: var(--mute); } .pager a:hover { color: var(--ink); }
.note-line { font-size: 12px; color: var(--mute); margin-top: 12px; }

.zoom {
  position: fixed; inset: 0; z-index: 60; background: #fff; display: none; overflow: hidden; cursor: zoom-out;
}
.zoom.on { display: block; }
.zoom img { position: absolute; left: 50%; top: 50%; max-width: none; transform-origin: 0 0; user-select: none; }
.zoom .close { position: fixed; top: 14px; right: var(--pad); font-size: 13px; text-transform: uppercase; font-weight: 500; }

/* ── Inquiry drawer / form ──────────────────────────── */
.drawer {
  position: fixed; inset: 0 0 0 auto; z-index: 70; width: min(520px, 100%);
  background: #fff; border-left: 1px solid var(--ink);
  transform: translateX(100%); transition: transform .6s var(--ease);
  display: flex; flex-direction: column; overflow-y: auto;
}
.drawer.on { transform: none; }
.scrim { position: fixed; inset: 0; z-index: 65; background: rgba(255,255,255,.6); opacity: 0; pointer-events: none; transition: opacity .4s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer header { display: flex; justify-content: space-between; padding: 14px var(--pad); font-size: 13px; text-transform: uppercase; font-weight: 500; }
.drawer .inner { padding: 24px var(--pad) var(--pad); flex: 1; display: flex; flex-direction: column; }
.drawer h2 { font-size: clamp(38px, 5vw, 60px); line-height: .9; font-weight: 400; letter-spacing: -.04em; text-transform: uppercase; margin-bottom: 22px; }
.about-work { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.about-work img { width: 56px; height: 56px; object-fit: cover; }
.about-work b { display: block; font-weight: 500; text-transform: uppercase; font-size: 13px; }
.about-work span { font-size: 12px; color: var(--mute); }

.form { display: flex; flex-direction: column; gap: 0; }
.field { position: relative; border-bottom: 1px solid var(--line); }
.field label { position: absolute; left: 0; top: 16px; font-size: 13px; text-transform: uppercase; color: var(--mute); pointer-events: none; transition: transform .3s var(--ease), font-size .3s; transform-origin: 0 0; }
.field input, .field textarea {
  width: 100%; border: 0; outline: 0; background: transparent; font: 15px/1.4 var(--sans); color: var(--ink);
  padding: 30px 0 10px; resize: vertical;
}
.field textarea { min-height: 120px; }
.field:focus-within { border-color: var(--ink); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-10px) scale(.8); color: var(--ink); }
.form .btn { margin-top: 26px; }
.form .fine { font-size: 12px; color: var(--mute); margin-top: 12px; line-height: 1.5; }
.form-done { display: none; padding: 30px 0; font-size: 18px; line-height: 1.45; }
.form.sent .fields { display: none; }
.form.sent .form-done { display: block; }
.hp { position: absolute; left: -9999px; }

/* ── About ──────────────────────────────────────────── */
.lede {
  font-size: clamp(24px, 3.1vw, 46px); line-height: 1.12; letter-spacing: -.025em; font-weight: 400;
  max-width: 24ch; max-width: 1200px; text-indent: 18%;
  margin-bottom: clamp(60px, 9vw, 140px);
}
.about-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin-bottom: clamp(60px, 9vw, 140px); }
.about-grid figure { grid-column: 1 / span 4; }
.about-grid figcaption { font-size: 12px; color: var(--mute); margin-top: 6px; text-transform: uppercase; }
.about-grid .copy { grid-column: 6 / span 6; font-size: 17px; line-height: 1.6; }
.about-grid .copy p + p { margin-top: 1em; }
.label { font-size: 12px; text-transform: uppercase; font-weight: 500; margin-bottom: 14px; display: flex; gap: 8px; align-items: center; }
.label::before { content: ""; width: 7px; height: 7px; background: var(--ink); }
.cv { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 clamp(16px, 2vw, 28px); padding-bottom: 40px; }
.cv section { grid-column: span 6; margin-bottom: 56px; }
.cv section.wide { grid-column: 1 / -1; }
.cv h3 { font-size: clamp(30px, 3.4vw, 52px); font-weight: 400; letter-spacing: -.04em; text-transform: uppercase; line-height: 1; margin-bottom: 18px; }
.cv ul { list-style: none; border-top: 1px solid var(--ink); }
.cv li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.cv li .yr { font-family: var(--mono); font-size: 12px; color: var(--mute); padding-top: 2px; }
.cv li em { font-style: normal; color: var(--mute); }
.cv a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ── Contact ────────────────────────────────────────── */
.contact-top { display: flex; justify-content: space-between; font-size: 13px; text-transform: uppercase; font-weight: 500; }
.disc-wrap { display: grid; place-items: center; padding: clamp(24px, 4vw, 50px) 0; }
.disc {
  width: min(62vw, 420px); aspect-ratio: 1; border-radius: 50%; position: relative;
  border: 1px solid var(--ink); display: grid; place-items: center;
}
.disc svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 24s linear infinite; }
.disc:hover svg { animation-duration: 6s; }
.disc text { font: 500 13.5px var(--sans); letter-spacing: .18em; text-transform: uppercase; fill: var(--ink); }
.disc img { width: 46%; transition: transform .6s var(--ease); }
.disc:hover img { transform: rotate(-8deg) scale(1.06); }
.disc::after { content: ""; position: absolute; inset: 22%; border: 1px solid var(--line); border-radius: 50%; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.say { font-weight: 400; display: flex; justify-content: space-between; align-items: flex-end; font-size: clamp(64px, 17vw, 280px); line-height: .78; letter-spacing: -.06em; text-transform: uppercase; margin: 0 -.02em clamp(40px, 6vw, 90px); }
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); padding-bottom: 80px; }
.contact-grid .info { grid-column: 1 / span 4; font-size: 15px; }
.contact-grid .info a.big { display: inline-block; font-size: clamp(18px, 1.8vw, 24px); margin-bottom: 26px; word-break: break-all; }
.contact-grid .info p { color: var(--mute); margin-bottom: 18px; max-width: 36ch; }
.contact-grid .form { grid-column: 6 / span 7; }

/* ── Footer ─────────────────────────────────────────── */
.foot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px;
  padding: 18px var(--pad); margin-top: 60px; border-top: 1px solid var(--ink);
  font-size: 12px; text-transform: uppercase;
}
.foot .ar { font-size: 16px; text-transform: none; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile, .tile:nth-child(n) { grid-column: span 1; }
  .tile:nth-child(5n+3) { grid-column: 1 / -1; }
  .row { grid-template-columns: 34px 1fr 90px; }
  .row .m, .row .s { display: none; }
  .row .st { grid-column: 2 / -1; text-align: left; color: var(--mute); padding-top: 0; }
  .peek { display: none; }
  .work { grid-template-columns: 1fr; }
  .work-img { position: static; }
  .about-grid figure, .about-grid .copy, .cv section, .contact-grid .info, .contact-grid .form { grid-column: 1 / -1; }
  .lede { text-indent: 0; }
  .home-caption { max-width: 60vw; }
  .ticks { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
