@font-face {
  font-family: DarDisplay;
  src: url(fonts/thmanyahserifdisplay-Regular.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: DarSans;
  src: url(fonts/thmanyahsans-Regular.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #f7f3e9;
  --ink: #30291f;
  --muted: #5c5347;
  --gold: #795929;
  --rule: #a68b605a;
  --edge: clamp(24px, 5vw, 88px);
  background: var(--paper);
  color: var(--ink);
  color-scheme: light;
  font: 400 18px/1.8 DarSans, sans-serif;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
body, h1, h2, h3, p { margin: 0; }
body { text-align: center; min-width: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
::selection { background: #dfcda7; color: #292015; }

.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { position: fixed; top: 12px; right: var(--edge); padding: 6px 16px; background: var(--paper); z-index: 15; }


/* Both photographs share a front elevation. Keep the tablet and wall in one coordinate system. */
main { max-width: 1920px; margin-inline: auto; }
.opening, .project-spread {
  display: grid;
  grid-template-columns: minmax(0, 39fr) minmax(0, 61fr);
  align-items: stretch;
}
.opening { background: linear-gradient(120deg, #eee5d5, #fbf8f0 78%); }
.introduction {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(30px, 4.4vw, 84px);
  text-align: start;
}
.house-mark { width: clamp(98px, 7.9vw, 138px); margin-block-end: clamp(28px, 3.9vw, 64px); }
h1, h2, h3 { font: 400 1em/1.27 DarDisplay, serif; }
h1 { font-size: clamp(48px, 5.65vw, 104px); }
h1 span { display: block; }
h1 em { color: #80612d; font-style: normal; }
.introduction p, .project-copy p, .detail-reading p {
  color: var(--muted);
  font-size: clamp(17px, 1.35vw, 22px);
  line-height: 1.83;
  text-wrap: pretty;
}
.introduction p span { display: block; }
.introduction p { max-width: 22em; margin-top: clamp(17px, 2vw, 30px); }

.device-stage {
  min-width: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #c5aa87;
}
.installation { position: relative; width: 100%; aspect-ratio: 3 / 2; }
.stone-wall { width: 100%; height: 100%; }
.ipad-pro {
  position: absolute;
  direction: ltr;
  left: 50%;
  bottom: 34.65%;
  width: 51%;
  aspect-ratio: 2816 / 2155;
  transform: translateX(-50%);
  border-radius: 4.4034% / 5.7541%;
  box-shadow: 0 2px 2px #35250dc4, 5px 3px 5px #3a271c63, 11px 7px 15px -3px #35291647;
}
.project-muallaqat .ipad-pro {
  box-shadow: 0 2px 2px #172416c4, -5px 3px 6px #14221988, -11px 7px 15px -3px #1e291d6e;
}
.hardware { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.glass {
  position: absolute;
  left: 2.98295455%;
  top: 3.89791183%;
  width: 94.03409091%;
  height: 92.15777262%;
  overflow: hidden;
  border-radius: 2.34138973% / 3.12185297%;
  background: #13110d;
}
.glass img { width: 100%; height: 100%; object-fit: contain; }
.glass:focus-visible { outline-color: #ffe0a8; }
.glass:active { filter: brightness(.9); }


.project-copy { text-align: start; }
.project-copy h2 { font-size: clamp(49px, 5.5vw, 90px); }
.project-featured { margin: 0 var(--edge); }
.project-featured .project-copy {
  display: grid;
  grid-template-columns: .72fr 1.45fr auto;
  align-items: center;
  gap: clamp(22px, 4vw, 75px);
  padding-block: clamp(37px, 4.2vw, 76px);
}
.project-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 22px; }
.visit-link, .details-toggle, .details-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  font: 400 16px/1.5 DarSans, sans-serif;
}
.visit-link {
  background: var(--ink);
  color: #fff9ec;
  padding: 9px 21px;
  border-radius: 2px;
}
.details-toggle, .details-close {
  padding: 6px 1px;
  background: transparent;
  border-bottom: 1px solid #ab987b;
}
.project-actions svg, .project-sample svg, .details-close svg {
  width: 17px;
  height: 17px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.details-toggle[aria-expanded="true"] svg { transform: rotate(45deg); }
.visit-link svg { color: #ead2a2; }
.project-muallaqat { background: #edf0e6; }
.project-spread { grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); }
.project-spread .device-stage { grid-column: 1; grid-row: 1; background: #686e55; }
.project-spread .project-copy {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  padding: clamp(28px, 4.8vw, 83px);
}
.project-spread p { margin-block: 16px 28px; }
.colophon { display: flex; align-items: center; gap: 28px; margin: 0 var(--edge); padding-block: 40px; }
.colophon::before, .colophon::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.colophon img { width: 82px; }
.whatsapp-contact {
  position: fixed;
  left: clamp(14px, 2vw, 24px);
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 10;
  display: grid;
  place-items: center;
  width: 47px;
  height: 47px;
  border: 1px solid #bda880;
  border-radius: 50%;
  background: #f8f5ee;
  box-shadow: 0 5px 18px #30291f1a;
  transition: background-color .2s, transform .2s;
}
.whatsapp-contact img { width: 22px; height: 22px; }
.whatsapp-contact::after {
  content: "واتساب";
  position: absolute;
  left: calc(100% + 9px);
  padding: 4px 11px;
  border: 1px solid #d1c4a8;
  border-radius: 99px;
  background: #fbf8f2;
  color: #465c48;
  white-space: nowrap;
  font-size: 13px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
}


@media (hover: hover) and (pointer: fine) {
  .whatsapp-contact:hover { background: #e9efe3; }
  .whatsapp-contact:hover::after { opacity: 1; }
  .glass:hover { filter: brightness(1.07); }
  .visit-link:hover { background: #604a30; }
  .details-toggle:hover, .details-close:hover { color: var(--gold); border-color: currentColor; }
}
@media (min-width: 761px) and (max-width: 1050px) {
  .introduction { padding: 25px; }
  .house-mark { margin-block-end: 16px; width: 87px; }
  h1 { font-size: 5.8vw; }
  .project-featured .project-copy { grid-template-columns: .65fr 1.5fr; gap: 12px 32px; }
  .project-featured .project-actions { grid-column: 2; }
  .project-spread .project-copy { padding: 24px; }
}
@media (max-width: 760px) {
  :root { --edge: clamp(18px, 6vw, 40px); }
  .opening, .project-spread { display: flex; flex-direction: column; }
  .introduction { text-align: center; align-items: center; padding: 24px var(--edge) 29px; }
  .house-mark { width: 84px; margin-block-end: 14px; }
  h1 { font-size: clamp(35px, 8vw, 58px); }
  h1 span { display: inline; }
  .introduction p { margin-top: 9px; max-width: 25em; font-size: 16px; text-wrap: balance; }
  .introduction p span { display: inline; }
  .installation { width: 120%; flex: none; }
  .ipad-pro { width: 54%; }
  .device-stage { display: flex; align-items: center; justify-content: center; }
  .project-featured { margin: 0; }
  .project-copy { text-align: center; }
  .project-featured .project-copy,
  .project-spread .project-copy {
    display: block;
    width: 100%;
    padding: 26px var(--edge) 34px;
  }
  .project-copy h2 { font-size: clamp(39px, 9vw, 55px); }
  .project-copy p { margin: 10px auto 16px; max-width: 31em; text-wrap: balance; }
  .project-actions { justify-content: center; gap: 17px; }
  .visit-link, .details-toggle { font-size: 15px; }
  .project-spread .device-stage { order: -1; }
  .colophon { gap: 21px; padding-block: 30px; }
  .colophon img { width: 70px; }
  .whatsapp-contact { width: 39px; height: 39px; left: 9px; bottom: calc(12px + env(safe-area-inset-bottom)); }
  .whatsapp-contact img { width: 20px; }
}
@media (min-width: 510px) and (max-width: 760px) { .installation { width: 108%; } }
@media (prefers-reduced-motion: no-preference) {
  .glass, .visit-link, .details-toggle, .details-close { transition: color .16s, background-color .16s, filter .16s; }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-contact, .whatsapp-contact::after { transition: none; }
}
